/drivers/gpu/drm/amd/amdgpu/ |
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 …]
|
D | amdgpu_virt.c | 489 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_VCE, adev->vce.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 490 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_UVD, adev->uvd.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 491 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_MC, adev->gmc.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 505 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_SMC, adev->pm.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 506 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_SDMA, adev->sdma.instance[0].fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 507 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_SDMA2, adev->sdma.instance[1].fw_version); in amdgpu_virt_populate_vf2pf_ucode_info() 508 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_VCN, adev->vcn.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info()
|
D | amdgpu_ucode.c | 417 FW_VERSION_ATTR(vce_fw_version, 0444, vce.fw_version); 418 FW_VERSION_ATTR(uvd_fw_version, 0444, uvd.fw_version); 419 FW_VERSION_ATTR(mc_fw_version, 0444, gmc.fw_version); 433 FW_VERSION_ATTR(smc_fw_version, 0444, pm.fw_version); 434 FW_VERSION_ATTR(sdma_fw_version, 0444, sdma.instance[0].fw_version); 435 FW_VERSION_ATTR(sdma2_fw_version, 0444, sdma.instance[1].fw_version); 436 FW_VERSION_ATTR(vcn_fw_version, 0444, vcn.fw_version);
|
/drivers/input/touchscreen/ |
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 …]
|
D | exc3000.c | 81 char fw_version[EXC3000_LEN_FW_VERSION]; member 182 strlcpy(data->fw_version, buf + 5, sizeof(data->fw_version)); in exc3000_query_interrupt() 257 return sprintf(buf, "%s\n", data->fw_version); in fw_version_show() 259 static DEVICE_ATTR_RO(fw_version);
|
D | wacom_i2c.c | 29 char fw_version; member 78 features->fw_version = get_unaligned_le16(&data[13]); in wacom_query_device() 83 features->pressure_max, features->fw_version); in wacom_query_device() 177 input->id.version = features.fw_version; in wacom_i2c_probe()
|
/drivers/mfd/ |
D | qcom_rpm.c | 535 u32 fw_version[3]; in qcom_rpm_probe() local 614 fw_version[0] = readl(RPM_STATUS_REG(rpm, 0)); in qcom_rpm_probe() 615 fw_version[1] = readl(RPM_STATUS_REG(rpm, 1)); in qcom_rpm_probe() 616 fw_version[2] = readl(RPM_STATUS_REG(rpm, 2)); in qcom_rpm_probe() 617 if (fw_version[0] != rpm->data->version) { in qcom_rpm_probe() 620 fw_version[0], in qcom_rpm_probe() 621 fw_version[1], in qcom_rpm_probe() 622 fw_version[2], in qcom_rpm_probe() 627 writel(fw_version[0], RPM_CTRL_REG(rpm, 0)); in qcom_rpm_probe() 628 writel(fw_version[1], RPM_CTRL_REG(rpm, 1)); in qcom_rpm_probe() [all …]
|
/drivers/input/mouse/ |
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
|
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() 1615 info->ic_version = (info->fw_version & 0x0f0000) >> 16; in elantech_set_properties() 1618 if (info->fw_version < 0x020030 || info->fw_version == 0x020600) in elantech_set_properties() 1639 if (info->ic_version == 0x0f && (info->fw_version & 0xff) <= 0x02) in elantech_set_properties() 1640 info->pattern = info->fw_version & 0xff; in elantech_set_properties() [all …]
|
/drivers/bluetooth/ |
D | ath3k.c | 360 struct ath3k_version fw_version; in ath3k_load_patch() local 375 ret = ath3k_get_version(udev, &fw_version); in ath3k_load_patch() 382 le32_to_cpu(fw_version.rom_version)); in ath3k_load_patch() 395 if (pt_rom_version != le32_to_cpu(fw_version.rom_version) || in ath3k_load_patch() 396 pt_build_version <= le32_to_cpu(fw_version.build_version)) { in ath3k_load_patch() 413 struct ath3k_version fw_version; in ath3k_load_syscfg() local 422 ret = ath3k_get_version(udev, &fw_version); in ath3k_load_syscfg() 428 switch (fw_version.ref_clock) { in ath3k_load_syscfg() 445 le32_to_cpu(fw_version.rom_version), clk_value, ".dfu"); in ath3k_load_syscfg()
|
/drivers/net/ethernet/intel/igb/ |
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() 711 fw_vers->eep_major = (fw_version & NVM_MAJOR_MASK) in igb_get_fw_version() 713 fw_vers->eep_minor = (fw_version & NVM_MINOR_MASK) 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 = (fw_version & NVM_MAJOR_MASK) in igb_get_fw_version() 760 if ((fw_version & NVM_NEW_DEC_MASK) == 0x0) { in igb_get_fw_version() 761 eeprom_verl = (fw_version & NVM_COMB_VER_MASK); in igb_get_fw_version() 763 eeprom_verl = (fw_version & NVM_MINOR_MASK) in igb_get_fw_version()
|
/drivers/media/usb/dvb-usb/ |
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 …]
|
/drivers/staging/fsl-dpaa2/ethsw/ |
D | ethsw-ethtool.c | 45 strlcpy(drvinfo->fw_version, "N/A", in dpaa2_switch_get_drvinfo() 46 sizeof(drvinfo->fw_version)); in dpaa2_switch_get_drvinfo() 48 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in dpaa2_switch_get_drvinfo()
|
/drivers/hwmon/pmbus/ |
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);
|
/drivers/gpu/drm/radeon/ |
D | radeon_vce.c | 58 static const char *fw_version = "[ATI LIB=VCEFW,"; in radeon_vce_init() local 97 size = rdev->vce_fw->size - strlen(fw_version) - 9; in radeon_vce_init() 100 if (strncmp(c, fw_version, strlen(fw_version)) == 0) in radeon_vce_init() 106 c += strlen(fw_version); in radeon_vce_init() 128 rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8); in radeon_vce_init() 131 if ((rdev->vce.fw_version != ((40 << 24) | (2 << 16) | (2 << 8))) && in radeon_vce_init() 132 (rdev->vce.fw_version != ((50 << 24) | (0 << 16) | (1 << 8))) && in radeon_vce_init() 133 (rdev->vce.fw_version != ((50 << 24) | (1 << 16) | (2 << 8)))) in radeon_vce_init()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_devlink.h | 88 u32 fw_version; member 105 u32 fw_version; member
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00firmware.c | 54 snprintf(rt2x00dev->hw->wiphy->fw_version, in rt2x00lib_request_firmware() 55 sizeof(rt2x00dev->hw->wiphy->fw_version), "%d.%d", in rt2x00lib_request_firmware()
|
/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_cmd.c | 355 hdev->fw_version = le32_to_cpu(resp->firmware); in hclgevf_cmd_query_version_and_capability() 442 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE3_MASK, in hclgevf_cmd_init() 444 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE2_MASK, in hclgevf_cmd_init() 446 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE1_MASK, in hclgevf_cmd_init() 448 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE0_MASK, in hclgevf_cmd_init()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_cmd.c | 375 hdev->fw_version = le32_to_cpu(resp->firmware); in hclge_cmd_query_version_and_capability() 482 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE3_MASK, in hclge_cmd_init() 484 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE2_MASK, in hclge_cmd_init() 486 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE1_MASK, in hclge_cmd_init() 488 hnae3_get_field(hdev->fw_version, HNAE3_FW_VERSION_BYTE0_MASK, in hclge_cmd_init()
|
/drivers/net/wimax/i2400m/ |
D | i2400m.h | 641 unsigned long fw_version; /* version of the firmware interface */ member 939 return i2400m->fw_version <= 0x00090001; in i2400m_le_v1_3() 946 return i2400m->fw_version >= 0x00090002; in i2400m_ge_v1_4()
|
/drivers/net/wireless/marvell/libertas/ |
D | ethtool.c | 17 snprintf(info->fw_version, sizeof(info->fw_version), in lbs_ethtool_get_drvinfo()
|
/drivers/net/wireless/intersil/p54/ |
D | fwio.c | 34 u8 *fw_version = NULL; in p54_parse_firmware() local 77 fw_version = (unsigned char *) bootrec->data; in p54_parse_firmware() 123 if (fw_version) { in p54_parse_firmware() 126 fw_version, priv->fw_var >> 8, priv->fw_var & 0xff); in p54_parse_firmware() 127 snprintf(dev->wiphy->fw_version, sizeof(dev->wiphy->fw_version), in p54_parse_firmware() 128 "%s - %x.%x", fw_version, in p54_parse_firmware()
|
/drivers/net/wireless/atmel/ |
D | at76c50x-usb.c | 1645 fwe->fw_version.major = fwh->major; in at76_load_firmware() 1646 fwe->fw_version.minor = fwh->minor; in at76_load_firmware() 1647 fwe->fw_version.patch = fwh->patch; in at76_load_firmware() 1648 fwe->fw_version.build = fwh->build; in at76_load_firmware() 2367 len = sizeof(wiphy->fw_version); in at76_init_new_device() 2368 snprintf(wiphy->fw_version, len, "%d.%d.%d-%d", in at76_init_new_device() 2369 priv->fw_version.major, priv->fw_version.minor, in at76_init_new_device() 2370 priv->fw_version.patch, priv->fw_version.build); in at76_init_new_device() 2387 priv->fw_version.major, priv->fw_version.minor, in at76_init_new_device() 2388 priv->fw_version.patch, priv->fw_version.build); in at76_init_new_device() [all …]
|
/drivers/scsi/ |
D | pmcraid.c | 144 u16 fw_version; in pmcraid_slave_alloc() local 148 fw_version = be16_to_cpu(pinstance->inq_data->fw_version); in pmcraid_slave_alloc() 160 if (fw_version <= PMCRAID_FW_VERSION_1) in pmcraid_slave_alloc() 1305 static int pmcraid_expose_resource(u16 fw_version, in pmcraid_expose_resource() argument 1311 if (fw_version <= PMCRAID_FW_VERSION_1) in pmcraid_expose_resource() 1522 u16 fw_version; in pmcraid_handle_config_change() local 1527 fw_version = be16_to_cpu(pinstance->inq_data->fw_version); in pmcraid_handle_config_change() 1543 (fw_version <= PMCRAID_FW_VERSION_1 ? in pmcraid_handle_config_change() 1571 } else if (!pmcraid_expose_resource(fw_version, cfg_entry)) { in pmcraid_handle_config_change() 1625 if (fw_version <= PMCRAID_FW_VERSION_1) in pmcraid_handle_config_change() [all …]
|
/drivers/gpu/drm/amd/display/dmub/src/ |
D | dmub_srv.c | 191 dmub->fw_version = params->fw_version; in dmub_srv_create() 301 if (dmub->fw_version == 0) in dmub_srv_calc_region_info() 302 dmub->fw_version = fw_info->fw_version; in dmub_srv_calc_region_info()
|