Lines Matching defs:fw_hdr
126 const struct rtw89_fw_hdr *fw_hdr = (const struct rtw89_fw_hdr *)fw;
139 info->section_num = le32_get_bits(fw_hdr->w6, FW_HDR_W6_SEC_NUM);
140 base_hdr_len = struct_size(fw_hdr, sections, info->section_num);
141 info->dynamic_hdr_en = le32_get_bits(fw_hdr->w7, FW_HDR_W7_DYN_HDR);
144 info->hdr_len = le32_get_bits(fw_hdr->w3, FW_HDR_W3_LEN);
161 section = &fw_hdr->sections[i];
362 const struct rtw89_fw_hdr_v1 *fw_hdr = (const struct rtw89_fw_hdr_v1 *)fw;
373 info->section_num = le32_get_bits(fw_hdr->w6, FW_HDR_V1_W6_SEC_NUM);
374 info->dsp_checksum = le32_get_bits(fw_hdr->w6, FW_HDR_V1_W6_DSP_CHKSUM);
375 base_hdr_len = struct_size(fw_hdr, sections, info->section_num);
376 info->dynamic_hdr_en = le32_get_bits(fw_hdr->w7, FW_HDR_V1_W7_DYN_HDR);
379 info->hdr_len = le32_get_bits(fw_hdr->w5, FW_HDR_V1_W5_HDR_SIZE);
396 section = &fw_hdr->sections[i];
1172 struct rtw89_fw_hdr *fw_hdr)
1174 le32p_replace_bits(&fw_hdr->w7, FWDL_SECTION_PER_PKT_LEN,
1182 struct rtw89_fw_hdr_v1 *fw_hdr)
1189 le32p_replace_bits(&fw_hdr->w7, FWDL_SECTION_PER_PKT_LEN,
1194 section = &fw_hdr->sections[sec_idx];
1200 fw_hdr->sections[dst_sec_idx] = *section;
1205 le32p_replace_bits(&fw_hdr->w6, dst_sec_idx, FW_HDR_V1_W6_SEC_NUM);
1217 struct rtw89_fw_hdr *fw_hdr;
1232 fw_hdr = (struct rtw89_fw_hdr *)skb->data;
1233 truncated = __rtw89_fw_download_tweak_hdr_v0(rtwdev, info, fw_hdr);