| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | power.c | 657 if (vifs->bss_vif) in iwl_mvm_power_set_pm() 660 if (vifs->p2p_vif) in iwl_mvm_power_set_pm() 663 if (vifs->ap_vif) in iwl_mvm_power_set_pm() 671 if (bss_mvmvif && vifs->bss_active && !vifs->p2p_active && in iwl_mvm_power_set_pm() 678 if (p2p_mvmvif && vifs->p2p_active && !vifs->bss_active && in iwl_mvm_power_set_pm() 684 if (p2p_mvmvif && bss_mvmvif && vifs->bss_active && vifs->p2p_active) in iwl_mvm_power_set_pm() 688 if (bss_mvmvif && ap_mvmvif && vifs->bss_active && vifs->ap_active) in iwl_mvm_power_set_pm() 947 if (vifs.bss_vif) in iwl_mvm_power_update_ps() 973 if (vifs.bss_vif) { in iwl_mvm_power_update_mac() 979 if (vifs.p2p_vif) { in iwl_mvm_power_update_mac() [all …]
|
| H A D | mac80211.c | 5380 ops->__unassign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() 5381 vifs[0].old_ctx, true); in iwl_mvm_switch_vif_chanctx_swap() 5390 ret = ops->__assign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() 5391 vifs[0].new_ctx, true); in iwl_mvm_switch_vif_chanctx_swap() 5413 if (ops->__assign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() 5414 vifs[0].old_ctx, true)) { in iwl_mvm_switch_vif_chanctx_swap() 5435 ops->__unassign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_reassign() 5436 vifs[0].old_ctx, true); in iwl_mvm_switch_vif_chanctx_reassign() 5438 ret = ops->__assign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_reassign() 5439 vifs[0].new_ctx, true); in iwl_mvm_switch_vif_chanctx_reassign() [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/ |
| H A D | channel.c | 191 struct ieee80211_vif_chanctx_switch *vifs, in mt76_switch_vif_chanctx() argument 195 struct mt76_chanctx *old_ctx = (struct mt76_chanctx *)vifs->old_ctx->drv_priv; in mt76_switch_vif_chanctx() 197 struct ieee80211_chanctx_conf *conf = vifs->new_ctx; in mt76_switch_vif_chanctx() 227 ret = mt76_phy_update_channel(phy, vifs->new_ctx); in mt76_switch_vif_chanctx() 236 mlink = mt76_vif_conf_link(dev, vifs[i].vif, vifs[i].link_conf); in mt76_switch_vif_chanctx() 240 dev->drv->vif_link_remove(old_phy, vifs[i].vif, in mt76_switch_vif_chanctx() 241 vifs[i].link_conf, mlink); in mt76_switch_vif_chanctx() 243 ret = dev->drv->vif_link_add(phy, vifs[i].vif, in mt76_switch_vif_chanctx() 244 vifs[i].link_conf, mlink); in mt76_switch_vif_chanctx() 252 mlink = mt76_vif_conf_link(dev, vifs[i].vif, vifs[i].link_conf); in mt76_switch_vif_chanctx() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_mr.c | 69 struct mlxsw_sp_mr_vif vifs[MAXVIFS]; member 323 &mr_table->vifs[i]); in mlxsw_sp_mr_route_create() 326 if (mr_table->vifs[i].dev && in mlxsw_sp_mr_route_create() 327 mr_table->vifs[i].dev->mtu < mr_route->min_mtu) in mlxsw_sp_mr_route_create() 328 mr_route->min_mtu = mr_table->vifs[i].dev->mtu; in mlxsw_sp_mr_route_create() 332 &mr_table->vifs[mfc->mfc_parent]); in mlxsw_sp_mr_route_create() 713 return &mr_table->vifs[vif_index]; in mlxsw_sp_mr_dev_vif_lookup() 929 INIT_LIST_HEAD(&mr_table->vifs[i].route_evif_list); in mlxsw_sp_mr_table_create() 979 mr_table->vifs[i].dev = NULL; in mlxsw_sp_mr_table_flush() 980 mr_table->vifs[i].rif = NULL; in mlxsw_sp_mr_table_flush() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 2281 iwl_mld_unassign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() 2282 vifs[0].old_ctx); in iwl_mld_switch_vif_chanctx_swap() 2291 ret = iwl_mld_assign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() 2292 vifs[0].new_ctx); in iwl_mld_switch_vif_chanctx_swap() 2309 if (iwl_mld_assign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() 2310 vifs[0].old_ctx)) in iwl_mld_switch_vif_chanctx_swap() 2323 iwl_mld_unassign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_reassign() 2324 vifs[0].old_ctx); in iwl_mld_switch_vif_chanctx_reassign() 2325 ret = iwl_mld_assign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_reassign() 2326 vifs[0].new_ctx); in iwl_mld_switch_vif_chanctx_reassign() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/wil6210/ |
| H A D | netdev.c | 20 vif = wil->vifs[i]; in wil_has_other_active_ifaces() 150 vif = wil->vifs[txdata->mid]; in wil6210_netdev_poll_tx() 290 if (!wil->vifs[i]) in wil_vif_find_free_mid() 416 if (wil->vifs[vif->mid]) { in wil_vif_add() 435 wil->vifs[vif->mid] = vif; in wil_vif_add() 505 vif = wil->vifs[mid]; in wil_vif_remove() 526 wil->vifs[mid] = NULL; in wil_vif_remove()
|
| H A D | pm.c | 19 struct wil6210_vif *vif = wil->vifs[i]; in wil_pm_wake_connected_net_queues() 33 struct wil6210_vif *vif = wil->vifs[i]; in wil_pm_stop_all_net_queues() 116 struct wil6210_vif *vif = wil->vifs[i]; in wil_can_suspend()
|
| H A D | main.c | 679 vif = wil->vifs[i]; in wil_bcast_fini_all() 1490 struct wil6210_vif *vif = wil->vifs[i]; in wil_abort_scan_all_vifs() 1554 vif = wil->vifs[i]; in wil_restore_vifs() 1644 vif = wil->vifs[i]; in wil_reset()
|
| H A D | debugfs.c | 1423 vif = (mid < GET_MAX_VIFS(wil)) ? wil->vifs[mid] : NULL; in link_show() 1624 struct wil6210_vif *vif = wil->vifs[mid]; in sta_show() 1690 vif = wil->vifs[i]; in mids_show() 1912 vif = wil->vifs[i]; in wil_link_stats_debugfs_show() 1968 vif = wil->vifs[i]; in wil_link_stats_write()
|
| H A D | rx_reorder.c | 101 vif = wil->vifs[mid]; in wil_rx_reorder()
|
| H A D | txrx_edma.c | 773 vif = wil->vifs[mid]; in wil_check_bar() 1096 struct wil6210_vif *vif = wil->vifs[mid]; in wil_rx_handle_edma() 1207 vif = wil->vifs[txdata->mid]; in wil_tx_sring_handler()
|
| /linux-6.15/net/mac80211/ |
| H A D | driver-ops.c | 384 struct ieee80211_vif_chanctx_switch *vifs, in drv_switch_vif_chanctx() argument 398 container_of(vifs[i].new_ctx, in drv_switch_vif_chanctx() 402 container_of(vifs[i].old_ctx, in drv_switch_vif_chanctx() 413 trace_drv_switch_vif_chanctx(local, vifs, n_vifs, mode); in drv_switch_vif_chanctx() 415 vifs, n_vifs, mode); in drv_switch_vif_chanctx() 421 container_of(vifs[i].new_ctx, in drv_switch_vif_chanctx() 425 container_of(vifs[i].old_ctx, in drv_switch_vif_chanctx()
|
| H A D | trace.h | 1692 #define SWITCH_ENTRY_ASSIGN(to, from) local_vifs[i].to = vifs[i].from 1697 struct ieee80211_vif_chanctx_switch *vifs, 1699 TP_ARGS(local, vifs, n_vifs, mode), 1705 __dynamic_array(u8, vifs, 1715 __get_dynamic_array(vifs); 1721 sdata = container_of(vifs[i].vif,
|
| H A D | main.c | 310 struct ieee80211_vif_chanctx_switch *vifs, in ieee80211_emulate_switch_vif_chanctx() argument 319 local->hw.conf.radar_enabled = vifs[0].new_ctx->radar_enabled; in ieee80211_emulate_switch_vif_chanctx() 320 _ieee80211_hw_conf_chan(local, vifs[0].new_ctx); in ieee80211_emulate_switch_vif_chanctx()
|
| /linux-6.15/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_mac80211.c | 487 if (!adapter->vifs[i] || in rsi_mac80211_add_interface() 499 adapter->vifs[vap_idx] = vif; in rsi_mac80211_add_interface() 554 if (!adapter->vifs[i]) in rsi_mac80211_remove_interface() 556 if (vif == adapter->vifs[i]) { in rsi_mac80211_remove_interface() 560 adapter->vifs[i] = NULL; in rsi_mac80211_remove_interface() 591 vif = adapter->vifs[i]; in rsi_channel_change() 690 vif = adapter->vifs[i]; in rsi_mac80211_config() 1107 if (vif == adapter->vifs[ii]) in rsi_mac80211_ampdu_action() 1351 vif = adapter->vifs[i]; in rsi_fill_rx_status() 1729 vif = adapter->vifs[cnt]; in rsi_resume_conn_channel() [all …]
|
| H A D | rsi_main.h | 357 struct ieee80211_vif *vifs[RSI_MAX_VIFS]; member
|
| H A D | rsi_91x_core.c | 358 vif = adapter->vifs[i]; in rsi_get_vif()
|
| /linux-6.15/drivers/net/wireless/ath/ath9k/ |
| H A D | channel.c | 119 INIT_LIST_HEAD(&ctx->vifs); in ath_chanctx_init() 169 list_for_each_entry(avp, &ctx->vifs, list) { in ath_is_go_chanctx_present() 275 list_for_each_entry(avp, &ctx->vifs, list) { in ath_chanctx_check_active() 292 if (!ctx->assigned || list_empty(&ctx->vifs)) in ath_chanctx_check_active() 862 if (!ctx->assigned || list_empty(&ctx->vifs)) in ath_chanctx_get_oper_chan() 1149 list_for_each_entry(avp, &sc->cur_chan->vifs, list) { in ath_chanctx_send_ps_frame() 1343 INIT_LIST_HEAD(&ctx->vifs); in ath9k_offchannel_init()
|
| /linux-6.15/drivers/net/wireless/realtek/rtl8xxxu/ |
| H A D | core.c | 4886 if (!priv->vifs[i]) in rtl8xxxu_set_aifs() 4890 sta = ieee80211_find_sta(priv->vifs[i], priv->vifs[i]->bss_conf.bssid); in rtl8xxxu_set_aifs() 5728 return (priv->vifs[0] && priv->vifs[0]->cfg.assoc && in rtl8xxxu_is_sta_sta() 5730 (priv->vifs[1] && priv->vifs[1]->cfg.assoc && in rtl8xxxu_is_sta_sta() 6071 return (priv->vifs[0] && priv->vifs[0]->cfg.assoc) || in rtl8xxxu_is_assoc() 6072 (priv->vifs[1] && priv->vifs[1]->cfg.assoc); in rtl8xxxu_is_assoc() 6755 swap(priv->vifs[0], priv->vifs[1]); in rtl8xxxu_switch_ports() 6775 if (!priv->vifs[0]) in rtl8xxxu_add_interface() 6777 else if (!priv->vifs[1]) in rtl8xxxu_add_interface() 6820 priv->vifs[port_num] = vif; in rtl8xxxu_add_interface() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/carl9170/ |
| H A D | main.c | 676 ar->vifs++; in carl9170_op_add_interface() 734 ar->vifs--; in carl9170_op_add_interface() 740 if (ar->vifs > 1) in carl9170_op_add_interface() 762 ar->vifs--; in carl9170_op_remove_interface() 778 if (ar->vifs) { in carl9170_op_remove_interface() 802 if (ar->vifs == 1) in carl9170_op_remove_interface() 1788 ar->vifs = 0; in carl9170_alloc()
|
| H A D | carl9170.h | 308 unsigned int vifs; member
|
| /linux-6.15/drivers/net/wireless/ath/ath10k/ |
| H A D | mac.c | 8682 WARN_ON(ctx && vifs); in ath10k_mac_update_rx_channel() 8683 WARN_ON(vifs && !n_vifs); in ath10k_mac_update_rx_channel() 8701 if (vifs) in ath10k_mac_update_rx_channel() 8702 def = &vifs[0].new_ctx->def; in ath10k_mac_update_rx_channel() 8737 arvif = (void *)vifs[i].vif->drv_priv; in ath10k_mac_update_vif_chan() 8744 vifs[i].old_ctx->def.width, in ath10k_mac_update_vif_chan() 8745 vifs[i].new_ctx->def.width); in ath10k_mac_update_vif_chan() 8886 arg->vifs[arg->next_vif].vif = vif; in ath10k_mac_change_chanctx_fill_iter() 8921 arg.vifs = kcalloc(arg.n_vifs, sizeof(arg.vifs[0]), in ath10k_mac_op_change_chanctx() 8923 if (!arg.vifs) in ath10k_mac_op_change_chanctx() [all …]
|
| /linux-6.15/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 9175 arg->vifs[arg->next_vif].vif = vif; in ath12k_mac_change_chanctx_fill_iter() 9176 arg->vifs[arg->next_vif].old_ctx = ctx; in ath12k_mac_change_chanctx_fill_iter() 9253 vif = vifs[i].vif; in ath12k_mac_update_vif_chan() 9255 link_conf = vifs[i].link_conf; in ath12k_mac_update_vif_chan() 9268 vifs[i].old_ctx->def.width, in ath12k_mac_update_vif_chan() 9269 vifs[i].new_ctx->def.width); in ath12k_mac_update_vif_chan() 9325 vifs[i].new_ctx->def); in ath12k_mac_update_vif_chan() 9329 vifs[i].new_ctx->def.punctured, in ath12k_mac_update_vif_chan() 9358 arg.vifs = kcalloc(arg.n_vifs, sizeof(arg.vifs[0]), GFP_KERNEL); in ath12k_mac_update_active_vif_chan() 9359 if (!arg.vifs) in ath12k_mac_update_active_vif_chan() [all …]
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7921/ |
| H A D | main.c | 1417 struct ieee80211_vif_chanctx_switch *vifs, in mt7921_switch_vif_chanctx() argument 1421 return mt792x_assign_vif_chanctx(hw, vifs->vif, vifs->link_conf, in mt7921_switch_vif_chanctx() 1422 vifs->new_ctx); in mt7921_switch_vif_chanctx()
|
| /linux-6.15/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim.c | 3254 hwsim_check_chanctx_magic(vifs[i].old_ctx); in mac80211_hwsim_switch_vif_chanctx() 3257 vifs[i].old_ctx->def.chan->center_freq, in mac80211_hwsim_switch_vif_chanctx() 3258 vifs[i].old_ctx->def.width, in mac80211_hwsim_switch_vif_chanctx() 3259 vifs[i].old_ctx->def.center_freq1, in mac80211_hwsim_switch_vif_chanctx() 3260 vifs[i].old_ctx->def.center_freq2, in mac80211_hwsim_switch_vif_chanctx() 3261 vifs[i].new_ctx->def.chan->center_freq, in mac80211_hwsim_switch_vif_chanctx() 3262 vifs[i].new_ctx->def.width, in mac80211_hwsim_switch_vif_chanctx() 3263 vifs[i].new_ctx->def.center_freq1, in mac80211_hwsim_switch_vif_chanctx() 3264 vifs[i].new_ctx->def.center_freq2); in mac80211_hwsim_switch_vif_chanctx() 3268 hwsim_check_chanctx_magic(vifs[i].new_ctx); in mac80211_hwsim_switch_vif_chanctx() [all …]
|