Home
last modified time | relevance | path

Searched refs:fw_hdr (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
A Dgp102.c41 const struct nvfw_hs_header *fw_hdr; in gp102_fb_vpr_scrub() local
50 fw_hdr = nvfw_hs_header(subdev, blob->data + hsbin_hdr->header_offset); in gp102_fb_vpr_scrub()
51 lhdr = nvfw_hs_load_header(subdev, blob->data + fw_hdr->hdr_offset); in gp102_fb_vpr_scrub()
54 patch_loc = *(u32 *)(blob->data + fw_hdr->patch_loc); in gp102_fb_vpr_scrub()
55 patch_sig = *(u32 *)(blob->data + fw_hdr->patch_sig); in gp102_fb_vpr_scrub()
58 blob->data + fw_hdr->sig_dbg_offset + patch_sig, in gp102_fb_vpr_scrub()
59 fw_hdr->sig_dbg_size); in gp102_fb_vpr_scrub()
62 blob->data + fw_hdr->sig_prod_offset + patch_sig, in gp102_fb_vpr_scrub()
63 fw_hdr->sig_prod_size); in gp102_fb_vpr_scrub()
/linux/drivers/usb/serial/
A Dio_ti.c971 length_total = le16_to_cpu(fw_hdr->length) + in check_fw_sanity()
983 if (checksum != fw_hdr->checksum) { in check_fw_sanity()
985 fw_hdr->checksum, checksum); in check_fw_sanity()
1005 struct edgeport_fw_hdr *fw_hdr; in download_fw() local
1019 fw_hdr = (struct edgeport_fw_hdr *)fw->data; in download_fw()
1023 fw_hdr->minor_version; in download_fw()
1153 (fw_hdr->minor_version); in do_download_mode()
1158 fw_hdr->major_version, fw_hdr->minor_version); in do_download_mode()
1169 fw_hdr->major_version, in do_download_mode()
1170 fw_hdr->minor_version); in do_download_mode()
[all …]
/linux/drivers/staging/rtl8712/
A Dhal_init.c122 static void update_fwhdr(struct fw_hdr *pfwhdr, const u8 *pmappedfw) in update_fwhdr()
136 static u8 chk_fwhdr(struct fw_hdr *pfwhdr, u32 ulfilelength) in chk_fwhdr()
147 fwhdrsz = offsetof(struct fw_hdr, fwpriv) + pfwhdr->fw_priv_sz; in chk_fwhdr()
162 struct fw_hdr fwhdr; in rtl8712_dl_fw()
187 ptr = (u8 *)mappedfw + offsetof(struct fw_hdr, fwpriv) + in rtl8712_dl_fw()
A Drtl8712_hal.h117 struct fw_hdr {/*8-byte alignment required*/ struct
/linux/drivers/net/wireless/realtek/rtw88/
A Dmac.c369 dmem_size = le32_to_cpu(fw_hdr->dmem_size); in check_firmware_size()
370 imem_size = le32_to_cpu(fw_hdr->imem_size); in check_firmware_size()
371 emem_size = (fw_hdr->mem_usage & BIT(4)) ? in check_firmware_size()
372 le32_to_cpu(fw_hdr->emem_size) : 0; in check_firmware_size()
649 dmem_size = le32_to_cpu(fw_hdr->dmem_size); in start_download_firmware()
650 imem_size = le32_to_cpu(fw_hdr->imem_size); in start_download_firmware()
651 emem_size = (fw_hdr->mem_usage & BIT(4)) ? in start_download_firmware()
652 le32_to_cpu(fw_hdr->emem_size) : 0; in start_download_firmware()
662 addr = le32_to_cpu(fw_hdr->dmem_addr); in start_download_firmware()
669 addr = le32_to_cpu(fw_hdr->imem_addr); in start_download_firmware()
[all …]
A Dmain.c1465 const struct rtw_fw_hdr *fw_hdr = in __update_firmware_feature() local
1468 feature = le32_to_cpu(fw_hdr->feature); in __update_firmware_feature()
1475 const struct rtw_fw_hdr *fw_hdr = in __update_firmware_info() local
1478 fw->h2c_version = le16_to_cpu(fw_hdr->h2c_fmt_ver); in __update_firmware_info()
1479 fw->version = le16_to_cpu(fw_hdr->version); in __update_firmware_info()
1480 fw->sub_version = fw_hdr->subversion; in __update_firmware_info()
1481 fw->sub_index = fw_hdr->subindex; in __update_firmware_info()
/linux/drivers/scsi/csiostor/
A Dcsio_hw_chip.h99 struct fw_hdr fw_hdr; member
A Dcsio_mb.c1200 struct fw_cmd_hdr *fw_hdr; in csio_mb_issue() local
1313 fw_hdr = (struct fw_cmd_hdr *)&hdr; in csio_mb_issue()
1315 switch (FW_CMD_OP_G(ntohl(fw_hdr->hi))) { in csio_mb_issue()
1483 struct fw_cmd_hdr *fw_hdr; in csio_mb_isr_handler() local
1519 fw_hdr = (struct fw_cmd_hdr *)&hdr; in csio_mb_isr_handler()
1521 switch (FW_CMD_OP_G(ntohl(fw_hdr->hi))) { in csio_mb_isr_handler()
1580 struct fw_cmd_hdr *fw_hdr; in csio_mb_tmo_handler() local
1591 fw_hdr = (struct fw_cmd_hdr *)(mbp->mb); in csio_mb_tmo_handler()
1594 FW_CMD_OP_G(ntohl(fw_hdr->hi))); in csio_mb_tmo_handler()
1598 fw_hdr->lo = htonl(FW_CMD_RETVAL_V(FW_ETIMEDOUT)); in csio_mb_tmo_handler()
A Dcsio_hw.c640 offsetof(struct fw_hdr, fw_ver), 1, in csio_hw_get_fw_version()
676 struct fw_hdr *hdr = (struct fw_hdr *)fw_data; in csio_hw_fw_dload()
751 offsetof(struct fw_hdr, fw_ver), in csio_hw_fw_dload()
1325 const struct fw_hdr *fw_hdr = (const struct fw_hdr *)fw_data; in csio_hw_fw_upgrade() local
2225 static int fw_compatible(const struct fw_hdr *hdr1, const struct fw_hdr *hdr2) in fw_compatible()
2278 .fw_hdr = {
2291 .fw_hdr = {
2320 const struct fw_hdr *fs_fw; in csio_hw_prep_fw()
2321 const struct fw_hdr *drv_fw; in csio_hw_prep_fw()
2323 drv_fw = &fw_info->fw_hdr; in csio_hw_prep_fw()
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
A Dmac80211_if.c357 release_firmware(wl->fw.fw_hdr[i]); in brcms_release_fw()
393 wl->fw.fw_hdr[i]->size / (sizeof(struct firmware_hdr)); in brcms_request_fw()
1604 hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data; in brcms_ucode_init_buf()
1636 hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data; in brcms_ucode_init_uint()
1677 const struct firmware *fw_hdr; in brcms_check_firmwares() local
1681 fw_hdr = wl->fw.fw_hdr[i]; in brcms_check_firmwares()
1682 if (fw == NULL && fw_hdr == NULL) { in brcms_check_firmwares()
1684 } else if (fw == NULL || fw_hdr == NULL) { in brcms_check_firmwares()
1688 } else if (fw_hdr->size % sizeof(struct firmware_hdr)) { in brcms_check_firmwares()
1690 "size %zu/%zu\n", __func__, fw_hdr->size, in brcms_check_firmwares()
[all …]
A Dmac80211_if.h59 const struct firmware *fw_hdr[MAX_FW_IMAGES]; member
/linux/drivers/staging/rtl8723bs/include/
A Drtl8723b_hal.h31 #define IS_FW_HEADER_EXIST_8723B(fw_hdr) \ argument
32 ((le16_to_cpu(fw_hdr->signature) & 0xFFF0) == 0x5300)
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
A Dfw.h150 struct fw_hdr { struct
189 struct fw_hdr *pfwheader; argument
A Dfw.c318 struct fw_hdr *pfwheader; in rtl92s_download_fw()
335 firmware->pfwheader = (struct fw_hdr *) puc_mappedfile; in rtl92s_download_fw()
A Dsw.c186 sizeof(struct fw_hdr); in rtl92s_init_sw_vars()
/linux/drivers/net/wireless/marvell/mwifiex/
A Dusb.h135 struct fw_header fw_hdr; member
A Dusb.c1426 memset(&fwdata->fw_hdr, 0, sizeof(struct fw_header)); in mwifiex_prog_fw_w_helper()
1430 memcpy(&fwdata->fw_hdr, &firmware[tlen], in mwifiex_prog_fw_w_helper()
1433 dlen = le32_to_cpu(fwdata->fw_hdr.data_len); in mwifiex_prog_fw_w_helper()
1434 dnld_cmd = le32_to_cpu(fwdata->fw_hdr.dnld_cmd); in mwifiex_prog_fw_w_helper()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dt4_hw.c3111 offsetof(struct fw_hdr, fw_ver), 1, in t4_get_fw_version()
3125 offsetof(struct fw_hdr, fw_ver), 1, in t4_get_bs_version()
3139 offsetof(struct fw_hdr, tp_microcode_ver), in t4_get_tp_version()
3415 static int fw_compatible(const struct fw_hdr *hdr1, const struct fw_hdr *hdr2) in fw_compatible()
3469 const struct fw_hdr *fs_fw; in t4_prep_fw()
3470 const struct fw_hdr *drv_fw; in t4_prep_fw()
3472 drv_fw = &fw_info->fw_hdr; in t4_prep_fw()
3600 const struct fw_hdr *hdr) in t4_fw_matches_chip()
3631 const struct fw_hdr *hdr = (const struct fw_hdr *)fw_data; in t4_load_fw()
7155 const struct fw_hdr *fw_hdr = (const struct fw_hdr *)fw_data; in t4_fw_upgrade() local
[all …]
A Dcxgb4.h548 struct fw_hdr fw_hdr; member
1870 struct fw_hdr *card_fw, enum dev_state state, int *reset);
A Dcxgb4_main.c4706 .fw_hdr = {
4719 .fw_hdr = {
4732 .fw_hdr = {
4804 struct fw_hdr *card_fw; in adap_init0()
A Dcxgb4_ethtool.c1433 *size = be16_to_cpu(((struct fw_hdr *)data)->len512) * 512; in cxgb4_validate_fw_image()
/linux/drivers/net/ethernet/broadcom/
A Dtg3.c3686 fw_len = be32_to_cpu(fw_hdr->len); in tg3_fw_data_len()
3735 fw_hdr++; in tg3_load_firmware_cpu()
3739 u32 *fw_data = (u32 *)(fw_hdr + 1); in tg3_load_firmware_cpu()
3749 fw_hdr = (struct tg3_firmware_hdr *) in tg3_load_firmware_cpu()
3750 ((void *)fw_hdr + be32_to_cpu(fw_hdr->len)); in tg3_load_firmware_cpu()
3796 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3802 fw_hdr); in tg3_load_5701_a0_firmware_fix()
3813 be32_to_cpu(fw_hdr->base_addr)); in tg3_load_5701_a0_firmware_fix()
3856 struct tg3_firmware_hdr *fw_hdr; in tg3_load_57766_firmware() local
3925 fw_hdr); in tg3_load_tso_firmware()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
A Dbnx2x_main.c13279 struct bnx2x_fw_file_hdr *fw_hdr; in bnx2x_check_firmware() local
13292 sections = (struct bnx2x_fw_file_section *)fw_hdr; in bnx2x_check_firmware()
13318 offset = be32_to_cpu(fw_hdr->fw_version.offset); in bnx2x_check_firmware()
13399 u32 len = be32_to_cpu(fw_hdr->arr.len); \
13410 struct bnx2x_fw_file_hdr *fw_hdr; in bnx2x_init_firmware() local
13457 be32_to_cpu(fw_hdr->tsem_int_table_data.offset); in bnx2x_init_firmware()
13459 be32_to_cpu(fw_hdr->tsem_pram_data.offset); in bnx2x_init_firmware()
13461 be32_to_cpu(fw_hdr->usem_int_table_data.offset); in bnx2x_init_firmware()
13463 be32_to_cpu(fw_hdr->usem_pram_data.offset); in bnx2x_init_firmware()
13467 be32_to_cpu(fw_hdr->xsem_pram_data.offset); in bnx2x_init_firmware()
[all …]
/linux/drivers/media/dvb-frontends/
A Dmxl692.c218 static const u8 fw_hdr[] = { in mxl692_validate_fw_header() local
222 if (memcmp(buffer, fw_hdr, 8) != 0) { in mxl692_validate_fw_header()
/linux/drivers/net/usb/
A Dr8152.c4471 struct fw_header *fw_hdr, size_t size) in rtl8152_fw_verify_checksum() argument
4473 unsigned char checksum[sizeof(fw_hdr->checksum)]; in rtl8152_fw_verify_checksum()
4500 len = size - sizeof(fw_hdr->checksum); in rtl8152_fw_verify_checksum()
4506 if (memcmp(fw_hdr->checksum, checksum, sizeof(fw_hdr->checksum))) { in rtl8152_fw_verify_checksum()
4520 struct fw_header *fw_hdr = (struct fw_header *)fw->data; in rtl8152_check_firmware() local
4525 if (fw->size < sizeof(*fw_hdr)) { in rtl8152_check_firmware()
4530 ret = rtl8152_fw_verify_checksum(tp, fw_hdr, fw->size); in rtl8152_check_firmware()
4536 for (i = sizeof(*fw_hdr); i < fw->size;) { in rtl8152_check_firmware()
5054 struct fw_header *fw_hdr; in rtl8152_apply_firmware() local
5063 fw_hdr = (struct fw_header *)fw->data; in rtl8152_apply_firmware()
[all …]

Completed in 144 milliseconds

12