Lines Matching refs:calc_size
467 size_t calc_size = sizeof(struct qe_firmware); in qe_upload_firmware() local
508 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in qe_upload_firmware()
516 calc_size += sizeof(u32) * in qe_upload_firmware()
520 if (length != calc_size + sizeof(u32)) { in qe_upload_firmware()
529 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in qe_upload_firmware()
530 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in qe_upload_firmware()
607 size_t calc_size = sizeof(struct qe_firmware); in u_qe_upload_firmware() local
648 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in u_qe_upload_firmware()
656 calc_size += sizeof(u32) * in u_qe_upload_firmware()
660 if (length != calc_size + sizeof(u32)) { in u_qe_upload_firmware()
669 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in u_qe_upload_firmware()
670 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in u_qe_upload_firmware()