cgs_device 37 drivers/gpu/drm/amd/acp/acp_hw.c int amd_acp_hw_init(struct cgs_device *cgs_device, cgs_device 43 drivers/gpu/drm/amd/acp/acp_hw.c acp_mode = cgs_read_register(cgs_device, cgs_device 30 drivers/gpu/drm/amd/acp/include/acp_gfx_if.h int amd_acp_hw_init(struct cgs_device *cgs_device, cgs_device 632 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev); cgs_device 633 drivers/gpu/drm/amd/amdgpu/amdgpu.h void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device); cgs_device 102 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c adev->acp.cgs_device = cgs_device 104 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c if (!adev->acp.cgs_device) cgs_device 114 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c if (adev->acp.cgs_device) cgs_device 115 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c amdgpu_cgs_destroy_device(adev->acp.cgs_device); cgs_device 202 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c r = amd_acp_hw_init(adev->acp.cgs_device, cgs_device 358 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); cgs_device 361 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val); cgs_device 365 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); cgs_device 377 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); cgs_device 379 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val); cgs_device 384 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS); cgs_device 395 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); cgs_device 397 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val); cgs_device 429 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); cgs_device 432 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val); cgs_device 436 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); cgs_device 447 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); cgs_device 449 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c cgs_write_register(adev->acp.cgs_device, mmACP_CONTROL, val); cgs_device 454 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c val = cgs_read_register(adev->acp.cgs_device, mmACP_STATUS); cgs_device 33 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.h struct cgs_device *cgs_device; cgs_device 35 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c struct cgs_device base; cgs_device 41 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c ((struct amdgpu_cgs_device *)cgs_device)->adev cgs_device 44 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned offset) cgs_device 50 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset, cgs_device 57 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device, cgs_device 85 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device, cgs_device 112 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type) cgs_device 159 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device, cgs_device 202 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, cgs_device 215 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c id = fw_type_convert(cgs_device, type); cgs_device 238 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c info->fw_version = amdgpu_get_firmware_version(cgs_device, type); cgs_device 486 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev) cgs_device 488 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c struct amdgpu_cgs_device *cgs_device = cgs_device 489 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c kmalloc(sizeof(*cgs_device), GFP_KERNEL); cgs_device 491 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c if (!cgs_device) { cgs_device 496 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c cgs_device->base.ops = &amdgpu_cgs_ops; cgs_device 497 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c cgs_device->adev = adev; cgs_device 499 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c return (struct cgs_device *)cgs_device; cgs_device 502 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device) cgs_device 504 drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c kfree(cgs_device); cgs_device 675 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->dm.cgs_device = amdgpu_cgs_create_device(adev); cgs_device 677 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!adev->dm.cgs_device) { cgs_device 682 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c init_data.cgs_device = adev->dm.cgs_device; cgs_device 776 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (adev->dm.cgs_device) { cgs_device 777 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c amdgpu_cgs_destroy_device(adev->dm.cgs_device); cgs_device 778 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c adev->dm.cgs_device = NULL; cgs_device 124 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h struct cgs_device *cgs_device; cgs_device 635 drivers/gpu/drm/amd/display/dc/core/dc.c dc_ctx->cgs_device = init_params->cgs_device; cgs_device 533 drivers/gpu/drm/amd/display/dc/dc.h struct cgs_device *cgs_device; cgs_device 137 drivers/gpu/drm/amd/display/dc/dc_helper.c value = cgs_read_register(ctx->cgs_device, address); cgs_device 88 drivers/gpu/drm/amd/display/dc/dc_types.h void *cgs_device; cgs_device 82 drivers/gpu/drm/amd/display/dc/dm_services.h cgs_write_register(ctx->cgs_device, address, value); cgs_device 91 drivers/gpu/drm/amd/display/dc/dm_services.h return cgs_read_ind_register(ctx->cgs_device, addr_space, index); cgs_device 100 drivers/gpu/drm/amd/display/dc/dm_services.h cgs_write_ind_register(ctx->cgs_device, addr_space, index, value); cgs_device 29 drivers/gpu/drm/amd/include/cgs_common.h struct cgs_device; cgs_device 91 drivers/gpu/drm/amd/include/cgs_common.h typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset); cgs_device 99 drivers/gpu/drm/amd/include/cgs_common.h typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset, cgs_device 109 drivers/gpu/drm/amd/include/cgs_common.h typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, cgs_device 118 drivers/gpu/drm/amd/include/cgs_common.h typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space, cgs_device 137 drivers/gpu/drm/amd/include/cgs_common.h typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device, cgs_device 162 drivers/gpu/drm/amd/include/cgs_common.h (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__)) cgs_device 164 drivers/gpu/drm/amd/include/cgs_common.h (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))