Home
last modified time | relevance | path

Searched refs:nvm_data (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/ethernet/intel/e1000e/
Dnvm.c433 u16 nvm_data; in e1000_read_pba_string_generic() local
443 ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in e1000_read_pba_string_generic()
459 if (nvm_data != NVM_PBA_PTR_GUARD) { in e1000_read_pba_string_generic()
469 pba_num[0] = (nvm_data >> 12) & 0xF; in e1000_read_pba_string_generic()
470 pba_num[1] = (nvm_data >> 8) & 0xF; in e1000_read_pba_string_generic()
471 pba_num[2] = (nvm_data >> 4) & 0xF; in e1000_read_pba_string_generic()
472 pba_num[3] = nvm_data & 0xF; in e1000_read_pba_string_generic()
515 ret_val = e1000_read_nvm(hw, pba_ptr + offset, 1, &nvm_data); in e1000_read_pba_string_generic()
520 pba_num[offset * 2] = (u8)(nvm_data >> 8); in e1000_read_pba_string_generic()
521 pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in e1000_read_pba_string_generic()
[all …]
Dmac.c162 u16 offset, nvm_alt_mac_addr_offset, nvm_data; in e1000_check_alt_mac_addr_generic() local
165 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
189 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
195 alt_mac_addr[i] = (u8)(nvm_data & 0xFF); in e1000_check_alt_mac_addr_generic()
196 alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); in e1000_check_alt_mac_addr_generic()
649 u16 nvm_data; in e1000_set_default_fc_generic() local
659 ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); in e1000_set_default_fc_generic()
666 if (!(nvm_data & NVM_WORD0F_PAUSE_MASK)) in e1000_set_default_fc_generic()
668 else if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == NVM_WORD0F_ASM_DIR) in e1000_set_default_fc_generic()
/drivers/net/ethernet/intel/igb/
De1000_nvm.c508 u16 nvm_data; in igb_read_part_string() local
519 ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in igb_read_part_string()
535 if (nvm_data != NVM_PBA_PTR_GUARD) { in igb_read_part_string()
545 part_num[0] = (nvm_data >> 12) & 0xF; in igb_read_part_string()
546 part_num[1] = (nvm_data >> 8) & 0xF; in igb_read_part_string()
547 part_num[2] = (nvm_data >> 4) & 0xF; in igb_read_part_string()
548 part_num[3] = nvm_data & 0xF; in igb_read_part_string()
593 ret_val = hw->nvm.ops.read(hw, pointer + offset, 1, &nvm_data); in igb_read_part_string()
598 part_num[offset * 2] = (u8)(nvm_data >> 8); in igb_read_part_string()
599 part_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in igb_read_part_string()
[all …]
De1000_82575.c2249 u16 nvm_data = 0; in igb_reset_mdicnfg_82580() local
2258 &nvm_data); in igb_reset_mdicnfg_82580()
2265 if (nvm_data & NVM_WORD24_EXT_MDIO) in igb_reset_mdicnfg_82580()
2267 if (nvm_data & NVM_WORD24_COM_MDIO) in igb_reset_mdicnfg_82580()
2397 u16 i, nvm_data; in igb_validate_nvm_checksum_with_offset() local
2400 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_validate_nvm_checksum_with_offset()
2405 checksum += nvm_data; in igb_validate_nvm_checksum_with_offset()
2432 u16 i, nvm_data; in igb_update_nvm_checksum_with_offset() local
2435 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_with_offset()
2440 checksum += nvm_data; in igb_update_nvm_checksum_with_offset()
[all …]
De1000_mac.c310 u16 offset, nvm_alt_mac_addr_offset, nvm_data; in igb_check_alt_mac_addr() local
340 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in igb_check_alt_mac_addr()
346 alt_mac_addr[i] = (u8)(nvm_data & 0xFF); in igb_check_alt_mac_addr()
347 alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); in igb_check_alt_mac_addr()
785 u16 nvm_data; in igb_set_default_fc() local
801 1, &nvm_data); in igb_set_default_fc()
807 if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == 0) in igb_set_default_fc()
809 else if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == NVM_WORD0F_ASM_DIR) in igb_set_default_fc()
De1000_i210.c596 u16 i, nvm_data; in igb_update_nvm_checksum_i210() local
602 ret_val = igb_read_nvm_eerd(hw, 0, 1, &nvm_data); in igb_update_nvm_checksum_i210()
615 ret_val = igb_read_nvm_eerd(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_i210()
621 checksum += nvm_data; in igb_update_nvm_checksum_i210()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c415 mvm->nvm_data = iwl_fw_get_nvm(&mvm->fwrt); in iwl_run_unified_mvm_ucode()
416 if (IS_ERR(mvm->nvm_data)) { in iwl_run_unified_mvm_ucode()
417 ret = PTR_ERR(mvm->nvm_data); in iwl_run_unified_mvm_ucode()
418 mvm->nvm_data = NULL; in iwl_run_unified_mvm_ucode()
504 WARN_ONCE(mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, in iwl_run_init_mvm_ucode()
506 mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver); in iwl_run_init_mvm_ucode()
555 if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) { in iwl_run_init_mvm_ucode()
557 mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) + in iwl_run_init_mvm_ucode()
561 if (!mvm->nvm_data) in iwl_run_init_mvm_ucode()
563 mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels; in iwl_run_init_mvm_ucode()
[all …]
Dmvm.h780 struct iwl_nvm_data *nvm_data; member
1166 bool nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_is_lar_supported()
1397 return mvm->nvm_data && mvm->nvm_data->valid_tx_ant ? in iwl_mvm_get_valid_tx_ant()
1398 mvm->fw->valid_tx_ant & mvm->nvm_data->valid_tx_ant : in iwl_mvm_get_valid_tx_ant()
1404 return mvm->nvm_data && mvm->nvm_data->valid_rx_ant ? in iwl_mvm_get_valid_rx_ant()
1405 mvm->fw->valid_rx_ant & mvm->nvm_data->valid_rx_ant : in iwl_mvm_get_valid_rx_ant()
Dnvm.c644 mvm->nvm_data = iwl_parse_nvm_sections(mvm); in iwl_nvm_init()
645 if (!mvm->nvm_data) in iwl_nvm_init()
648 mvm->nvm_data->nvm_version); in iwl_nvm_init()
755 nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_init_mcc()
Dscan.c913 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_scan_config_rates()
916 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_scan_config_rates()
940 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_fill_channels()
943 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_fill_channels()
1011 mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels + in iwl_mvm_config_scan()
1012 mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels; in iwl_mvm_config_scan()
Dmac80211.c582 memcpy(mvm->addresses[0].addr, mvm->nvm_data->hw_addr, ETH_ALEN); in iwl_mvm_mac_setup_register()
587 num_mac = (mvm->nvm_data->n_hw_addrs > 1) ? in iwl_mvm_mac_setup_register()
588 min(IWL_MVM_MAX_ADDRESSES, mvm->nvm_data->n_hw_addrs) : 1; in iwl_mvm_mac_setup_register()
612 if (mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwl_mvm_mac_setup_register()
614 &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_mac_setup_register()
615 if (mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) { in iwl_mvm_mac_setup_register()
617 &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_mac_setup_register()
946 if (!(mvm->nvm_data->sku_cap_11n_enable)) in iwl_mvm_mac_ampdu_action()
/drivers/net/wireless/intel/iwlwifi/dvm/
Ducode.c55 __le16 *xtal_calib = priv->nvm_data->xtal_calib; in iwl_set_Xtal_calib()
69 cmd.radio_sensor_offset = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib()
84 cmd.radio_sensor_offset_high = priv->nvm_data->kelvin_temperature; in iwl_set_temperature_offset_calib_v2()
85 cmd.radio_sensor_offset_low = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib_v2()
91 cmd.burntVoltageRef = priv->nvm_data->calib_voltage; in iwl_set_temperature_offset_calib_v2()
251 priv->nvm_data->sku_cap_ipan_enable) { in iwl_alive_notify()
Dmain.c261 priv->nvm_data->valid_tx_ant); in iwlagn_send_beacon_cmd()
845 iwlagn_send_tx_ant_config(priv, priv->nvm_data->valid_tx_ant); in iwl_alive_start()
1197 struct iwl_nvm_data *data = priv->nvm_data; in iwl_eeprom_init_hw_params()
1424 priv->nvm_data = iwl_parse_eeprom_data(priv->trans->dev, priv->cfg, in iwl_op_mode_dvm_start()
1427 if (!priv->nvm_data) in iwl_op_mode_dvm_start()
1430 if (iwl_nvm_check_version(priv->nvm_data, priv->trans)) in iwl_op_mode_dvm_start()
1437 memcpy(priv->addresses[0].addr, priv->nvm_data->hw_addr, ETH_ALEN); in iwl_op_mode_dvm_start()
1441 num_mac = priv->nvm_data->n_hw_addrs; in iwl_op_mode_dvm_start()
1454 if (!(priv->nvm_data->sku_cap_ipan_enable)) { in iwl_op_mode_dvm_start()
1533 kfree(priv->nvm_data); in iwl_op_mode_dvm_start()
[all …]
Drs.c812 first_antenna(priv->nvm_data->valid_tx_ant); in rs_get_lower_rate()
1432 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_legacy_other()
1450 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1474 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1606 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_siso_to_other()
1624 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1642 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1776 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo2_to_other()
1944 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo3_to_other()
2675 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_initialize_lq()
[all …]
Ddevices.c351 temperature = le16_to_cpu(priv->nvm_data->kelvin_temperature); in iwl_temp_calib_to_offset()
352 voltage = le16_to_cpu(priv->nvm_data->kelvin_voltage); in iwl_temp_calib_to_offset()
513 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
519 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
Dcalib.c835 active_chains &= priv->nvm_data->valid_rx_ant; in iwl_find_disconn_antenna()
842 if (!(priv->nvm_data->valid_tx_ant & ant_msk)) in iwl_find_disconn_antenna()
856 find_first_chain(priv->nvm_data->valid_tx_ant); in iwl_find_disconn_antenna()
866 if (active_chains != priv->nvm_data->valid_rx_ant && in iwl_find_disconn_antenna()
872 priv->nvm_data->valid_rx_ant); in iwl_find_disconn_antenna()
1056 data->active_chains = priv->nvm_data->valid_rx_ant; in iwl_chain_noise_calibration()
1087 find_first_chain(priv->nvm_data->valid_rx_ant)); in iwl_chain_noise_calibration()
Dscan.c645 u8 rx_ant = priv->nvm_data->valid_rx_ant; in iwlagn_request_scan()
650 u8 scan_tx_antennas = priv->nvm_data->valid_tx_ant; in iwlagn_request_scan()
855 priv->nvm_data->valid_rx_ant << RXON_RX_CHAIN_VALID_POS; in iwlagn_request_scan()
931 u8 ant_idx = fls(priv->nvm_data->valid_tx_ant) - 1; in iwl_init_scan_params()
Dmac80211.c131 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_mac_setup_register()
205 if (priv->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwlagn_mac_setup_register()
207 &priv->nvm_data->bands[NL80211_BAND_2GHZ]; in iwlagn_mac_setup_register()
208 if (priv->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) in iwlagn_mac_setup_register()
210 &priv->nvm_data->bands[NL80211_BAND_5GHZ]; in iwlagn_mac_setup_register()
751 if (!(priv->nvm_data->sku_cap_11n_enable)) in iwlagn_mac_ampdu_action()
Dsta.c592 rate_flags |= first_antenna(priv->nvm_data->valid_tx_ant) << in iwl_sta_fill_lq()
599 first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
602 priv->nvm_data->valid_tx_ant & in iwl_sta_fill_lq()
603 ~first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
606 } else if (num_of_ant(priv->nvm_data->valid_tx_ant) == 2) { in iwl_sta_fill_lq()
608 priv->nvm_data->valid_tx_ant; in iwl_sta_fill_lq()
Dlib.c61 if (tx_power_cmd.global_lmt > priv->nvm_data->max_tx_pwr_half_dbm) { in iwlagn_send_tx_power()
74 priv->nvm_data->max_tx_pwr_half_dbm; in iwlagn_send_tx_power()
156 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_txfifo_flush()
811 active_chains = priv->nvm_data->valid_rx_ant; in iwlagn_set_rxon_chain()
Dtx.c178 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate()
197 first_antenna(priv->nvm_data->valid_tx_ant)); in iwlagn_tx_cmd_build_rate()
201 priv->nvm_data->valid_tx_ant); in iwlagn_tx_cmd_build_rate()
Ddev.h878 struct iwl_nvm_data *nvm_data; member
Drxon.c425 if (tx_power > DIV_ROUND_UP(priv->nvm_data->max_tx_pwr_half_dbm, 2)) { in iwl_set_tx_power()
428 tx_power, priv->nvm_data->max_tx_pwr_half_dbm); in iwl_set_tx_power()
Ddebugfs.c311 nvm_ver = priv->nvm_data->nvm_version; in iwl_dbgfs_nvm_read()
1318 if ((priv->nvm_data->valid_tx_ant & ANT_A) && in iwl_dbgfs_ucode_tx_stats_read()
1323 if ((priv->nvm_data->valid_tx_ant & ANT_B) && in iwl_dbgfs_ucode_tx_stats_read()
1328 if ((priv->nvm_data->valid_tx_ant & ANT_C) && in iwl_dbgfs_ucode_tx_stats_read()
/drivers/scsi/pm8001/
Dpm8001_hwi.h661 __le32 nvm_data[12]; member

12