Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_cgs.c35 struct cgs_device base;
41 ((struct amdgpu_cgs_device *)cgs_device)->adev
44 static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned int offset) in amdgpu_cgs_read_register() argument
50 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned int 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
215 id = fw_type_convert(cgs_device, type); in amdgpu_cgs_get_firmware_info()
[all …]
H A Damdgpu_acp.h33 struct cgs_device *cgs_device; member
/linux/drivers/gpu/drm/amd/include/
H A Dcgs_common.h29 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
160 (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__)) argument
162 (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
/linux/drivers/gpu/drm/amd/acp/
H A 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()
/linux/drivers/gpu/drm/amd/acp/include/
H A Dacp_gfx_if.h30 int amd_acp_hw_init(struct cgs_device *cgs_device,
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.h376 struct cgs_device *cgs_device; member
H A Damdgpu_dm.c1757 cgs_write_register(adev->dm.cgs_device, 0x34c0 + 0x01f8, reg.all); in dm_dmub_send_vbios_gpint_command()
1765 cgs_read_register(adev->dm.cgs_device, 0x34c0 + 0x01f8); in dm_dmub_send_vbios_gpint_command()
1900 init_data.cgs_device = adev->dm.cgs_device; in amdgpu_dm_init()
2253 if (adev->dm.cgs_device) { in amdgpu_dm_fini()
2254 amdgpu_cgs_destroy_device(adev->dm.cgs_device); in amdgpu_dm_fini()
2255 adev->dm.cgs_device = NULL; in amdgpu_dm_fini()
2568 adev->dm.cgs_device = amdgpu_cgs_create_device(adev); in dm_sw_init()
2570 if (!adev->dm.cgs_device) { in dm_sw_init()
12309 cgs_write_register(ctx->cgs_device, address, value); in dm_write_reg_func()
12334 value = cgs_read_register(ctx->cgs_device, address); in dm_read_reg_func()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc.h1103 struct cgs_device *cgs_device; member
H A Ddc_types.h783 void *cgs_device; member
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c926 dc_ctx->cgs_device = init_params->cgs_device; in dc_construct_ctx()