/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vce.c | 154 r = request_firmware(&adev->vce.fw, fw_name, adev->dev); in amdgpu_vce_sw_init() 161 r = amdgpu_ucode_validate(adev->vce.fw); in amdgpu_vce_sw_init() 165 release_firmware(adev->vce.fw); in amdgpu_vce_sw_init() 166 adev->vce.fw = NULL; in amdgpu_vce_sw_init() 170 hdr = (const struct common_firmware_header *)adev->vce.fw->data; in amdgpu_vce_sw_init() 178 adev->vce.fw_version = ((version_major << 24) | (version_minor << 16) | in amdgpu_vce_sw_init() 182 AMDGPU_GEM_DOMAIN_VRAM, &adev->vce.vcpu_bo, in amdgpu_vce_sw_init() 183 &adev->vce.gpu_addr, &adev->vce.cpu_addr); in amdgpu_vce_sw_init() 190 atomic_set(&adev->vce.handles[i], 0); in amdgpu_vce_sw_init() 191 adev->vce.filp[i] = NULL; in amdgpu_vce_sw_init() [all …]
|
D | vce_v3_0.c | 83 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_get_rptr() 84 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_get_rptr() 86 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_get_rptr() 115 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_get_wptr() 116 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_get_wptr() 118 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_get_wptr() 146 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_set_wptr() 147 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_set_wptr() 149 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_set_wptr() 272 if (adev->vce.harvest_config & (1 << idx)) in vce_v3_0_start() [all …]
|
D | vce_v4_0.c | 178 WDOORBELL32(adev->vce.ring[0].doorbell_index, 0); in vce_v4_0_mmsch_start() 179 adev->wb.wb[adev->vce.ring[0].wptr_offs] = 0; in vce_v4_0_mmsch_start() 180 adev->vce.ring[0].wptr = 0; in vce_v4_0_mmsch_start() 181 adev->vce.ring[0].wptr_old = 0; in vce_v4_0_mmsch_start() 232 ring = &adev->vce.ring[0]; in vce_v4_0_sriov_start() 262 adev->vce.gpu_addr >> 8); in vce_v4_0_sriov_start() 265 (adev->vce.gpu_addr >> 40) & 0xff); in vce_v4_0_sriov_start() 272 adev->vce.gpu_addr >> 8); in vce_v4_0_sriov_start() 275 (adev->vce.gpu_addr >> 40) & 0xff); in vce_v4_0_sriov_start() 278 adev->vce.gpu_addr >> 8); in vce_v4_0_sriov_start() [all …]
|
D | vce_v2_0.c | 183 WREG32(mmVCE_LMI_VCPU_CACHE_40BIT_BAR, (adev->vce.gpu_addr >> 8)); in vce_v2_0_mc_resume() 243 ring = &adev->vce.ring[0]; in vce_v2_0_start() 250 ring = &adev->vce.ring[1]; in vce_v2_0_start() 405 adev->vce.num_rings = 2; in vce_v2_0_early_init() 420 r = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 167, &adev->vce.irq); in vce_v2_0_sw_init() 433 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_sw_init() 434 ring = &adev->vce.ring[i]; in vce_v2_0_sw_init() 437 &adev->vce.irq, 0); in vce_v2_0_sw_init() 467 for (i = 0; i < adev->vce.num_rings; i++) { in vce_v2_0_hw_init() 468 r = amdgpu_ring_test_helper(&adev->vce.ring[i]); in vce_v2_0_hw_init() [all …]
|
D | amdgpu_kms.c | 210 fw_info->ver = adev->vce.fw_version; in amdgpu_firmware_info() 211 fw_info->feature = adev->vce.fb_version; in amdgpu_firmware_info() 354 for (i = 0; i < adev->vce.num_rings; i++) in amdgpu_hw_ip_info() 355 if (adev->vce.ring[i].sched.ready) in amdgpu_hw_ip_info() 708 if (adev->vce.fw_version && in amdgpu_info_ioctl() 709 adev->vce.fw_version < AMDGPU_VCE_FW_53_45) in amdgpu_info_ioctl() 732 dev_info.vce_harvest_config = adev->vce.harvest_config; in amdgpu_info_ioctl()
|
D | amdgpu_ctx.c | 149 rings[0] = &adev->vce.ring[0]; in amdgpu_ctx_init()
|
D | amdgpu_ucode.c | 393 FW_VERSION_ATTR(vce_fw_version, 0444, vce.fw_version);
|
D | amdgpu.h | 934 struct amdgpu_vce vce; member
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | radeon_vce.c | 65 INIT_DELAYED_WORK(&rdev->vce.idle_work, radeon_vce_idle_work_handler); in radeon_vce_init() 122 if (sscanf(c, "%2u]", &rdev->vce.fb_version) != 1) in radeon_vce_init() 126 start, mid, end, rdev->vce.fb_version); in radeon_vce_init() 128 rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8); in radeon_vce_init() 131 if ((rdev->vce.fw_version != ((40 << 24) | (2 << 16) | (2 << 8))) && in radeon_vce_init() 132 (rdev->vce.fw_version != ((50 << 24) | (0 << 16) | (1 << 8))) && in radeon_vce_init() 133 (rdev->vce.fw_version != ((50 << 24) | (1 << 16) | (2 << 8)))) in radeon_vce_init() 144 &rdev->vce.vcpu_bo); in radeon_vce_init() 150 r = radeon_bo_reserve(rdev->vce.vcpu_bo, false); in radeon_vce_init() 152 radeon_bo_unref(&rdev->vce.vcpu_bo); in radeon_vce_init() [all …]
|
D | vce_v1_0.c | 205 rdev->vce.keyselect = le32_to_cpu(sign->val[i].keyselect); in vce_v1_0_load_fw() 218 uint64_t addr = rdev->vce.gpu_addr; in vce_v1_0_resume() 254 WREG32(VCE_LMI_FW_START_KEYSEL, rdev->vce.keyselect); in vce_v1_0_resume()
|
D | vce_v2_0.c | 159 uint64_t addr = rdev->vce.gpu_addr; in vce_v2_0_resume()
|
D | radeon_drv.c | 303 MODULE_PARM_DESC(vce, "vce enable/disable vce support (1 = enable, 0 = disable)"); 304 module_param_named(vce, radeon_vce, int, 0444);
|
D | radeon_kms.c | 519 *value = rdev->vce.fw_version; in radeon_info_ioctl() 522 *value = rdev->vce.fb_version; in radeon_info_ioctl()
|
D | radeon.h | 2384 struct radeon_vce vce; member
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu10_hwmgr.h | 111 uint32_t vce : 1; member
|
D | smu8_hwmgr.h | 134 uint32_t vce : 1; member
|
/Linux-v5.4/drivers/scsi/qla2xxx/ |
D | qla_isr.c | 1952 struct vp_ctrl_entry_24xx *vce) in qla_ctrlvp_completed() argument 1958 sp = qla2x00_get_sp_from_handle(vha, func, req, vce); in qla_ctrlvp_completed() 1962 if (vce->entry_status != 0) { in qla_ctrlvp_completed() 1965 sp->name, vce->entry_status); in qla_ctrlvp_completed() 1967 } else if (vce->comp_status != cpu_to_le16(CS_COMPLETE)) { in qla_ctrlvp_completed() 1970 sp->name, le16_to_cpu(vce->comp_status), in qla_ctrlvp_completed() 1971 le16_to_cpu(vce->vp_idx_failed)); in qla_ctrlvp_completed()
|
D | qla_iocb.c | 3496 qla25xx_ctrlvp_iocb(srb_t *sp, struct vp_ctrl_entry_24xx *vce) in qla25xx_ctrlvp_iocb() argument 3500 vce->entry_type = VP_CTRL_IOCB_TYPE; in qla25xx_ctrlvp_iocb() 3501 vce->handle = sp->handle; in qla25xx_ctrlvp_iocb() 3502 vce->entry_count = 1; in qla25xx_ctrlvp_iocb() 3503 vce->command = cpu_to_le16(sp->u.iocb_cmd.u.ctrlvp.cmd); in qla25xx_ctrlvp_iocb() 3504 vce->vp_count = cpu_to_le16(1); in qla25xx_ctrlvp_iocb() 3512 vce->vp_idx_map[map] |= 1 << pos; in qla25xx_ctrlvp_iocb()
|