Home
last modified time | relevance | path

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

/dragonfly/sys/dev/drm/amd/amdgpu/
HDamdgpu_cgs.c34 struct cgs_device base;
40 ((struct amdgpu_cgs_device *)cgs_device)->adev
43 static uint32_t amdgpu_cgs_read_register(struct cgs_device *cgs_device, unsigned offset) in amdgpu_cgs_read_register() argument
49 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned offset, in amdgpu_cgs_write_register() argument
56 static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_read_ind_register() argument
84 static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device, in amdgpu_cgs_write_ind_register() argument
111 static uint32_t fw_type_convert(struct cgs_device *cgs_device, uint32_t fw_type) in fw_type_convert() argument
158 static uint16_t amdgpu_get_firmware_version(struct cgs_device *cgs_device, in amdgpu_get_firmware_version() argument
201 static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device, in amdgpu_cgs_get_firmware_info() argument
214 id = fw_type_convert(cgs_device, type); in amdgpu_cgs_get_firmware_info()
[all …]
HDamdgpu_acp.c101 adev->acp.cgs_device = in acp_sw_init()
103 if (!adev->acp.cgs_device) in acp_sw_init()
113 if (adev->acp.cgs_device) in acp_sw_fini()
114 amdgpu_cgs_destroy_device(adev->acp.cgs_device); in acp_sw_fini()
289 r = amd_acp_hw_init(adev->acp.cgs_device, in acp_hw_init()
312 adev->acp.acp_genpd->cgs_dev = adev->acp.cgs_device; in acp_hw_init()
445 val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); in acp_hw_init()
448 cgs_write_register(adev->acp.cgs_device, mmACP_SOFT_RESET, val); in acp_hw_init()
452 val = cgs_read_register(adev->acp.cgs_device, mmACP_SOFT_RESET); in acp_hw_init()
464 val = cgs_read_register(adev->acp.cgs_device, mmACP_CONTROL); in acp_hw_init()
[all …]
HDamdgpu_acp.h33 struct cgs_device *cgs_device; member
HDamdgpu.h1235 struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev);
1236 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device);
/dragonfly/sys/dev/drm/amd/include/
HDcgs_common.h29 struct cgs_device;
91 typedef uint32_t (*cgs_read_register_t)(struct cgs_device *cgs_device, unsigned offset);
99 typedef void (*cgs_write_register_t)(struct cgs_device *cgs_device, unsigned offset,
109 typedef uint32_t (*cgs_read_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
118 typedef void (*cgs_write_ind_register_t)(struct cgs_device *cgs_device, enum cgs_ind_reg space,
137 typedef int (*cgs_get_firmware_info)(struct cgs_device *cgs_device,
153 struct cgs_device struct
162 (((struct cgs_device *)dev)->ops->func(dev, ##__VA_ARGS__)) argument
164 (((struct cgs_device *)dev)->os_ops->func(dev, ##__VA_ARGS__))
HDcgs_linux.h69 typedef int (*cgs_add_irq_source_t)(struct cgs_device *cgs_device, unsigned src_id,
86 typedef int (*cgs_irq_get_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);
101 typedef int (*cgs_irq_put_t)(struct cgs_device *cgs_device, unsigned src_id, unsigned type);
/dragonfly/sys/dev/drm/amd/display/dc/
HDdm_services.h72 value = cgs_read_register(ctx->cgs_device, address); in dm_read_reg_func()
92 cgs_write_register(ctx->cgs_device, address, value); in dm_write_reg_func()
100 return cgs_read_ind_register(ctx->cgs_device, addr_space, index); in dm_read_index_reg()
109 cgs_write_ind_register(ctx->cgs_device, addr_space, index, value); in dm_write_index_reg()
HDdc.h340 struct cgs_device *cgs_device; member
HDdc_types.h80 void *cgs_device; member
/dragonfly/sys/dev/drm/amd/display/amdgpu_dm/
HDamdgpu_dm.h85 struct cgs_device *cgs_device; member
HDamdgpu_dm.c426 adev->dm.cgs_device = amdgpu_cgs_create_device(adev); in amdgpu_dm_init()
428 if (!adev->dm.cgs_device) { in amdgpu_dm_init()
433 init_data.cgs_device = adev->dm.cgs_device; in amdgpu_dm_init()
508 if (adev->dm.cgs_device) { in amdgpu_dm_fini()
509 amdgpu_cgs_destroy_device(adev->dm.cgs_device); in amdgpu_dm_fini()
510 adev->dm.cgs_device = NULL; in amdgpu_dm_fini()
/dragonfly/sys/dev/drm/amd/display/dc/core/
HDdc.c554 dc_ctx->cgs_device = init_params->cgs_device; in construct()