Home
last modified time | relevance | path

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

/u-boot/drivers/qe/
A Dqe.c467 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()
[all …]
/u-boot/drivers/net/fm/
A Dfm.c120 size_t calc_size = sizeof(struct qe_firmware); in fman_upload_firmware() local
154 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()
/u-boot/arch/x86/lib/
A Dacpi_nhlt.c258 static size_t calc_size(struct nhlt *nhlt) in calc_size() function
265 return calc_size(nhlt) + sizeof(struct acpi_table_header); in nhlt_current_size()

Completed in 10 milliseconds