/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs-vif.c | 14 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_update_pm() local 15 struct iwl_dbgfs_pm *dbgfs_pm = &mvmvif->dbgfs_pm; in iwl_dbgfs_update_pm() 75 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_pm_params_write() local 76 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_dbgfs_pm_params_write() 155 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_pm_params_read() local 156 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_dbgfs_pm_params_read() 171 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_dbgfs_mac_params_read() local 172 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_dbgfs_mac_params_read() 182 ap_sta_id = mvmvif->ap_sta_id; in iwl_dbgfs_mac_params_read() 208 mvmvif->id, mvmvif->color); in iwl_dbgfs_mac_params_read() [all …]
|
D | power.c | 74 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_filter_set_cqm_params() local 83 cmd->ba_enable_beacon_abort = cpu_to_le32(mvmvif->bf_data.ba_enabled); in iwl_mvm_beacon_filter_set_cqm_params() 127 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_configure_uapsd() local 146 if (mvmvif->dbgfs_pm.use_ps_poll) { in iwl_mvm_power_configure_uapsd() 153 if (!mvmvif->queue_params[ac].uapsd) in iwl_mvm_power_configure_uapsd() 163 if (!tid_found && !mvmvif->queue_params[ac].acm) { in iwl_mvm_power_configure_uapsd() 238 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_power_allow_uapsd() local 240 if (!memcmp(mvmvif->uapsd_misbehaving_bssid, vif->bss_conf.bssid, in iwl_mvm_power_allow_uapsd() 338 struct iwl_mvm_vif *mvmvif __maybe_unused = in iwl_mvm_power_build_cmd() 341 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_power_build_cmd() [all …]
|
D | time-event.c | 71 struct iwl_mvm_vif *mvmvif; in iwl_mvm_roc_done_wk() local 81 mvmvif = iwl_mvm_vif_from_mac80211(mvm->p2p_device_vif); in iwl_mvm_roc_done_wk() 82 iwl_mvm_flush_sta(mvm, &mvmvif->bcast_sta, true); in iwl_mvm_roc_done_wk() 158 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_te_check_disconnect() local 163 if (!mvmvif->csa_bcn_pending && vif->cfg.assoc && in iwl_mvm_te_check_disconnect() 169 if (mvmvif->csa_bcn_pending) { in iwl_mvm_te_check_disconnect() 173 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, mvmvif->ap_sta_id); in iwl_mvm_te_check_disconnect() 199 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_te_handle_notify_csa() local 207 mvmvif->csa_failed = true; in iwl_mvm_te_handle_notify_csa() 217 cancel_delayed_work(&mvmvif->csa_work); in iwl_mvm_te_handle_notify_csa() [all …]
|
D | mac-ctxt.c | 47 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_tsf_id_iter() local 82 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter() 93 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter() 111 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter() 122 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter() 143 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter() 145 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter() 153 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator() local 167 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator() 176 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id() local [all …]
|
D | binding.c | 73 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_iface_iterator() local 78 if (mvmvif->phy_ctxt != data->phyctxt) in iwl_mvm_iface_iterator() 84 data->ids[data->idx] = mvmvif->id; in iwl_mvm_iface_iterator() 85 data->colors[data->idx] = mvmvif->color; in iwl_mvm_iface_iterator() 94 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_binding_update() local 123 data.ids[data.idx] = mvmvif->id; in iwl_mvm_binding_update() 124 data.colors[data.idx] = mvmvif->color; in iwl_mvm_binding_update() 133 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_binding_add_vif() local 135 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) in iwl_mvm_binding_add_vif() 145 return iwl_mvm_binding_update(mvm, vif, mvmvif->phy_ctxt, true); in iwl_mvm_binding_add_vif() [all …]
|
D | offloading.c | 53 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_send_proto_offload() local 89 i < mvmvif->num_target_ipv6_addrs && in iwl_mvm_send_proto_offload() 95 test_bit(i, mvmvif->tentative_addrs)) { in iwl_mvm_send_proto_offload() 100 addrconf_addr_solict_mult(&mvmvif->target_ipv6_addrs[i], in iwl_mvm_send_proto_offload() 108 addrs[i].addr = mvmvif->target_ipv6_addrs[i]; in iwl_mvm_send_proto_offload() 114 if (mvmvif->num_target_ipv6_addrs - num_skipped) in iwl_mvm_send_proto_offload() 127 sizeof(mvmvif->target_ipv6_addrs[0])); in iwl_mvm_send_proto_offload() 129 for (i = 0; i < min(mvmvif->num_target_ipv6_addrs, in iwl_mvm_send_proto_offload() 132 test_bit(i, mvmvif->tentative_addrs)) in iwl_mvm_send_proto_offload() 136 &mvmvif->target_ipv6_addrs[i], in iwl_mvm_send_proto_offload() [all …]
|
D | coex.c | 227 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_bt_coex_enable_rssi_event() local 229 mvmvif->bf_data.last_bt_coex_event = rssi; in iwl_mvm_bt_coex_enable_rssi_event() 230 mvmvif->bf_data.bt_coex_max_thold = in iwl_mvm_bt_coex_enable_rssi_event() 232 mvmvif->bf_data.bt_coex_min_thold = in iwl_mvm_bt_coex_enable_rssi_event() 264 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_bt_notif_iterator() local 279 if (!mvmvif->ap_ibss_active) in iwl_mvm_bt_notif_iterator() 295 iwl_mvm_bt_coex_reduced_txp(mvm, mvmvif->ap_sta_id, in iwl_mvm_bt_notif_iterator() 317 if (mvmvif->phy_ctxt && in iwl_mvm_bt_notif_iterator() 318 (mvm->last_bt_notif.rrc_status & BIT(mvmvif->phy_ctxt->id))) in iwl_mvm_bt_notif_iterator() 323 mvmvif->id, bt_activity_grading, smps_mode); in iwl_mvm_bt_notif_iterator() [all …]
|
D | utils.c | 283 struct iwl_mvm_vif *mvmvif; in iwl_mvm_update_smps() local 296 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_smps() 297 mvmvif->smps_requests[req_type] = smps_request; in iwl_mvm_update_smps() 299 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC) { in iwl_mvm_update_smps() 303 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) in iwl_mvm_update_smps() 391 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_diversity_iter() local 395 if (mvmvif->phy_ctxt != data->ctxt) in iwl_mvm_diversity_iter() 399 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC || in iwl_mvm_diversity_iter() 400 mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) { in iwl_mvm_diversity_iter() 459 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_low_latency() local [all …]
|
D | mac80211.c | 684 struct iwl_mvm_vif *mvmvif = in iwl_mvm_mac_tx() local 686 u8 ap_sta_id = READ_ONCE(mvmvif->ap_sta_id); in iwl_mvm_mac_tx() 873 struct iwl_mvm_vif *mvmvif; in iwl_mvm_mac_ampdu_action() local 878 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ampdu_action() 879 cancel_delayed_work(&mvmvif->uapsd_nonagg_detected_wk); in iwl_mvm_mac_ampdu_action() 934 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_cleanup_iterator() local 936 mvmvif->uploaded = false; in iwl_mvm_cleanup_iterator() 937 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_cleanup_iterator() 940 iwl_mvm_te_clear_data(mvm, &mvmvif->time_event_data); in iwl_mvm_cleanup_iterator() 943 mvmvif->phy_ctxt = NULL; in iwl_mvm_cleanup_iterator() [all …]
|
D | quota.c | 29 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_quota_iterator() local 36 if (!mvmvif->phy_ctxt) in iwl_mvm_quota_iterator() 40 id = mvmvif->phy_ctxt->id; in iwl_mvm_quota_iterator() 55 if (mvmvif->ap_ibss_active) in iwl_mvm_quota_iterator() 59 if (mvmvif->monitor_active) in iwl_mvm_quota_iterator() 70 data->colors[id] = mvmvif->phy_ctxt->color; in iwl_mvm_quota_iterator() 72 WARN_ON_ONCE(data->colors[id] != mvmvif->phy_ctxt->color); in iwl_mvm_quota_iterator() 77 if (mvmvif->dbgfs_quota_min) in iwl_mvm_quota_iterator() 79 mvmvif->dbgfs_quota_min); in iwl_mvm_quota_iterator() 82 if (iwl_mvm_vif_low_latency(mvmvif) && !data->low_latency[id]) { in iwl_mvm_quota_iterator() [all …]
|
D | rx.c | 209 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_handle_tcm() local 236 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_handle_tcm() 240 (!mvmvif->queue_params[IEEE80211_AC_VO].uapsd && in iwl_mvm_rx_handle_tcm() 241 !mvmvif->queue_params[IEEE80211_AC_VI].uapsd && in iwl_mvm_rx_handle_tcm() 242 !mvmvif->queue_params[IEEE80211_AC_BE].uapsd && in iwl_mvm_rx_handle_tcm() 243 !mvmvif->queue_params[IEEE80211_AC_BK].uapsd) || in iwl_mvm_rx_handle_tcm() 244 mvmsta->sta_id != mvmvif->ap_sta_id) in iwl_mvm_rx_handle_tcm() 272 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() local 274 if (mvmvif->features & NETIF_F_RXCSUM && in iwl_mvm_rx_csum() 381 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_rx_rx_mpdu() local [all …]
|
D | d3.c | 24 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_rekey_data() local 28 mvmvif->rekey_data.kek_len = data->kek_len; in iwl_mvm_set_rekey_data() 29 mvmvif->rekey_data.kck_len = data->kck_len; in iwl_mvm_set_rekey_data() 30 memcpy(mvmvif->rekey_data.kek, data->kek, data->kek_len); in iwl_mvm_set_rekey_data() 31 memcpy(mvmvif->rekey_data.kck, data->kck, data->kck_len); in iwl_mvm_set_rekey_data() 32 mvmvif->rekey_data.akm = data->akm & 0xFF; in iwl_mvm_set_rekey_data() 33 mvmvif->rekey_data.replay_ctr = in iwl_mvm_set_rekey_data() 35 mvmvif->rekey_data.valid = true; in iwl_mvm_set_rekey_data() 45 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ipv6_addr_change() local 49 memset(mvmvif->tentative_addrs, 0, sizeof(mvmvif->tentative_addrs)); in iwl_mvm_ipv6_addr_change() [all …]
|
D | sf.c | 24 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_bound_iface_iterator() local 26 if (vif == data->ignore_vif || !mvmvif->phy_ctxt || in iwl_mvm_bound_iface_iterator() 33 data->sta_vif_ap_sta_id = mvmvif->ap_sta_id; in iwl_mvm_bound_iface_iterator() 223 struct iwl_mvm_vif *mvmvif = NULL; in iwl_mvm_sf_update() local 266 mvmvif = iwl_mvm_vif_from_mac80211(changed_vif); in iwl_mvm_sf_update() 267 sta_id = mvmvif->ap_sta_id; in iwl_mvm_sf_update()
|
D | sta.c | 1630 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_add_sta() local 1662 mvmvif->id, mvmvif->color); in iwl_mvm_add_sta() 1673 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_add_sta() 1674 mvmvif->color); in iwl_mvm_add_sta() 1760 WARN_ON(mvmvif->ap_sta_id != IWL_MVM_INVALID_STA); in iwl_mvm_add_sta() 1761 mvmvif->ap_sta_id = sta_id; in iwl_mvm_add_sta() 1763 WARN_ON(mvmvif->ap_sta_id == IWL_MVM_INVALID_STA); in iwl_mvm_add_sta() 1898 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_rm_sta() local 1952 mvmvif->ap_sta_id == sta_id) { in iwl_mvm_rm_sta() 1958 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_rm_sta() [all …]
|
D | phy-ctxt.c | 383 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_binding_iterator() local 385 if (!mvmvif->phy_ctxt) in iwl_mvm_binding_iterator() 390 __set_bit(mvmvif->phy_ctxt->id, data); in iwl_mvm_binding_iterator()
|
D | ftm-responder.c | 110 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_responder_cmd() local 122 .sta_id = mvmvif->bcast_sta.sta_id, in iwl_mvm_ftm_responder_cmd() 380 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_start_responder() local 395 !mvmvif->ap_ibss_active) { in iwl_mvm_ftm_start_responder()
|
D | time-event.h | 145 struct iwl_mvm_vif *mvmvif,
|
D | rxmq.c | 303 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_mgmt_prot() local 337 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 343 key = rcu_dereference(mvmvif->bcn_prot.keys[0]); in iwl_mvm_rx_mgmt_prot() 345 key = rcu_dereference(mvmvif->bcn_prot.keys[1]); in iwl_mvm_rx_mgmt_prot() 363 key = rcu_dereference(mvmvif->bcn_prot.keys[keyid - 6]); in iwl_mvm_rx_mgmt_prot() 490 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_csum() local 495 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 497 if (mvmvif->features & NETIF_F_RXCSUM && in iwl_mvm_rx_csum() 1961 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_mpdu_mq() local 1968 if (mvmvif->csa_target_freq == rx_status->freq) in iwl_mvm_rx_mpdu_mq() [all …]
|
D | mvm.h | 1874 static inline bool iwl_mvm_vif_low_latency(struct iwl_mvm_vif *mvmvif) in iwl_mvm_vif_low_latency() argument 1886 return mvmvif->low_latency_actual; in iwl_mvm_vif_low_latency() 1890 void iwl_mvm_vif_set_low_latency(struct iwl_mvm_vif *mvmvif, bool set, in iwl_mvm_vif_set_low_latency() argument 1896 mvmvif->low_latency |= cause; in iwl_mvm_vif_set_low_latency() 1898 mvmvif->low_latency &= ~cause; in iwl_mvm_vif_set_low_latency() 1904 if (mvmvif->low_latency & LOW_LATENCY_DEBUGFS_FORCE_ENABLE && in iwl_mvm_vif_set_low_latency() 1912 new_state = !!(mvmvif->low_latency & in iwl_mvm_vif_set_low_latency() 1918 new_state = !!(mvmvif->low_latency & in iwl_mvm_vif_set_low_latency() 1922 mvmvif->low_latency_actual = new_state; in iwl_mvm_vif_set_low_latency()
|
D | ftm-initiator.c | 72 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_add_pasn_sta() local 76 sta = rcu_dereference(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id]); in iwl_mvm_ftm_add_pasn_sta() 263 struct iwl_mvm_vif *mvmvif = in iwl_mvm_ftm_cmd_common() local 266 cmd->tsf_mac_id = cpu_to_le32(mvmvif->id); in iwl_mvm_ftm_cmd_common() 508 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_put_target() local 513 sta = rcu_dereference(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id]); in iwl_mvm_ftm_put_target() 519 target->sta_id = mvmvif->ap_sta_id; in iwl_mvm_ftm_put_target()
|
D | tdls.c | 78 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_tdls_config() local 83 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); in iwl_mvm_tdls_config()
|
D | tx.c | 606 struct iwl_mvm_vif *mvmvif = in iwl_mvm_get_ctrl_vif_queue() local 630 return mvmvif->cab_queue; in iwl_mvm_get_ctrl_vif_queue() 651 struct iwl_mvm_vif *mvmvif = in iwl_mvm_probe_resp_set_noa() local 667 resp_data = rcu_dereference(mvmvif->probe_resp_data); in iwl_mvm_probe_resp_set_noa() 732 struct iwl_mvm_vif *mvmvif = in iwl_mvm_tx_skb_non_sta() local 739 sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 741 sta_id = mvmvif->mcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta()
|
D | sta.h | 544 struct iwl_mvm_vif *mvmvif,
|
D | ops.c | 210 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_apply_fw_smps_request() local 211 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_mvm_apply_fw_smps_request() 641 struct iwl_mvm_vif *mvmvif; in iwl_mvm_tx_unblock_dwork() local 652 mvmvif = iwl_mvm_vif_from_mac80211(tx_blocked_vif); in iwl_mvm_tx_unblock_dwork() 653 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_tx_unblock_dwork()
|
D | scan.c | 192 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_scan_iterator() local 196 if (vif->type != NL80211_IFTYPE_P2P_DEVICE && mvmvif->phy_ctxt && in iwl_mvm_scan_iterator() 197 mvmvif->phy_ctxt->id < NUM_PHY_CTX) in iwl_mvm_scan_iterator() 206 mvmvif->phy_ctxt && curr_mvmvif->phy_ctxt && in iwl_mvm_scan_iterator() 207 mvmvif->phy_ctxt->id != curr_mvmvif->phy_ctxt->id) in iwl_mvm_scan_iterator() 2673 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_scan_respect_p2p_go_iter() local 2680 mvmvif->phy_ctxt->id < NUM_PHY_CTX && in iwl_mvm_scan_respect_p2p_go_iter() 2682 mvmvif->phy_ctxt->channel->band == data->band)) in iwl_mvm_scan_respect_p2p_go_iter()
|