Lines Matching refs:calc_size
385 size_t calc_size = sizeof(struct qe_firmware); in qe_upload_firmware() local
426 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in qe_upload_firmware()
434 calc_size += sizeof(u32) * in qe_upload_firmware()
438 if (length != calc_size + sizeof(u32)) { in qe_upload_firmware()
447 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in qe_upload_firmware()
448 if (crc != (crc32(-1, (const void *) firmware, calc_size) ^ -1)) { in qe_upload_firmware()
524 size_t calc_size = sizeof(struct qe_firmware); in u_qe_upload_firmware() local
565 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in u_qe_upload_firmware()
573 calc_size += sizeof(u32) * in u_qe_upload_firmware()
577 if (length != calc_size + sizeof(u32)) { in u_qe_upload_firmware()
586 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in u_qe_upload_firmware()
587 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in u_qe_upload_firmware()