Home
last modified time | relevance | path

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

/external/u-boot/drivers/qe/
Dqe.c385 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()
[all …]
/external/u-boot/drivers/net/fm/
Dfm.c114 size_t calc_size = sizeof(struct qe_firmware); in fman_upload_firmware() local
148 calc_size += (firmware->count - 1) * sizeof(struct qe_microcode); in fman_upload_firmware()
156 calc_size += sizeof(u32) * in fman_upload_firmware()
160 if (length != calc_size + sizeof(u32)) { in fman_upload_firmware()
170 crc = be32_to_cpu(*(u32 *)((void *)firmware + calc_size)); in fman_upload_firmware()
171 if (crc != (crc32(-1, (const void *)firmware, calc_size) ^ -1)) { in fman_upload_firmware()