/linux/drivers/net/ethernet/intel/e1000e/ |
A D | nvm.c | 415 u16 nvm_data; in e1000_read_pba_string_generic() local 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() 502 pba_num[offset * 2] = (u8)(nvm_data >> 8); in e1000_read_pba_string_generic() 550 u16 i, nvm_data; in e1000e_validate_nvm_checksum_generic() local 558 checksum += nvm_data; in e1000e_validate_nvm_checksum_generic() 581 u16 i, nvm_data; in e1000e_update_nvm_checksum_generic() local [all …]
|
A D | mac.c | 144 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/drivers/net/ethernet/intel/igb/ |
A D | e1000_nvm.c | 489 u16 nvm_data; in igb_read_part_string() local 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() 579 part_num[offset * 2] = (u8)(nvm_data >> 8); in igb_read_part_string() 628 u16 i, nvm_data; in igb_validate_nvm_checksum() local 636 checksum += nvm_data; in igb_validate_nvm_checksum() 661 u16 i, nvm_data; in igb_update_nvm_checksum() local [all …]
|
A D | e1000_82575.c | 2218 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() 2366 u16 i, nvm_data; in igb_validate_nvm_checksum_with_offset() local 2374 checksum += nvm_data; in igb_validate_nvm_checksum_with_offset() 2401 u16 i, nvm_data; in igb_update_nvm_checksum_with_offset() local 2409 checksum += nvm_data; in igb_update_nvm_checksum_with_offset() 2433 u16 j, nvm_data; in igb_validate_nvm_checksum_82580() local 2472 u16 j, nvm_data; in igb_update_nvm_checksum_82580() local 2483 nvm_data = nvm_data | NVM_COMPATIBILITY_BIT_MASK; in igb_update_nvm_checksum_82580() [all …]
|
A D | e1000_mac.c | 291 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()
|
A D | e1000_i210.c | 577 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/drivers/net/ethernet/intel/igc/ |
A D | igc_nvm.c | 164 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()
|
A D | igc_i225.c | 400 u16 i, nvm_data; in igc_update_nvm_checksum_i225() local 406 ret_val = igc_read_nvm_eerd(hw, 0, 1, &nvm_data); in igc_update_nvm_checksum_i225() 422 ret_val = igc_read_nvm_eerd(hw, i, 1, &nvm_data); in igc_update_nvm_checksum_i225() 428 checksum += nvm_data; in igc_update_nvm_checksum_i225()
|
/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
A D | ucode.c | 32 __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()
|
A D | main.c | 240 priv->nvm_data->valid_tx_ant); in iwlagn_send_beacon_cmd() 1397 if (!priv->nvm_data) in iwl_op_mode_dvm_start() 1411 num_mac = priv->nvm_data->n_hw_addrs; in iwl_op_mode_dvm_start() 1500 kfree(priv->nvm_data); in iwl_op_mode_dvm_start() 1519 kfree(priv->nvm_data); in iwl_op_mode_dvm_stop() 1987 priv->nvm_data->radio_cfg_type << in iwl_nic_config() 1989 priv->nvm_data->radio_cfg_step << in iwl_nic_config() 1991 priv->nvm_data->radio_cfg_dash << in iwl_nic_config() 2001 priv->nvm_data->radio_cfg_type, in iwl_nic_config() 2002 priv->nvm_data->radio_cfg_step, in iwl_nic_config() [all …]
|
A D | rs.c | 1421 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other() 1445 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_legacy_other() 1595 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other() 1613 first_antenna(priv->nvm_data->valid_tx_ant); in rs_move_siso_to_other() 2646 valid_tx_ant = priv->nvm_data->valid_tx_ant; in rs_initialize_lq() 2833 first_antenna(priv->nvm_data->valid_tx_ant); in iwl_rs_rate_init() 2835 priv->nvm_data->valid_tx_ant & in iwl_rs_rate_init() 2836 ~first_antenna(priv->nvm_data->valid_tx_ant); in iwl_rs_rate_init() 2841 priv->nvm_data->valid_tx_ant; in iwl_rs_rate_init() 2884 first_antenna(priv->nvm_data->valid_tx_ant); in rs_fill_link_cmd() [all …]
|
A D | calib.c | 777 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()
|
A D | devices.c | 334 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()
|
A D | scan.c | 622 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() 832 priv->nvm_data->valid_rx_ant << RXON_RX_CHAIN_VALID_POS; in iwlagn_request_scan() 908 u8 ant_idx = fls(priv->nvm_data->valid_tx_ant) - 1; in iwl_init_scan_params()
|
A D | mac80211.c | 112 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()
|
A D | sta.c | 572 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()
|
A D | lib.c | 38 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()
|
A D | tx.c | 156 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate() 175 first_antenna(priv->nvm_data->valid_tx_ant)); in iwlagn_tx_cmd_build_rate() 179 priv->nvm_data->valid_tx_ant); in iwlagn_tx_cmd_build_rate()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | fw.c | 475 if (IS_ERR(mvm->nvm_data)) { in iwl_run_unified_mvm_ucode() 476 ret = PTR_ERR(mvm->nvm_data); in iwl_run_unified_mvm_ucode() 477 mvm->nvm_data = NULL; in iwl_run_unified_mvm_ucode() 617 if (!mvm->nvm_data) { in iwl_run_init_mvm_ucode() 689 if (!mvm->nvm_data) in iwl_run_init_mvm_ucode() 691 mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels; in iwl_run_init_mvm_ucode() 692 mvm->nvm_data->bands[0].n_channels = 1; in iwl_run_init_mvm_ucode() 693 mvm->nvm_data->bands[0].n_bitrates = 1; in iwl_run_init_mvm_ucode() 694 mvm->nvm_data->bands[0].bitrates = in iwl_run_init_mvm_ucode() 695 (void *)mvm->nvm_data->channels + 1; in iwl_run_init_mvm_ucode() [all …]
|
A D | nvm.c | 398 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() 508 nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_init_mcc()
|
A D | mvm.h | 832 struct iwl_nvm_data *nvm_data; member 1264 bool nvm_lar = mvm->nvm_data->lar_enabled; in iwl_mvm_is_lar_supported() 1539 return mvm->nvm_data && mvm->nvm_data->valid_tx_ant ? in iwl_mvm_get_valid_tx_ant() 1540 mvm->fw->valid_tx_ant & mvm->nvm_data->valid_tx_ant : in iwl_mvm_get_valid_tx_ant() 1546 return mvm->nvm_data && mvm->nvm_data->valid_rx_ant ? in iwl_mvm_get_valid_rx_ant() 1547 mvm->fw->valid_rx_ant & mvm->nvm_data->valid_rx_ant : in iwl_mvm_get_valid_rx_ant()
|
A D | scan.c | 1036 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() 1904 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_6ghz_passive_scan() 2315 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_scan_umac_fill_ch_p_v6()
|
A D | mac80211.c | 531 memcpy(mvm->addresses[0].addr, mvm->nvm_data->hw_addr, ETH_ALEN); in iwl_mvm_mac_setup_register() 536 num_mac = (mvm->nvm_data->n_hw_addrs > 1) ? in iwl_mvm_mac_setup_register() 537 min(IWL_MVM_MAX_ADDRESSES, mvm->nvm_data->n_hw_addrs) : 1; in iwl_mvm_mac_setup_register() 561 if (mvm->nvm_data->bands[NL80211_BAND_2GHZ].n_channels) in iwl_mvm_mac_setup_register() 563 &mvm->nvm_data->bands[NL80211_BAND_2GHZ]; in iwl_mvm_mac_setup_register() 564 if (mvm->nvm_data->bands[NL80211_BAND_5GHZ].n_channels) { in iwl_mvm_mac_setup_register() 566 &mvm->nvm_data->bands[NL80211_BAND_5GHZ]; in iwl_mvm_mac_setup_register() 577 mvm->nvm_data->bands[NL80211_BAND_6GHZ].n_channels) in iwl_mvm_mac_setup_register() 579 &mvm->nvm_data->bands[NL80211_BAND_6GHZ]; in iwl_mvm_mac_setup_register() 651 if (mvm->nvm_data->sku_cap_11ax_enable && in iwl_mvm_mac_setup_register() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_devlink.c | 622 void *nvm_data; in ice_devlink_nvm_snapshot() local 626 nvm_data = vzalloc(nvm_size); in ice_devlink_nvm_snapshot() 627 if (!nvm_data) in ice_devlink_nvm_snapshot() 635 vfree(nvm_data); in ice_devlink_nvm_snapshot() 639 status = ice_read_flat_nvm(hw, 0, &nvm_size, nvm_data, false); in ice_devlink_nvm_snapshot() 645 vfree(nvm_data); in ice_devlink_nvm_snapshot() 651 *data = nvm_data; in ice_devlink_nvm_snapshot()
|
/linux/drivers/media/i2c/ |
A D | ov2740.c | 79 struct nvm_data { struct 347 struct nvm_data *nvm; 623 static int ov2740_load_otp_data(struct nvm_data *nvm) in ov2740_load_otp_data() 722 struct nvm_data *nvm = ov2740->nvm; in ov2740_start_streaming() 1061 struct nvm_data *nvm = priv; in ov2740_nvmem_read() 1092 struct nvm_data *nvm; in ov2740_register_nvmem()
|