Home
last modified time | relevance | path

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

12

/linux-6.6.21/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 …]
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dmac.c569 struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); in ath11k_get_arvif_iter() local
571 if (arvif->vdev_id == arvif_iter->vdev_id) in ath11k_get_arvif_iter()
572 arvif_iter->arvif = arvif; in ath11k_get_arvif_iter()
588 if (!arvif_iter.arvif) { in ath11k_mac_get_arvif()
593 return arvif_iter.arvif; in ath11k_mac_get_arvif()
601 struct ath11k_vif *arvif; in ath11k_mac_get_arvif_by_vdev_id() local
607 arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); in ath11k_mac_get_arvif_by_vdev_id()
608 if (arvif) in ath11k_mac_get_arvif_by_vdev_id()
609 return arvif; in ath11k_mac_get_arvif_by_vdev_id()
662 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()
1677 struct ath11k_vif *arvif = file->private_data; in ath11k_write_twt_add_dialog() local
1680 struct ath11k *ar = arvif->ar; in ath11k_write_twt_add_dialog()
1722 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath11k_write_twt_add_dialog()
1731 params.vdev_id = arvif->vdev_id; in ath11k_write_twt_add_dialog()
1733 ret = ath11k_wmi_send_twt_add_dialog_cmd(arvif->ar, &params); in ath11k_write_twt_add_dialog()
1740 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.c968 static void ath11k_dp_update_vdev_search(struct ath11k_vif *arvif) in ath11k_dp_update_vdev_search() argument
975 switch (arvif->vdev_type) { in ath11k_dp_update_vdev_search()
977 if (arvif->ar->ab->hw_params.htt_peer_map_v2) { in ath11k_dp_update_vdev_search()
978 arvif->hal_addr_search_flags = HAL_TX_ADDRX_EN; in ath11k_dp_update_vdev_search()
979 arvif->search_type = HAL_TX_ADDR_SEARCH_INDEX; in ath11k_dp_update_vdev_search()
981 arvif->hal_addr_search_flags = HAL_TX_ADDRY_EN; in ath11k_dp_update_vdev_search()
982 arvif->search_type = HAL_TX_ADDR_SEARCH_DEFAULT; in ath11k_dp_update_vdev_search()
987 arvif->hal_addr_search_flags = HAL_TX_ADDRX_EN; in ath11k_dp_update_vdev_search()
988 arvif->search_type = HAL_TX_ADDR_SEARCH_DEFAULT; in ath11k_dp_update_vdev_search()
996 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 …]
Ddp_tx.h21 int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dmac.c526 struct ath12k_vif *arvif = (void *)vif->drv_priv; in ath12k_get_arvif_iter() local
528 if (arvif->vdev_id == arvif_iter->vdev_id) in ath12k_get_arvif_iter()
529 arvif_iter->arvif = arvif; in ath12k_get_arvif_iter()
544 if (!arvif_iter.arvif) { in ath12k_mac_get_arvif()
549 return arvif_iter.arvif; in ath12k_mac_get_arvif()
557 struct ath12k_vif *arvif; in ath12k_mac_get_arvif_by_vdev_id() local
562 arvif = ath12k_mac_get_arvif(pdev->ar, vdev_id); in ath12k_mac_get_arvif_by_vdev_id()
563 if (arvif) in ath12k_mac_get_arvif_by_vdev_id()
564 return arvif; in ath12k_mac_get_arvif_by_vdev_id()
631 struct ath12k_vif *arvif; in ath12k_mac_txpower_recalc() local
[all …]
Ddp.c315 u32 ath12k_dp_tx_get_vdev_bank_config(struct ath12k_base *ab, struct ath12k_vif *arvif) in ath12k_dp_tx_get_vdev_bank_config() argument
322 if (arvif->tx_encap_type == HAL_TCL_ENCAP_TYPE_RAW && in ath12k_dp_tx_get_vdev_bank_config()
325 u32_encode_bits(ath12k_dp_tx_get_encrypt_type(arvif->key_cipher), in ath12k_dp_tx_get_vdev_bank_config()
328 bank_config |= u32_encode_bits(arvif->tx_encap_type, in ath12k_dp_tx_get_vdev_bank_config()
337 bank_config |= u32_encode_bits(arvif->hal_addr_search_flags & HAL_TX_ADDRX_EN, in ath12k_dp_tx_get_vdev_bank_config()
339 u32_encode_bits(!!(arvif->hal_addr_search_flags & in ath12k_dp_tx_get_vdev_bank_config()
343 bank_config |= u32_encode_bits(ieee80211_vif_is_mesh(arvif->vif) ? 3 : 0, in ath12k_dp_tx_get_vdev_bank_config()
345 u32_encode_bits(arvif->vdev_id_check_en, in ath12k_dp_tx_get_vdev_bank_config()
353 static int ath12k_dp_tx_get_bank_profile(struct ath12k_base *ab, struct ath12k_vif *arvif, in ath12k_dp_tx_get_bank_profile() argument
362 bank_config = ath12k_dp_tx_get_vdev_bank_config(ab, arvif); in ath12k_dp_tx_get_bank_profile()
[all …]
Ddp_tx.c13 ath12k_dp_tx_get_encap_type(struct ath12k_vif *arvif, struct sk_buff *skb) in ath12k_dp_tx_get_encap_type() argument
16 struct ath12k_base *ab = arvif->ar->ab; in ath12k_dp_tx_get_encap_type()
128 int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif, in ath12k_dp_tx() argument
181 ti.bank_id = arvif->bank_id; in ath12k_dp_tx()
182 ti.meta_data_flags = arvif->tcl_metadata; in ath12k_dp_tx()
184 if (arvif->tx_encap_type == HAL_TCL_ENCAP_TYPE_RAW && in ath12k_dp_tx()
199 ti.encap_type = ath12k_dp_tx_get_encap_type(arvif, skb); in ath12k_dp_tx()
200 ti.addr_search_flags = arvif->hal_addr_search_flags; in ath12k_dp_tx()
201 ti.search_type = arvif->search_type; in ath12k_dp_tx()
205 ti.vdev_id = arvif->vdev_id; in ath12k_dp_tx()
[all …]
Dpeer.c264 int ath12k_peer_create(struct ath12k *ar, struct ath12k_vif *arvif, in ath12k_peer_create() argument
329 if (arvif->vif->type == NL80211_IFTYPE_STATION) { in ath12k_peer_create()
330 arvif->ast_hash = peer->ast_hash; in ath12k_peer_create()
331 arvif->ast_idx = peer->hw_peer_id; in ath12k_peer_create()
Ddp_tx.h19 int ath12k_dp_tx(struct ath12k *ar, struct ath12k_vif *arvif,

12