/drivers/net/wireless/ti/wlcore/ |
D | boot.c | 51 &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/ethernet/netronome/nfp/ |
D | nfp_netvf_main.c | 81 struct nfp_net_fw_version fw_ver; in nfp_netvf_pci_probe() local 132 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_netvf_pci_probe() 133 if (fw_ver.extend & NFP_NET_CFG_VERSION_RESERVED_MASK || in nfp_netvf_pci_probe() 134 fw_ver.class != NFP_NET_CFG_VERSION_CLASS_GENERIC) { in nfp_netvf_pci_probe() 136 fw_ver.extend, fw_ver.class, in nfp_netvf_pci_probe() 137 fw_ver.major, fw_ver.minor); in nfp_netvf_pci_probe() 143 if (nfp_net_fw_ver_eq(&fw_ver, 0, 0, 0, 1)) { in nfp_netvf_pci_probe() 149 switch (fw_ver.major) { in nfp_netvf_pci_probe() 157 fw_ver.extend, fw_ver.class, in nfp_netvf_pci_probe() 158 fw_ver.major, fw_ver.minor); in nfp_netvf_pci_probe()
|
D | nfp_net_main.c | 693 struct nfp_net_fw_version fw_ver; in nfp_net_pci_probe() local 721 nfp_net_get_fw_version(&fw_ver, ctrl_bar); in nfp_net_pci_probe() 722 if (fw_ver.extend & NFP_NET_CFG_VERSION_RESERVED_MASK || in nfp_net_pci_probe() 723 fw_ver.class != NFP_NET_CFG_VERSION_CLASS_GENERIC) { in nfp_net_pci_probe() 725 fw_ver.extend, fw_ver.class, in nfp_net_pci_probe() 726 fw_ver.major, fw_ver.minor); in nfp_net_pci_probe() 732 if (nfp_net_fw_ver_eq(&fw_ver, 0, 0, 0, 1)) { in nfp_net_pci_probe() 736 switch (fw_ver.major) { in nfp_net_pci_probe() 742 fw_ver.extend, fw_ver.class, in nfp_net_pci_probe() 743 fw_ver.major, fw_ver.minor); in nfp_net_pci_probe()
|
D | nfp_net.h | 457 static inline bool nfp_net_fw_ver_eq(struct nfp_net_fw_version *fw_ver, in nfp_net_fw_ver_eq() argument 460 return fw_ver->extend == extend && in nfp_net_fw_ver_eq() 461 fw_ver->class == class && in nfp_net_fw_ver_eq() 462 fw_ver->major == major && in nfp_net_fw_ver_eq() 463 fw_ver->minor == minor; in nfp_net_fw_ver_eq() 630 struct nfp_net_fw_version fw_ver; member 945 void nfp_net_get_fw_version(struct nfp_net_fw_version *fw_ver,
|
D | nfp_net_common.c | 63 void nfp_net_get_fw_version(struct nfp_net_fw_version *fw_ver, in nfp_net_get_fw_version() argument 69 put_unaligned_le32(reg, fw_ver); in nfp_net_get_fw_version() 2237 nn->fw_ver.extend, nn->fw_ver.class, in nfp_net_info() 2238 nn->fw_ver.major, nn->fw_ver.minor, in nfp_net_info() 2317 nfp_net_get_fw_version(&nn->fw_ver, ctrl_bar); in nfp_net_alloc() 2319 switch (FIELD_GET(NFP_NET_CFG_VERSION_DP_MASK, nn->fw_ver.extend)) { in nfp_net_alloc() 2324 if (nn->fw_ver.major < 5) { in nfp_net_alloc() 2327 nn->fw_ver.major); in nfp_net_alloc() 2514 if ((nn->cap & NFP_NET_CFG_CTRL_LSO && nn->fw_ver.major > 2) || in nfp_net_netdev_init() 2622 nn->dp.chained_metadata_format = nn->fw_ver.major == 4 || in nfp_net_read_caps() [all …]
|
/drivers/net/can/usb/etas_es58x/ |
D | es58x_devlink.c | 215 struct es58x_sw_version *fw_ver = &es58x_dev->firmware_version; in es58x_devlink_info_get() local 221 if (es58x_sw_version_is_valid(fw_ver)) { in es58x_devlink_info_get() 223 fw_ver->major, fw_ver->minor, fw_ver->revision); in es58x_devlink_info_get()
|
/drivers/ptp/ |
D | ptp_clockmatrix.c | 65 u16 scratch = IDTCM_FW_REG(idtcm->fw_ver, V520, SCRATCH); in contains_full_configuration() 245 u16 tod_read_cmd = IDTCM_FW_REG(idtcm->fw_ver, V520, TOD_READ_SECONDARY_CMD); in arm_tod_read_trig_sel_refclk() 402 u16 tod_read_cmd = IDTCM_FW_REG(idtcm->fw_ver, V520, TOD_READ_SECONDARY_CMD); in _idtcm_gettime_triggered() 427 u16 tod_read_cmd = IDTCM_FW_REG(idtcm->fw_ver, V520, TOD_READ_PRIMARY_CMD); in _idtcm_gettime() 489 u16 tod_read_cmd = IDTCM_FW_REG(idtcm->fw_ver, V520, TOD_READ_PRIMARY_CMD); in _idtcm_gettime_immediate() 1073 IDTCM_FW_REG(idtcm->fw_ver, V520, SM_RESET), in idtcm_state_machine_reset() 1256 u16 scratch = IDTCM_FW_REG(idtcm->fw_ver, V520, SCRATCH); in idtcm_load_firmware() 1335 base = get_output_base_addr(idtcm->fw_ver, outn); in idtcm_output_enable() 1382 IDTCM_FW_REG(idtcm->fw_ver, V520, DPLL_MODE), in idtcm_get_pll_mode() 1400 IDTCM_FW_REG(idtcm->fw_ver, V520, DPLL_MODE), in idtcm_set_pll_mode() [all …]
|
/drivers/input/keyboard/ |
D | mcs_touchkey.c | 109 int fw_ver; in mcs_touchkey_probe() local 147 fw_ver = i2c_smbus_read_byte_data(client, fw_reg); in mcs_touchkey_probe() 148 if (fw_ver < 0) { in mcs_touchkey_probe() 149 dev_err(&client->dev, "i2c read error[%d]\n", fw_ver); in mcs_touchkey_probe() 150 return fw_ver; in mcs_touchkey_probe() 152 dev_info(&client->dev, "Firmware version: %d\n", fw_ver); in mcs_touchkey_probe()
|
/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dbg.h | 316 fwrt->dump.fw_ver.type = lmac->ver_type; in iwl_fwrt_update_fw_versions() 317 fwrt->dump.fw_ver.subtype = lmac->ver_subtype; in iwl_fwrt_update_fw_versions() 318 fwrt->dump.fw_ver.lmac_major = le32_to_cpu(lmac->ucode_major); in iwl_fwrt_update_fw_versions() 319 fwrt->dump.fw_ver.lmac_minor = le32_to_cpu(lmac->ucode_minor); in iwl_fwrt_update_fw_versions() 323 fwrt->dump.fw_ver.umac_major = le32_to_cpu(umac->umac_major); in iwl_fwrt_update_fw_versions() 324 fwrt->dump.fw_ver.umac_minor = le32_to_cpu(umac->umac_minor); in iwl_fwrt_update_fw_versions()
|
D | acpi.h | 220 union iwl_tas_config_cmd *cmd, int fw_ver); 297 union iwl_tas_config_cmd *cmd, int fw_ver) in iwl_acpi_get_tas() argument
|
/drivers/misc/mei/ |
D | bus-fixup.c | 172 memset(cldev->bus->fw_ver, 0, sizeof(cldev->bus->fw_ver)); in mei_fwver() 181 cldev->bus->fw_ver[i].platform = fwver->ver[i].platform; in mei_fwver() 182 cldev->bus->fw_ver[i].major = fwver->ver[i].major; in mei_fwver() 183 cldev->bus->fw_ver[i].minor = fwver->ver[i].minor; in mei_fwver() 184 cldev->bus->fw_ver[i].hotfix = fwver->ver[i].hotfix; in mei_fwver() 185 cldev->bus->fw_ver[i].buildno = fwver->ver[i].buildno; in mei_fwver()
|
/drivers/char/tpm/ |
D | tpm_tis_spi_cr50.c | 245 char fw_ver[TPM_CR50_MAX_FW_VER_LEN + 1]; in cr50_print_fw_version() local 259 fw_ver[len] = fw_ver_block[i]; in cr50_print_fw_version() 261 fw_ver[len] = '\0'; in cr50_print_fw_version() 263 dev_info(&phy->spi_device->dev, "Cr50 firmware version: %s\n", fw_ver); in cr50_print_fw_version()
|
/drivers/media/usb/hdpvr/ |
D | hdpvr-core.c | 138 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/ |
D | BusLogic.c | 1263 strcpy(adapter->fw_ver, FLASHPOINT_FW_VER); in blogic_rdconfig() 1390 tgt = adapter->fw_ver; in blogic_rdconfig() 1400 if (strcmp(adapter->fw_ver, "3.3") >= 0) { in blogic_rdconfig() 1460 if (adapter->fw_ver[0] == '5' || (adapter->fw_ver[0] == '4' && in blogic_rdconfig() 1467 if (adapter->fw_ver[0] == '5') { in blogic_rdconfig() 1487 if (adapter->fw_ver[0] >= '4') { in blogic_rdconfig() 1501 if (adapter->fw_ver[0] == '4') { in blogic_rdconfig() 1526 if (adapter->fw_ver[0] < '4') { in blogic_rdconfig() 1571 if (adapter->fw_ver[0] == '5') in blogic_rdconfig() 1573 else if (adapter->fw_ver[0] == '4') in blogic_rdconfig() [all …]
|
/drivers/scsi/snic/ |
D | snic_ctl.c | 161 snic->fwinfo.fw_ver = le32_to_cpu(exv_cmpl->version); in snic_io_exch_ver_cmpl_handler() 171 snic->fwinfo.fw_ver, in snic_io_exch_ver_cmpl_handler() 244 ret = (snic->fwinfo.fw_ver != 0) ? 0 : -ETIMEDOUT; in snic_get_conf()
|
/drivers/usb/storage/ |
D | realtek_cr.c | 79 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/ |
D | pci_mcu.c | 50 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/ |
D | main.c | 77 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() 602 attr->fw_ver = qed_attr->fw_ver; in qedr_set_device_attr()
|
/drivers/net/ethernet/brocade/bna/ |
D | bfa_defs.h | 45 char fw_ver[BFA_VERSION_LEN]; member 76 char fw_ver[BFA_VERSION_LEN]; /*!< firmware version */ member
|
/drivers/media/platform/mediatek/vpu/ |
D | mtk_vpu.c | 147 char fw_ver[VPU_FW_VER_LEN]; member 628 dev_info(dev, "vpu is ready. Fw version %s\n", run->fw_ver); in vpu_load_firmware() 644 strscpy(vpu->run.fw_ver, run->fw_ver, sizeof(vpu->run.fw_ver)); in vpu_init_ipi_handler() 689 vpu->run.fw_ver, pc, wdt, in vpu_debug_read()
|
/drivers/scsi/csiostor/ |
D | csio_hw.c | 640 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/hns/ |
D | hns_roce_main.c | 172 props->fw_ver = hr_dev->caps.fw_ver; in hns_roce_query_device() 508 u64 fw_ver = to_hr_dev(device)->caps.fw_ver; in hns_roce_get_fw_ver() local 511 major = upper_32_bits(fw_ver); in hns_roce_get_fw_ver() 512 minor = high_16_bits(lower_32_bits(fw_ver)); in hns_roce_get_fw_ver() 513 sub_minor = low_16_bits(fw_ver); in hns_roce_get_fw_ver()
|
/drivers/net/can/sja1000/ |
D | peak_pci.c | 616 u32 fw_ver = readl(cfg_base + PEAK_VER_REG2); in peak_pci_probe() local 619 (fw_ver >> 12) & 0xf, in peak_pci_probe() 620 (fw_ver >> 8) & 0xf, in peak_pci_probe() 621 (fw_ver >> 4) & 0xf); in peak_pci_probe()
|
/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | coredump.c | 193 strscpy(dump->fw_ver, dev->mt76.hw->wiphy->fw_version, in mt7996_coredump_build() 194 sizeof(dump->fw_ver)); in mt7996_coredump_build()
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mcu.c | 11 char fw_ver[10]; member 150 dev_info(dev->mt76.dev, "Firmware Version: %.10s\n", hdr->fw_ver); in mt7603_load_firmware() 209 "%.10s-%.15s", hdr->fw_ver, hdr->build_date); in mt7603_load_firmware()
|