Lines Matching refs:fw_hdr
128 const struct rtw89_fw_hdr *fw_hdr = (const struct rtw89_fw_hdr *)fw;
141 info->section_num = le32_get_bits(fw_hdr->w6, FW_HDR_W6_SEC_NUM);
142 base_hdr_len = struct_size(fw_hdr, sections, info->section_num);
143 info->dynamic_hdr_en = le32_get_bits(fw_hdr->w7, FW_HDR_W7_DYN_HDR);
146 info->hdr_len = le32_get_bits(fw_hdr->w3, FW_HDR_W3_LEN);
163 section = &fw_hdr->sections[i];
351 const struct rtw89_fw_hdr_v1 *fw_hdr = (const struct rtw89_fw_hdr_v1 *)fw;
362 info->section_num = le32_get_bits(fw_hdr->w6, FW_HDR_V1_W6_SEC_NUM);
363 info->dsp_checksum = le32_get_bits(fw_hdr->w6, FW_HDR_V1_W6_DSP_CHKSUM);
364 base_hdr_len = struct_size(fw_hdr, sections, info->section_num);
365 info->dynamic_hdr_en = le32_get_bits(fw_hdr->w7, FW_HDR_V1_W7_DYN_HDR);
368 info->hdr_len = le32_get_bits(fw_hdr->w5, FW_HDR_V1_W5_HDR_SIZE);
385 section = &fw_hdr->sections[i];
1129 struct rtw89_fw_hdr *fw_hdr)
1131 le32p_replace_bits(&fw_hdr->w7, FWDL_SECTION_PER_PKT_LEN,
1139 struct rtw89_fw_hdr_v1 *fw_hdr)
1146 le32p_replace_bits(&fw_hdr->w7, FWDL_SECTION_PER_PKT_LEN,
1151 section = &fw_hdr->sections[sec_idx];
1157 fw_hdr->sections[dst_sec_idx] = *section;
1162 le32p_replace_bits(&fw_hdr->w6, dst_sec_idx, FW_HDR_V1_W6_SEC_NUM);
1174 struct rtw89_fw_hdr *fw_hdr;
1189 fw_hdr = (struct rtw89_fw_hdr *)skb->data;
1190 truncated = __rtw89_fw_download_tweak_hdr_v0(rtwdev, info, fw_hdr);