Lines Matching refs:ucode
344 const struct qe_microcode *ucode) in qe_upload_microcode() argument
346 const u32 *code = base + be32_to_cpu(ucode->code_offset); in qe_upload_microcode()
349 if (ucode->major || ucode->minor || ucode->revision) in qe_upload_microcode()
351 (char *)ucode->id, (u16)ucode->major, (u16)ucode->minor, in qe_upload_microcode()
352 (u16)ucode->revision); in qe_upload_microcode()
354 printf("QE: uploading microcode '%s'\n", (char *)ucode->id); in qe_upload_microcode()
357 out_be32(&qe_immr->iram.iadd, be32_to_cpu(ucode->iram_offset) | in qe_upload_microcode()
360 for (i = 0; i < be32_to_cpu(ucode->count); i++) in qe_upload_microcode()
481 const struct qe_microcode *ucode = &firmware->microcode[i]; in qe_upload_firmware() local
484 if (ucode->code_offset) in qe_upload_firmware()
485 qe_upload_microcode(firmware, ucode); in qe_upload_firmware()
489 u32 trap = be32_to_cpu(ucode->traps[j]); in qe_upload_firmware()
496 out_be32(&qe_immr->rsp[i].eccr, be32_to_cpu(ucode->eccr)); in qe_upload_firmware()
609 const struct qe_microcode *ucode = &firmware->microcode[i]; in u_qe_upload_firmware() local
612 if (ucode->code_offset) in u_qe_upload_firmware()
613 qe_upload_microcode(firmware, ucode); in u_qe_upload_firmware()
617 u32 trap = be32_to_cpu(ucode->traps[j]); in u_qe_upload_firmware()
624 out_be32(&qe_immr->rsp[i].eccr, be32_to_cpu(ucode->eccr)); in u_qe_upload_firmware()
670 const struct qe_microcode *ucode = &firmware->microcode[i]; in u_qe_firmware_resume() local
673 if (!ucode->code_offset) in u_qe_firmware_resume()
676 code = (const void *)firmware + be32_to_cpu(ucode->code_offset); in u_qe_firmware_resume()
679 out_be32(&qe_immrr->iram.iadd, be32_to_cpu(ucode->iram_offset) | in u_qe_firmware_resume()
682 for (i = 0; i < be32_to_cpu(ucode->count); i++) in u_qe_firmware_resume()
687 u32 trap = be32_to_cpu(ucode->traps[j]); in u_qe_firmware_resume()
694 out_be32(&qe_immrr->rsp[i].eccr, be32_to_cpu(ucode->eccr)); in u_qe_firmware_resume()