Lines Matching refs:firmware
110 const struct qe_firmware *firmware) in fman_upload_firmware() argument
118 if (!firmware) { in fman_upload_firmware()
123 hdr = &firmware->header; in fman_upload_firmware()
130 firmware); in fman_upload_firmware()
142 if ((firmware->count != 1)) { in fman_upload_firmware()
148 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in fman_upload_firmware()
150 for (i = 0; i < firmware->count; i++) in fman_upload_firmware()
157 be32_to_cpu(firmware->microcode[i].count); in fman_upload_firmware()
170 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware()
171 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in fman_upload_firmware()
177 for (i = 0; i < firmware->count; i++) { in fman_upload_firmware()
178 const struct qe_microcode *ucode = &firmware->microcode[i]; in fman_upload_firmware()
187 code = (void *)firmware + in fman_upload_firmware()