Home
last modified time | relevance | path

Searched refs:cgs_device (Results 1 – 9 of 9) sorted by relevance

/drivers/gpu/drm/amd/include/
Dcgs_common.h29 struct cgs_device;
217 typedef int (*cgs_alloc_gpu_mem_t)(struct cgs_device *cgs_device, enum cgs_gpu_mem_type type,
229 typedef int (*cgs_free_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
241 typedef int (*cgs_gmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
253 typedef int (*cgs_gunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
264 typedef int (*cgs_kmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle,
274 typedef int (*cgs_kunmap_gpu_mem_t)(struct cgs_device *cgs_device, cgs_handle_t handle);
283 typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
291 typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
301 typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
[all …]
Dcgs_linux.h69 typedef int (*cgs_add_irq_source_t)(void *cgs_device, unsigned client_id,
87 typedef int (*cgs_irq_get_t)(void *cgs_device, unsigned client_id, unsigned src_id, unsigned type);
102 typedef int (*cgs_irq_put_t)(void *cgs_device, unsigned client_id, unsigned src_id, unsigned type);
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cgs.c37 struct cgs_device base;
43 ((struct amdgpu_cgs_device *)cgs_device)->adev
45 static int amdgpu_cgs_alloc_gpu_mem(struct cgs_device *cgs_device, in amdgpu_cgs_alloc_gpu_mem() argument
137 static int amdgpu_cgs_free_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t handle) in amdgpu_cgs_free_gpu_mem() argument
154 static int amdgpu_cgs_gmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t handle, in amdgpu_cgs_gmap_gpu_mem() argument
175 static int amdgpu_cgs_gunmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t handle) in amdgpu_cgs_gunmap_gpu_mem() argument
187 static int amdgpu_cgs_kmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t handle, in amdgpu_cgs_kmap_gpu_mem() argument
200 static int amdgpu_cgs_kunmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t handle) in amdgpu_cgs_kunmap_gpu_mem() argument
212 static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned offset) in amdgpu_cgs_read_register() argument
218 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset, in amdgpu_cgs_write_register() argument
[all …]
Damdgpu_acp.c88 adev->acp.cgs_device = in acp_sw_init()
90 if (!adev->acp.cgs_device) in acp_sw_init()
100 if (adev->acp.cgs_device) in acp_sw_fini()
101 amdgpu_cgs_destroy_device(adev->acp.cgs_device); in acp_sw_fini()
274 r = amd_acp_hw_init(adev->acp.cgs_device, in acp_hw_init()
282 r = cgs_get_pci_resource(adev->acp.cgs_device, CGS_RESOURCE_TYPE_MMIO, in acp_hw_init()
298 adev->acp.acp_genpd->cgs_dev = adev->acp.cgs_device; in acp_hw_init()
Damdgpu_acp.h33 struct cgs_device *cgs_device; member
Damdgpu.h1376 struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev);
1377 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
/drivers/gpu/drm/amd/acp/
Dacp_hw.c37 int amd_acp_hw_init(struct cgs_device *cgs_device, in amd_acp_hw_init() argument
43 acp_mode = cgs_read_register(cgs_device, in amd_acp_hw_init()
/drivers/gpu/drm/amd/acp/include/
Dacp_gfx_if.h31 int amd_acp_hw_init(struct cgs_device *cgs_device,
/drivers/gpu/drm/amd/powerplay/inc/
Damd_powerplay.h144 struct cgs_device *device;