/Linux-v5.15/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 | time-event.c | 72 struct iwl_mvm_vif *mvmvif; in iwl_mvm_roc_done_wk() local 82 mvmvif = iwl_mvm_vif_from_mac80211(mvm->p2p_device_vif); in iwl_mvm_roc_done_wk() 83 iwl_mvm_flush_sta(mvm, &mvmvif->bcast_sta, true); in iwl_mvm_roc_done_wk() 150 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_te_check_disconnect() local 155 if (!mvmvif->csa_bcn_pending && vif->bss_conf.assoc && in iwl_mvm_te_check_disconnect() 161 if (mvmvif->csa_bcn_pending) { in iwl_mvm_te_check_disconnect() 165 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, mvmvif->ap_sta_id); in iwl_mvm_te_check_disconnect() 191 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_te_handle_notify_csa() local 199 mvmvif->csa_failed = true; in iwl_mvm_te_handle_notify_csa() 209 cancel_delayed_work(&mvmvif->csa_work); in iwl_mvm_te_handle_notify_csa() [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 133 if (mvmvif->dbgfs_pm.use_ps_poll) { in iwl_mvm_power_configure_uapsd() 140 if (!mvmvif->queue_params[ac].uapsd) in iwl_mvm_power_configure_uapsd() 150 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 | 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 | 54 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_send_proto_offload() local 90 i < mvmvif->num_target_ipv6_addrs && in iwl_mvm_send_proto_offload() 96 test_bit(i, mvmvif->tentative_addrs)) { in iwl_mvm_send_proto_offload() 101 addrconf_addr_solict_mult(&mvmvif->target_ipv6_addrs[i], in iwl_mvm_send_proto_offload() 109 addrs[i].addr = mvmvif->target_ipv6_addrs[i]; in iwl_mvm_send_proto_offload() 115 if (mvmvif->num_target_ipv6_addrs - num_skipped) in iwl_mvm_send_proto_offload() 128 sizeof(mvmvif->target_ipv6_addrs[0])); in iwl_mvm_send_proto_offload() 130 for (i = 0; i < min(mvmvif->num_target_ipv6_addrs, in iwl_mvm_send_proto_offload() 133 test_bit(i, mvmvif->tentative_addrs)) in iwl_mvm_send_proto_offload() 137 &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 | 313 struct iwl_mvm_vif *mvmvif; in iwl_mvm_update_smps() local 326 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_smps() 327 mvmvif->smps_requests[req_type] = smps_request; in iwl_mvm_update_smps() 329 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC) { in iwl_mvm_update_smps() 333 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) in iwl_mvm_update_smps() 382 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_diversity_iter() local 386 if (mvmvif->phy_ctxt != data->ctxt) in iwl_mvm_diversity_iter() 390 if (mvmvif->smps_requests[i] == IEEE80211_SMPS_STATIC || in iwl_mvm_diversity_iter() 391 mvmvif->smps_requests[i] == IEEE80211_SMPS_DYNAMIC) { in iwl_mvm_diversity_iter() 448 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_update_low_latency() local [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 | mac80211.c | 775 struct iwl_mvm_vif *mvmvif = in iwl_mvm_mac_tx() local 777 u8 ap_sta_id = READ_ONCE(mvmvif->ap_sta_id); in iwl_mvm_mac_tx() 964 struct iwl_mvm_vif *mvmvif; in iwl_mvm_mac_ampdu_action() local 969 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ampdu_action() 970 cancel_delayed_work(&mvmvif->uapsd_nonagg_detected_wk); in iwl_mvm_mac_ampdu_action() 1025 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_cleanup_iterator() local 1027 mvmvif->uploaded = false; in iwl_mvm_cleanup_iterator() 1028 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_cleanup_iterator() 1031 iwl_mvm_te_clear_data(mvm, &mvmvif->time_event_data); in iwl_mvm_cleanup_iterator() 1034 mvmvif->phy_ctxt = NULL; in iwl_mvm_cleanup_iterator() [all …]
|
D | rx.c | 214 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_handle_tcm() local 241 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_handle_tcm() 245 (!mvmvif->queue_params[IEEE80211_AC_VO].uapsd && in iwl_mvm_rx_handle_tcm() 246 !mvmvif->queue_params[IEEE80211_AC_VI].uapsd && in iwl_mvm_rx_handle_tcm() 247 !mvmvif->queue_params[IEEE80211_AC_BE].uapsd && in iwl_mvm_rx_handle_tcm() 248 !mvmvif->queue_params[IEEE80211_AC_BK].uapsd) || in iwl_mvm_rx_handle_tcm() 249 mvmsta->sta_id != mvmvif->ap_sta_id) in iwl_mvm_rx_handle_tcm() 277 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() local 279 if (mvmvif->features & NETIF_F_RXCSUM && in iwl_mvm_rx_csum() 406 struct iwl_mvm_vif *mvmvif = 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 | 1560 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_add_sta() local 1592 mvmvif->id, mvmvif->color); in iwl_mvm_add_sta() 1603 mvm_sta->mac_id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_add_sta() 1604 mvmvif->color); in iwl_mvm_add_sta() 1690 WARN_ON(mvmvif->ap_sta_id != IWL_MVM_INVALID_STA); in iwl_mvm_add_sta() 1691 mvmvif->ap_sta_id = sta_id; in iwl_mvm_add_sta() 1693 WARN_ON(mvmvif->ap_sta_id == IWL_MVM_INVALID_STA); in iwl_mvm_add_sta() 1828 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_rm_sta() local 1882 mvmvif->ap_sta_id == sta_id) { in iwl_mvm_rm_sta() 1888 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_rm_sta() [all …]
|
D | phy-ctxt.c | 320 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_binding_iterator() local 322 if (!mvmvif->phy_ctxt) in iwl_mvm_binding_iterator() 327 __set_bit(mvmvif->phy_ctxt->id, data); in iwl_mvm_binding_iterator()
|
D | ftm-responder.c | 101 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_responder_cmd() local 113 .sta_id = mvmvif->bcast_sta.sta_id, in iwl_mvm_ftm_responder_cmd() 373 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_start_responder() local 388 !mvmvif->ap_ibss_active) { in iwl_mvm_ftm_start_responder()
|
D | time-event.h | 145 struct iwl_mvm_vif *mvmvif,
|
D | rxmq.c | 281 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_mgmt_prot() local 315 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_mgmt_prot() 321 key = rcu_dereference(mvmvif->bcn_prot.keys[0]); in iwl_mvm_rx_mgmt_prot() 323 key = rcu_dereference(mvmvif->bcn_prot.keys[1]); in iwl_mvm_rx_mgmt_prot() 341 key = rcu_dereference(mvmvif->bcn_prot.keys[keyid - 6]); in iwl_mvm_rx_mgmt_prot() 468 struct iwl_mvm_vif *mvmvif; in iwl_mvm_rx_csum() local 473 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in iwl_mvm_rx_csum() 475 if (mvmvif->features & NETIF_F_RXCSUM && in iwl_mvm_rx_csum() 1865 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_mpdu_mq() local 1872 if (mvmvif->csa_target_freq == rx_status->freq) in iwl_mvm_rx_mpdu_mq() [all …]
|
D | mvm.h | 1853 static inline bool iwl_mvm_vif_low_latency(struct iwl_mvm_vif *mvmvif) in iwl_mvm_vif_low_latency() argument 1865 return mvmvif->low_latency_actual; in iwl_mvm_vif_low_latency() 1869 void iwl_mvm_vif_set_low_latency(struct iwl_mvm_vif *mvmvif, bool set, in iwl_mvm_vif_set_low_latency() argument 1875 mvmvif->low_latency |= cause; in iwl_mvm_vif_set_low_latency() 1877 mvmvif->low_latency &= ~cause; in iwl_mvm_vif_set_low_latency() 1883 if (mvmvif->low_latency & LOW_LATENCY_DEBUGFS_FORCE_ENABLE && in iwl_mvm_vif_set_low_latency() 1891 new_state = !!(mvmvif->low_latency & in iwl_mvm_vif_set_low_latency() 1897 new_state = !!(mvmvif->low_latency & in iwl_mvm_vif_set_low_latency() 1901 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() 496 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ftm_put_target() local 501 sta = rcu_dereference(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id]); in iwl_mvm_ftm_put_target() 507 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 | ops.c | 211 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_apply_fw_smps_request() local 212 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_mvm_apply_fw_smps_request() 621 struct iwl_mvm_vif *mvmvif; in iwl_mvm_tx_unblock_dwork() local 632 mvmvif = iwl_mvm_vif_from_mac80211(tx_blocked_vif); in iwl_mvm_tx_unblock_dwork() 633 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_tx_unblock_dwork()
|
D | tx.c | 556 struct iwl_mvm_vif *mvmvif = in iwl_mvm_get_ctrl_vif_queue() local 580 return mvmvif->cab_queue; in iwl_mvm_get_ctrl_vif_queue() 601 struct iwl_mvm_vif *mvmvif = in iwl_mvm_probe_resp_set_noa() local 616 resp_data = rcu_dereference(mvmvif->probe_resp_data); in iwl_mvm_probe_resp_set_noa() 681 struct iwl_mvm_vif *mvmvif = in iwl_mvm_tx_skb_non_sta() local 688 sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 690 sta_id = mvmvif->mcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta()
|
D | sta.h | 542 struct iwl_mvm_vif *mvmvif,
|
D | debugfs.c | 1194 struct iwl_mvm_vif *mvmvif; in _iwl_dbgfs_inject_beacon_ie() local 1243 mvmvif = iwl_mvm_vif_from_mac80211(vif); in _iwl_dbgfs_inject_beacon_ie() 1253 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in _iwl_dbgfs_inject_beacon_ie()
|