Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/intel/e1000e/
Dnvm.c415 u16 nvm_data; in e1000_read_pba_string_generic() local
425 ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in e1000_read_pba_string_generic()
441 if (nvm_data != NVM_PBA_PTR_GUARD) { in e1000_read_pba_string_generic()
451 pba_num[0] = (nvm_data >> 12) & 0xF; in e1000_read_pba_string_generic()
452 pba_num[1] = (nvm_data >> 8) & 0xF; in e1000_read_pba_string_generic()
453 pba_num[2] = (nvm_data >> 4) & 0xF; in e1000_read_pba_string_generic()
454 pba_num[3] = nvm_data & 0xF; in e1000_read_pba_string_generic()
497 ret_val = e1000_read_nvm(hw, pba_ptr + offset, 1, &nvm_data); in e1000_read_pba_string_generic()
502 pba_num[offset * 2] = (u8)(nvm_data >> 8); in e1000_read_pba_string_generic()
503 pba_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in e1000_read_pba_string_generic()
[all …]
Dmac.c144 u16 offset, nvm_alt_mac_addr_offset, nvm_data; in e1000_check_alt_mac_addr_generic() local
147 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
171 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
177 alt_mac_addr[i] = (u8)(nvm_data & 0xFF); in e1000_check_alt_mac_addr_generic()
178 alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); in e1000_check_alt_mac_addr_generic()
631 u16 nvm_data; in e1000_set_default_fc_generic() local
641 ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); in e1000_set_default_fc_generic()
648 if (!(nvm_data & NVM_WORD0F_PAUSE_MASK)) in e1000_set_default_fc_generic()
650 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.c489 u16 nvm_data; in igb_read_part_string() local
500 ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); in igb_read_part_string()
516 if (nvm_data != NVM_PBA_PTR_GUARD) { in igb_read_part_string()
526 part_num[0] = (nvm_data >> 12) & 0xF; in igb_read_part_string()
527 part_num[1] = (nvm_data >> 8) & 0xF; in igb_read_part_string()
528 part_num[2] = (nvm_data >> 4) & 0xF; in igb_read_part_string()
529 part_num[3] = nvm_data & 0xF; in igb_read_part_string()
574 ret_val = hw->nvm.ops.read(hw, pointer + offset, 1, &nvm_data); in igb_read_part_string()
579 part_num[offset * 2] = (u8)(nvm_data >> 8); in igb_read_part_string()
580 part_num[(offset * 2) + 1] = (u8)(nvm_data & 0xFF); in igb_read_part_string()
[all …]
De1000_82575.c2222 u16 nvm_data = 0; in igb_reset_mdicnfg_82580() local
2231 &nvm_data); in igb_reset_mdicnfg_82580()
2238 if (nvm_data & NVM_WORD24_EXT_MDIO) in igb_reset_mdicnfg_82580()
2240 if (nvm_data & NVM_WORD24_COM_MDIO) in igb_reset_mdicnfg_82580()
2370 u16 i, nvm_data; in igb_validate_nvm_checksum_with_offset() local
2373 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_validate_nvm_checksum_with_offset()
2378 checksum += nvm_data; in igb_validate_nvm_checksum_with_offset()
2405 u16 i, nvm_data; in igb_update_nvm_checksum_with_offset() local
2408 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_with_offset()
2413 checksum += nvm_data; in igb_update_nvm_checksum_with_offset()
[all …]
De1000_mac.c290 u16 offset, nvm_alt_mac_addr_offset, nvm_data; in igb_check_alt_mac_addr() local
320 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in igb_check_alt_mac_addr()
326 alt_mac_addr[i] = (u8)(nvm_data & 0xFF); in igb_check_alt_mac_addr()
327 alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); in igb_check_alt_mac_addr()
765 u16 nvm_data; in igb_set_default_fc() local
781 1, &nvm_data); in igb_set_default_fc()
787 if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == 0) in igb_set_default_fc()
789 else if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == NVM_WORD0F_ASM_DIR) in igb_set_default_fc()
De1000_i210.c576 u16 i, nvm_data; in igb_update_nvm_checksum_i210() local
582 ret_val = igb_read_nvm_eerd(hw, 0, 1, &nvm_data); in igb_update_nvm_checksum_i210()
595 ret_val = igb_read_nvm_eerd(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_i210()
601 checksum += nvm_data; in igb_update_nvm_checksum_i210()
/drivers/net/ethernet/intel/igc/
Digc_nvm.c164 u16 i, nvm_data; in igc_validate_nvm_checksum() local
168 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igc_validate_nvm_checksum()
173 checksum += nvm_data; in igc_validate_nvm_checksum()
197 u16 i, nvm_data; in igc_update_nvm_checksum() local
201 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igc_update_nvm_checksum()
206 checksum += nvm_data; in igc_update_nvm_checksum()
Digc_i225.c401 u16 i, nvm_data; in igc_update_nvm_checksum_i225() local
407 ret_val = igc_read_nvm_eerd(hw, 0, 1, &nvm_data); in igc_update_nvm_checksum_i225()
423 ret_val = igc_read_nvm_eerd(hw, i, 1, &nvm_data); in igc_update_nvm_checksum_i225()
429 checksum += nvm_data; in igc_update_nvm_checksum_i225()
/drivers/net/wireless/intel/iwlwifi/dvm/
Ducode.c37 __le16 *xtal_calib = priv->nvm_data->xtal_calib; in iwl_set_Xtal_calib()
51 cmd.radio_sensor_offset = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib()
66 cmd.radio_sensor_offset_high = priv->nvm_data->kelvin_temperature; in iwl_set_temperature_offset_calib_v2()
67 cmd.radio_sensor_offset_low = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib_v2()
73 cmd.burntVoltageRef = priv->nvm_data->calib_voltage; in iwl_set_temperature_offset_calib_v2()
233 priv->nvm_data->sku_cap_ipan_enable) { in iwl_alive_notify()
Dmain.c247 priv->nvm_data->valid_tx_ant); in iwlagn_send_beacon_cmd()
831 iwlagn_send_tx_ant_config(priv, priv->nvm_data->valid_tx_ant); in iwl_alive_start()
1181 struct iwl_nvm_data *data = priv->nvm_data; in iwl_eeprom_init_hw_params()
1408 priv->nvm_data = iwl_parse_eeprom_data(priv->trans, priv->cfg, in iwl_op_mode_dvm_start()
1411 if (!priv->nvm_data) in iwl_op_mode_dvm_start()
1414 if (iwl_nvm_check_version(priv->nvm_data, priv->trans)) in iwl_op_mode_dvm_start()
1421 memcpy(priv->addresses[0].addr, priv->nvm_data->hw_addr, ETH_ALEN); in iwl_op_mode_dvm_start()
1425 num_mac = priv->nvm_data->n_hw_addrs; in iwl_op_mode_dvm_start()
1438 if (!(priv->nvm_data->sku_cap_ipan_enable)) { in iwl_op_mode_dvm_start()
1514 kfree(priv->nvm_data); in iwl_op_mode_dvm_start()
[all …]
Drs.c797 first_antenna(priv->nvm_data->valid_tx_ant); in rs_get_lower_rate()
1417 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_legacy_other()
1435 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1459 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1591 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_siso_to_other()
1609 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1627 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1761 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo2_to_other()
1929 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo3_to_other()
2660 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_initialize_lq()
[all …]
Dcalib.c830 active_chains &= priv->nvm_data->valid_rx_ant; in iwl_find_disconn_antenna()
837 if (!(priv->nvm_data->valid_tx_ant & ant_msk)) in iwl_find_disconn_antenna()
851 find_first_chain(priv->nvm_data->valid_tx_ant); in iwl_find_disconn_antenna()
861 if (active_chains != priv->nvm_data->valid_rx_ant && in iwl_find_disconn_antenna()
867 priv->nvm_data->valid_rx_ant); in iwl_find_disconn_antenna()
1051 data->active_chains = priv->nvm_data->valid_rx_ant; in iwl_chain_noise_calibration()
1082 find_first_chain(priv->nvm_data->valid_rx_ant)); in iwl_chain_noise_calibration()
Ddevices.c337 temperature = le16_to_cpu(priv->nvm_data->kelvin_temperature); in iwl_temp_calib_to_offset()
338 voltage = le16_to_cpu(priv->nvm_data->kelvin_voltage); in iwl_temp_calib_to_offset()
499 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
505 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
Dscan.c628 u8 rx_ant = priv->nvm_data->valid_rx_ant; in iwlagn_request_scan()
633 u8 scan_tx_antennas = priv->nvm_data->valid_tx_ant; in iwlagn_request_scan()
838 priv->nvm_data->valid_rx_ant << RXON_RX_CHAIN_VALID_POS; in iwlagn_request_scan()
914 u8 ant_idx = fls(priv->nvm_data->valid_tx_ant) - 1; in iwl_init_scan_params()
Dmac80211.c117 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_mac_setup_register()
191 if (priv->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwlagn_mac_setup_register()
193 &priv->nvm_data->bands[NL80211_BAND_2GHZ]; in iwlagn_mac_setup_register()
194 if (priv->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) in iwlagn_mac_setup_register()
196 &priv->nvm_data->bands[NL80211_BAND_5GHZ]; in iwlagn_mac_setup_register()
719 if (!(priv->nvm_data->sku_cap_11n_enable)) in iwlagn_mac_ampdu_action()
Dsta.c577 rate_flags |= first_antenna(priv->nvm_data->valid_tx_ant) << in iwl_sta_fill_lq()
584 first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
587 priv->nvm_data->valid_tx_ant & in iwl_sta_fill_lq()
588 ~first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
591 } else if (num_of_ant(priv->nvm_data->valid_tx_ant) == 2) { in iwl_sta_fill_lq()
593 priv->nvm_data->valid_tx_ant; in iwl_sta_fill_lq()
Dlib.c43 if (tx_power_cmd.global_lmt > priv->nvm_data->max_tx_pwr_half_dbm) { in iwlagn_send_tx_power()
56 priv->nvm_data->max_tx_pwr_half_dbm; in iwlagn_send_tx_power()
138 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_txfifo_flush()
793 active_chains = priv->nvm_data->valid_rx_ant; in iwlagn_set_rxon_chain()
Dtx.c161 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate()
180 first_antenna(priv->nvm_data->valid_tx_ant)); in iwlagn_tx_cmd_build_rate()
184 priv->nvm_data->valid_tx_ant); in iwlagn_tx_cmd_build_rate()
Ddev.h863 struct iwl_nvm_data *nvm_data; member
/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c494 mvm->nvm_data = iwl_get_nvm(mvm->trans, mvm->fw); in iwl_run_unified_mvm_ucode()
495 if (IS_ERR(mvm->nvm_data)) { in iwl_run_unified_mvm_ucode()
496 ret = PTR_ERR(mvm->nvm_data); in iwl_run_unified_mvm_ucode()
497 mvm->nvm_data = NULL; in iwl_run_unified_mvm_ucode()
596 WARN_ONCE(mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, in iwl_run_init_mvm_ucode()
598 mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver); in iwl_run_init_mvm_ucode()
647 if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) { in iwl_run_init_mvm_ucode()
649 mvm->nvm_data = kzalloc(sizeof(struct iwl_nvm_data) + in iwl_run_init_mvm_ucode()
653 if (!mvm->nvm_data) in iwl_run_init_mvm_ucode()
655 mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels; in iwl_run_init_mvm_ucode()
[all …]
Dnvm.c460 mvm->nvm_data = iwl_parse_nvm_sections(mvm); in iwl_nvm_init()
461 if (!mvm->nvm_data) in iwl_nvm_init()
464 mvm->nvm_data->nvm_version); in iwl_nvm_init()
570 nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_init_mcc()
Dmvm.h889 struct iwl_nvm_data *nvm_data; member
1304 bool nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_is_lar_supported()
1565 return mvm->nvm_data && mvm->nvm_data->valid_tx_ant ? in iwl_mvm_get_valid_tx_ant()
1566 mvm->fw->valid_tx_ant & mvm->nvm_data->valid_tx_ant : in iwl_mvm_get_valid_tx_ant()
1572 return mvm->nvm_data && mvm->nvm_data->valid_rx_ant ? in iwl_mvm_get_valid_rx_ant()
1573 mvm->fw->valid_rx_ant & mvm->nvm_data->valid_rx_ant : in iwl_mvm_get_valid_rx_ant()
Dscan.c1080 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_scan_config_rates()
1083 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_scan_config_rates()
1108 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_fill_channels()
1111 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_fill_channels()
1198 mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels + in iwl_mvm_legacy_config_scan()
1199 mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels; in iwl_mvm_legacy_config_scan()
Dmac80211.c555 memcpy(mvm->addresses[0].addr, mvm->nvm_data->hw_addr, ETH_ALEN); in iwl_mvm_mac_setup_register()
560 num_mac = (mvm->nvm_data->n_hw_addrs > 1) ? in iwl_mvm_mac_setup_register()
561 min(IWL_MVM_MAX_ADDRESSES, mvm->nvm_data->n_hw_addrs) : 1; in iwl_mvm_mac_setup_register()
585 if (mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwl_mvm_mac_setup_register()
587 &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_mac_setup_register()
588 if (mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) { in iwl_mvm_mac_setup_register()
590 &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_mac_setup_register()
667 if (mvm->nvm_data->sku_cap_11ax_enable && in iwl_mvm_mac_setup_register()
971 if (!(mvm->nvm_data->sku_cap_11n_enable)) in iwl_mvm_mac_ampdu_action()
/drivers/scsi/pm8001/
Dpm8001_hwi.h657 __le32 nvm_data[12]; member

12