Home
last modified time | relevance | path

Searched refs:nvm_data (Results 1 – 25 of 33) 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.c2218 u16 nvm_data = 0; in igb_reset_mdicnfg_82580() local
2227 &nvm_data); in igb_reset_mdicnfg_82580()
2234 if (nvm_data & NVM_WORD24_EXT_MDIO) in igb_reset_mdicnfg_82580()
2236 if (nvm_data & NVM_WORD24_COM_MDIO) in igb_reset_mdicnfg_82580()
2366 u16 i, nvm_data; in igb_validate_nvm_checksum_with_offset() local
2369 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_validate_nvm_checksum_with_offset()
2374 checksum += nvm_data; in igb_validate_nvm_checksum_with_offset()
2401 u16 i, nvm_data; in igb_update_nvm_checksum_with_offset() local
2404 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_with_offset()
2409 checksum += nvm_data; in igb_update_nvm_checksum_with_offset()
[all …]
De1000_mac.c291 u16 offset, nvm_alt_mac_addr_offset, nvm_data; in igb_check_alt_mac_addr() local
321 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in igb_check_alt_mac_addr()
327 alt_mac_addr[i] = (u8)(nvm_data & 0xFF); in igb_check_alt_mac_addr()
328 alt_mac_addr[i + 1] = (u8)(nvm_data >> 8); in igb_check_alt_mac_addr()
794 u16 nvm_data; in igb_set_default_fc() local
810 1, &nvm_data); in igb_set_default_fc()
816 if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == 0) in igb_set_default_fc()
818 else if ((nvm_data & NVM_WORD0F_PAUSE_MASK) == NVM_WORD0F_ASM_DIR) in igb_set_default_fc()
De1000_i210.c577 u16 i, nvm_data; in igb_update_nvm_checksum_i210() local
583 ret_val = igb_read_nvm_eerd(hw, 0, 1, &nvm_data); in igb_update_nvm_checksum_i210()
596 ret_val = igb_read_nvm_eerd(hw, i, 1, &nvm_data); in igb_update_nvm_checksum_i210()
602 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.c407 u16 i, nvm_data; in igc_update_nvm_checksum_i225() local
413 ret_val = igc_read_nvm_eerd(hw, 0, 1, &nvm_data); in igc_update_nvm_checksum_i225()
429 ret_val = igc_read_nvm_eerd(hw, i, 1, &nvm_data); in igc_update_nvm_checksum_i225()
435 checksum += nvm_data; in igc_update_nvm_checksum_i225()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c442 if (IWL_MVM_PARSE_NVM && !mvm->nvm_data) { in iwl_run_unified_mvm_ucode()
467 if (!IWL_MVM_PARSE_NVM && !mvm->nvm_data) { in iwl_run_unified_mvm_ucode()
468 mvm->nvm_data = iwl_get_nvm(mvm->trans, mvm->fw); in iwl_run_unified_mvm_ucode()
469 if (IS_ERR(mvm->nvm_data)) { in iwl_run_unified_mvm_ucode()
470 ret = PTR_ERR(mvm->nvm_data); in iwl_run_unified_mvm_ucode()
471 mvm->nvm_data = NULL; in iwl_run_unified_mvm_ucode()
611 if (!mvm->nvm_data) { in iwl_run_init_mvm_ucode()
626 WARN_ONCE(mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, in iwl_run_init_mvm_ucode()
628 mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver); in iwl_run_init_mvm_ucode()
677 if (iwlmvm_mod_params.init_dbg && !mvm->nvm_data) { in iwl_run_init_mvm_ucode()
[all …]
Dnvm.c398 mvm->nvm_data = iwl_parse_nvm_sections(mvm); in iwl_nvm_init()
399 if (!mvm->nvm_data) in iwl_nvm_init()
402 mvm->nvm_data->nvm_version); in iwl_nvm_init()
518 nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_init_mcc()
Dmvm.h832 struct iwl_nvm_data *nvm_data; member
1264 bool nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_is_lar_supported()
1534 return mvm->nvm_data && mvm->nvm_data->valid_tx_ant ? in iwl_mvm_get_valid_tx_ant()
1535 mvm->fw->valid_tx_ant & mvm->nvm_data->valid_tx_ant : in iwl_mvm_get_valid_tx_ant()
1541 return mvm->nvm_data && mvm->nvm_data->valid_rx_ant ? in iwl_mvm_get_valid_rx_ant()
1542 mvm->fw->valid_rx_ant & mvm->nvm_data->valid_rx_ant : in iwl_mvm_get_valid_rx_ant()
Dscan.c1036 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_scan_config_rates()
1039 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_scan_config_rates()
1064 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_fill_channels()
1067 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_fill_channels()
1162 mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels + in iwl_mvm_legacy_config_scan()
1163 mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels; in iwl_mvm_legacy_config_scan()
1907 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_6ghz_passive_scan()
2307 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_umac_fill_ch_p_v6()
Dmac80211.c529 memcpy(mvm->addresses[0].addr, mvm->nvm_data->hw_addr, ETH_ALEN); in iwl_mvm_mac_setup_register()
534 num_mac = (mvm->nvm_data->n_hw_addrs > 1) ? in iwl_mvm_mac_setup_register()
535 min(IWL_MVM_MAX_ADDRESSES, mvm->nvm_data->n_hw_addrs) : 1; in iwl_mvm_mac_setup_register()
559 if (mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwl_mvm_mac_setup_register()
561 &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_mac_setup_register()
562 if (mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) { in iwl_mvm_mac_setup_register()
564 &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_mac_setup_register()
575 mvm->nvm_data->bands[NL80211_BAND_6GHZ].n_channels) in iwl_mvm_mac_setup_register()
577 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_mac_setup_register()
649 if (mvm->nvm_data->sku_cap_11ax_enable && in iwl_mvm_mac_setup_register()
[all …]
/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.c246 priv->nvm_data->valid_tx_ant); in iwlagn_send_beacon_cmd()
829 iwlagn_send_tx_ant_config(priv, priv->nvm_data->valid_tx_ant); in iwl_alive_start()
1179 struct iwl_nvm_data *data = priv->nvm_data; in iwl_eeprom_init_hw_params()
1400 priv->nvm_data = iwl_parse_eeprom_data(priv->trans, priv->cfg, in iwl_op_mode_dvm_start()
1403 if (!priv->nvm_data) in iwl_op_mode_dvm_start()
1406 if (iwl_nvm_check_version(priv->nvm_data, priv->trans)) in iwl_op_mode_dvm_start()
1413 memcpy(priv->addresses[0].addr, priv->nvm_data->hw_addr, ETH_ALEN); in iwl_op_mode_dvm_start()
1417 num_mac = priv->nvm_data->n_hw_addrs; in iwl_op_mode_dvm_start()
1430 if (!(priv->nvm_data->sku_cap_ipan_enable)) { in iwl_op_mode_dvm_start()
1506 kfree(priv->nvm_data); in iwl_op_mode_dvm_start()
[all …]
Drs.c798 first_antenna(priv->nvm_data->valid_tx_ant); in rs_get_lower_rate()
1408 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_legacy_other()
1426 first_antenna(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()
1582 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_siso_to_other()
1600 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1618 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1752 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo2_to_other()
1920 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo3_to_other()
2651 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_initialize_lq()
[all …]
Dcalib.c777 active_chains &= priv->nvm_data->valid_rx_ant; in iwl_find_disconn_antenna()
784 if (!(priv->nvm_data->valid_tx_ant & ant_msk)) in iwl_find_disconn_antenna()
798 find_first_chain(priv->nvm_data->valid_tx_ant); in iwl_find_disconn_antenna()
808 if (active_chains != priv->nvm_data->valid_rx_ant && in iwl_find_disconn_antenna()
814 priv->nvm_data->valid_rx_ant); in iwl_find_disconn_antenna()
998 data->active_chains = priv->nvm_data->valid_rx_ant; in iwl_chain_noise_calibration()
1029 find_first_chain(priv->nvm_data->valid_rx_ant)); in iwl_chain_noise_calibration()
Ddevices.c339 temperature = le16_to_cpu(priv->nvm_data->kelvin_temperature); in iwl_temp_calib_to_offset()
340 voltage = le16_to_cpu(priv->nvm_data->kelvin_voltage); in iwl_temp_calib_to_offset()
501 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
507 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
Dscan.c626 u8 rx_ant = priv->nvm_data->valid_rx_ant; in iwlagn_request_scan()
631 u8 scan_tx_antennas = priv->nvm_data->valid_tx_ant; in iwlagn_request_scan()
836 priv->nvm_data->valid_rx_ant << RXON_RX_CHAIN_VALID_POS; in iwlagn_request_scan()
912 u8 ant_idx = fls(priv->nvm_data->valid_tx_ant) - 1; in iwl_init_scan_params()
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()
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()
720 if (!(priv->nvm_data->sku_cap_11n_enable)) in iwlagn_mac_ampdu_action()
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.c162 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate()
181 first_antenna(priv->nvm_data->valid_tx_ant)); in iwlagn_tx_cmd_build_rate()
185 priv->nvm_data->valid_tx_ant); in iwlagn_tx_cmd_build_rate()
/drivers/net/ethernet/intel/ice/
Dice_devlink.c663 void *nvm_data; in ice_devlink_nvm_snapshot() local
667 nvm_data = vzalloc(nvm_size); in ice_devlink_nvm_snapshot()
668 if (!nvm_data) in ice_devlink_nvm_snapshot()
676 vfree(nvm_data); in ice_devlink_nvm_snapshot()
680 status = ice_read_flat_nvm(hw, 0, &nvm_size, nvm_data, false); in ice_devlink_nvm_snapshot()
686 vfree(nvm_data); in ice_devlink_nvm_snapshot()
692 *data = nvm_data; in ice_devlink_nvm_snapshot()
/drivers/media/i2c/
Dov2740.c79 struct nvm_data { struct
347 struct nvm_data *nvm;
625 static int ov2740_load_otp_data(struct nvm_data *nvm) in ov2740_load_otp_data()
724 struct nvm_data *nvm = ov2740->nvm; in ov2740_start_streaming()
1063 struct nvm_data *nvm = priv; in ov2740_nvmem_read()
1094 struct nvm_data *nvm; in ov2740_register_nvmem()

12