Home
last modified time | relevance | path

Searched refs:mvm (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dfw.c91 static int iwl_send_tx_ant_cfg(struct iwl_mvm *mvm, u8 valid_tx_ant) in iwl_send_tx_ant_cfg() argument
97 IWL_DEBUG_FW(mvm, "select valid tx ant: %u\n", valid_tx_ant); in iwl_send_tx_ant_cfg()
98 return iwl_mvm_send_cmd_pdu(mvm, TX_ANT_CONFIGURATION_CMD, 0, in iwl_send_tx_ant_cfg()
102 static int iwl_send_rss_cfg_cmd(struct iwl_mvm *mvm) in iwl_send_rss_cfg_cmd() argument
115 if (mvm->trans->num_rx_queues == 1) in iwl_send_rss_cfg_cmd()
121 1 + (i % (mvm->trans->num_rx_queues - 1)); in iwl_send_rss_cfg_cmd()
124 return iwl_mvm_send_cmd_pdu(mvm, RSS_CONFIG_CMD, 0, sizeof(cmd), &cmd); in iwl_send_rss_cfg_cmd()
127 static int iwl_configure_rxq(struct iwl_mvm *mvm) in iwl_configure_rxq() argument
140 if (mvm->trans->num_rx_queues == 1) in iwl_configure_rxq()
144 num_queues = mvm->trans->num_rx_queues - 1; in iwl_configure_rxq()
[all …]
Dtt.c71 void iwl_mvm_enter_ctkill(struct iwl_mvm *mvm) in iwl_mvm_enter_ctkill() argument
73 struct iwl_mvm_tt_mgmt *tt = &mvm->thermal_throttle; in iwl_mvm_enter_ctkill()
76 if (test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status)) in iwl_mvm_enter_ctkill()
79 IWL_ERR(mvm, "Enter CT Kill\n"); in iwl_mvm_enter_ctkill()
80 iwl_mvm_set_hw_ctkill_state(mvm, true); in iwl_mvm_enter_ctkill()
82 if (!iwl_mvm_is_tt_in_fw(mvm)) { in iwl_mvm_enter_ctkill()
91 if (!mvm->temperature_test) in iwl_mvm_enter_ctkill()
96 static void iwl_mvm_exit_ctkill(struct iwl_mvm *mvm) in iwl_mvm_exit_ctkill() argument
98 if (!test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status)) in iwl_mvm_exit_ctkill()
101 IWL_ERR(mvm, "Exit CT Kill\n"); in iwl_mvm_exit_ctkill()
[all …]
Dutils.c76 int iwl_mvm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd) in iwl_mvm_send_cmd() argument
81 if (WARN_ON(mvm->d3_test_active)) in iwl_mvm_send_cmd()
91 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_cmd()
93 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd()
109 int iwl_mvm_send_cmd_pdu(struct iwl_mvm *mvm, u32 id, in iwl_mvm_send_cmd_pdu() argument
119 return iwl_mvm_send_cmd(mvm, &cmd); in iwl_mvm_send_cmd_pdu()
125 int iwl_mvm_send_cmd_status(struct iwl_mvm *mvm, struct iwl_host_cmd *cmd, in iwl_mvm_send_cmd_status() argument
132 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_cmd_status()
135 if (WARN_ON(mvm->d3_test_active)) in iwl_mvm_send_cmd_status()
149 ret = iwl_trans_send_cmd(mvm->trans, cmd); in iwl_mvm_send_cmd_status()
[all …]
Dops.c135 struct iwl_mvm *mvm = IWL_OP_MODE_GET_MVM(op_mode); in iwl_mvm_nic_config() local
136 struct iwl_trans_debug *dbg = &mvm->trans->dbg; in iwl_mvm_nic_config()
139 u32 phy_config = iwl_mvm_get_phy_config(mvm); in iwl_mvm_nic_config()
149 reg_val |= CSR_HW_REV_STEP(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
151 reg_val |= CSR_HW_REV_DASH(mvm->trans->hw_rev) << in iwl_mvm_nic_config()
170 if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000) in iwl_mvm_nic_config()
173 if (iwl_fw_dbg_is_d3_debug_enabled(&mvm->fwrt) || in iwl_mvm_nic_config()
174 (iwl_trans_dbg_ini_valid(mvm->trans) && in iwl_mvm_nic_config()
179 iwl_trans_set_bits_mask(mvm->trans, CSR_HW_IF_CONFIG_REG, in iwl_mvm_nic_config()
190 IWL_DEBUG_INFO(mvm, "Radio type=0x%x-0x%x-0x%x\n", radio_cfg_type, in iwl_mvm_nic_config()
[all …]
Dtime-event.c81 void iwl_mvm_te_clear_data(struct iwl_mvm *mvm, in iwl_mvm_te_clear_data() argument
84 lockdep_assert_held(&mvm->time_event_lock); in iwl_mvm_te_clear_data()
98 struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, roc_done_wk); in iwl_mvm_roc_done_wk() local
107 clear_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status); in iwl_mvm_roc_done_wk()
118 mutex_lock(&mvm->mutex); in iwl_mvm_roc_done_wk()
119 if (test_and_clear_bit(IWL_MVM_STATUS_NEED_FLUSH_P2P, &mvm->status)) { in iwl_mvm_roc_done_wk()
129 if (!WARN_ON(!mvm->p2p_device_vif)) { in iwl_mvm_roc_done_wk()
130 mvmvif = iwl_mvm_vif_from_mac80211(mvm->p2p_device_vif); in iwl_mvm_roc_done_wk()
131 iwl_mvm_flush_sta(mvm, &mvmvif->bcast_sta, true); in iwl_mvm_roc_done_wk()
142 if (test_and_clear_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status)) { in iwl_mvm_roc_done_wk()
[all …]
Dmac80211.c218 static void iwl_mvm_reset_phy_ctxts(struct iwl_mvm *mvm) in iwl_mvm_reset_phy_ctxts() argument
222 memset(mvm->phy_ctxts, 0, sizeof(mvm->phy_ctxts)); in iwl_mvm_reset_phy_ctxts()
224 mvm->phy_ctxts[i].id = i; in iwl_mvm_reset_phy_ctxts()
225 mvm->phy_ctxts[i].ref = 0; in iwl_mvm_reset_phy_ctxts()
236 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_get_regdomain() local
240 IWL_DEBUG_LAR(mvm, "Getting regdomain data for %s from FW\n", alpha2); in iwl_mvm_get_regdomain()
242 lockdep_assert_held(&mvm->mutex); in iwl_mvm_get_regdomain()
244 resp = iwl_mvm_update_mcc(mvm, alpha2, src_id); in iwl_mvm_get_regdomain()
246 IWL_DEBUG_LAR(mvm, "Could not get update from FW %d\n", in iwl_mvm_get_regdomain()
257 resp_ver = iwl_fw_lookup_notif_ver(mvm->fw, IWL_ALWAYS_LONG_GROUP, in iwl_mvm_get_regdomain()
[all …]
Dtdls.c72 void iwl_mvm_teardown_tdls_peers(struct iwl_mvm *mvm) in iwl_mvm_teardown_tdls_peers() argument
78 lockdep_assert_held(&mvm->mutex); in iwl_mvm_teardown_tdls_peers()
80 for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) { in iwl_mvm_teardown_tdls_peers()
81 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_teardown_tdls_peers()
82 lockdep_is_held(&mvm->mutex)); in iwl_mvm_teardown_tdls_peers()
94 int iwl_mvm_tdls_sta_count(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_tdls_sta_count() argument
101 lockdep_assert_held(&mvm->mutex); in iwl_mvm_tdls_sta_count()
103 for (i = 0; i < mvm->fw->ucode_capa.num_stations; i++) { in iwl_mvm_tdls_sta_count()
104 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tdls_sta_count()
105 lockdep_is_held(&mvm->mutex)); in iwl_mvm_tdls_sta_count()
[all …]
Dmvm.h369 struct iwl_mvm *mvm; member
682 struct iwl_mvm *mvm; member
732 struct iwl_mvm *mvm; member
1187 static inline bool iwl_mvm_is_radio_killed(struct iwl_mvm *mvm) in iwl_mvm_is_radio_killed() argument
1189 return test_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status) || in iwl_mvm_is_radio_killed()
1190 test_bit(IWL_MVM_STATUS_HW_CTKILL, &mvm->status); in iwl_mvm_is_radio_killed()
1193 static inline bool iwl_mvm_is_radio_hw_killed(struct iwl_mvm *mvm) in iwl_mvm_is_radio_hw_killed() argument
1195 return test_bit(IWL_MVM_STATUS_HW_RFKILL, &mvm->status); in iwl_mvm_is_radio_hw_killed()
1198 static inline bool iwl_mvm_firmware_running(struct iwl_mvm *mvm) in iwl_mvm_firmware_running() argument
1200 return test_bit(IWL_MVM_STATUS_FIRMWARE_RUNNING, &mvm->status); in iwl_mvm_firmware_running()
[all …]
Dnvm.c91 static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_chunk() argument
112 ret = iwl_mvm_send_cmd(mvm, &cmd); in iwl_nvm_write_chunk()
120 IWL_ERR(mvm, in iwl_nvm_write_chunk()
130 static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section, in iwl_nvm_read_chunk() argument
151 ret = iwl_mvm_send_cmd(mvm, &cmd); in iwl_nvm_read_chunk()
174 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
179 IWL_DEBUG_EEPROM(mvm->trans->dev, in iwl_nvm_read_chunk()
181 ret, mvm->trans->name); in iwl_nvm_read_chunk()
188 IWL_ERR(mvm, "NVM ACCESS response with invalid offset %d\n", in iwl_nvm_read_chunk()
203 static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section, in iwl_nvm_write_section() argument
[all …]
Dsta.c73 static inline int iwl_mvm_add_sta_cmd_size(struct iwl_mvm *mvm) in iwl_mvm_add_sta_cmd_size() argument
75 if (iwl_mvm_has_new_rx_api(mvm) || in iwl_mvm_add_sta_cmd_size()
76 fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_STA_TYPE)) in iwl_mvm_add_sta_cmd_size()
82 static int iwl_mvm_find_free_sta_id(struct iwl_mvm *mvm, in iwl_mvm_find_free_sta_id() argument
89 WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)); in iwl_mvm_find_free_sta_id()
91 lockdep_assert_held(&mvm->mutex); in iwl_mvm_find_free_sta_id()
98 for (sta_id = 0; sta_id < mvm->fw->ucode_capa.num_stations; sta_id++) { in iwl_mvm_find_free_sta_id()
102 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_find_free_sta_id()
103 lockdep_is_held(&mvm->mutex))) in iwl_mvm_find_free_sta_id()
110 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in iwl_mvm_sta_send_to_fw() argument
[all …]
Dscan.c153 static inline void *iwl_mvm_get_scan_req_umac_data(struct iwl_mvm *mvm) in iwl_mvm_get_scan_req_umac_data() argument
155 struct iwl_scan_req_umac *cmd = mvm->scan_cmd; in iwl_mvm_get_scan_req_umac_data()
157 if (iwl_mvm_is_adaptive_dwell_v2_supported(mvm)) in iwl_mvm_get_scan_req_umac_data()
160 if (iwl_mvm_is_adaptive_dwell_supported(mvm)) in iwl_mvm_get_scan_req_umac_data()
163 if (iwl_mvm_cdb_scan_api(mvm)) in iwl_mvm_get_scan_req_umac_data()
170 iwl_mvm_get_scan_req_umac_channel(struct iwl_mvm *mvm) in iwl_mvm_get_scan_req_umac_channel() argument
172 struct iwl_scan_req_umac *cmd = mvm->scan_cmd; in iwl_mvm_get_scan_req_umac_channel()
174 if (iwl_mvm_is_adaptive_dwell_v2_supported(mvm)) in iwl_mvm_get_scan_req_umac_channel()
177 if (iwl_mvm_is_adaptive_dwell_supported(mvm)) in iwl_mvm_get_scan_req_umac_channel()
180 if (iwl_mvm_cdb_scan_api(mvm)) in iwl_mvm_get_scan_req_umac_channel()
[all …]
Dled.c68 static void iwl_mvm_send_led_fw_cmd(struct iwl_mvm *mvm, bool on) in iwl_mvm_send_led_fw_cmd() argument
81 if (!iwl_mvm_firmware_running(mvm)) in iwl_mvm_send_led_fw_cmd()
84 err = iwl_mvm_send_cmd(mvm, &cmd); in iwl_mvm_send_led_fw_cmd()
87 IWL_WARN(mvm, "LED command failed: %d\n", err); in iwl_mvm_send_led_fw_cmd()
90 static void iwl_mvm_led_set(struct iwl_mvm *mvm, bool on) in iwl_mvm_led_set() argument
92 if (fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_led_set()
94 iwl_mvm_send_led_fw_cmd(mvm, on); in iwl_mvm_led_set()
98 iwl_write32(mvm->trans, CSR_LED_REG, in iwl_mvm_led_set()
105 struct iwl_mvm *mvm = container_of(led_cdev, struct iwl_mvm, led); in iwl_led_brightness_set() local
107 iwl_mvm_led_set(mvm, brightness > 0); in iwl_led_brightness_set()
[all …]
Dcoex.c147 iwl_get_coex_type(struct iwl_mvm *mvm, const struct ieee80211_vif *vif) in iwl_get_coex_type() argument
174 if (mvm->cfg->bt_shared_single_ant) { in iwl_get_coex_type()
180 primary_ch_phy_id = le32_to_cpu(mvm->last_bt_ci_cmd.primary_ch_phy_id); in iwl_get_coex_type()
182 le32_to_cpu(mvm->last_bt_ci_cmd.secondary_ch_phy_id); in iwl_get_coex_type()
185 ret = le32_to_cpu(mvm->last_bt_notif.primary_ch_lut); in iwl_get_coex_type()
187 ret = le32_to_cpu(mvm->last_bt_notif.secondary_ch_lut); in iwl_get_coex_type()
195 int iwl_mvm_send_bt_init_conf(struct iwl_mvm *mvm) in iwl_mvm_send_bt_init_conf() argument
200 lockdep_assert_held(&mvm->mutex); in iwl_mvm_send_bt_init_conf()
202 if (unlikely(mvm->bt_force_ant_mode != BT_FORCE_ANT_DIS)) { in iwl_mvm_send_bt_init_conf()
203 switch (mvm->bt_force_ant_mode) { in iwl_mvm_send_bt_init_conf()
[all …]
Ddebugfs.c77 struct iwl_mvm *mvm = file->private_data; in iwl_dbgfs_ctdp_budget_read() local
81 if (!iwl_mvm_is_ctdp_supported(mvm)) in iwl_dbgfs_ctdp_budget_read()
84 if (!iwl_mvm_firmware_running(mvm) || in iwl_dbgfs_ctdp_budget_read()
85 mvm->fwrt.cur_fw_img != IWL_UCODE_REGULAR) in iwl_dbgfs_ctdp_budget_read()
88 mutex_lock(&mvm->mutex); in iwl_dbgfs_ctdp_budget_read()
89 budget = iwl_mvm_ctdp_command(mvm, CTDP_CMD_OPERATION_REPORT, 0); in iwl_dbgfs_ctdp_budget_read()
90 mutex_unlock(&mvm->mutex); in iwl_dbgfs_ctdp_budget_read()
100 static ssize_t iwl_dbgfs_stop_ctdp_write(struct iwl_mvm *mvm, char *buf, in iwl_dbgfs_stop_ctdp_write() argument
105 if (!iwl_mvm_is_ctdp_supported(mvm)) in iwl_dbgfs_stop_ctdp_write()
108 if (!iwl_mvm_firmware_running(mvm) || in iwl_dbgfs_stop_ctdp_write()
[all …]
Dd3.c79 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_set_rekey_data() local
82 mutex_lock(&mvm->mutex); in iwl_mvm_set_rekey_data()
93 mutex_unlock(&mvm->mutex); in iwl_mvm_set_rekey_data()
174 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); in iwl_mvm_wowlan_program_keys() local
222 mutex_lock(&mvm->mutex); in iwl_mvm_wowlan_program_keys()
223 ret = iwl_mvm_send_cmd_pdu(mvm, WEP_KEY, 0, in iwl_mvm_wowlan_program_keys()
227 mvm->ptk_ivlen = key->iv_len; in iwl_mvm_wowlan_program_keys()
228 mvm->ptk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
229 mvm->gtk_ivlen = key->iv_len; in iwl_mvm_wowlan_program_keys()
230 mvm->gtk_icvlen = key->icv_len; in iwl_mvm_wowlan_program_keys()
[all …]
Dftm-initiator.c96 int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif, in iwl_mvm_ftm_add_pasn_sta() argument
104 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_add_pasn_sta()
134 sta = rcu_dereference(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id]); in iwl_mvm_ftm_add_pasn_sta()
141 IWL_ERR(mvm, "Invalid key length: tk_len=%u hltk_len=%u\n", in iwl_mvm_ftm_add_pasn_sta()
152 list_add_tail(&pasn->list, &mvm->ftm_initiator.pasn_list); in iwl_mvm_ftm_add_pasn_sta()
159 void iwl_mvm_ftm_remove_pasn_sta(struct iwl_mvm *mvm, u8 *addr) in iwl_mvm_ftm_remove_pasn_sta() argument
163 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_remove_pasn_sta()
165 list_for_each_entry_safe(entry, prev, &mvm->ftm_initiator.pasn_list, in iwl_mvm_ftm_remove_pasn_sta()
176 static void iwl_mvm_ftm_reset(struct iwl_mvm *mvm) in iwl_mvm_ftm_reset() argument
180 mvm->ftm_initiator.req = NULL; in iwl_mvm_ftm_reset()
[all …]
Dsta.h456 u16 iwl_mvm_tid_queued(struct iwl_mvm *mvm, struct iwl_mvm_tid_data *tid_data);
487 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
489 int iwl_mvm_add_sta(struct iwl_mvm *mvm,
493 static inline int iwl_mvm_update_sta(struct iwl_mvm *mvm, in iwl_mvm_update_sta() argument
497 return iwl_mvm_sta_send_to_fw(mvm, sta, true, 0); in iwl_mvm_update_sta()
500 int iwl_mvm_wait_sta_queues_empty(struct iwl_mvm *mvm,
502 int iwl_mvm_rm_sta(struct iwl_mvm *mvm,
505 int iwl_mvm_rm_sta_id(struct iwl_mvm *mvm,
508 int iwl_mvm_set_sta_key(struct iwl_mvm *mvm,
513 int iwl_mvm_remove_sta_key(struct iwl_mvm *mvm,
[all …]
Dmac-ctxt.c90 struct iwl_mvm *mvm; member
228 void iwl_mvm_mac_ctxt_recalc_tsf_id(struct iwl_mvm *mvm, in iwl_mvm_mac_ctxt_recalc_tsf_id() argument
233 .mvm = mvm, in iwl_mvm_mac_ctxt_recalc_tsf_id()
241 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_recalc_tsf_id()
251 int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif) in iwl_mvm_mac_ctxt_init() argument
255 .mvm = mvm, in iwl_mvm_mac_ctxt_init()
265 lockdep_assert_held(&mvm->mutex); in iwl_mvm_mac_ctxt_init()
296 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_init()
313 if (WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))) in iwl_mvm_mac_ctxt_init()
319 IWL_ERR(mvm, "Failed to init MAC context - no free ID!\n"); in iwl_mvm_mac_ctxt_init()
[all …]
Dphy-ctxt.c135 static void iwl_mvm_phy_ctxt_set_rxchain(struct iwl_mvm *mvm, in iwl_mvm_phy_ctxt_set_rxchain() argument
153 if (active_cnt == 1 && iwl_mvm_rx_diversity_allowed(mvm)) { in iwl_mvm_phy_ctxt_set_rxchain()
158 *rxchain_info = cpu_to_le32(iwl_mvm_get_valid_rx_ant(mvm) << in iwl_mvm_phy_ctxt_set_rxchain()
164 if (unlikely(mvm->dbgfs_rx_phyinfo)) in iwl_mvm_phy_ctxt_set_rxchain()
165 *rxchain_info = cpu_to_le32(mvm->dbgfs_rx_phyinfo); in iwl_mvm_phy_ctxt_set_rxchain()
172 static void iwl_mvm_phy_ctxt_cmd_data_v1(struct iwl_mvm *mvm, in iwl_mvm_phy_ctxt_cmd_data_v1() argument
178 iwl_mvm_chan_info_cmd_tail(mvm, &cmd->ci); in iwl_mvm_phy_ctxt_cmd_data_v1()
181 iwl_mvm_set_chan_info_chandef(mvm, &cmd->ci, chandef); in iwl_mvm_phy_ctxt_cmd_data_v1()
183 iwl_mvm_phy_ctxt_set_rxchain(mvm, &tail->rxchain_info, in iwl_mvm_phy_ctxt_cmd_data_v1()
186 tail->txchain_info = cpu_to_le32(iwl_mvm_get_valid_tx_ant(mvm)); in iwl_mvm_phy_ctxt_cmd_data_v1()
[all …]
Dpower.c80 int iwl_mvm_beacon_filter_send_cmd(struct iwl_mvm *mvm, in iwl_mvm_beacon_filter_send_cmd() argument
86 IWL_DEBUG_POWER(mvm, "ba_enable_beacon_abort is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
88 IWL_DEBUG_POWER(mvm, "ba_escape_timer is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
90 IWL_DEBUG_POWER(mvm, "bf_debug_flag is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
92 IWL_DEBUG_POWER(mvm, "bf_enable_beacon_filter is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
94 IWL_DEBUG_POWER(mvm, "bf_energy_delta is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
96 IWL_DEBUG_POWER(mvm, "bf_escape_timer is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
98 IWL_DEBUG_POWER(mvm, "bf_roaming_energy_delta is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
100 IWL_DEBUG_POWER(mvm, "bf_roaming_state is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
102 IWL_DEBUG_POWER(mvm, "bf_temp_threshold is: %d\n", in iwl_mvm_beacon_filter_send_cmd()
[all …]
Drx.c76 void iwl_mvm_rx_rx_phy_cmd(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb) in iwl_mvm_rx_rx_phy_cmd() argument
80 memcpy(&mvm->last_phy_info, pkt->data, sizeof(mvm->last_phy_info)); in iwl_mvm_rx_rx_phy_cmd()
81 mvm->ampdu_ref++; in iwl_mvm_rx_rx_phy_cmd()
84 if (mvm->last_phy_info.phy_flags & cpu_to_le16(RX_RES_PHY_FLAGS_AGG)) { in iwl_mvm_rx_rx_phy_cmd()
85 spin_lock(&mvm->drv_stats_lock); in iwl_mvm_rx_rx_phy_cmd()
86 mvm->drv_rx_stats.ampdu_count++; in iwl_mvm_rx_rx_phy_cmd()
87 spin_unlock(&mvm->drv_stats_lock); in iwl_mvm_rx_rx_phy_cmd()
97 static void iwl_mvm_pass_packet_to_mac80211(struct iwl_mvm *mvm, in iwl_mvm_pass_packet_to_mac80211() argument
145 ieee80211_rx_napi(mvm->hw, sta, skb, napi); in iwl_mvm_pass_packet_to_mac80211()
154 static void iwl_mvm_get_signal_strength(struct iwl_mvm *mvm, in iwl_mvm_get_signal_strength() argument
[all …]
Dftm-responder.c133 iwl_mvm_ftm_responder_cmd(struct iwl_mvm *mvm, in iwl_mvm_ftm_responder_cmd() argument
151 u8 cmd_ver = iwl_fw_lookup_cmd_ver(mvm->fw, LOCATION_GROUP, in iwl_mvm_ftm_responder_cmd()
155 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_responder_cmd()
165 IWL_ERR(mvm, "Failed to set responder bandwidth\n"); in iwl_mvm_ftm_responder_cmd()
171 return iwl_mvm_send_cmd_pdu(mvm, iwl_cmd_id(TOF_RESPONDER_CONFIG_CMD, in iwl_mvm_ftm_responder_cmd()
177 iwl_mvm_ftm_responder_dyn_cfg_v2(struct iwl_mvm *mvm, in iwl_mvm_ftm_responder_dyn_cfg_v2() argument
200 lockdep_assert_held(&mvm->mutex); in iwl_mvm_ftm_responder_dyn_cfg_v2()
203 IWL_ERR(mvm, "LCI/civicloc data too big (%zd + %zd)\n", in iwl_mvm_ftm_responder_dyn_cfg_v2()
219 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_responder_dyn_cfg_v2()
223 iwl_mvm_ftm_responder_dyn_cfg_v3(struct iwl_mvm *mvm, in iwl_mvm_ftm_responder_dyn_cfg_v3() argument
[all …]
Dtx.c76 iwl_mvm_bar_check_trigger(struct iwl_mvm *mvm, const u8 *addr, in iwl_mvm_bar_check_trigger() argument
82 trig = iwl_fw_dbg_trigger_on(&mvm->fwrt, NULL, FW_DBG_TRIGGER_BA); in iwl_mvm_bar_check_trigger()
91 iwl_fw_dbg_collect_trig(&mvm->fwrt, trig, in iwl_mvm_bar_check_trigger()
99 static u16 iwl_mvm_tx_csum(struct iwl_mvm *mvm, struct sk_buff *skb, in iwl_mvm_tx_csum() argument
116 if (WARN_ONCE(!(mvm->hw->netdev_features & IWL_TX_CSUM_NETIF_FLAGS) || in iwl_mvm_tx_csum()
186 if (!iwl_mvm_has_new_tx_api(mvm) && info->control.hw_key && in iwl_mvm_tx_csum()
201 void iwl_mvm_set_tx_cmd(struct iwl_mvm *mvm, struct sk_buff *skb, in iwl_mvm_set_tx_cmd() argument
241 iwl_mvm_bar_check_trigger(mvm, bar->ra, tx_cmd->tid_tspec, in iwl_mvm_set_tx_cmd()
261 tx_flags |= iwl_mvm_bt_coex_tx_prio(mvm, hdr, info, ac) << in iwl_mvm_set_tx_cmd()
282 if (ieee80211_is_data(fc) && len > mvm->rts_threshold && in iwl_mvm_set_tx_cmd()
[all …]
Ddebugfs-vif.c65 static void iwl_dbgfs_update_pm(struct iwl_mvm *mvm, in iwl_dbgfs_update_pm() argument
79 IWL_DEBUG_POWER(mvm, "debugfs: set keep_alive= %d sec\n", val); in iwl_dbgfs_update_pm()
81 IWL_WARN(mvm, in iwl_dbgfs_update_pm()
88 IWL_DEBUG_POWER(mvm, "skip_over_dtim %s\n", in iwl_dbgfs_update_pm()
93 IWL_DEBUG_POWER(mvm, "skip_dtim_periods=%d\n", val); in iwl_dbgfs_update_pm()
97 IWL_DEBUG_POWER(mvm, "rx_data_timeout=%d\n", val); in iwl_dbgfs_update_pm()
101 IWL_DEBUG_POWER(mvm, "tx_data_timeout=%d\n", val); in iwl_dbgfs_update_pm()
105 IWL_DEBUG_POWER(mvm, "lprx %s\n", val ? "enabled" : "disabled"); in iwl_dbgfs_update_pm()
109 IWL_DEBUG_POWER(mvm, "lprx_rssi_threshold=%d\n", val); in iwl_dbgfs_update_pm()
113 IWL_DEBUG_POWER(mvm, "snooze_enable=%d\n", val); in iwl_dbgfs_update_pm()
[all …]
Drs.c119 typedef bool (*allow_column_func_t) (struct iwl_mvm *mvm,
132 static bool rs_ant_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_ant_allow() argument
136 return iwl_mvm_bt_coex_is_ant_avail(mvm, next_col->ant); in rs_ant_allow()
139 static bool rs_mimo_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_mimo_allow() argument
149 if (num_of_ant(iwl_mvm_get_valid_tx_ant(mvm)) < 2) in rs_mimo_allow()
152 if (!iwl_mvm_bt_coex_is_mimo_allowed(mvm, sta)) in rs_mimo_allow()
155 if (mvm->nvm_data->sku_cap_mimo_disabled) in rs_mimo_allow()
161 static bool rs_siso_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_siso_allow() argument
171 static bool rs_sgi_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_sgi_allow() argument
379 static void rs_rate_scale_perform(struct iwl_mvm *mvm,
[all …]

12