Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/net/wireless/ath/ath10k/
Dmac.c235 static int ath10k_send_key(struct ath10k_vif *arvif, in ath10k_send_key() argument
240 struct ath10k *ar = arvif->ar; in ath10k_send_key()
242 .vdev_id = arvif->vdev_id, in ath10k_send_key()
250 lockdep_assert_held(&arvif->ar->conf_mutex); in ath10k_send_key()
293 return ath10k_wmi_vdev_install_key(arvif->ar, &arg); in ath10k_send_key()
296 static int ath10k_install_key(struct ath10k_vif *arvif, in ath10k_install_key() argument
301 struct ath10k *ar = arvif->ar; in ath10k_install_key()
309 if (arvif->nohwcrypt) in ath10k_install_key()
312 ret = ath10k_send_key(arvif, key, cmd, macaddr, flags); in ath10k_install_key()
323 static int ath10k_install_peer_wep_keys(struct ath10k_vif *arvif, in ath10k_install_peer_wep_keys() argument
[all …]
Dp2p.c70 static void ath10k_p2p_noa_ie_assign(struct ath10k_vif *arvif, void *ie, in ath10k_p2p_noa_ie_assign() argument
73 struct ath10k *ar = arvif->ar; in ath10k_p2p_noa_ie_assign()
77 kfree(arvif->u.ap.noa_data); in ath10k_p2p_noa_ie_assign()
79 arvif->u.ap.noa_data = ie; in ath10k_p2p_noa_ie_assign()
80 arvif->u.ap.noa_len = len; in ath10k_p2p_noa_ie_assign()
83 static void __ath10k_p2p_noa_update(struct ath10k_vif *arvif, in __ath10k_p2p_noa_update() argument
86 struct ath10k *ar = arvif->ar; in __ath10k_p2p_noa_update()
92 ath10k_p2p_noa_ie_assign(arvif, NULL, 0); in __ath10k_p2p_noa_update()
103 ath10k_p2p_noa_ie_assign(arvif, ie, len); in __ath10k_p2p_noa_update()
106 void ath10k_p2p_noa_update(struct ath10k_vif *arvif, in ath10k_p2p_noa_update() argument
[all …]
Dwow.c24 static int ath10k_wow_vif_cleanup(struct ath10k_vif *arvif) in ath10k_wow_vif_cleanup() argument
26 struct ath10k *ar = arvif->ar; in ath10k_wow_vif_cleanup()
30 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath10k_wow_vif_cleanup()
33 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
39 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath10k_wow_vif_cleanup()
42 i, arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
52 struct ath10k_vif *arvif; in ath10k_wow_cleanup() local
57 list_for_each_entry(arvif, &ar->arvifs, list) { in ath10k_wow_cleanup()
58 ret = ath10k_wow_vif_cleanup(arvif); in ath10k_wow_cleanup()
61 arvif->vdev_id, ret); in ath10k_wow_cleanup()
[all …]
Dmac.h44 void ath10k_mac_vif_beacon_free(struct ath10k_vif *arvif);
64 void ath10k_mac_vif_tx_lock(struct ath10k_vif *arvif, int reason);
65 void ath10k_mac_vif_tx_unlock(struct ath10k_vif *arvif, int reason);
82 struct ath10k_vif *arvif = (void *)vif->drv_priv; in ath10k_tx_h_seq_no() local
85 if (arvif->tx_seq_no == 0) in ath10k_tx_h_seq_no()
86 arvif->tx_seq_no = 0x1000; in ath10k_tx_h_seq_no()
89 arvif->tx_seq_no += 0x10; in ath10k_tx_h_seq_no()
91 hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); in ath10k_tx_h_seq_no()
Dspectral.c163 struct ath10k_vif *arvif; in ath10k_get_spectral_vdev() local
171 list_for_each_entry(arvif, &ar->arvifs, list) in ath10k_get_spectral_vdev()
172 if (arvif->spectral_enabled) in ath10k_get_spectral_vdev()
173 return arvif; in ath10k_get_spectral_vdev()
176 return list_first_entry(&ar->arvifs, typeof(*arvif), list); in ath10k_get_spectral_vdev()
181 struct ath10k_vif *arvif; in ath10k_spectral_scan_trigger() local
187 arvif = ath10k_get_spectral_vdev(ar); in ath10k_spectral_scan_trigger()
188 if (!arvif) in ath10k_spectral_scan_trigger()
190 vdev_id = arvif->vdev_id; in ath10k_spectral_scan_trigger()
214 struct ath10k_vif *arvif; in ath10k_spectral_scan_config() local
[all …]
Ddebugfs_sta.c181 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_read_aggr_mode()
200 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_aggr_mode()
217 ret = ath10k_wmi_addba_clear_resp(ar, arsta->arvif->vdev_id, sta->addr); in ath10k_dbg_sta_write_aggr_mode()
243 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_addba()
268 ret = ath10k_wmi_addba_send(ar, arsta->arvif->vdev_id, sta->addr, in ath10k_dbg_sta_write_addba()
272 arsta->arvif->vdev_id, sta->addr, tid, buf_size); in ath10k_dbg_sta_write_addba()
294 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_addba_resp()
319 ret = ath10k_wmi_addba_set_resp(ar, arsta->arvif->vdev_id, sta->addr, in ath10k_dbg_sta_write_addba_resp()
323 arsta->arvif->vdev_id, sta->addr, tid, status); in ath10k_dbg_sta_write_addba_resp()
344 struct ath10k *ar = arsta->arvif->ar; in ath10k_dbg_sta_write_delba()
[all …]
Dspectral.h43 int ath10k_spectral_vif_stop(struct ath10k_vif *arvif);
63 static inline int ath10k_spectral_vif_stop(struct ath10k_vif *arvif) in ath10k_spectral_vif_stop() argument
Dp2p.h12 void ath10k_p2p_noa_update(struct ath10k_vif *arvif,
Dwmi.c1839 static void ath10k_wmi_tx_beacon_nowait(struct ath10k_vif *arvif) in ath10k_wmi_tx_beacon_nowait() argument
1841 struct ath10k *ar = arvif->ar; in ath10k_wmi_tx_beacon_nowait()
1850 bcn = arvif->beacon; in ath10k_wmi_tx_beacon_nowait()
1857 switch (arvif->beacon_state) { in ath10k_wmi_tx_beacon_nowait()
1862 arvif->beacon_state = ATH10K_BEACON_SENDING; in ath10k_wmi_tx_beacon_nowait()
1867 ret = ath10k_wmi_beacon_send_ref_nowait(arvif->ar, in ath10k_wmi_tx_beacon_nowait()
1868 arvif->vdev_id, in ath10k_wmi_tx_beacon_nowait()
1877 arvif->beacon_state = ATH10K_BEACON_SENT; in ath10k_wmi_tx_beacon_nowait()
1879 arvif->beacon_state = ATH10K_BEACON_SCHEDULED; in ath10k_wmi_tx_beacon_nowait()
1889 struct ath10k_vif *arvif = (void *)vif->drv_priv; in ath10k_wmi_tx_beacons_iter() local
[all …]
Dhtt_rx.c1112 struct ath10k_vif *arvif; in ath10k_htt_rx_h_peer_channel() local
1140 arvif = ath10k_get_arvif(ar, peer->vdev_id); in ath10k_htt_rx_h_peer_channel()
1141 if (WARN_ON_ONCE(!arvif)) in ath10k_htt_rx_h_peer_channel()
1144 if (ath10k_mac_vif_chan(arvif->vif, &def)) in ath10k_htt_rx_h_peer_channel()
1153 struct ath10k_vif *arvif; in ath10k_htt_rx_h_vdev_channel() local
1158 list_for_each_entry(arvif, &ar->arvifs, list) { in ath10k_htt_rx_h_vdev_channel()
1159 if (arvif->vdev_id == vdev_id && in ath10k_htt_rx_h_vdev_channel()
1160 ath10k_mac_vif_chan(arvif->vif, &def) == 0) in ath10k_htt_rx_h_vdev_channel()
3077 struct ath10k_vif *arvif; in ath10k_htt_rx_addba() local
3097 arvif = ath10k_get_arvif(ar, peer->vdev_id); in ath10k_htt_rx_addba()
[all …]
/Linux-v6.1/drivers/net/wireless/ath/ath11k/
Dmac.c565 struct ath11k_vif *arvif = (void *)vif->drv_priv; in ath11k_get_arvif_iter() local
567 if (arvif->vdev_id == arvif_iter->vdev_id) in ath11k_get_arvif_iter()
568 arvif_iter->arvif = arvif; in ath11k_get_arvif_iter()
584 if (!arvif_iter.arvif) { in ath11k_mac_get_arvif()
589 return arvif_iter.arvif; in ath11k_mac_get_arvif()
597 struct ath11k_vif *arvif; in ath11k_mac_get_arvif_by_vdev_id() local
603 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id()
604 if (arvif) in ath11k_mac_get_arvif_by_vdev_id()
605 return arvif; in ath11k_mac_get_arvif_by_vdev_id()
655 struct ath11k_vif *arvif; in ath11k_mac_get_vif_up() local
[all …]
Dwow.c96 static int ath11k_wow_vif_cleanup(struct ath11k_vif *arvif) in ath11k_wow_vif_cleanup() argument
98 struct ath11k *ar = arvif->ar; in ath11k_wow_vif_cleanup()
102 ret = ath11k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath11k_wow_vif_cleanup()
105 wow_wakeup_event(i), arvif->vdev_id, ret); in ath11k_wow_vif_cleanup()
111 ret = ath11k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath11k_wow_vif_cleanup()
114 i, arvif->vdev_id, ret); in ath11k_wow_vif_cleanup()
124 struct ath11k_vif *arvif; in ath11k_wow_cleanup() local
129 list_for_each_entry(arvif, &ar->arvifs, list) { in ath11k_wow_cleanup()
130 ret = ath11k_wow_vif_cleanup(arvif); in ath11k_wow_cleanup()
133 arvif->vdev_id, ret); in ath11k_wow_cleanup()
[all …]
Ddebugfs.c390 struct ath11k_vif *arvif; in ath11k_open_bcn_stats() local
412 list_for_each_entry(arvif, &ar->arvifs, list) { in ath11k_open_bcn_stats()
413 if (!arvif->is_up) in ath11k_open_bcn_stats()
416 req_param.vdev_id = arvif->vdev_id; in ath11k_open_bcn_stats()
1645 struct ath11k_vif *arvif = file->private_data; in ath11k_write_twt_add_dialog() local
1648 struct ath11k *ar = arvif->ar; in ath11k_write_twt_add_dialog()
1690 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_write_twt_add_dialog()
1699 params.vdev_id = arvif->vdev_id; in ath11k_write_twt_add_dialog()
1701 ret = ath11k_wmi_send_twt_add_dialog_cmd(arvif->ar, &params); in ath11k_write_twt_add_dialog()
1708 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_write_twt_add_dialog()
[all …]
Ddebugfs_sta.c140 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_dump_tx_stats()
247 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_dump_rx_stats()
344 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_open_htt_peer_stats()
380 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_release_htt_peer_stats()
417 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_write_peer_pktlog()
457 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_read_peer_pktlog()
484 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_write_delba()
509 ret = ath11k_wmi_delba_send(ar, arsta->arvif->vdev_id, sta->addr, in ath11k_dbg_sta_write_delba()
513 arsta->arvif->vdev_id, sta->addr, tid, initiator, in ath11k_dbg_sta_write_delba()
535 struct ath11k *ar = arsta->arvif->ar; in ath11k_dbg_sta_write_addba_resp()
[all …]
Dspectral.c157 struct ath11k_vif *arvif; in ath11k_spectral_get_vdev() local
165 list_for_each_entry(arvif, &ar->arvifs, list) in ath11k_spectral_get_vdev()
166 if (arvif->spectral_enabled) in ath11k_spectral_get_vdev()
167 return arvif; in ath11k_spectral_get_vdev()
170 return list_first_entry(&ar->arvifs, typeof(*arvif), list); in ath11k_spectral_get_vdev()
175 struct ath11k_vif *arvif; in ath11k_spectral_scan_trigger() local
180 arvif = ath11k_spectral_get_vdev(ar); in ath11k_spectral_scan_trigger()
181 if (!arvif) in ath11k_spectral_scan_trigger()
189 ret = ath11k_wmi_vdev_spectral_enable(ar, arvif->vdev_id, in ath11k_spectral_scan_trigger()
195 ret = ath11k_wmi_vdev_spectral_enable(ar, arvif->vdev_id, in ath11k_spectral_scan_trigger()
[all …]
Dspectral.h45 int ath11k_spectral_vif_stop(struct ath11k_vif *arvif);
61 static inline int ath11k_spectral_vif_stop(struct ath11k_vif *arvif) in ath11k_spectral_vif_stop() argument
Ddp.c966 static void ath11k_dp_update_vdev_search(struct ath11k_vif *arvif) in ath11k_dp_update_vdev_search() argument
973 switch (arvif->vdev_type) { in ath11k_dp_update_vdev_search()
975 if (arvif->ar->ab->hw_params.htt_peer_map_v2) { in ath11k_dp_update_vdev_search()
976 arvif->hal_addr_search_flags = HAL_TX_ADDRX_EN; in ath11k_dp_update_vdev_search()
977 arvif->search_type = HAL_TX_ADDR_SEARCH_INDEX; in ath11k_dp_update_vdev_search()
979 arvif->hal_addr_search_flags = HAL_TX_ADDRY_EN; in ath11k_dp_update_vdev_search()
980 arvif->search_type = HAL_TX_ADDR_SEARCH_DEFAULT; in ath11k_dp_update_vdev_search()
985 arvif->hal_addr_search_flags = HAL_TX_ADDRX_EN; in ath11k_dp_update_vdev_search()
986 arvif->search_type = HAL_TX_ADDR_SEARCH_DEFAULT; in ath11k_dp_update_vdev_search()
994 void ath11k_dp_vdev_tx_attach(struct ath11k *ar, struct ath11k_vif *arvif) in ath11k_dp_vdev_tx_attach() argument
[all …]
Dmac.h156 u8 ath11k_mac_get_target_pdev_id_from_vif(struct ath11k_vif *arvif);
173 void ath11k_mac_bcn_tx_event(struct ath11k_vif *arvif);
175 int ath11k_mac_vif_set_keepalive(struct ath11k_vif *arvif,
Ddebugfs.h309 void ath11k_debugfs_add_interface(struct ath11k_vif *arvif);
310 void ath11k_debugfs_remove_interface(struct ath11k_vif *arvif);
389 static inline void ath11k_debugfs_add_interface(struct ath11k_vif *arvif) in ath11k_debugfs_add_interface() argument
393 static inline void ath11k_debugfs_remove_interface(struct ath11k_vif *arvif) in ath11k_debugfs_remove_interface() argument
Ddp_tx.c16 ath11k_dp_tx_get_encap_type(struct ath11k_vif *arvif, struct sk_buff *skb) in ath11k_dp_tx_get_encap_type() argument
19 struct ath11k_base *ab = arvif->ar->ab; in ath11k_dp_tx_get_encap_type()
82 int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif, in ath11k_dp_tx() argument
142 ti.encap_type = ath11k_dp_tx_get_encap_type(arvif, skb); in ath11k_dp_tx()
150 ti.meta_data_flags = arvif->tcl_metadata; in ath11k_dp_tx()
165 ti.addr_search_flags = arvif->hal_addr_search_flags; in ath11k_dp_tx()
166 ti.search_type = arvif->search_type; in ath11k_dp_tx()
170 ti.bss_ast_hash = arvif->ast_hash; in ath11k_dp_tx()
171 ti.bss_ast_idx = arvif->ast_idx; in ath11k_dp_tx()
183 if (ieee80211_vif_is_mesh(arvif->vif)) in ath11k_dp_tx()
[all …]
Dwmi.c995 struct ath11k_vif *arvif; in ath11k_wmi_vdev_up() local
999 arvif = ath11k_mac_get_arvif(ar, vdev_id); in ath11k_wmi_vdev_up()
1014 if (arvif && arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_wmi_vdev_up()
1015 bss_conf = &arvif->vif->bss_conf; in ath11k_wmi_vdev_up()
1693 struct ath11k_vif *arvif = ath11k_mac_get_arvif(ar, vdev_id); in ath11k_wmi_bcn_tmpl() local
1695 if (!arvif) { in ath11k_wmi_bcn_tmpl()
1700 vif = arvif->vif; in ath11k_wmi_bcn_tmpl()
3829 struct ath11k_vif *arvif; in ath11k_wmi_obss_color_collision_event() local
3847 arvif = ath11k_mac_get_arvif_by_vdev_id(ab, ev->vdev_id); in ath11k_wmi_obss_color_collision_event()
3848 if (!arvif) { in ath11k_wmi_obss_color_collision_event()
[all …]
Ddp_tx.h20 int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
Dpeer.c370 int ath11k_peer_create(struct ath11k *ar, struct ath11k_vif *arvif, in ath11k_peer_create() argument
439 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_peer_create()
440 arvif->ast_hash = peer->ast_hash; in ath11k_peer_create()
441 arvif->ast_idx = peer->hw_peer_id; in ath11k_peer_create()
Dpeer.h50 int ath11k_peer_create(struct ath11k *ar, struct ath11k_vif *arvif,
Ddp_rx.h48 int ath11k_dp_peer_rx_pn_replay_config(struct ath11k_vif *arvif,

12