Lines Matching refs:sdma_inst
155 static int amdgpu_sdma_init_inst_ctx(struct amdgpu_sdma_instance *sdma_inst) in amdgpu_sdma_init_inst_ctx() argument
163 err = amdgpu_ucode_validate(sdma_inst->fw); in amdgpu_sdma_init_inst_ctx()
168 sdma_inst->fw->data; in amdgpu_sdma_init_inst_ctx()
173 hdr = (const struct sdma_firmware_header_v1_0 *)sdma_inst->fw->data; in amdgpu_sdma_init_inst_ctx()
174 sdma_inst->fw_version = le32_to_cpu(hdr->header.ucode_version); in amdgpu_sdma_init_inst_ctx()
175 sdma_inst->feature_version = le32_to_cpu(hdr->ucode_feature_version); in amdgpu_sdma_init_inst_ctx()
178 hdr_v2 = (const struct sdma_firmware_header_v2_0 *)sdma_inst->fw->data; in amdgpu_sdma_init_inst_ctx()
179 sdma_inst->fw_version = le32_to_cpu(hdr_v2->header.ucode_version); in amdgpu_sdma_init_inst_ctx()
180 sdma_inst->feature_version = le32_to_cpu(hdr_v2->ucode_feature_version); in amdgpu_sdma_init_inst_ctx()
186 if (sdma_inst->feature_version >= 20) in amdgpu_sdma_init_inst_ctx()
187 sdma_inst->burst_nop = true; in amdgpu_sdma_init_inst_ctx()