| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | mac.h | 39 if (WARN_ON(vif_id >= ARRAY_SIZE(mors->vifs))) in mm81x_rcu_dereference_vif_id() 43 return rcu_dereference(mors->vifs[vif_id]); in mm81x_rcu_dereference_vif_id() 45 return rcu_dereference_protected(mors->vifs[vif_id], in mm81x_rcu_dereference_vif_id()
|
| H A D | core.h | 331 struct ieee80211_vif __rcu *vifs[MM81X_MAX_IF]; member
|
| H A D | mac.c | 1363 RCU_INIT_POINTER(mors->vifs[mors_vif->id], NULL); in mm81x_mac_ops_remove_interface() 1612 for (vif_id = 0; vif_id < ARRAY_SIZE(mors->vifs); vif_id++) { in mm81x_mac_ops_configure_filter() 2203 if (mors_vif->id >= ARRAY_SIZE(mors->vifs)) { in mm81x_mac_ops_add_interface() 2215 rcu_assign_pointer(mors->vifs[mors_vif->id], vif); in mm81x_mac_ops_add_interface()
|
| /linux/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() 687 struct mlxsw_sp_mr_vif *mr_vif = &mr_table->vifs[vif_index]; in mlxsw_sp_mr_vif_add() 698 struct mlxsw_sp_mr_vif *mr_vif = &mr_table->vifs[vif_index]; in mlxsw_sp_mr_vif_del() 714 if (mlxsw_sp_rif_dev_is(rif, mr_table->vifs[vif_index].dev)) in mlxsw_sp_mr_dev_vif_lookup() 715 return &mr_table->vifs[vif_index]; in mlxsw_sp_mr_dev_vif_lookup() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 2454 struct ieee80211_vif_chanctx_switch *vifs) in iwl_mld_switch_vif_chanctx_swap() argument 2459 iwl_mld_unassign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() 2460 vifs[0].old_ctx); in iwl_mld_switch_vif_chanctx_swap() 2461 iwl_mld_remove_chanctx(hw, vifs[0].old_ctx); in iwl_mld_switch_vif_chanctx_swap() 2463 ret = iwl_mld_add_chanctx(hw, vifs[0].new_ctx); in iwl_mld_switch_vif_chanctx_swap() 2469 ret = iwl_mld_assign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() 2470 vifs[0].new_ctx); in iwl_mld_switch_vif_chanctx_swap() 2480 iwl_mld_remove_chanctx(hw, vifs[0].new_ctx); in iwl_mld_switch_vif_chanctx_swap() 2482 if (iwl_mld_add_chanctx(hw, vifs[0].old_ctx)) { in iwl_mld_switch_vif_chanctx_swap() 2487 if (iwl_mld_assign_vif_chanctx(hw, vifs[0].vif, vifs[0].link_conf, in iwl_mld_switch_vif_chanctx_swap() [all …]
|
| /linux/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() 291 if (!wil->vifs[i]) in wil_vif_find_free_mid() 417 if (wil->vifs[vif->mid]) { in wil_vif_add() 436 wil->vifs[vif->mid] = vif; in wil_vif_add() 506 vif = wil->vifs[mid]; in wil_vif_remove() 527 wil->vifs[mid] = NULL; in wil_vif_remove()
|
| 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 | 771 vif = wil->vifs[mid]; in wil_check_bar() 1094 struct wil6210_vif *vif = wil->vifs[mid]; in wil_rx_handle_edma() 1205 vif = wil->vifs[txdata->mid]; in wil_tx_sring_handler()
|
| H A D | pcie_bus.c | 171 vif = wil->vifs[i]; in wil_remove_all_additional_vifs()
|
| /linux/drivers/net/wireless/rsi/ |
| H A D | rsi_91x_mac80211.c | 502 if (!adapter->vifs[i] || in rsi_mac80211_add_interface() 503 !memcmp(vif->addr, adapter->vifs[i]->addr, ETH_ALEN)) { in rsi_mac80211_add_interface() 514 adapter->vifs[vap_idx] = vif; in rsi_mac80211_add_interface() 569 if (!adapter->vifs[i]) in rsi_mac80211_remove_interface() 571 if (vif == adapter->vifs[i]) { in rsi_mac80211_remove_interface() 575 adapter->vifs[i] = NULL; in rsi_mac80211_remove_interface() 606 vif = adapter->vifs[i]; in rsi_channel_change() 707 vif = adapter->vifs[i]; in rsi_mac80211_config() 1124 if (vif == adapter->vifs[ii]) in rsi_mac80211_ampdu_action() 1369 vif = adapter->vifs[i]; in rsi_fill_rx_status() [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/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | mac80211.c | 5212 struct ieee80211_vif_chanctx_switch *vifs, in iwl_mvm_switch_vif_chanctx_swap() argument 5218 ops->__unassign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() 5219 vifs[0].old_ctx, true); in iwl_mvm_switch_vif_chanctx_swap() 5220 __iwl_mvm_remove_chanctx(mvm, vifs[0].old_ctx); in iwl_mvm_switch_vif_chanctx_swap() 5222 ret = __iwl_mvm_add_chanctx(mvm, vifs[0].new_ctx); in iwl_mvm_switch_vif_chanctx_swap() 5228 ret = ops->__assign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() 5229 vifs[0].new_ctx, true); in iwl_mvm_switch_vif_chanctx_swap() 5243 __iwl_mvm_remove_chanctx(mvm, vifs[0].new_ctx); in iwl_mvm_switch_vif_chanctx_swap() 5246 if (__iwl_mvm_add_chanctx(mvm, vifs[0].old_ctx)) { in iwl_mvm_switch_vif_chanctx_swap() 5251 if (ops->__assign_vif_chanctx(mvm, vifs[0].vif, vifs[0].link_conf, in iwl_mvm_switch_vif_chanctx_swap() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | channel.c | 185 struct ieee80211_vif_chanctx_switch *vifs, in mt76_switch_vif_chanctx() argument 198 v = &vifs[i]; in mt76_switch_vif_chanctx() 223 v = &vifs[i]; in mt76_switch_vif_chanctx()
|
| /linux/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() 1147 list_for_each_entry(avp, &sc->cur_chan->vifs, list) { in ath_chanctx_send_ps_frame() 1341 INIT_LIST_HEAD(&ctx->vifs); in ath9k_offchannel_init()
|
| /linux/drivers/net/wireless/realtek/rtl8xxxu/ |
| H A D | core.c | 3576 rtl8xxxu_write8(priv, reg + i, priv->vifs[port_num]->addr[i]); in rtl8xxxu_set_mac() 4814 for (i = 0; i < ARRAY_SIZE(priv->vifs); i++) { in rtl8xxxu_set_aifs() 4817 if (!priv->vifs[i]) in rtl8xxxu_set_aifs() 4821 sta = ieee80211_find_sta(priv->vifs[i], priv->vifs[i]->bss_conf.bssid); in rtl8xxxu_set_aifs() 5649 struct ieee80211_vif *vif = priv->vifs[0]; in rtl8xxxu_update_beacon_work_callback() 5671 return priv->vifs[port_num] && in rtl8xxxu_is_packet_match_bssid() 5672 priv->vifs[port_num]->type == NL80211_IFTYPE_STATION && in rtl8xxxu_is_packet_match_bssid() 5673 priv->vifs[port_num]->cfg.assoc && in rtl8xxxu_is_packet_match_bssid() 5674 ether_addr_equal(priv->vifs[port_num]->bss_conf.bssid, hdr->addr2); in rtl8xxxu_is_packet_match_bssid() 5679 return (priv->vifs[0] && priv->vifs[0]->cfg.assoc && in rtl8xxxu_is_sta_sta() [all …]
|
| /linux/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() 1793 ar->vifs = 0; in carl9170_alloc()
|
| H A D | carl9170.h | 308 unsigned int vifs; member
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | mac.c | 8706 struct ieee80211_vif_chanctx_switch *vifs, in ath10k_mac_update_rx_channel() argument 8717 WARN_ON(ctx && vifs); in ath10k_mac_update_rx_channel() 8718 WARN_ON(vifs && !n_vifs); in ath10k_mac_update_rx_channel() 8736 if (vifs) in ath10k_mac_update_rx_channel() 8737 def = &vifs[0].new_ctx->def; in ath10k_mac_update_rx_channel() 8756 struct ieee80211_vif_chanctx_switch *vifs, in ath10k_mac_update_vif_chan() argument 8772 arvif = (void *)vifs[i].vif->drv_priv; in ath10k_mac_update_vif_chan() 8777 vifs[i].old_ctx->def.chan->center_freq, in ath10k_mac_update_vif_chan() 8778 vifs[i].new_ctx->def.chan->center_freq, in ath10k_mac_update_vif_chan() 8779 vifs[i].old_ctx->def.width, in ath10k_mac_update_vif_chan() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
| H A D | main.c | 1454 struct ieee80211_vif_chanctx_switch *vifs, in mt7921_switch_vif_chanctx() argument 1458 return mt792x_assign_vif_chanctx(hw, vifs->vif, vifs->link_conf, in mt7921_switch_vif_chanctx() 1459 vifs->new_ctx); in mt7921_switch_vif_chanctx()
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim_main.c | 3444 struct ieee80211_vif_chanctx_switch *vifs, in mac80211_hwsim_switch_vif_chanctx() argument 3457 hwsim_check_chanctx_magic(vifs[i].old_ctx); in mac80211_hwsim_switch_vif_chanctx() 3460 vifs[i].old_ctx->def.chan->center_freq, in mac80211_hwsim_switch_vif_chanctx() 3461 vifs[i].old_ctx->def.width, in mac80211_hwsim_switch_vif_chanctx() 3462 vifs[i].old_ctx->def.center_freq1, in mac80211_hwsim_switch_vif_chanctx() 3463 vifs[i].old_ctx->def.center_freq2, in mac80211_hwsim_switch_vif_chanctx() 3464 vifs[i].new_ctx->def.chan->center_freq, in mac80211_hwsim_switch_vif_chanctx() 3465 vifs[i].new_ctx->def.width, in mac80211_hwsim_switch_vif_chanctx() 3466 vifs[i].new_ctx->def.center_freq1, in mac80211_hwsim_switch_vif_chanctx() 3467 vifs[i].new_ctx->def.center_freq2); in mac80211_hwsim_switch_vif_chanctx() [all …]
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 11506 struct ieee80211_vif_chanctx_switch *vifs; member 11581 arg->vifs[arg->next_vif].vif = vif; in ath12k_mac_change_chanctx_fill_iter() 11582 arg->vifs[arg->next_vif].old_ctx = ctx; in ath12k_mac_change_chanctx_fill_iter() 11583 arg->vifs[arg->next_vif].new_ctx = ctx; in ath12k_mac_change_chanctx_fill_iter() 11584 arg->vifs[arg->next_vif].link_conf = link_conf; in ath12k_mac_change_chanctx_fill_iter() 11642 struct ieee80211_vif_chanctx_switch *vifs, in ath12k_mac_update_vif_chan() argument 11661 vif = vifs[i].vif; in ath12k_mac_update_vif_chan() 11663 link_conf = vifs[i].link_conf; in ath12k_mac_update_vif_chan() 11679 vifs[i].old_ctx->def.chan->center_freq, in ath12k_mac_update_vif_chan() 11680 vifs[i].new_ctx->def.chan->center_freq, in ath12k_mac_update_vif_chan() [all …]
|
| /linux/net/mac80211/ |
| H A D | main.c | 311 struct ieee80211_vif_chanctx_switch *vifs, in ieee80211_emulate_switch_vif_chanctx() argument 320 local->hw.conf.radar_enabled = vifs[0].new_ctx->radar_enabled; in ieee80211_emulate_switch_vif_chanctx() 321 _ieee80211_hw_conf_chan(local, vifs[0].new_ctx); in ieee80211_emulate_switch_vif_chanctx()
|
| /linux/net/ipv4/ |
| H A D | ipmr.c | 3070 struct nlattr *vifs, *af; in ipmr_rtm_dumplink() local 3097 vifs = nla_nest_start_noflag(skb, IPMRA_TABLE_VIFS); in ipmr_rtm_dumplink() 3098 if (!vifs) { in ipmr_rtm_dumplink() 3107 nla_nest_end(skb, vifs); in ipmr_rtm_dumplink() 3117 nla_nest_end(skb, vifs); in ipmr_rtm_dumplink()
|