Lines Matching refs:hdr_sz
604 size_t s, hdr_sz; in wil_fw_process() local
609 hdr_sz = le32_to_cpu(hdr->size); in wil_fw_process()
610 s = sizeof(*hdr) + hdr_sz; in wil_fw_process()
613 if (hdr_sz % 4) { in wil_fw_process()
615 hdr_sz); in wil_fw_process()
619 &hdr[1], hdr_sz, load); in wil_fw_process()
629 le16_to_cpu(hdr->type), hdr_sz); in wil_fw_process()
694 size_t s, hdr_sz = 0; in wil_brd_process() local
722 hdr_sz = le32_to_cpu(hdr->size); in wil_brd_process()
723 s = sizeof(*hdr) + hdr_sz; in wil_brd_process()
725 hdr_sz > wil->brd_info[i].file_max_size) in wil_brd_process()
727 if (sizeof(*hdr) + hdr_sz > size) in wil_brd_process()
729 if (hdr_sz % 4) { in wil_brd_process()
731 hdr_sz); in wil_brd_process()
741 if (hdr_sz < sizeof(struct wil_fw_record_data)) { in wil_brd_process()
742 wil_err_fw(wil, "data record too short: %zu\n", hdr_sz); in wil_brd_process()
751 rc = __fw_handle_data(wil, &hdr[1], hdr_sz, in wil_brd_process()
763 le16_to_cpu(hdr->type), hdr_sz); in wil_brd_process()