Searched refs:pfwhdr (Results 1 – 1 of 1) sorted by relevance
118 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw) in update_fwhdr() argument120 pfwhdr->signature = le16_to_cpu(*(__le16 *)pmappedfw); in update_fwhdr()121 pfwhdr->version = le16_to_cpu(*(__le16 *)(pmappedfw + 2)); in update_fwhdr()123 pfwhdr->dmem_size = le32_to_cpu(*(__le32 *)(pmappedfw + 4)); in update_fwhdr()125 pfwhdr->img_IMEM_size = le32_to_cpu(*(__le32 *)(pmappedfw + 8)); in update_fwhdr()127 pfwhdr->img_SRAM_size = le32_to_cpu(*(__le32 *)(pmappedfw + 12)); in update_fwhdr()129 pfwhdr->fw_priv_sz = le32_to_cpu(*(__le32 *)(pmappedfw + 16)); in update_fwhdr()132 static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength) in chk_fwhdr() argument137 if ((pfwhdr->signature != 0x8712) && (pfwhdr->signature != 0x8192)) in chk_fwhdr()140 if (pfwhdr->fw_priv_sz != sizeof(struct fw_priv)) in chk_fwhdr()[all …]