Home
last modified time | relevance | path

Searched refs:fw_ver (Results 1 – 25 of 154) sorted by relevance

1234567

/drivers/net/ethernet/netronome/nfp/
Dnfp_netvf_main.c68 struct nfp_net_fw_version fw_ver; in nfp_netvf_pci_probe() local
118 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_netvf_pci_probe()
119 if (fw_ver.resv || fw_ver.class != NFP_NET_CFG_VERSION_CLASS_GENERIC) { in nfp_netvf_pci_probe()
121 fw_ver.resv, fw_ver.class, fw_ver.major, fw_ver.minor); in nfp_netvf_pci_probe()
127 if (nfp_net_fw_ver_eq(&fw_ver, 0, 0, 0, 1)) { in nfp_netvf_pci_probe()
133 switch (fw_ver.major) { in nfp_netvf_pci_probe()
141 fw_ver.resv, fw_ver.class, in nfp_netvf_pci_probe()
142 fw_ver.major, fw_ver.minor); in nfp_netvf_pci_probe()
182 nn->fw_ver = fw_ver; in nfp_netvf_pci_probe()
Dnfp_net_main.c125 nfp_net_get_fw_version(&nn->fw_ver, ctrl_bar); in nfp_net_pf_alloc_vnic()
646 struct nfp_net_fw_version fw_ver; in nfp_net_pci_probe() local
674 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_net_pci_probe()
675 if (fw_ver.resv || fw_ver.class != NFP_NET_CFG_VERSION_CLASS_GENERIC) { in nfp_net_pci_probe()
677 fw_ver.resv, fw_ver.class, fw_ver.major, fw_ver.minor); in nfp_net_pci_probe()
683 if (nfp_net_fw_ver_eq(&fw_ver, 0, 0, 0, 1)) { in nfp_net_pci_probe()
687 switch (fw_ver.major) { in nfp_net_pci_probe()
693 fw_ver.resv, fw_ver.class, in nfp_net_pci_probe()
694 fw_ver.major, fw_ver.minor); in nfp_net_pci_probe()
Dnfp_net.h458 static inline bool nfp_net_fw_ver_eq(struct nfp_net_fw_version *fw_ver, in nfp_net_fw_ver_eq() argument
461 return fw_ver->resv == resv && in nfp_net_fw_ver_eq()
462 fw_ver->class == class && in nfp_net_fw_ver_eq()
463 fw_ver->major == major && in nfp_net_fw_ver_eq()
464 fw_ver->minor == minor; in nfp_net_fw_ver_eq()
608 struct nfp_net_fw_version fw_ver; member
920 void nfp_net_get_fw_version(struct nfp_net_fw_version *fw_ver,
/drivers/net/wireless/ti/wlcore/
Dboot.c51 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver()
52 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver()
53 &wl->chip.fw_ver[4]); in wlcore_boot_parse_fw_ver()
57 memset(wl->chip.fw_ver, 0, sizeof(wl->chip.fw_ver)); in wlcore_boot_parse_fw_ver()
71 unsigned int *fw_ver = wl->chip.fw_ver; in wlcore_validate_fw_ver() local
80 (min_ver[FW_VER_CHIP] != fw_ver[FW_VER_CHIP])) in wlcore_validate_fw_ver()
85 (min_ver[FW_VER_IF_TYPE] != fw_ver[FW_VER_IF_TYPE])) in wlcore_validate_fw_ver()
90 (min_ver[FW_VER_SUBTYPE] != fw_ver[FW_VER_SUBTYPE])) in wlcore_validate_fw_ver()
95 (min_ver[FW_VER_MAJOR] > fw_ver[FW_VER_MAJOR])) in wlcore_validate_fw_ver()
100 (min_ver[FW_VER_MAJOR] == fw_ver[FW_VER_MAJOR])) && in wlcore_validate_fw_ver()
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/
Ddbg.h371 fwrt->dump.fw_ver.type = lmac->ver_type; in iwl_fwrt_update_fw_versions()
372 fwrt->dump.fw_ver.subtype = lmac->ver_subtype; in iwl_fwrt_update_fw_versions()
373 fwrt->dump.fw_ver.lmac_major = le32_to_cpu(lmac->ucode_major); in iwl_fwrt_update_fw_versions()
374 fwrt->dump.fw_ver.lmac_minor = le32_to_cpu(lmac->ucode_minor); in iwl_fwrt_update_fw_versions()
378 fwrt->dump.fw_ver.umac_major = le32_to_cpu(umac->umac_major); in iwl_fwrt_update_fw_versions()
379 fwrt->dump.fw_ver.umac_minor = le32_to_cpu(umac->umac_minor); in iwl_fwrt_update_fw_versions()
/drivers/input/keyboard/
Dmcs_touchkey.c102 int fw_ver; in mcs_touchkey_probe() local
137 fw_ver = i2c_smbus_read_byte_data(client, fw_reg); in mcs_touchkey_probe()
138 if (fw_ver < 0) { in mcs_touchkey_probe()
139 error = fw_ver; in mcs_touchkey_probe()
143 dev_info(&client->dev, "Firmware version: %d\n", fw_ver); in mcs_touchkey_probe()
/drivers/misc/mei/
Dbus-fixup.c193 memset(cldev->bus->fw_ver, 0, sizeof(cldev->bus->fw_ver)); in mei_fwver()
202 cldev->bus->fw_ver[i].platform = fwver->ver[i].platform; in mei_fwver()
203 cldev->bus->fw_ver[i].major = fwver->ver[i].major; in mei_fwver()
204 cldev->bus->fw_ver[i].minor = fwver->ver[i].minor; in mei_fwver()
205 cldev->bus->fw_ver[i].hotfix = fwver->ver[i].hotfix; in mei_fwver()
206 cldev->bus->fw_ver[i].buildno = fwver->ver[i].buildno; in mei_fwver()
/drivers/char/tpm/
Dtpm_tis_spi_cr50.c232 char fw_ver[TPM_CR50_MAX_FW_VER_LEN + 1]; in cr50_print_fw_version() local
246 fw_ver[len] = fw_ver_block[i]; in cr50_print_fw_version()
248 fw_ver[len] = '\0'; in cr50_print_fw_version()
250 dev_info(&phy->spi_device->dev, "Cr50 firmware version: %s\n", fw_ver); in cr50_print_fw_version()
/drivers/media/usb/hdpvr/
Dhdpvr-core.c138 dev->fw_ver = dev->usbc_buf[1]; in device_authorization()
142 dev->fw_ver, &dev->usbc_buf[2]); in device_authorization()
144 if (dev->fw_ver > 0x15) { in device_authorization()
152 switch (dev->fw_ver) { in device_authorization()
164 if (dev->fw_ver >= HDPVR_FIRMWARE_VERSION_AC3) in device_authorization()
/drivers/scsi/snic/
Dsnic_ctl.c178 snic->fwinfo.fw_ver = le32_to_cpu(exv_cmpl->version); in snic_io_exch_ver_cmpl_handler()
188 snic->fwinfo.fw_ver, in snic_io_exch_ver_cmpl_handler()
261 ret = (snic->fwinfo.fw_ver != 0) ? 0 : -ETIMEDOUT; in snic_get_conf()
/drivers/scsi/
DBusLogic.c1370 strcpy(adapter->fw_ver, FLASHPOINT_FW_VER); in blogic_rdconfig()
1497 tgt = adapter->fw_ver; in blogic_rdconfig()
1507 if (strcmp(adapter->fw_ver, "3.3") >= 0) { in blogic_rdconfig()
1575 if (adapter->fw_ver[0] == '5' || (adapter->fw_ver[0] == '4' && in blogic_rdconfig()
1582 if (adapter->fw_ver[0] == '5') { in blogic_rdconfig()
1602 if (adapter->fw_ver[0] >= '4') { in blogic_rdconfig()
1616 if (adapter->fw_ver[0] == '4') { in blogic_rdconfig()
1641 if (adapter->fw_ver[0] < '4') { in blogic_rdconfig()
1686 if (adapter->fw_ver[0] == '5') in blogic_rdconfig()
1688 else if (adapter->fw_ver[0] == '4') in blogic_rdconfig()
[all …]
/drivers/usb/storage/
Drealtek_cr.c79 u16 fw_ver; member
133 #define FW_VERSION(chip) ((chip)->status[0].fw_ver)
154 #define CHECK_FW_VER(chip, fw_ver) (FW_VERSION(chip) == (fw_ver)) argument
155 #define CHECK_ID(chip, pid, fw_ver) \ argument
156 (CHECK_PID((chip), (pid)) && CHECK_FW_VER((chip), (fw_ver)))
464 chip->status[lun].fw_ver = ((u16) buf[7] << 8) | buf[8]; in rts51x_check_status()
898 status->fw_ver = ((u16) buf[7] << 8) | buf[8]; in realtek_cr_autosuspend_setup()
/drivers/net/wireless/mediatek/mt76/mt76x0/
Dpci_mcu.c50 val = le16_to_cpu(hdr->fw_ver); in mt76x0e_load_firmware()
54 val = le16_to_cpu(hdr->fw_ver); in mt76x0e_load_firmware()
/drivers/infiniband/hw/qedr/
Dmain.c77 u32 fw_ver = (u32)qedr->attr.fw_ver; in qedr_get_dev_fw_str() local
80 (fw_ver >> 24) & 0xFF, (fw_ver >> 16) & 0xFF, in qedr_get_dev_fw_str()
81 (fw_ver >> 8) & 0xFF, fw_ver & 0xFF); in qedr_get_dev_fw_str()
633 attr->fw_ver = qed_attr->fw_ver; in qedr_set_device_attr()
/drivers/net/ethernet/brocade/bna/
Dbfa_defs.h45 char fw_ver[BFA_VERSION_LEN]; member
76 char fw_ver[BFA_VERSION_LEN]; /*!< firmware version */ member
/drivers/media/platform/mtk-vpu/
Dmtk_vpu.c140 char fw_ver[VPU_FW_VER_LEN]; member
605 dev_info(dev, "vpu is ready. Fw version %s\n", run->fw_ver); in vpu_load_firmware()
621 strscpy(vpu->run.fw_ver, run->fw_ver, sizeof(vpu->run.fw_ver)); in vpu_init_ipi_handler()
659 vpu->run.fw_ver, pc, wdt, in vpu_debug_read()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_psp.h107 int (*read_usbc_pd_fw)(struct psp_context *psp, uint32_t *fw_ver);
340 #define psp_read_usbc_pd_fw(psp, fw_ver) \ argument
342 (psp)->funcs->read_usbc_pd_fw((psp), fw_ver) : -EINVAL)
/drivers/scsi/csiostor/
Dcsio_hw.c640 offsetof(struct fw_hdr, fw_ver), 1, in csio_hw_get_fw_version()
732 ((struct fw_hdr *)first_page)->fw_ver = htonl(0xffffffff); in csio_hw_fw_dload()
751 offsetof(struct fw_hdr, fw_ver), in csio_hw_fw_dload()
752 sizeof(hdr->fw_ver), in csio_hw_fw_dload()
753 (const uint8_t *)&hdr->fw_ver); in csio_hw_fw_dload()
2229 if (hdr1->chip == hdr2->chip && hdr1->fw_ver == hdr2->fw_ver) in fw_compatible()
2280 .fw_ver = __cpu_to_be32(FW_VERSION(T5)),
2293 .fw_ver = __cpu_to_be32(FW_VERSION(T6)),
2345 if (card_fw_usable && card_fw->fw_ver == drv_fw->fw_ver && in csio_hw_prep_fw()
2346 (!fs_fw_usable || fs_fw->fw_ver == drv_fw->fw_ver)) { in csio_hw_prep_fw()
[all …]
/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c58 char *fw_ver) in bnxt_qplib_query_version() argument
71 fw_ver[0] = resp.fw_maj; in bnxt_qplib_query_version()
72 fw_ver[1] = resp.fw_minor; in bnxt_qplib_query_version()
73 fw_ver[2] = resp.fw_bld; in bnxt_qplib_query_version()
74 fw_ver[3] = resp.fw_rsvd; in bnxt_qplib_query_version()
154 bnxt_qplib_query_version(rcfw, attr->fw_ver); in bnxt_qplib_get_dev_attr()
/drivers/net/usb/
Daqc111.c206 aqc111_data->fw_ver.major, in aqc111_get_drvinfo()
207 aqc111_data->fw_ver.minor, in aqc111_get_drvinfo()
208 aqc111_data->fw_ver.rev); in aqc111_get_drvinfo()
674 1, 1, &aqc111_data->fw_ver.major); in aqc111_read_fw_version()
676 1, 1, &aqc111_data->fw_ver.minor); in aqc111_read_fw_version()
678 1, 1, &aqc111_data->fw_ver.rev); in aqc111_read_fw_version()
680 if (aqc111_data->fw_ver.major & 0x80) in aqc111_read_fw_version()
681 aqc111_data->fw_ver.major &= ~0x80; in aqc111_read_fw_version()
/drivers/net/wireless/mediatek/mt76/mt7603/
Dmcu.c11 char fw_ver[10]; member
198 dev_info(dev->mt76.dev, "Firmware Version: %.10s\n", hdr->fw_ver); in mt7603_load_firmware()
256 "%.10s-%.15s", hdr->fw_ver, hdr->build_date); in mt7603_load_firmware()
/drivers/input/touchscreen/
Dstmfts.c95 u16 fw_ver; member
429 return sprintf(buf, "%u\n", sdata->fw_ver); in stmfts_sysfs_fw_ver()
503 static DEVICE_ATTR(fw_ver, 0444, stmfts_sysfs_fw_ver, NULL);
550 sdata->fw_ver = be16_to_cpup((__be16 *)&reg[2]); in stmfts_power_on()
/drivers/net/wireless/
Dray_cs.h56 UCHAR fw_ver; member
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mcu.h75 __le16 fw_ver; member
/drivers/remoteproc/
Dmtk_common.h58 s8 fw_ver[SCP_FW_VER_LEN]; member

1234567