Home
last modified time | relevance | path

Searched refs:calc_size (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/drivers/qe/
H A Dqe.c461 size_t calc_size = sizeof(struct qe_firmware); in qe_upload_firmware() local
502 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() local
641 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 …]
/openbmc/u-boot/drivers/net/fm/
H A Dfm.c116 size_t calc_size = sizeof(struct qe_firmware); in fman_upload_firmware() local
150 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()
/openbmc/linux/drivers/soc/fsl/qe/
H A Dqe.c452 size_t calc_size; in qe_upload_firmware() local
484 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()
/openbmc/u-boot/lib/
H A Dtpm-v2.c372 u32 calc_size; in tcg2_log_parse() local
414 calc_size = offsetof(struct tcg_efi_spec_id_event, digest_sizes) + in tcg2_log_parse()
417 if (evsz != calc_size) in tcg2_log_parse()