msm: kgsl: Cleanup unused function declarations
Remove few functions that are declared in header file but not defined in code. Change-Id: I13276485ac758b842f26f531d2e1e35ef740b78b Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
This commit is contained in:
parent
d4223866fb
commit
f7c30b262c
11
adreno.h
11
adreno.h
@ -1011,17 +1011,6 @@ long adreno_ioctl_helper(struct kgsl_device_private *dev_priv,
|
||||
unsigned int cmd, unsigned long arg,
|
||||
const struct kgsl_ioctl *cmds, int len);
|
||||
|
||||
/*
|
||||
* adreno_switch_to_unsecure_mode - Execute a zap shader
|
||||
* @adreno_dev: An Adreno GPU handle
|
||||
* @rb: The ringbuffer to execute on
|
||||
*
|
||||
* Execute the zap shader from the CP to take the GPU out of secure mode.
|
||||
* Return: 0 on success or negative on failure
|
||||
*/
|
||||
int adreno_switch_to_unsecure_mode(struct adreno_device *adreno_dev,
|
||||
struct adreno_ringbuffer *rb);
|
||||
|
||||
int adreno_spin_idle(struct adreno_device *device, unsigned int timeout);
|
||||
int adreno_idle(struct kgsl_device *device);
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2002,2007-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#ifndef __ADRENO_RINGBUFFER_H
|
||||
#define __ADRENO_RINGBUFFER_H
|
||||
@ -142,11 +143,6 @@ struct adreno_ringbuffer {
|
||||
/* Returns the current ringbuffer */
|
||||
#define ADRENO_CURRENT_RINGBUFFER(a) ((a)->cur_rb)
|
||||
|
||||
int adreno_ringbuffer_issueibcmds(struct kgsl_device_private *dev_priv,
|
||||
struct kgsl_context *context,
|
||||
struct kgsl_drawobj *drawobj,
|
||||
uint32_t *timestamp);
|
||||
|
||||
/**
|
||||
* adreno_ringbuffer_setup - Do generic set up on a ringbuffer
|
||||
* @adreno_dev: Pointer to an Adreno GPU handle
|
||||
@ -166,18 +162,9 @@ int adreno_ringbuffer_submitcmd(struct adreno_device *adreno_dev,
|
||||
|
||||
void adreno_ringbuffer_stop(struct adreno_device *adreno_dev);
|
||||
|
||||
void adreno_ringbuffer_submit(struct adreno_ringbuffer *rb,
|
||||
struct adreno_submit_time *time);
|
||||
|
||||
void kgsl_cp_intrcallback(struct kgsl_device *device);
|
||||
|
||||
unsigned int *adreno_ringbuffer_allocspace(struct adreno_ringbuffer *rb,
|
||||
unsigned int numcmds);
|
||||
|
||||
void adreno_ringbuffer_read_pfp_ucode(struct kgsl_device *device);
|
||||
|
||||
void adreno_ringbuffer_read_pm4_ucode(struct kgsl_device *device);
|
||||
|
||||
int adreno_ringbuffer_waittimestamp(struct adreno_ringbuffer *rb,
|
||||
unsigned int timestamp,
|
||||
unsigned int msecs);
|
||||
@ -208,16 +195,6 @@ static inline unsigned int adreno_ringbuffer_dec_wrapped(unsigned int val,
|
||||
return (val + size - sizeof(unsigned int)) % size;
|
||||
}
|
||||
|
||||
/**
|
||||
* adreno_ringbuffer_set_constraint - Set a system constraint before submission
|
||||
* @device: A KGSL GPU device handle
|
||||
* @drawobj: Pointer to the drawobj being sbumitted
|
||||
*
|
||||
* Check the drawobj to see if a constraint is applied and apply it.
|
||||
*/
|
||||
void adreno_ringbuffer_set_constraint(struct kgsl_device *device,
|
||||
struct kgsl_drawobj *drawobj);
|
||||
|
||||
void adreno_get_submit_time(struct adreno_device *adreno_dev,
|
||||
struct adreno_ringbuffer *rb,
|
||||
struct adreno_submit_time *time);
|
||||
|
4
kgsl.h
4
kgsl.h
@ -544,10 +544,6 @@ struct kgsl_mem_entry *gpumem_alloc_entry(struct kgsl_device_private *dev_priv,
|
||||
long gpumem_free_entry(struct kgsl_mem_entry *entry);
|
||||
|
||||
enum kgsl_mmutype kgsl_mmu_get_mmutype(struct kgsl_device *device);
|
||||
void kgsl_mmu_add_global(struct kgsl_device *device,
|
||||
struct kgsl_memdesc *memdesc, const char *name);
|
||||
void kgsl_mmu_remove_global(struct kgsl_device *device,
|
||||
struct kgsl_memdesc *memdesc);
|
||||
|
||||
/* Helper functions */
|
||||
int kgsl_request_irq(struct platform_device *pdev, const char *name,
|
||||
|
@ -210,7 +210,6 @@ void kgsl_mmu_exit(void);
|
||||
|
||||
int kgsl_mmu_start(struct kgsl_device *device);
|
||||
|
||||
void kgsl_print_global_pt_entries(struct seq_file *s);
|
||||
void kgsl_mmu_putpagetable(struct kgsl_pagetable *pagetable);
|
||||
|
||||
int kgsl_mmu_map(struct kgsl_pagetable *pagetable,
|
||||
@ -230,13 +229,6 @@ unsigned int kgsl_mmu_log_fault_addr(struct kgsl_mmu *mmu,
|
||||
bool kgsl_mmu_gpuaddr_in_range(struct kgsl_pagetable *pt, uint64_t gpuaddr,
|
||||
uint64_t size);
|
||||
|
||||
int kgsl_mmu_get_region(struct kgsl_pagetable *pagetable,
|
||||
uint64_t gpuaddr, uint64_t size);
|
||||
|
||||
int kgsl_mmu_find_region(struct kgsl_pagetable *pagetable,
|
||||
uint64_t region_start, uint64_t region_end,
|
||||
uint64_t *gpuaddr, uint64_t size, unsigned int align);
|
||||
|
||||
uint64_t kgsl_mmu_find_svm_region(struct kgsl_pagetable *pagetable,
|
||||
uint64_t start, uint64_t end, uint64_t size,
|
||||
uint64_t alignment);
|
||||
|
Loading…
Reference in New Issue
Block a user