Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/staging/rtl8712/
Dhal_init.c162 struct fw_hdr fwhdr; in rtl8712_dl_fw() local
172 update_fwhdr(&fwhdr, mappedfw); in rtl8712_dl_fw()
173 if (chk_fwhdr(&fwhdr, ulfilelength) == _FAIL) in rtl8712_dl_fw()
175 fill_fwpriv(adapter, &fwhdr.fwpriv); in rtl8712_dl_fw()
177 maxlen = (fwhdr.img_IMEM_size > fwhdr.img_SRAM_size) ? in rtl8712_dl_fw()
178 fwhdr.img_IMEM_size : fwhdr.img_SRAM_size; in rtl8712_dl_fw()
188 fwhdr.fw_priv_sz; in rtl8712_dl_fw()
191 imem_sz = fwhdr.img_IMEM_size; in rtl8712_dl_fw()
220 emem_sz = fwhdr.img_SRAM_size; in rtl8712_dl_fw()
282 txdesc->txdw0 |= cpu_to_le32(fwhdr.fw_priv_sz & 0x0000ffff); in rtl8712_dl_fw()
[all …]
/linux-6.6.21/drivers/media/pci/saa7164/
Dsaa7164-fw.c195 struct fw_header *hdr, *boothdr = NULL, *fwhdr; in saa7164_downloadfirmware() local
489 fwhdr = (struct fw_header *)(fw->data+tmp); in saa7164_downloadfirmware()
492 fwhdr = hdr; in saa7164_downloadfirmware()
496 (fwhdr->version & 0x0000fc00) >> 10, in saa7164_downloadfirmware()
497 (fwhdr->version & 0x000003e0) >> 5, in saa7164_downloadfirmware()
498 (fwhdr->version & 0x0000001f), in saa7164_downloadfirmware()
499 (fwhdr->version & 0xffff0000) >> 16 in saa7164_downloadfirmware()
502 if (version == fwhdr->version) { in saa7164_downloadfirmware()
555 fwloadersize = (fwhdr->firmwaresize + fwhdr->bslsize) * in saa7164_downloadfirmware()
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_ioc_cb.c78 struct bfi_ioc_image_hdr_s fwhdr; in bfa_ioc_cb_firmware_lock() local
93 bfa_ioc_fwver_get(ioc, &fwhdr); in bfa_ioc_cb_firmware_lock()
94 if (!bfa_ioc_fwver_cmp(ioc, &fwhdr) && in bfa_ioc_cb_firmware_lock()
Dbfa_ioc_ct.c57 struct bfi_ioc_image_hdr_s fwhdr; in bfa_ioc_ct_firmware_lock() local
85 bfa_ioc_fwver_get(ioc, &fwhdr); in bfa_ioc_ct_firmware_lock()
86 if (!bfa_ioc_fwver_cmp(ioc, &fwhdr)) { in bfa_ioc_ct_firmware_lock()
Dbfa_ioc.c703 struct bfi_ioc_image_hdr_s fwhdr; in bfa_iocpf_sm_fwcheck_entry() local
723 bfa_ioc_fwver_get(iocpf->ioc, &fwhdr); in bfa_iocpf_sm_fwcheck_entry()
725 if (swab32(fwhdr.exec) == BFI_FWBOOT_TYPE_NORMAL) { in bfa_iocpf_sm_fwcheck_entry()
742 bfa_trc(iocpf->ioc, swab32(fwhdr.exec)); in bfa_iocpf_sm_fwcheck_entry()
1440 bfa_ioc_fwver_get(struct bfa_ioc_s *ioc, struct bfi_ioc_image_hdr_s *fwhdr) in bfa_ioc_fwver_get() argument
1445 u32 *fwsig = (u32 *) fwhdr; in bfa_ioc_fwver_get()
1504 struct bfi_ioc_image_hdr_s fwhdr; in bfa_ioc_fwver_valid() local
1506 bfa_ioc_fwver_get(ioc, &fwhdr); in bfa_ioc_fwver_valid()
1508 if (swab32(fwhdr.bootenv) != boot_env) { in bfa_ioc_fwver_valid()
1509 bfa_trc(ioc, fwhdr.bootenv); in bfa_ioc_fwver_valid()
[all …]
Dbfa_ioc.h924 struct bfi_ioc_image_hdr_s *fwhdr);
926 struct bfi_ioc_image_hdr_s *fwhdr);
/linux-6.6.21/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c1144 struct bfi_ioc_image_hdr fwhdr; in bfa_ioc_hw_sem_init() local
1160 bfa_nw_ioc_fwver_get(ioc, &fwhdr); in bfa_ioc_hw_sem_init()
1162 if (swab32(fwhdr.exec) == BFI_FWBOOT_TYPE_NORMAL) { in bfa_ioc_hw_sem_init()
1283 bfa_nw_ioc_fwver_get(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) in bfa_nw_ioc_fwver_get() argument
1288 u32 *fwsig = (u32 *) fwhdr; in bfa_nw_ioc_fwver_get()
1348 fwhdr_is_ga(struct bfi_ioc_image_hdr *fwhdr) in fwhdr_is_ga() argument
1350 if (fwhdr->fwver.phase == 0 && in fwhdr_is_ga()
1351 fwhdr->fwver.build == 0) in fwhdr_is_ga()
1771 bfa_nw_ioc_fwver_cmp(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) in bfa_nw_ioc_fwver_cmp() argument
1780 drv_smem_cmp = bfa_ioc_fw_ver_patch_cmp(drv_fwhdr, fwhdr); in bfa_nw_ioc_fwver_cmp()
[all …]
Dbfa_ioc.h292 struct bfi_ioc_image_hdr *fwhdr);
294 struct bfi_ioc_image_hdr *fwhdr);
Dbfa_ioc_ct.c115 struct bfi_ioc_image_hdr fwhdr; in bfa_ioc_ct_firmware_lock() local
147 bfa_nw_ioc_fwver_get(ioc, &fwhdr); in bfa_ioc_ct_firmware_lock()
148 if (!bfa_nw_ioc_fwver_cmp(ioc, &fwhdr)) { in bfa_ioc_ct_firmware_lock()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dfw.h526 static inline void SET_FW_HDR_PART_SIZE(void *fwhdr, u32 val) in SET_FW_HDR_PART_SIZE() argument
528 le32p_replace_bits((__le32 *)fwhdr + 7, val, GENMASK(15, 0)); in SET_FW_HDR_PART_SIZE()