Lines Matching refs:brd_info
150 if (size <= offsetof(struct wil_fw_record_brd_file, brd_info)) { in fw_handle_brd_file()
155 ent_size = size - offsetof(struct wil_fw_record_brd_file, brd_info); in fw_handle_brd_file()
156 max_num_ent = ent_size / sizeof(struct brd_info); in fw_handle_brd_file()
163 wil->brd_info = kcalloc(max_num_ent, sizeof(struct wil_brd_info), in fw_handle_brd_file()
165 if (!wil->brd_info) in fw_handle_brd_file()
169 wil->brd_info[i].file_addr = in fw_handle_brd_file()
170 le32_to_cpu(rec->brd_info[i].base_addr); in fw_handle_brd_file()
171 wil->brd_info[i].file_max_size = in fw_handle_brd_file()
172 le32_to_cpu(rec->brd_info[i].max_size_bytes); in fw_handle_brd_file()
174 if (!wil->brd_info[i].file_addr) in fw_handle_brd_file()
179 i, wil->brd_info[i].file_addr, in fw_handle_brd_file()
180 wil->brd_info[i].file_max_size); in fw_handle_brd_file()
185 kfree(wil->brd_info); in fw_handle_brd_file()
186 wil->brd_info = NULL; in fw_handle_brd_file()
663 kfree(wil->brd_info); in wil_request_firmware()
664 wil->brd_info = NULL; in wil_request_firmware()
724 if (wil->brd_info[i].file_max_size && in wil_brd_process()
725 hdr_sz > wil->brd_info[i].file_max_size) in wil_brd_process()
748 i, wil->brd_info[i].file_addr, in wil_brd_process()
749 wil->brd_info[i].file_max_size); in wil_brd_process()
752 cpu_to_le32(wil->brd_info[i].file_addr)); in wil_brd_process()