Symbol: cgs_device
sys/dev/drm/amd/amdgpu/amdgpu.h
710
struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev);
sys/dev/drm/amd/amdgpu/amdgpu.h
711
void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
101
adev->acp.cgs_device =
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
103
if (!adev->acp.cgs_device)
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
113
if (adev->acp.cgs_device)
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
114
amdgpu_cgs_destroy_device(adev->acp.cgs_device);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
201
r = amd_acp_hw_init(adev->acp.cgs_device,
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
356
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
359
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
363
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
374
val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
376
cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
381
val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
391
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
393
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
418
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
421
cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
425
val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
436
val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
438
cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val);
sys/dev/drm/amd/amdgpu/amdgpu_acp.c
443
val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS);
sys/dev/drm/amd/amdgpu/amdgpu_acp.h
33
struct cgs_device *cgs_device;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
111
static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
158
static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device,
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
201
static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
214
id = fw_type_convert(cgs_device, type);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
237
info->fw_version = amdgpu_get_firmware_version(cgs_device, type);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
34
struct cgs_device base;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
40
((struct amdgpu_cgs_device *)cgs_device)->adev
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
43
static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned offset)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
485
struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
487
struct amdgpu_cgs_device *cgs_device =
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
488
kmalloc(sizeof(*cgs_device), M_DRM, GFP_KERNEL);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
49
static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset,
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
490
if (!cgs_device) {
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
495
cgs_device->base.ops = &amdgpu_cgs_ops;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
496
cgs_device->adev = adev;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
498
return (struct cgs_device *)cgs_device;
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
501
void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device)
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
503
kfree(cgs_device);
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
56
static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device,
sys/dev/drm/amd/amdgpu/amdgpu_cgs.c
84
static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device,
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
415
adev->dm.cgs_device = amdgpu_cgs_create_device(adev);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
417
if (!adev->dm.cgs_device) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
422
init_data.cgs_device = adev->dm.cgs_device;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
501
if (adev->dm.cgs_device) {
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
502
amdgpu_cgs_destroy_device(adev->dm.cgs_device);
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
503
adev->dm.cgs_device = NULL;
sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.h
76
struct cgs_device *cgs_device;
sys/dev/drm/amd/display/dc/core/dc.c
608
dc_ctx->cgs_device = init_params->cgs_device;
sys/dev/drm/amd/display/dc/dc.h
341
struct cgs_device *cgs_device;
sys/dev/drm/amd/display/dc/dc_types.h
80
void *cgs_device;
sys/dev/drm/amd/display/dc/dm_services.h
100
return cgs_read_ind_register(ctx->cgs_device, addr_space, index);
sys/dev/drm/amd/display/dc/dm_services.h
109
cgs_write_ind_register(ctx->cgs_device, addr_space, index, value);
sys/dev/drm/amd/display/dc/dm_services.h
72
value = cgs_read_register(ctx->cgs_device, address);
sys/dev/drm/amd/display/dc/dm_services.h
92
cgs_write_register(ctx->cgs_device, address, value);
sys/dev/drm/amd/include/cgs_common.h
109
typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
sys/dev/drm/amd/include/cgs_common.h
118
typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
sys/dev/drm/amd/include/cgs_common.h
137
typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device,
sys/dev/drm/amd/include/cgs_common.h
162
(((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__))
sys/dev/drm/amd/include/cgs_common.h
164
(((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
sys/dev/drm/amd/include/cgs_common.h
29
struct cgs_device;
sys/dev/drm/amd/include/cgs_common.h
91
typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
sys/dev/drm/amd/include/cgs_common.h
99
typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
sys/dev/drm/amd/include/cgs_linux.h
101
typedef int (*cgs_irq_put_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);
sys/dev/drm/amd/include/cgs_linux.h
69
typedef int (*cgs_add_irq_source_t)(struct cgs_device *cgs_device, unsigned src_id,
sys/dev/drm/amd/include/cgs_linux.h
86
typedef int (*cgs_irq_get_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);