/openbmc/linux/net/wireless/ |
H A D | ethtool.c | 20 if (wdev->wiphy->fw_version[0]) in cfg80211_get_drvinfo() 21 strscpy(info->fw_version, wdev->wiphy->fw_version, in cfg80211_get_drvinfo() 22 sizeof(info->fw_version)); in cfg80211_get_drvinfo() 24 strscpy(info->fw_version, "N/A", sizeof(info->fw_version)); in cfg80211_get_drvinfo()
|
/openbmc/linux/sound/soc/intel/atom/sst/ |
H A D | sst_ipc.c | 229 if (memcmp(&sst_drv_ctx->fw_version, &init->fw_version, in process_fw_init() 230 sizeof(init->fw_version))) in process_fw_init() 232 init->fw_version.type, init->fw_version.major, in process_fw_init() 233 init->fw_version.minor, init->fw_version.build); in process_fw_init() 238 sst_drv_ctx->fw_version.type = init->fw_version.type; in process_fw_init() 239 sst_drv_ctx->fw_version.major = init->fw_version.major; in process_fw_init() 240 sst_drv_ctx->fw_version.minor = init->fw_version.minor; in process_fw_init() 241 sst_drv_ctx->fw_version.build = init->fw_version.build; in process_fw_init()
|
H A D | sst.c | 249 if (ctx->fw_version.type == 0 && ctx->fw_version.major == 0 && in firmware_version_show() 250 ctx->fw_version.minor == 0 && ctx->fw_version.build == 0) in firmware_version_show() 254 ctx->fw_version.type, ctx->fw_version.major, in firmware_version_show() 255 ctx->fw_version.minor, ctx->fw_version.build); in firmware_version_show()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 163 uint16_t fw_version = 0; in amdgpu_get_firmware_version() local 167 fw_version = adev->sdma.instance[0].fw_version; in amdgpu_get_firmware_version() 170 fw_version = adev->sdma.instance[1].fw_version; in amdgpu_get_firmware_version() 173 fw_version = adev->gfx.ce_fw_version; in amdgpu_get_firmware_version() 176 fw_version = adev->gfx.pfp_fw_version; in amdgpu_get_firmware_version() 179 fw_version = adev->gfx.me_fw_version; in amdgpu_get_firmware_version() 182 fw_version = adev->gfx.mec_fw_version; in amdgpu_get_firmware_version() 185 fw_version = adev->gfx.mec_fw_version; in amdgpu_get_firmware_version() 188 fw_version = adev->gfx.mec_fw_version; in amdgpu_get_firmware_version() 191 fw_version = adev->gfx.rlc_fw_version; in amdgpu_get_firmware_version() [all …]
|
H A D | amdgpu_ucode.c | 347 le32_to_cpu(psp_hdr->sos.fw_version)); in amdgpu_ucode_print_psp_hdr() 356 le32_to_cpu(psp_hdr_v1_1->toc.fw_version)); in amdgpu_ucode_print_psp_hdr() 362 le32_to_cpu(psp_hdr_v1_1->kdb.fw_version)); in amdgpu_ucode_print_psp_hdr() 372 le32_to_cpu(psp_hdr_v1_2->kdb.fw_version)); in amdgpu_ucode_print_psp_hdr() 384 le32_to_cpu(psp_hdr_v1_3->v1_1.toc.fw_version)); in amdgpu_ucode_print_psp_hdr() 390 le32_to_cpu(psp_hdr_v1_3->v1_1.kdb.fw_version)); in amdgpu_ucode_print_psp_hdr() 396 le32_to_cpu(psp_hdr_v1_3->spl.fw_version)); in amdgpu_ucode_print_psp_hdr() 410 le32_to_cpu(desc->fw_version)); in amdgpu_ucode_print_psp_hdr() 416 le32_to_cpu(desc->fw_version)); in amdgpu_ucode_print_psp_hdr() 422 le32_to_cpu(desc->fw_version)); in amdgpu_ucode_print_psp_hdr() [all …]
|
H A D | amdgpu_psp.c | 1317 psp->xgmi_context.context.bin_desc.fw_version >= 0x2000000b) || in psp_xgmi_peer_link_info_supported() 3006 adev->psp.asd_context.bin_desc.fw_version = le32_to_cpu(asd_hdr->header.ucode_version); in psp_init_asd_microcode() 3007 adev->psp.asd_context.bin_desc.feature_version = le32_to_cpu(asd_hdr->sos.fw_version); in psp_init_asd_microcode() 3030 adev->psp.toc.fw_version = le32_to_cpu(toc_hdr->header.ucode_version); in psp_init_toc_microcode() 3031 adev->psp.toc.feature_version = le32_to_cpu(toc_hdr->sos.fw_version); in psp_init_toc_microcode() 3056 psp->sos.fw_version = le32_to_cpu(desc->fw_version); in parse_sos_bin_descriptor() 3057 psp->sos.feature_version = le32_to_cpu(desc->fw_version); in parse_sos_bin_descriptor() 3062 psp->sys.fw_version = le32_to_cpu(desc->fw_version); in parse_sos_bin_descriptor() 3063 psp->sys.feature_version = le32_to_cpu(desc->fw_version); in parse_sos_bin_descriptor() 3068 psp->kdb.fw_version = le32_to_cpu(desc->fw_version); in parse_sos_bin_descriptor() [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/pds_core/ |
H A D | dev.c | 246 memcpy_fromio(pdsc->dev_info.fw_version, in pdsc_init_devinfo() 247 pdsc->info_regs->fw_version, in pdsc_init_devinfo() 249 pdsc->dev_info.fw_version[PDS_CORE_DEVINFO_FWVERS_BUFLEN] = 0; in pdsc_init_devinfo() 256 dev_dbg(pdsc->dev, "fw_version %s\n", pdsc->dev_info.fw_version); in pdsc_init_devinfo() 297 if (isprint(pdsc->dev_info.fw_version[0]) && in pdsc_identify() 298 isascii(pdsc->dev_info.fw_version[0])) in pdsc_identify() 300 (int)(sizeof(pdsc->dev_info.fw_version) - 1), in pdsc_identify() 301 pdsc->dev_info.fw_version); in pdsc_identify() 304 (u8)pdsc->dev_info.fw_version[0], in pdsc_identify() 305 (u8)pdsc->dev_info.fw_version[1], in pdsc_identify() [all …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | melfas_mip4.c | 166 struct mip4_fw_version fw_version; member 228 u8 buf[sizeof(ts->fw_version)]; in mip4_get_fw_version() 233 memset(&ts->fw_version, 0xff, sizeof(ts->fw_version)); in mip4_get_fw_version() 237 mip4_parse_fw_version(buf, &ts->fw_version); in mip4_get_fw_version() 310 ts->fw_version.boot, ts->fw_version.core, in mip4_query_device() 311 ts->fw_version.app, ts->fw_version.param); in mip4_query_device() 1160 struct mip4_fw_version fw_version; in mip4_parse_firmware() local 1216 mip4_parse_fw_version((const u8 *)&fw_info->ver_boot, &fw_version); in mip4_parse_firmware() 1220 fw_version.boot, fw_version.core, in mip4_parse_firmware() 1221 fw_version.app, fw_version.param); in mip4_parse_firmware() [all …]
|
H A D | wacom_i2c.c | 46 char fw_version; member 96 features->fw_version = get_unaligned_le16(&data[13]); in wacom_query_device() 101 features->pressure_max, features->fw_version); in wacom_query_device() 197 input->id.version = features.fw_version; in wacom_i2c_probe()
|
/openbmc/linux/drivers/mfd/ |
H A D | qcom_rpm.c | 534 u32 fw_version[3]; in qcom_rpm_probe() local 611 fw_version[0] = readl(RPM_STATUS_REG(rpm, 0)); in qcom_rpm_probe() 612 fw_version[1] = readl(RPM_STATUS_REG(rpm, 1)); in qcom_rpm_probe() 613 fw_version[2] = readl(RPM_STATUS_REG(rpm, 2)); in qcom_rpm_probe() 614 if (fw_version[0] != rpm->data->version) { in qcom_rpm_probe() 617 fw_version[0], in qcom_rpm_probe() 618 fw_version[1], in qcom_rpm_probe() 619 fw_version[2], in qcom_rpm_probe() 624 writel(fw_version[0], RPM_CTRL_REG(rpm, 0)); in qcom_rpm_probe() 625 writel(fw_version[1], RPM_CTRL_REG(rpm, 1)); in qcom_rpm_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/bridge/ |
H A D | cros-ec-anx7688.c | 102 u16 vendor, device, fw_version; in cros_ec_anx7688_bridge_probe() local 143 fw_version = (u16)buffer[0] << 8 | buffer[1]; in cros_ec_anx7688_bridge_probe() 144 dev_info(dev, "ANX7688 firmware version 0x%04x\n", fw_version); in cros_ec_anx7688_bridge_probe() 149 if (fw_version >= ANX7688_MINIMUM_FW_VERSION) in cros_ec_anx7688_bridge_probe() 154 fw_version); in cros_ec_anx7688_bridge_probe()
|
/openbmc/linux/drivers/input/mouse/ |
H A D | elantech.h | 127 #define ETP_NEW_IC_SMBUS_HOST_NOTIFY(fw_version) \ argument 128 ((((fw_version) & 0x0f2000) == 0x0f2000) && \ 129 ((fw_version) & 0x0000ff) > 0) 145 unsigned int fw_version; member
|
H A D | elantech.c | 313 return info->fw_version & 0x001000; in elantech_is_buttonpad() 327 if (etd->info.fw_version < 0x020000) { in elantech_report_absolute_v1() 372 if (etd->info.fw_version < 0x020000 && in elantech_report_absolute_v1() 773 if (etd->info.fw_version < 0x020000) { in elantech_packet_check_v1() 886 ic_version = (etd->info.fw_version & 0x0f0000) >> 16; in elantech_packet_check_v4() 1192 if (info->fw_version < 0x020000 && in elantech_set_input_params() 1646 info->ic_version = (info->fw_version & 0x0f0000) >> 16; in elantech_set_properties() 1649 if (info->fw_version < 0x020030 || info->fw_version == 0x020600) in elantech_set_properties() 1670 if (info->ic_version == 0x0f && (info->fw_version & 0xff) <= 0x02) in elantech_set_properties() 1671 info->pattern = info->fw_version & 0xff; in elantech_set_properties() [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | ath3k.c | 357 struct ath3k_version fw_version; in ath3k_load_patch() local 372 ret = ath3k_get_version(udev, &fw_version); in ath3k_load_patch() 379 le32_to_cpu(fw_version.rom_version)); in ath3k_load_patch() 392 if (pt_rom_version != le32_to_cpu(fw_version.rom_version) || in ath3k_load_patch() 393 pt_build_version <= le32_to_cpu(fw_version.build_version)) { in ath3k_load_patch() 410 struct ath3k_version fw_version; in ath3k_load_syscfg() local 419 ret = ath3k_get_version(udev, &fw_version); in ath3k_load_syscfg() 425 switch (fw_version.ref_clock) { in ath3k_load_syscfg() 441 le32_to_cpu(fw_version.rom_version), clk_value, ".dfu"); in ath3k_load_syscfg()
|
H A D | btmtk.h | 133 u32 fw_version; member 160 u32 fw_version); 188 u32 fw_version) in btmtk_register_coredump() argument
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_devlink.c | 18 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE3_MASK, in hclge_devlink_info_get() 20 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE2_MASK, in hclge_devlink_info_get() 22 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE1_MASK, in hclge_devlink_info_get() 24 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE0_MASK, in hclge_devlink_info_get()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_devlink.c | 18 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE3_MASK, in hclgevf_devlink_info_get() 20 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE2_MASK, in hclgevf_devlink_info_get() 22 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE1_MASK, in hclgevf_devlink_info_get() 24 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE0_MASK, in hclgevf_devlink_info_get()
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | e1000_nvm.c | 689 u16 eeprom_verh, eeprom_verl, etrack_test, fw_version; in igb_get_fw_version() local 710 hw->nvm.ops.read(hw, NVM_VERSION, 1, &fw_version); in igb_get_fw_version() 712 fw_version); in igb_get_fw_version() 714 fw_version); in igb_get_fw_version() 715 fw_vers->eep_build = (fw_version & NVM_IMAGE_ID_MASK); in igb_get_fw_version() 755 hw->nvm.ops.read(hw, NVM_VERSION, 1, &fw_version); in igb_get_fw_version() 756 fw_vers->eep_major = FIELD_GET(NVM_MAJOR_MASK, fw_version); in igb_get_fw_version() 759 if ((fw_version & NVM_NEW_DEC_MASK) == 0x0) { in igb_get_fw_version() 760 eeprom_verl = (fw_version & NVM_COMB_VER_MASK); in igb_get_fw_version() 762 eeprom_verl = FIELD_GET(NVM_MINOR_MASK, fw_version); in igb_get_fw_version()
|
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_ethtool.c | 15 strscpy(info->fw_version, wx->eeprom_id, sizeof(info->fw_version)); in wx_get_drvinfo()
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | inspur-ipsps.c | 35 fw_version, enumerator 46 [fw_version] = IPSPS_REG_FW_VERSION, 162 static SENSOR_DEVICE_ATTR_RO(fw_version, ipsps_fw_version, fw_version);
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | dib0700_core.c | 133 if (st->fw_version >= 0x10201) { in dib0700_set_usb_xfer_len() 512 u32 fw_version; in dib0700_download_firmware() local 560 fw_version = (buf[8] << 24) | (buf[9] << 16) | (buf[10] << 8) | buf[11]; in dib0700_download_firmware() 567 if (fw_version >= 0x10201) { in dib0700_download_firmware() 588 if ((onoff != 0) && (st->fw_version >= 0x10201)) { in dib0700_streaming_ctrl() 661 if (st->fw_version < 0x10200) { in dib0700_change_protocol() 816 if (st->fw_version < 0x10200 || !intf) in dib0700_rc_setup() 886 u32 hwversion, romversion, fw_version, fwtype; in dib0700_probe() local 889 &fw_version, &fwtype); in dib0700_probe() 892 hwversion, romversion, fw_version, fwtype); in dib0700_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-ethtool.c | 47 strscpy(drvinfo->fw_version, "N/A", in dpaa2_switch_get_drvinfo() 48 sizeof(drvinfo->fw_version)); in dpaa2_switch_get_drvinfo() 50 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in dpaa2_switch_get_drvinfo()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_vce.c | 58 static const char *fw_version = "[ATI LIB=VCEFW,"; in radeon_vce_init() local 96 size = rdev->vce_fw->size - strlen(fw_version) - 9; in radeon_vce_init() 99 if (strncmp(c, fw_version, strlen(fw_version)) == 0) in radeon_vce_init() 105 c += strlen(fw_version); in radeon_vce_init() 127 rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8); in radeon_vce_init() 130 if ((rdev->vce.fw_version != ((40 << 24) | (2 << 16) | (2 << 8))) && in radeon_vce_init() 131 (rdev->vce.fw_version != ((50 << 24) | (0 << 16) | (1 << 8))) && in radeon_vce_init() 132 (rdev->vce.fw_version != ((50 << 24) | (1 << 16) | (2 << 8)))) in radeon_vce_init()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_cmd.c | 226 u32 *fw_version, bool is_pf) in hclge_comm_cmd_query_version_and_capability() argument 240 *fw_version = le32_to_cpu(resp->firmware); in hclge_comm_cmd_query_version_and_capability() 587 u32 *fw_version, bool is_pf, in hclge_comm_cmd_init() argument 618 fw_version, is_pf); in hclge_comm_cmd_init() 628 hnae3_get_field(*fw_version, HNAE3_FW_VERSION_BYTE3_MASK, in hclge_comm_cmd_init() 630 hnae3_get_field(*fw_version, HNAE3_FW_VERSION_BYTE2_MASK, in hclge_comm_cmd_init() 632 hnae3_get_field(*fw_version, HNAE3_FW_VERSION_BYTE1_MASK, in hclge_comm_cmd_init() 634 hnae3_get_field(*fw_version, HNAE3_FW_VERSION_BYTE0_MASK, in hclge_comm_cmd_init()
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_main.c | 587 if (isprint(idev->dev_info.fw_version[0]) && in ionic_identify() 588 isascii(idev->dev_info.fw_version[0])) in ionic_identify() 590 (int)(sizeof(idev->dev_info.fw_version) - 1), in ionic_identify() 591 idev->dev_info.fw_version); in ionic_identify() 594 (u8)idev->dev_info.fw_version[0], in ionic_identify() 595 (u8)idev->dev_info.fw_version[1], in ionic_identify() 596 (u8)idev->dev_info.fw_version[2], in ionic_identify() 597 (u8)idev->dev_info.fw_version[3]); in ionic_identify()
|