Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/
Ducode.c32 __le16 *xtal_calib = priv->nvm_data->xtal_calib; in iwl_set_Xtal_calib()
46 cmd.radio_sensor_offset = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib()
61 cmd.radio_sensor_offset_high = priv->nvm_data->kelvin_temperature; in iwl_set_temperature_offset_calib_v2()
62 cmd.radio_sensor_offset_low = priv->nvm_data->raw_temperature; in iwl_set_temperature_offset_calib_v2()
68 cmd.burntVoltageRef = priv->nvm_data->calib_voltage; in iwl_set_temperature_offset_calib_v2()
228 priv->nvm_data->sku_cap_ipan_enable) { in iwl_alive_notify()
Dmain.c241 priv->nvm_data->valid_tx_ant); in iwlagn_send_beacon_cmd()
824 iwlagn_send_tx_ant_config(priv, priv->nvm_data->valid_tx_ant); in iwl_alive_start()
1174 struct iwl_nvm_data *data = priv->nvm_data; in iwl_eeprom_init_hw_params()
1395 priv->nvm_data = iwl_parse_eeprom_data(priv->trans, priv->cfg, in iwl_op_mode_dvm_start()
1398 if (!priv->nvm_data) in iwl_op_mode_dvm_start()
1401 if (iwl_nvm_check_version(priv->nvm_data, priv->trans)) in iwl_op_mode_dvm_start()
1408 memcpy(priv->addresses[0].addr, priv->nvm_data->hw_addr, ETH_ALEN); in iwl_op_mode_dvm_start()
1412 num_mac = priv->nvm_data->n_hw_addrs; in iwl_op_mode_dvm_start()
1425 if (!(priv->nvm_data->sku_cap_ipan_enable)) { in iwl_op_mode_dvm_start()
1501 kfree(priv->nvm_data); in iwl_op_mode_dvm_start()
[all …]
Drs.c776 first_antenna(priv->nvm_data->valid_tx_ant); in rs_get_lower_rate()
1386 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_legacy_other()
1404 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1428 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other()
1560 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_siso_to_other()
1578 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1596 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other()
1730 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo2_to_other()
1898 u8 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_move_mimo3_to_other()
2629 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_initialize_lq()
[all …]
Ddevices.c334 temperature = le16_to_cpu(priv->nvm_data->kelvin_temperature); in iwl_temp_calib_to_offset()
335 voltage = le16_to_cpu(priv->nvm_data->kelvin_voltage); in iwl_temp_calib_to_offset()
496 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
502 if (priv->nvm_data->calib_version >= 6) in iwl6000_nic_config()
Dcalib.c779 active_chains &= priv->nvm_data->valid_rx_ant; in iwl_find_disconn_antenna()
786 if (!(priv->nvm_data->valid_tx_ant & ant_msk)) in iwl_find_disconn_antenna()
800 find_first_chain(priv->nvm_data->valid_tx_ant); in iwl_find_disconn_antenna()
810 if (active_chains != priv->nvm_data->valid_rx_ant && in iwl_find_disconn_antenna()
816 priv->nvm_data->valid_rx_ant); in iwl_find_disconn_antenna()
1000 data->active_chains = priv->nvm_data->valid_rx_ant; in iwl_chain_noise_calibration()
1031 find_first_chain(priv->nvm_data->valid_rx_ant)); in iwl_chain_noise_calibration()
Dscan.c622 u8 rx_ant = priv->nvm_data->valid_rx_ant; in iwlagn_request_scan()
627 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.c112 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_mac_setup_register()
186 if (priv->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwlagn_mac_setup_register()
188 &priv->nvm_data->bands[NL80211_BAND_2GHZ]; in iwlagn_mac_setup_register()
189 if (priv->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) in iwlagn_mac_setup_register()
191 &priv->nvm_data->bands[NL80211_BAND_5GHZ]; in iwlagn_mac_setup_register()
715 if (!(priv->nvm_data->sku_cap_11n_enable)) in iwlagn_mac_ampdu_action()
Dsta.c572 rate_flags |= first_antenna(priv->nvm_data->valid_tx_ant) << in iwl_sta_fill_lq()
579 first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
582 priv->nvm_data->valid_tx_ant & in iwl_sta_fill_lq()
583 ~first_antenna(priv->nvm_data->valid_tx_ant); in iwl_sta_fill_lq()
586 } else if (num_of_ant(priv->nvm_data->valid_tx_ant) == 2) { in iwl_sta_fill_lq()
588 priv->nvm_data->valid_tx_ant; in iwl_sta_fill_lq()
Dlib.c38 if (tx_power_cmd.global_lmt > priv->nvm_data->max_tx_pwr_half_dbm) { in iwlagn_send_tx_power()
51 priv->nvm_data->max_tx_pwr_half_dbm; in iwlagn_send_tx_power()
133 if (priv->nvm_data->sku_cap_11n_enable) in iwlagn_txfifo_flush()
788 active_chains = priv->nvm_data->valid_rx_ant; in iwlagn_set_rxon_chain()
Dtx.c157 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate()
176 first_antenna(priv->nvm_data->valid_tx_ant)); in iwlagn_tx_cmd_build_rate()
180 priv->nvm_data->valid_tx_ant); in iwlagn_tx_cmd_build_rate()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c637 if (IWL_MVM_PARSE_NVM && !mvm->nvm_data) { in iwl_run_unified_mvm_ucode()
669 if (!IWL_MVM_PARSE_NVM && !mvm->nvm_data) { in iwl_run_unified_mvm_ucode()
670 mvm->nvm_data = iwl_get_nvm(mvm->trans, mvm->fw); in iwl_run_unified_mvm_ucode()
671 if (IS_ERR(mvm->nvm_data)) { in iwl_run_unified_mvm_ucode()
672 ret = PTR_ERR(mvm->nvm_data); in iwl_run_unified_mvm_ucode()
673 mvm->nvm_data = NULL; in iwl_run_unified_mvm_ucode()
727 if (!mvm->nvm_data) { in iwl_run_init_mvm_ucode()
742 WARN_ONCE(mvm->nvm_data->nvm_version < mvm->trans->cfg->nvm_ver, in iwl_run_init_mvm_ucode()
744 mvm->nvm_data->nvm_version, mvm->trans->cfg->nvm_ver); in iwl_run_init_mvm_ucode()
793 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()
553 nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_init_mcc()
Dmvm.h903 struct iwl_nvm_data *nvm_data; member
1380 bool nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_is_lar_supported()
1705 return mvm->nvm_data && mvm->nvm_data->valid_tx_ant ? in iwl_mvm_get_valid_tx_ant()
1706 mvm->fw->valid_tx_ant & mvm->nvm_data->valid_tx_ant : in iwl_mvm_get_valid_tx_ant()
1712 return mvm->nvm_data && mvm->nvm_data->valid_rx_ant ? in iwl_mvm_get_valid_rx_ant()
1713 mvm->fw->valid_rx_ant & mvm->nvm_data->valid_rx_ant : in iwl_mvm_get_valid_rx_ant()
Dmac80211.c318 if (mvm->mld_api_is_used && mvm->nvm_data->sku_cap_11be_enable && in iwl_mvm_mac_setup_register()
504 memcpy(mvm->addresses[0].addr, mvm->nvm_data->hw_addr, ETH_ALEN); in iwl_mvm_mac_setup_register()
509 num_mac = (mvm->nvm_data->n_hw_addrs > 1) ? in iwl_mvm_mac_setup_register()
510 min(IWL_MVM_MAX_ADDRESSES, mvm->nvm_data->n_hw_addrs) : 1; in iwl_mvm_mac_setup_register()
534 if (mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwl_mvm_mac_setup_register()
536 &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_mac_setup_register()
537 if (mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) { in iwl_mvm_mac_setup_register()
539 &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_mac_setup_register()
550 mvm->nvm_data->bands[NL80211_BAND_6GHZ].n_channels) in iwl_mvm_mac_setup_register()
552 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_mac_setup_register()
[all …]
Dscan.c1032 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_scan_config_rates()
1035 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_scan_config_rates()
1060 band = &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_fill_channels()
1063 band = &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_fill_channels()
1156 mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels + in iwl_mvm_legacy_config_scan()
1157 mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels; in iwl_mvm_legacy_config_scan()
1958 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_6ghz_passive_scan()
2419 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_umac_fill_ch_p_v7()
/linux-6.6.21/drivers/media/i2c/
Dov2740.c79 struct nvm_data { struct
346 struct nvm_data *nvm;
651 static int ov2740_load_otp_data(struct nvm_data *nvm) in ov2740_load_otp_data()
1062 struct nvm_data *nvm = priv; in ov2740_nvmem_read()
1092 struct nvm_data *nvm; in ov2740_register_nvmem()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_devlink.c1666 u8 *nvm_data, *tmp, i; in ice_devlink_nvm_snapshot() local
1682 nvm_data = vzalloc(nvm_size); in ice_devlink_nvm_snapshot()
1683 if (!nvm_data) in ice_devlink_nvm_snapshot()
1687 tmp = nvm_data; in ice_devlink_nvm_snapshot()
1704 vfree(nvm_data); in ice_devlink_nvm_snapshot()
1715 vfree(nvm_data); in ice_devlink_nvm_snapshot()
1724 *data = nvm_data; in ice_devlink_nvm_snapshot()

12