Symbol: cgs_device
drivers/gpu/drm/amd/acp/acp_hw.c
37
int amd_acp_hw_init(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/acp/acp_hw.c
43
acp_mode = cgs_read_register(cgs_device,
drivers/gpu/drm/amd/acp/include/acp_gfx_if.h
30
int amd_acp_hw_init(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/amdgpu/amdgpu.h
677
struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev);
drivers/gpu/drm/amd/amdgpu/amdgpu.h
678
void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
107
adev->acp.cgs_device =
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
109
if (!adev->acp.cgs_device)
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
119
if (adev->acp.cgs_device)
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
120
amdgpu_cgs_destroy_device(adev->acp.cgs_device);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
235
r = amd_acp_hw_init(adev->acp.cgs_device,
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
451
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
454
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
458
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
470
val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
472
cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
477
val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
488
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
490
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
520
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
523
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
527
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
538
val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
540
cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
545
val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS);
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.h
33
struct cgs_device *cgs_device;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
112
static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
159
static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
202
static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
215
id = fw_type_convert(cgs_device, type);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
241
info->fw_version = amdgpu_get_firmware_version(cgs_device, type);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
35
struct cgs_device base;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
400
struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
402
struct amdgpu_cgs_device *cgs_device = kmalloc_obj(*cgs_device);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
404
if (!cgs_device) {
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
409
cgs_device->base.ops = &amdgpu_cgs_ops;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
41
((struct amdgpu_cgs_device *)cgs_device)->adev
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
410
cgs_device->adev = adev;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
412
return (struct cgs_device *)cgs_device;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
415
void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
417
kfree(cgs_device);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
44
static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned int offset)
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
50
static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned int offset,
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
57
static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
85
static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
13408
cgs_write_register(ctx->cgs_device, address, value);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
13433
value = cgs_read_register(ctx->cgs_device, address);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1782
cgs_write_register(adev->dm.cgs_device, 0x34c0 + 0x01f8, reg.all);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1790
cgs_read_register(adev->dm.cgs_device, 0x34c0 + 0x01f8);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1908
init_data.cgs_device = adev->dm.cgs_device;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2296
if (adev->dm.cgs_device) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2297
amdgpu_cgs_destroy_device(adev->dm.cgs_device);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2298
adev->dm.cgs_device = NULL;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2634
adev->dm.cgs_device = amdgpu_cgs_create_device(adev);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2636
if (!adev->dm.cgs_device) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
443
struct cgs_device *cgs_device;
drivers/gpu/drm/amd/display/dc/core/dc.c
1014
dc_ctx->cgs_device = init_params->cgs_device;
drivers/gpu/drm/amd/display/dc/dc.h
1244
struct cgs_device *cgs_device;
drivers/gpu/drm/amd/display/dc/dc_types.h
809
void *cgs_device;
drivers/gpu/drm/amd/display/dc/dm_services.h
76
return cgs_read_ind_register(ctx->cgs_device, addr_space, index);
drivers/gpu/drm/amd/display/dc/dm_services.h
85
cgs_write_ind_register(ctx->cgs_device, addr_space, index, value);
drivers/gpu/drm/amd/include/cgs_common.h
108
typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
drivers/gpu/drm/amd/include/cgs_common.h
117
typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
drivers/gpu/drm/amd/include/cgs_common.h
136
typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device,
drivers/gpu/drm/amd/include/cgs_common.h
160
(((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__))
drivers/gpu/drm/amd/include/cgs_common.h
162
(((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
drivers/gpu/drm/amd/include/cgs_common.h
29
struct cgs_device;
drivers/gpu/drm/amd/include/cgs_common.h
90
typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
drivers/gpu/drm/amd/include/cgs_common.h
98
typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,