Home
last modified time | relevance | path

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

/drivers/staging/rtl8712/
Dhal_init.c122 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw) in update_fwhdr() argument
124 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()
131 pfwhdr->img_SRAM_size = le32_to_cpu(*(__le32 *)(pmappedfw + 12)); 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()
[all …]