Lines Matching refs:dlen
45 u32 dlen; in wil_fw_verify() local
65 dlen = le32_to_cpu(fh_->data_len); in wil_fw_verify()
66 if (dlen % 4) { in wil_fw_verify()
67 wil_err_fw(wil, "data length not aligned: %lu\n", (ulong)dlen); in wil_fw_verify()
70 if (size < dlen) { in wil_fw_verify()
72 size, (ulong)dlen); in wil_fw_verify()
75 if (dlen < sizeof(*hdr) + sizeof(fh)) { in wil_fw_verify()
76 wil_err_fw(wil, "data length too short: %lu\n", (ulong)dlen); in wil_fw_verify()
101 dlen - sizeof(*hdr) - sizeof(fh)); in wil_fw_verify()
107 (ulong)dlen, crc, le32_to_cpu(fh_->crc)); in wil_fw_verify()
111 return (int)dlen; in wil_fw_verify()
783 int rc, dlen; in wil_request_board() local
794 dlen = wil_fw_verify(wil, brd->data, brd->size); in wil_request_board()
795 if (dlen < 0) { in wil_request_board()
796 rc = dlen; in wil_request_board()
801 rc = wil_brd_process(wil, brd->data, dlen); in wil_request_board()