Lines Matching refs:cgs_device

35 	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 offset) in amdgpu_cgs_read_register() argument
50 static void amdgpu_cgs_write_register(struct cgs_device *cgs_device, unsigned 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()
238 info->fw_version = amdgpu_get_firmware_version(cgs_device, type); in amdgpu_cgs_get_firmware_info()
462 struct cgs_device *amdgpu_cgs_create_device(struct amdgpu_device *adev) in amdgpu_cgs_create_device()
464 struct amdgpu_cgs_device *cgs_device = in amdgpu_cgs_create_device() local
465 kmalloc(sizeof(*cgs_device), GFP_KERNEL); in amdgpu_cgs_create_device()
467 if (!cgs_device) { in amdgpu_cgs_create_device()
472 cgs_device->base.ops = &amdgpu_cgs_ops; in amdgpu_cgs_create_device()
473 cgs_device->adev = adev; in amdgpu_cgs_create_device()
475 return (struct cgs_device *)cgs_device; in amdgpu_cgs_create_device()
478 void amdgpu_cgs_destroy_device(struct cgs_device *cgs_device) in amdgpu_cgs_destroy_device() argument
480 kfree(cgs_device); in amdgpu_cgs_destroy_device()