/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_cgs.c | 35 struct cgs_device base; 50 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset, in amdgpu_cgs_write_register() argument 57 static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_read_ind_register() argument 85 static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_write_ind_register() argument 112 static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type) in fw_type_convert() argument 159 static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device, in amdgpu_get_firmware_version() argument 202 static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, in amdgpu_cgs_get_firmware_info() argument 467 if (!cgs_device) { in amdgpu_cgs_create_device() 475 return (struct cgs_device *)cgs_device; in amdgpu_cgs_create_device() 478 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device) in amdgpu_cgs_destroy_device() argument [all …]
|
A D | amdgpu_acp.c | 102 adev->acp.cgs_device = in acp_sw_init() 104 if (!adev->acp.cgs_device) in acp_sw_init() 114 if (adev->acp.cgs_device) in acp_sw_fini() 115 amdgpu_cgs_destroy_device(adev->acp.cgs_device); in acp_sw_fini() 209 r = amd_acp_hw_init(adev->acp.cgs_device, in acp_hw_init() 379 val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); in acp_hw_init() 381 cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val); in acp_hw_init() 386 val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS); in acp_hw_init() 447 val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); in acp_hw_fini() 449 cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val); in acp_hw_fini() [all …]
|
A D | amdgpu_acp.h | 33 struct cgs_device *cgs_device; member
|
A D | amdgpu.h | 708 struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev); 709 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
|
/linux/drivers/gpu/drm/amd/include/ |
A D | cgs_common.h | 29 struct cgs_device; 90 typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset); 98 typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset, 108 typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, 117 typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, 136 typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device, 152 struct cgs_device struct 161 (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__)) argument 163 (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
|
/linux/drivers/gpu/drm/amd/acp/ |
A D | acp_hw.c | 37 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()
|
/linux/drivers/gpu/drm/amd/acp/include/ |
A D | acp_gfx_if.h | 30 int amd_acp_hw_init(struct cgs_device *cgs_device,
|
/linux/drivers/gpu/drm/amd/display/dc/ |
A D | dm_services.h | 75 return cgs_read_ind_register(ctx->cgs_device, addr_space, index); in dm_read_index_reg() 84 cgs_write_ind_register(ctx->cgs_device, addr_space, index, value); in dm_write_index_reg()
|
A D | dc.h | 771 struct cgs_device *cgs_device; member
|
A D | dc_types.h | 837 void *cgs_device; member
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm.h | 331 struct cgs_device *cgs_device; member
|
A D | amdgpu_dm.c | 1404 adev->dm.cgs_device = amdgpu_cgs_create_device(adev); in amdgpu_dm_init() 1406 if (!adev->dm.cgs_device) { in amdgpu_dm_init() 1411 init_data.cgs_device = adev->dm.cgs_device; in amdgpu_dm_init() 1694 if (adev->dm.cgs_device) { in amdgpu_dm_fini() 1695 amdgpu_cgs_destroy_device(adev->dm.cgs_device); in amdgpu_dm_fini() 1696 adev->dm.cgs_device = NULL; in amdgpu_dm_fini() 11461 cgs_write_register(ctx->cgs_device, address, value); in dm_write_reg_func() 11483 value = cgs_read_register(ctx->cgs_device, address); in dm_read_reg_func()
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc.c | 867 dc_ctx->cgs_device = init_params->cgs_device; in dc_construct_ctx()
|