Searched refs:calc_size (Results 1 – 4 of 4) sorted by relevance
461 size_t calc_size = sizeof(struct qe_firmware); in qe_upload_firmware() local502 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in qe_upload_firmware()510 calc_size += sizeof(u32) * in qe_upload_firmware()514 if (length != calc_size + sizeof(u32)) { in qe_upload_firmware()523 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in qe_upload_firmware()524 if (crc != (crc32(-1, (const void *) firmware, calc_size) ^ -1)) { in qe_upload_firmware()600 size_t calc_size = sizeof(struct qe_firmware); in u_qe_upload_firmware() local641 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in u_qe_upload_firmware()649 calc_size += sizeof(u32) * in u_qe_upload_firmware()653 if (length != calc_size + sizeof(u32)) { in u_qe_upload_firmware()[all …]
116 size_t calc_size = sizeof(struct qe_firmware); in fman_upload_firmware() local150 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in fman_upload_firmware()158 calc_size += sizeof(u32) * in fman_upload_firmware()162 if (length != calc_size + sizeof(u32)) { in fman_upload_firmware()172 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware()173 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in fman_upload_firmware()
452 size_t calc_size; in qe_upload_firmware() local484 calc_size = struct_size(firmware, microcode, firmware->count); in qe_upload_firmware()492 calc_size += sizeof(__be32) * in qe_upload_firmware()496 if (length != calc_size + sizeof(__be32)) { in qe_upload_firmware()502 crc = be32_to_cpu(*(__be32 *)((void *)firmware + calc_size)); in qe_upload_firmware()503 if (crc != crc32(0, firmware, calc_size)) { in qe_upload_firmware()
372 u32 calc_size; in tcg2_log_parse() local414 calc_size = offsetof(struct tcg_efi_spec_id_event, digest_sizes) + in tcg2_log_parse()417 if (evsz != calc_size) in tcg2_log_parse()