Home
last modified time | relevance | path

Searched refs:pfwhdr (Results 1 – 1 of 1) sorted by relevance

/linux-6.3-rc2/drivers/staging/rtl8712/
A Dhal_init.c124 pfwhdr->signature = le16_to_cpu(*(__le16 *)pmappedfw); in update_fwhdr()
125 pfwhdr->version = le16_to_cpu(*(__le16 *)(pmappedfw + 2)); in update_fwhdr()
127 pfwhdr->dmem_size = le32_to_cpu(*(__le32 *)(pmappedfw + 4)); in update_fwhdr()
129 pfwhdr->img_IMEM_size = le32_to_cpu(*(__le32 *)(pmappedfw + 8)); in update_fwhdr()
133 pfwhdr->fw_priv_sz = le32_to_cpu(*(__le32 *)(pmappedfw + 16)); in update_fwhdr()
136 static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength) in chk_fwhdr() argument
141 if ((pfwhdr->signature != 0x8712) && (pfwhdr->signature != 0x8192)) in chk_fwhdr()
144 if (pfwhdr->fw_priv_sz != sizeof(struct fw_priv)) in chk_fwhdr()
147 fwhdrsz = offsetof(struct fw_hdr, fwpriv) + pfwhdr->fw_priv_sz; in chk_fwhdr()
148 fw_sz = fwhdrsz + pfwhdr->img_IMEM_size + pfwhdr->img_SRAM_size + in chk_fwhdr()
[all …]

Completed in 3 milliseconds