Searched refs:calc_size (Results 1 – 3 of 3) sorted by relevance
467 size_t calc_size = sizeof(struct qe_firmware); in qe_upload_firmware() local508 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() local648 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()[all …]
120 size_t calc_size = sizeof(struct qe_firmware); in fman_upload_firmware() local154 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in fman_upload_firmware()162 calc_size += sizeof(u32) * in fman_upload_firmware()166 if (length != calc_size + sizeof(u32)) { in fman_upload_firmware()176 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware()177 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in fman_upload_firmware()
258 static size_t calc_size(struct nhlt *nhlt) in calc_size() function265 return calc_size(nhlt) + sizeof(struct acpi_table_header); in nhlt_current_size()
Completed in 10 milliseconds