Lines Matching refs:hdr
48 const struct wil_fw_record_head *hdr = (const void *)data; in wil_fw_verify() local
59 if (size < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
65 if (le16_to_cpu(hdr->type) != wil_fw_type_file_header) { in wil_fw_verify()
71 fh_ = (struct wil_fw_record_file_header *)&hdr[1]; in wil_fw_verify()
82 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
105 crc = crc32_le(~0, (unsigned char const *)hdr, sizeof(*hdr)); in wil_fw_verify()
108 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify()
424 const struct wil_fw_record_head *hdr; in wil_fw_load() local
427 for (hdr = data;; hdr = (const void *)hdr + s, size -= s) { in wil_fw_load()
428 if (size < sizeof(*hdr)) in wil_fw_load()
430 hdr_sz = le32_to_cpu(hdr->size); in wil_fw_load()
431 s = sizeof(*hdr) + hdr_sz; in wil_fw_load()
439 rc = wil_fw_handle_record(wil, le16_to_cpu(hdr->type), in wil_fw_load()
440 &hdr[1], hdr_sz); in wil_fw_load()
446 if (size >= sizeof(*hdr)) { in wil_fw_load()
449 (long)((const void *)hdr - data), in wil_fw_load()
450 le16_to_cpu(hdr->type), hdr_sz); in wil_fw_load()