Home
last modified time | relevance | path

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

/drivers/staging/rtl8712/
Dhal_init.c123 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw) in update_fwhdr() argument
125 pfwhdr->signature = le16_to_cpu(*(u16 *)pmappedfw); in update_fwhdr()
126 pfwhdr->version = le16_to_cpu(*(u16 *)(pmappedfw+2)); in update_fwhdr()
128 pfwhdr->dmem_size = le32_to_cpu(*(uint *)(pmappedfw+4)); in update_fwhdr()
130 pfwhdr->img_IMEM_size = le32_to_cpu(*(uint *)(pmappedfw+8)); in update_fwhdr()
132 pfwhdr->img_SRAM_size = le32_to_cpu(*(uint *)(pmappedfw+12)); in update_fwhdr()
134 pfwhdr->fw_priv_sz = le32_to_cpu(*(uint *)(pmappedfw+16)); in update_fwhdr()
137 static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength) in chk_fwhdr() argument
143 if ((pfwhdr->signature != 0x8712) && (pfwhdr->signature != 0x8192)) in chk_fwhdr()
146 intf = (u8)((pfwhdr->version&0x3000) >> 12); in chk_fwhdr()
[all …]