Home
last modified time | relevance | path

Searched refs:sta (Results 1 – 200 of 273) sorted by relevance

12

/linux-4.1.27/net/mac80211/
Dsta_info.c71 .key_offset = offsetof(struct sta_info, sta.addr),
78 struct sta_info *sta) in sta_info_hash_del() argument
80 return rhashtable_remove_fast(&local->sta_hash, &sta->hash_node, in sta_info_hash_del()
84 static void __cleanup_single_sta(struct sta_info *sta) in __cleanup_single_sta() argument
88 struct ieee80211_sub_if_data *sdata = sta->sdata; in __cleanup_single_sta()
92 if (test_sta_flag(sta, WLAN_STA_PS_STA) || in __cleanup_single_sta()
93 test_sta_flag(sta, WLAN_STA_PS_DRIVER) || in __cleanup_single_sta()
94 test_sta_flag(sta, WLAN_STA_PS_DELIVER)) { in __cleanup_single_sta()
95 if (sta->sdata->vif.type == NL80211_IFTYPE_AP || in __cleanup_single_sta()
96 sta->sdata->vif.type == NL80211_IFTYPE_AP_VLAN) in __cleanup_single_sta()
[all …]
Dmesh_plink.c63 struct sta_info *sta) in rssi_threshold_check() argument
67 (sta && (s8) -ewma_read(&sta->avg_signal) > rssi_threshold); in rssi_threshold_check()
77 static inline void mesh_plink_fsm_restart(struct sta_info *sta) in mesh_plink_fsm_restart() argument
79 sta->plink_state = NL80211_PLINK_LISTEN; in mesh_plink_fsm_restart()
80 sta->llid = sta->plid = sta->reason = 0; in mesh_plink_fsm_restart()
81 sta->plink_retries = 0; in mesh_plink_fsm_restart()
99 struct sta_info *sta; in mesh_set_short_slot_time() local
121 list_for_each_entry_rcu(sta, &local->sta_list, list) { in mesh_set_short_slot_time()
122 if (sdata != sta->sdata || in mesh_set_short_slot_time()
123 sta->plink_state != NL80211_PLINK_ESTAB) in mesh_set_short_slot_time()
[all …]
Dmesh_ps.c19 static struct sk_buff *mps_qos_null_get(struct sta_info *sta) in mps_qos_null_get() argument
21 struct ieee80211_sub_if_data *sdata = sta->sdata; in mps_qos_null_get()
35 ieee80211_fill_mesh_addresses(nullfunc, &fc, sta->sta.addr, in mps_qos_null_get()
41 memcpy(nullfunc->addr1, sta->sta.addr, ETH_ALEN); in mps_qos_null_get()
43 ieee80211_mps_set_frame_flags(sdata, sta, nullfunc); in mps_qos_null_get()
51 static void mps_qos_null_tx(struct sta_info *sta) in mps_qos_null_tx() argument
55 skb = mps_qos_null_get(sta); in mps_qos_null_tx()
59 mps_dbg(sta->sdata, "announcing peer-specific power mode to %pM\n", in mps_qos_null_tx()
60 sta->sta.addr); in mps_qos_null_tx()
63 if (!test_sta_flag(sta, WLAN_STA_PS_STA)) { in mps_qos_null_tx()
[all …]
Dagg-tx.c144 void ieee80211_assign_tid_tx(struct sta_info *sta, int tid, in ieee80211_assign_tid_tx() argument
147 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_assign_tid_tx()
148 lockdep_assert_held(&sta->lock); in ieee80211_assign_tid_tx()
149 rcu_assign_pointer(sta->ampdu_mlme.tid_tx[tid], tid_tx); in ieee80211_assign_tid_tx()
192 ieee80211_agg_stop_txq(struct sta_info *sta, int tid) in ieee80211_agg_stop_txq() argument
194 struct ieee80211_txq *txq = sta->sta.txq[tid]; in ieee80211_agg_stop_txq()
209 ieee80211_agg_start_txq(struct sta_info *sta, int tid, bool enable) in ieee80211_agg_start_txq() argument
211 struct ieee80211_txq *txq = sta->sta.txq[tid]; in ieee80211_agg_start_txq()
225 drv_wake_tx_queue(sta->sdata->local, txqi); in ieee80211_agg_start_txq()
262 static void ieee80211_remove_tid_tx(struct sta_info *sta, int tid) in ieee80211_remove_tid_tx() argument
[all …]
Drate.h29 struct sta_info *sta,
34 struct sta_info *sta, in rate_control_tx_status() argument
38 struct ieee80211_sta *ista = &sta->sta; in rate_control_tx_status()
39 void *priv_sta = sta->rate_ctrl_priv; in rate_control_tx_status()
42 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status()
54 struct sta_info *sta, in rate_control_tx_status_noskb() argument
58 struct ieee80211_sta *ista = &sta->sta; in rate_control_tx_status_noskb()
59 void *priv_sta = sta->rate_ctrl_priv; in rate_control_tx_status_noskb()
61 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status_noskb()
70 static inline void rate_control_rate_init(struct sta_info *sta) in rate_control_rate_init() argument
[all …]
Dagg-rx.c59 void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid, in ___ieee80211_stop_rx_ba_session() argument
62 struct ieee80211_local *local = sta->local; in ___ieee80211_stop_rx_ba_session()
65 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_stop_rx_ba_session()
67 tid_rx = rcu_dereference_protected(sta->ampdu_mlme.tid_rx[tid], in ___ieee80211_stop_rx_ba_session()
68 lockdep_is_held(&sta->ampdu_mlme.mtx)); in ___ieee80211_stop_rx_ba_session()
73 RCU_INIT_POINTER(sta->ampdu_mlme.tid_rx[tid], NULL); in ___ieee80211_stop_rx_ba_session()
75 ht_dbg(sta->sdata, in ___ieee80211_stop_rx_ba_session()
77 sta->sta.addr, tid, in ___ieee80211_stop_rx_ba_session()
81 if (drv_ampdu_action(local, sta->sdata, IEEE80211_AMPDU_RX_STOP, in ___ieee80211_stop_rx_ba_session()
82 &sta->sta, tid, NULL, 0)) in ___ieee80211_stop_rx_ba_session()
[all …]
Dvht.c118 struct sta_info *sta) in ieee80211_vht_cap_ie_to_sta_vht_cap() argument
120 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_vht_cap_ie_to_sta_vht_cap()
126 if (!sta->sta.ht_cap.ht_supported) in ieee80211_vht_cap_ie_to_sta_vht_cap()
149 !test_sta_flag(sta, WLAN_STA_TDLS_PEER)) in ieee80211_vht_cap_ie_to_sta_vht_cap()
259 sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_160; in ieee80211_vht_cap_ie_to_sta_vht_cap()
262 sta->cur_max_bandwidth = IEEE80211_STA_RX_BW_80; in ieee80211_vht_cap_ie_to_sta_vht_cap()
265 sta->sta.bandwidth = ieee80211_sta_cur_vht_bw(sta); in ieee80211_vht_cap_ie_to_sta_vht_cap()
268 enum ieee80211_sta_rx_bandwidth ieee80211_sta_cap_rx_bw(struct sta_info *sta) in ieee80211_sta_cap_rx_bw() argument
270 struct ieee80211_sta_vht_cap *vht_cap = &sta->sta.vht_cap; in ieee80211_sta_cap_rx_bw()
274 return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? in ieee80211_sta_cap_rx_bw()
[all …]
Ddebugfs_sta.c27 struct sta_info *sta = file->private_data; \
29 format_string, sta->field); \
54 STA_FILE(aid, sta.aid, D);
64 struct sta_info *sta = file->private_data; in sta_flags_read() local
67 test_sta_flag(sta, WLAN_STA_##flg) ? #flg "\n" : "" in sta_flags_read()
74 sta->sta.wme ? "WME\n" : "", in sta_flags_read()
92 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
98 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
99 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
107 struct sta_info *sta = file->private_data; in sta_inactive_ms_read() local
[all …]
Dstatus.c47 struct sta_info *sta, in ieee80211_handle_filtered_frame() argument
65 info->control.vif = &sta->sdata->vif; in ieee80211_handle_filtered_frame()
70 sta->tx_filtered_count++; in ieee80211_handle_filtered_frame()
103 set_sta_flag(sta, WLAN_STA_CLEAR_PS_FILT); in ieee80211_handle_filtered_frame()
139 if (test_sta_flag(sta, WLAN_STA_PS_STA) && in ieee80211_handle_filtered_frame()
140 skb_queue_len(&sta->tx_filtered[ac]) < STA_MAX_TX_BUFFER) { in ieee80211_handle_filtered_frame()
141 skb_queue_tail(&sta->tx_filtered[ac], skb); in ieee80211_handle_filtered_frame()
142 sta_info_recalc_tim(sta); in ieee80211_handle_filtered_frame()
151 if (!test_sta_flag(sta, WLAN_STA_PS_STA) && in ieee80211_handle_filtered_frame()
159 ps_dbg_ratelimited(sta->sdata, in ieee80211_handle_filtered_frame()
[all …]
Dmesh_sync.c86 struct sta_info *sta; in mesh_sync_offset_rx_bcn_presp() local
111 sta = sta_info_get(sdata, mgmt->sa); in mesh_sync_offset_rx_bcn_presp()
112 if (!sta) in mesh_sync_offset_rx_bcn_presp()
122 clear_sta_flag(sta, WLAN_STA_TOFFSET_KNOWN); in mesh_sync_offset_rx_bcn_presp()
124 sta->sta.addr); in mesh_sync_offset_rx_bcn_presp()
130 sta->t_offset = t_t - t_r; in mesh_sync_offset_rx_bcn_presp()
132 if (test_sta_flag(sta, WLAN_STA_TOFFSET_KNOWN)) { in mesh_sync_offset_rx_bcn_presp()
133 s64 t_clockdrift = sta->t_offset_setpoint - sta->t_offset; in mesh_sync_offset_rx_bcn_presp()
136 sta->sta.addr, (long long) sta->t_offset, in mesh_sync_offset_rx_bcn_presp()
137 (long long) sta->t_offset_setpoint, in mesh_sync_offset_rx_bcn_presp()
[all …]
Dsta_info.h464 struct ieee80211_sta sta; member
467 static inline enum nl80211_plink_state sta_plink_state(struct sta_info *sta) in sta_plink_state() argument
470 return sta->plink_state; in sta_plink_state()
475 static inline void set_sta_flag(struct sta_info *sta, in set_sta_flag() argument
481 set_bit(flag, &sta->_flags); in set_sta_flag()
484 static inline void clear_sta_flag(struct sta_info *sta, in clear_sta_flag() argument
490 clear_bit(flag, &sta->_flags); in clear_sta_flag()
493 static inline int test_sta_flag(struct sta_info *sta, in test_sta_flag() argument
496 return test_bit(flag, &sta->_flags); in test_sta_flag()
499 static inline int test_and_clear_sta_flag(struct sta_info *sta, in test_and_clear_sta_flag() argument
[all …]
Docb.c50 struct sta_info *sta; in ieee80211_ocb_rx_no_sta() local
74 sta = sta_info_alloc(sdata, addr, GFP_ATOMIC); in ieee80211_ocb_rx_no_sta()
75 if (!sta) in ieee80211_ocb_rx_no_sta()
78 sta->last_rx = jiffies; in ieee80211_ocb_rx_no_sta()
82 sta->sta.supp_rates[band] = in ieee80211_ocb_rx_no_sta()
86 list_add(&sta->list, &ifocb->incomplete_stations); in ieee80211_ocb_rx_no_sta()
91 static struct sta_info *ieee80211_ocb_finish_sta(struct sta_info *sta) in ieee80211_ocb_finish_sta() argument
94 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_ocb_finish_sta()
97 memcpy(addr, sta->sta.addr, ETH_ALEN); in ieee80211_ocb_finish_sta()
102 sta_info_move_state(sta, IEEE80211_STA_AUTH); in ieee80211_ocb_finish_sta()
[all …]
Dwme.c87 struct sta_info *sta, struct sk_buff *skb) in ieee80211_downgrade_queue() argument
111 if (sta && sta->reserved_tid == skb->priority) in ieee80211_downgrade_queue()
149 struct sta_info *sta = NULL; in ieee80211_select_queue() local
163 sta = rcu_dereference(sdata->u.vlan.sta); in ieee80211_select_queue()
164 if (sta) { in ieee80211_select_queue()
165 qos = sta->sta.wme; in ieee80211_select_queue()
181 sta = sta_info_get(sdata, skb->data); in ieee80211_select_queue()
182 if (sta) in ieee80211_select_queue()
183 qos = sta->sta.wme; in ieee80211_select_queue()
198 if (!sta && ra && !is_multicast_ether_addr(ra)) { in ieee80211_select_queue()
[all …]
Dethtool.c71 struct sta_info *sta; in ieee80211_get_stats() local
80 #define ADD_STA_STATS(sta) \ in ieee80211_get_stats() argument
82 data[i++] += sta->rx_packets; \ in ieee80211_get_stats()
83 data[i++] += sta->rx_bytes; \ in ieee80211_get_stats()
84 data[i++] += sta->num_duplicates; \ in ieee80211_get_stats()
85 data[i++] += sta->rx_fragments; \ in ieee80211_get_stats()
86 data[i++] += sta->rx_dropped; \ in ieee80211_get_stats()
90 data[i++] += sta->tx_fragments; \ in ieee80211_get_stats()
91 data[i++] += sta->tx_filtered_count; \ in ieee80211_get_stats()
92 data[i++] += sta->tx_retry_failed; \ in ieee80211_get_stats()
[all …]
Dht.c133 struct sta_info *sta) in ieee80211_ht_cap_ie_to_sta_ht_cap() argument
234 changed = memcmp(&sta->sta.ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
236 memcpy(&sta->sta.ht_cap, &ht_cap, sizeof(ht_cap)); in ieee80211_ht_cap_ie_to_sta_ht_cap()
255 sta->sta.bandwidth = bw; in ieee80211_ht_cap_ie_to_sta_ht_cap()
257 sta->cur_max_bandwidth = in ieee80211_ht_cap_ie_to_sta_ht_cap()
275 if (smps_mode != sta->sta.smps_mode) in ieee80211_ht_cap_ie_to_sta_ht_cap()
277 sta->sta.smps_mode = smps_mode; in ieee80211_ht_cap_ie_to_sta_ht_cap()
282 void ieee80211_sta_tear_down_BA_sessions(struct sta_info *sta, in ieee80211_sta_tear_down_BA_sessions() argument
287 cancel_work_sync(&sta->ampdu_mlme.work); in ieee80211_sta_tear_down_BA_sessions()
290 __ieee80211_stop_tx_ba_session(sta, i, reason); in ieee80211_sta_tear_down_BA_sessions()
[all …]
Dtdls.c304 struct sta_info *sta = NULL; in ieee80211_tdls_add_setup_start_ies() local
364 sta = sta_info_get(sdata, peer); in ieee80211_tdls_add_setup_start_ies()
365 if (WARN_ON_ONCE(!sta)) { in ieee80211_tdls_add_setup_start_ies()
393 ht_cap.ht_supported && sta->sta.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies()
395 sta->sta.ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED in ieee80211_tdls_add_setup_start_ies()
399 memcpy(&ht_cap, &sta->sta.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies()
449 vht_cap.vht_supported && sta->sta.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies()
451 memcpy(&vht_cap, &sta->sta.vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies()
480 struct sta_info *sta, *ap_sta; in ieee80211_tdls_add_setup_cfm_ies() local
486 sta = sta_info_get(sdata, peer); in ieee80211_tdls_add_setup_cfm_ies()
[all …]
Dpm.c13 struct sta_info *sta; in __ieee80211_suspend() local
28 list_for_each_entry(sta, &local->sta_list, list) { in __ieee80211_suspend()
29 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in __ieee80211_suspend()
31 sta, AGG_STOP_LOCAL_REQUEST); in __ieee80211_suspend()
87 list_for_each_entry(sta, in __ieee80211_suspend()
89 clear_sta_flag(sta, WLAN_STA_BLOCK_BA); in __ieee80211_suspend()
127 sta = sdata->u.wds.sta; in __ieee80211_suspend()
128 if (sta && sta->uploaded) { in __ieee80211_suspend()
131 state = sta->sta_state; in __ieee80211_suspend()
133 WARN_ON(drv_sta_state(local, sta->sdata, in __ieee80211_suspend()
[all …]
Dtx.c307 if (tx->sta) in ieee80211_tx_h_check_assoc()
308 assoc = test_sta_flag(tx->sta, WLAN_STA_ASSOC); in ieee80211_tx_h_check_assoc()
343 struct sta_info *sta; in purge_old_ps_buffers() local
367 list_for_each_entry_rcu(sta, &local->sta_list, list) { in purge_old_ps_buffers()
371 skb = skb_dequeue(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
372 total += skb_queue_len(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
450 static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, in ieee80211_use_mfp() argument
456 if (sta == NULL || !test_sta_flag(sta, WLAN_STA_MFP)) in ieee80211_use_mfp()
468 struct sta_info *sta = tx->sta; in ieee80211_tx_h_unicast_ps_buf() local
473 if (unlikely(!sta)) in ieee80211_tx_h_unicast_ps_buf()
[all …]
Drx.c719 if (!rx->sta || sta_plink_state(rx->sta) != NL80211_PLINK_ESTAB) { in ieee80211_rx_mesh_check()
985 struct sta_info *sta = rx->sta; in ieee80211_rx_reorder_ampdu() local
999 if (!sta) in ieee80211_rx_reorder_ampdu()
1006 tid_agg_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[tid]); in ieee80211_rx_reorder_ampdu()
1072 if (rx->sta) { in ieee80211_rx_h_check_dup()
1074 rx->sta->last_seq_ctrl[rx->seqno_idx] == in ieee80211_rx_h_check_dup()
1078 rx->sta->num_duplicates++; in ieee80211_rx_h_check_dup()
1082 rx->sta->last_seq_ctrl[rx->seqno_idx] = hdr->seq_ctrl; in ieee80211_rx_h_check_dup()
1116 (!rx->sta || !test_sta_flag(rx->sta, WLAN_STA_ASSOC)))) { in ieee80211_rx_h_check()
1122 if (rx->sta && rx->sdata->vif.type == NL80211_IFTYPE_STATION && in ieee80211_rx_h_check()
[all …]
Dcfg.c70 RCU_INIT_POINTER(sdata->u.vlan.sta, NULL); in ieee80211_change_iface()
149 struct sta_info *sta = NULL; in ieee80211_add_key() local
192 sta = sta_info_get(sdata, mac_addr); in ieee80211_add_key()
194 sta = sta_info_get_bss(sdata, mac_addr); in ieee80211_add_key()
205 if (!sta || !test_sta_flag(sta, WLAN_STA_ASSOC)) { in ieee80211_add_key()
220 if (key->sta && test_sta_flag(key->sta, WLAN_STA_MFP)) in ieee80211_add_key()
245 if (sta) in ieee80211_add_key()
246 sta->cipher_scheme = cs; in ieee80211_add_key()
248 err = ieee80211_key_link(key, sdata, sta); in ieee80211_add_key()
261 struct sta_info *sta; in ieee80211_del_key() local
[all …]
Ddriver-ops.h264 struct ieee80211_sta *sta, bool set) in drv_set_tim() argument
267 trace_drv_set_tim(local, sta, set); in drv_set_tim()
269 ret = local->ops->set_tim(&local->hw, sta, set); in drv_set_tim()
277 struct ieee80211_sta *sta, in drv_set_key() argument
288 trace_drv_set_key(local, cmd, sdata, sta, key); in drv_set_key()
289 ret = local->ops->set_key(&local->hw, cmd, &sdata->vif, sta, key); in drv_set_key()
297 struct sta_info *sta, u32 iv32, in drv_update_tkip_key() argument
302 if (sta) in drv_update_tkip_key()
303 ista = &sta->sta; in drv_update_tkip_key()
475 struct ieee80211_sta *sta) in drv_sta_notify() argument
[all …]
Dibss.c576 static struct sta_info *ieee80211_ibss_finish_sta(struct sta_info *sta) in ieee80211_ibss_finish_sta() argument
579 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_ibss_finish_sta()
582 memcpy(addr, sta->sta.addr, ETH_ALEN); in ieee80211_ibss_finish_sta()
586 sta_info_pre_move_state(sta, IEEE80211_STA_AUTH); in ieee80211_ibss_finish_sta()
587 sta_info_pre_move_state(sta, IEEE80211_STA_ASSOC); in ieee80211_ibss_finish_sta()
590 if (!sta->sdata->u.ibss.control_port) in ieee80211_ibss_finish_sta()
591 sta_info_pre_move_state(sta, IEEE80211_STA_AUTHORIZED); in ieee80211_ibss_finish_sta()
593 rate_control_rate_init(sta); in ieee80211_ibss_finish_sta()
596 if (sta_info_insert_rcu(sta)) in ieee80211_ibss_finish_sta()
598 return sta; in ieee80211_ibss_finish_sta()
[all …]
Dkey.c128 struct sta_info *sta; in ieee80211_key_enable_hw_accel() local
150 sta = key->sta; in ieee80211_key_enable_hw_accel()
156 if (sta && !(key->conf.flags & IEEE80211_KEY_FLAG_PAIRWISE) && in ieee80211_key_enable_hw_accel()
160 if (sta && !sta->uploaded) in ieee80211_key_enable_hw_accel()
174 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_enable_hw_accel()
193 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_enable_hw_accel()
222 struct sta_info *sta; in ieee80211_key_disable_hw_accel() local
235 sta = key->sta; in ieee80211_key_disable_hw_accel()
243 sta ? &sta->sta : NULL, &key->conf); in ieee80211_key_disable_hw_accel()
249 sta ? sta->sta.addr : bcast_addr, ret); in ieee80211_key_disable_hw_accel()
[all …]
Dmesh.h234 struct sta_info *sta, struct sk_buff *skb);
246 u32 ieee80211_mps_set_sta_local_pm(struct sta_info *sta,
249 struct sta_info *sta,
251 void ieee80211_mps_sta_status_update(struct sta_info *sta);
252 void ieee80211_mps_rx_h_sta_process(struct sta_info *sta,
254 void ieee80211_mpsp_trigger_process(u8 *qc, struct sta_info *sta,
256 void ieee80211_mps_frame_release(struct sta_info *sta,
291 void mesh_plink_broken(struct sta_info *sta);
292 u32 mesh_plink_deactivate(struct sta_info *sta);
293 u32 mesh_plink_open(struct sta_info *sta);
[all …]
Drate.c223 struct ieee80211_sta *sta, in __rate_control_send_low() argument
243 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
265 struct sta_info *sta; in rate_control_send_low() local
281 sta = container_of(pubsta, struct sta_info, sta); in rate_control_send_low()
282 if (ieee80211_vif_is_mesh(&sta->sdata->vif)) in rate_control_send_low()
534 static void rate_control_fill_sta_table(struct ieee80211_sta *sta, in rate_control_fill_sta_table() argument
542 if (sta && !info->control.skip_table) in rate_control_fill_sta_table()
543 ratetbl = rcu_dereference(sta->rates); in rate_control_fill_sta_table()
573 struct ieee80211_sta *sta, in rate_control_apply_mask() argument
608 if (sta) { in rate_control_apply_mask()
[all …]
Ddebugfs_sta.h7 void ieee80211_sta_debugfs_add(struct sta_info *sta);
8 void ieee80211_sta_debugfs_remove(struct sta_info *sta);
10 static inline void ieee80211_sta_debugfs_add(struct sta_info *sta) {} in ieee80211_sta_debugfs_add() argument
11 static inline void ieee80211_sta_debugfs_remove(struct sta_info *sta) {} in ieee80211_sta_debugfs_remove() argument
Dtrace.h18 #define STA_ASSIGN (sta ? memcpy(__entry->sta_addr, sta->addr, ETH_ALEN) : memset(__entry->sta_addr…
491 struct ieee80211_sta *sta, bool set),
493 TP_ARGS(local, sta, set),
516 struct ieee80211_sta *sta,
519 TP_ARGS(local, cmd, sdata, sta, key),
551 struct ieee80211_sta *sta, u32 iv32),
553 TP_ARGS(local, sdata, conf, sta, iv32),
719 struct ieee80211_sta *sta),
721 TP_ARGS(local, sdata, cmd, sta),
746 struct ieee80211_sta *sta,
[all …]
Dmesh_hwmp.c307 struct sta_info *sta, struct sk_buff *skb) in ieee80211s_update_metric() argument
319 sta->fail_avg = ((80 * sta->fail_avg + 5) / 100 + 20 * failed); in ieee80211s_update_metric()
320 if (sta->fail_avg > 95) in ieee80211s_update_metric()
321 mesh_plink_broken(sta); in ieee80211s_update_metric()
325 struct sta_info *sta) in airtime_link_metric_get() argument
336 if (sta->fail_avg >= 100) in airtime_link_metric_get()
339 sta_set_rate_info_tx(sta, &sta->last_tx_rate, &rinfo); in airtime_link_metric_get()
344 err = (sta->fail_avg << ARITH_SHIFT) / 100; in airtime_link_metric_get()
378 struct sta_info *sta; in hwmp_route_info_get() local
387 sta = sta_info_get(sdata, mgmt->sa); in hwmp_route_info_get()
[all …]
Drc80211_minstrel_ht.c678 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in minstrel_aggr_check() local
691 if (likely(sta->ampdu_mlme.tid_tx[tid])) in minstrel_aggr_check()
699 struct ieee80211_sta *sta, void *priv_sta, in minstrel_ht_tx_status() argument
711 return mac80211_minstrel.tx_status_noskb(priv, sband, sta, in minstrel_ht_tx_status()
904 rate_control_set_rates(mp->hw, mi->sta, rates); in minstrel_ht_update_rates()
998 minstrel_ht_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta, in minstrel_ht_get_rate() argument
1009 if (rate_control_send_low(sta, priv_sta, txrc)) in minstrel_ht_get_rate()
1013 return mac80211_minstrel.get_rate(priv, sta, &msp->legacy, txrc); in minstrel_ht_get_rate()
1017 minstrel_aggr_check(sta, txrc->skb); in minstrel_ht_get_rate()
1066 struct ieee80211_sta *sta) in minstrel_ht_update_cck() argument
[all …]
Dieee80211_i.h168 struct sta_info *sta; member
224 struct sta_info *sta; member
303 struct sta_info *sta; member
311 struct sta_info __rcu *sta; member
1657 struct sta_info *sta);
1669 void ___ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
1671 void __ieee80211_stop_rx_ba_session(struct sta_info *sta, u16 tid,
1673 void __ieee80211_start_rx_ba_session(struct sta_info *sta,
1677 void ieee80211_sta_tear_down_BA_sessions(struct sta_info *sta,
1680 struct sta_info *sta,
[all …]
Ddebugfs_key.h13 struct sta_info *sta);
29 struct sta_info *sta) in ieee80211_debugfs_key_sta_del() argument
Dkey.h58 struct sta_info *sta; member
152 struct sta_info *sta);
162 struct sta_info *sta);
Drc80211_minstrel.c153 rate_control_set_rates(mp->hw, mi->sta, ratetbl); in minstrel_update_rates()
265 struct ieee80211_sta *sta, void *priv_sta, in minstrel_tx_status() argument
332 minstrel_get_rate(void *priv, struct ieee80211_sta *sta, in minstrel_get_rate() argument
348 if (rate_control_send_low(sta, priv_sta, txrc)) in minstrel_get_rate()
480 struct ieee80211_sta *sta, void *priv_sta) in minstrel_rate_init() argument
489 mi->sta = sta; in minstrel_rate_init()
490 mi->lowest_rix = rate_lowest_index(sband, sta); in minstrel_rate_init()
509 if (!rate_supported(sta, sband->band, i)) in minstrel_rate_init()
569 minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) in minstrel_alloc_sta() argument
607 minstrel_free_sta(void *priv, struct ieee80211_sta *sta, void *priv_sta) in minstrel_free_sta() argument
Ddebugfs_key.c302 struct sta_info *sta; in ieee80211_debugfs_key_add() local
316 sta = key->sta; in ieee80211_debugfs_key_add()
317 if (sta) { in ieee80211_debugfs_key_add()
319 sta->sdata->name, sta->sta.addr); in ieee80211_debugfs_key_add()
412 struct sta_info *sta) in ieee80211_debugfs_key_sta_del() argument
Diface.c495 struct sta_info *sta; in ieee80211_do_open() local
675 sta = sta_info_alloc(sdata, sdata->u.wds.remote_addr, in ieee80211_do_open()
677 if (!sta) { in ieee80211_do_open()
682 sta_info_pre_move_state(sta, IEEE80211_STA_AUTH); in ieee80211_do_open()
683 sta_info_pre_move_state(sta, IEEE80211_STA_ASSOC); in ieee80211_do_open()
684 sta_info_pre_move_state(sta, IEEE80211_STA_AUTHORIZED); in ieee80211_do_open()
686 res = sta_info_insert(sta); in ieee80211_do_open()
692 rate_control_rate_init(sta); in ieee80211_do_open()
1178 struct sta_info *sta; in ieee80211_iface_work() local
1206 sta = sta_info_get_bss(sdata, rx_agg->addr); in ieee80211_iface_work()
[all …]
Dmesh_pathtbl.c206 void mesh_path_assign_nexthop(struct mesh_path *mpath, struct sta_info *sta) in mesh_path_assign_nexthop() argument
212 rcu_assign_pointer(mpath->next_hop, sta); in mesh_path_assign_nexthop()
217 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN); in mesh_path_assign_nexthop()
219 ieee80211_mps_set_frame_flags(sta->sdata, sta, hdr); in mesh_path_assign_nexthop()
258 next_hop = rcu_dereference(gate_mpath->next_hop)->sta.addr; in prepare_for_gate()
750 void mesh_plink_broken(struct sta_info *sta) in mesh_plink_broken() argument
756 struct ieee80211_sub_if_data *sdata = sta->sdata; in mesh_plink_broken()
763 if (rcu_access_pointer(mpath->next_hop) == sta && in mesh_plink_broken()
816 void mesh_path_flush_by_nexthop(struct sta_info *sta) in mesh_path_flush_by_nexthop() argument
828 if (rcu_access_pointer(mpath->next_hop) == sta) { in mesh_path_flush_by_nexthop()
Dmlme.c343 struct sta_info *sta, in ieee80211_config_bw() argument
367 if (WARN_ON_ONCE(!sta)) in ieee80211_config_bw()
444 if (new_sta_bw > sta->cur_max_bandwidth) in ieee80211_config_bw()
445 new_sta_bw = sta->cur_max_bandwidth; in ieee80211_config_bw()
447 if (new_sta_bw < sta->sta.bandwidth) { in ieee80211_config_bw()
448 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
449 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
461 if (new_sta_bw > sta->sta.bandwidth) { in ieee80211_config_bw()
462 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
463 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
[all …]
Dutil.c716 struct ieee80211_sta *sta), in __iterate_stations() argument
719 struct sta_info *sta; in __iterate_stations() local
721 list_for_each_entry_rcu(sta, &local->sta_list, list) { in __iterate_stations()
722 if (!sta->uploaded) in __iterate_stations()
725 iterator(data, &sta->sta); in __iterate_stations()
731 struct ieee80211_sta *sta), in ieee80211_iterate_stations_atomic() argument
1756 struct sta_info *sta; in ieee80211_reconfig() local
1877 list_for_each_entry(sta, &local->sta_list, list) { in ieee80211_reconfig()
1880 if (!sta->uploaded) in ieee80211_reconfig()
1884 if (sta->sdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_reconfig()
[all …]
Dwpa.c271 if (!rx->sta || skb->len - hdrlen < 12) in ieee80211_crypto_tkip_decrypt()
289 skb->len - hdrlen, rx->sta->sta.addr, in ieee80211_crypto_tkip_decrypt()
508 if (!rx->sta || data_len < 0) in ieee80211_crypto_ccmp_decrypt()
731 if (!rx->sta || data_len < 0) in ieee80211_crypto_gcmp_decrypt()
832 if (!rx->sta || !rx->sta->cipher_scheme || in ieee80211_crypto_cs_decrypt()
839 cs = rx->sta->cipher_scheme; in ieee80211_crypto_cs_decrypt()
1234 if (rx->sta && rx->sta->cipher_scheme) in ieee80211_crypto_hw_decrypt()
Dchan.c193 static enum nl80211_chan_width ieee80211_get_sta_bw(struct ieee80211_sta *sta) in ieee80211_get_sta_bw() argument
195 switch (sta->bandwidth) { in ieee80211_get_sta_bw()
197 if (sta->ht_cap.ht_supported) in ieee80211_get_sta_bw()
226 struct sta_info *sta; in ieee80211_get_max_required_bw() local
229 list_for_each_entry_rcu(sta, &sdata->local->sta_list, list) { in ieee80211_get_max_required_bw()
230 if (sdata != sta->sdata && in ieee80211_get_max_required_bw()
231 !(sta->sdata->bss && sta->sdata->bss == sdata->bss)) in ieee80211_get_max_required_bw()
234 if (!sta->uploaded) in ieee80211_get_max_required_bw()
237 max_bw = max(max_bw, ieee80211_get_sta_bw(&sta->sta)); in ieee80211_get_max_required_bw()
Drc80211_minstrel_ht.h67 struct ieee80211_sta *sta; member
Drc80211_minstrel.h96 struct ieee80211_sta *sta; member
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_ap.c55 static struct sta_info* ap_get_sta(struct ap_data *ap, u8 *sta);
57 struct sta_info *sta);
98 static void ap_sta_hash_add(struct ap_data *ap, struct sta_info *sta) in ap_sta_hash_add() argument
100 sta->hnext = ap->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_add()
101 ap->sta_hash[STA_HASH(sta->addr)] = sta; in ap_sta_hash_add()
104 static void ap_sta_hash_del(struct ap_data *ap, struct sta_info *sta) in ap_sta_hash_del() argument
108 s = ap->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_del()
110 if (ether_addr_equal(s->addr, sta->addr)) { in ap_sta_hash_del()
111 ap->sta_hash[STA_HASH(sta->addr)] = s->hnext; in ap_sta_hash_del()
115 while (s->hnext != NULL && !ether_addr_equal(s->hnext->addr, sta->addr)) in ap_sta_hash_del()
[all …]
Dhostap_ap.h88 } sta; member
110 #define STA_HASH(sta) (sta[5]) argument
Dhostap_80211_rx.c735 void *sta = NULL; in hostap_80211_rx() local
786 sta = NULL; in hostap_80211_rx()
797 &sta); in hostap_80211_rx()
1105 if (sta) in hostap_80211_rx()
1106 hostap_handle_sta_release(sta); in hostap_80211_rx()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Dsta_info.h213 #define sta_rx_pkts(sta) \ argument
214 (sta->sta_stats.rx_mgnt_pkts \
215 + sta->sta_stats.rx_ctrl_pkts \
216 + sta->sta_stats.rx_data_pkts)
218 #define sta_last_rx_pkts(sta) \ argument
219 (sta->sta_stats.last_rx_mgnt_pkts \
220 + sta->sta_stats.last_rx_ctrl_pkts \
221 + sta->sta_stats.last_rx_data_pkts)
223 #define sta_rx_data_pkts(sta) \ argument
224 (sta->sta_stats.rx_data_pkts)
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/include/
Dsta_info.h231 #define sta_rx_pkts(sta) \ argument
232 (sta->sta_stats.rx_mgnt_pkts \
233 + sta->sta_stats.rx_ctrl_pkts \
234 + sta->sta_stats.rx_data_pkts)
236 #define sta_last_rx_pkts(sta) \ argument
237 (sta->sta_stats.last_rx_mgnt_pkts \
238 + sta->sta_stats.last_rx_ctrl_pkts \
239 + sta->sta_stats.last_rx_data_pkts)
241 #define sta_rx_data_pkts(sta) \ argument
242 (sta->sta_stats.rx_data_pkts)
[all …]
/linux-4.1.27/arch/sparc/mm/
Dswift.S33 sta %g0, [%o0] ASI_M_DATAC_TAG
35 sta %g0, [%o1] ASI_M_TXTC_TAG
47 sta %g0, [%o0] ASI_M_TXTC_TAG
49 sta %g0, [%o0] ASI_M_DATAC_TAG
66 sta %g2, [%g7] ASI_M_MMUREGS
71 sta %g0, [%o0] ASI_M_FLUSH_CTX
84 1: sta %g0, [%o0 ] ASI_M_FLUSH_CTX
85 sta %g0, [%o0 + %o1] ASI_M_FLUSH_CTX
86 sta %g0, [%o0 + %o2] ASI_M_FLUSH_CTX
87 sta %g0, [%o0 + %o3] ASI_M_FLUSH_CTX
[all …]
Dhypersparc.S34 sta %g0, [%g5] ASI_M_FLUSH_CTX
36 sta %g0, [%g0] ASI_M_FLUSH_IWHOLE ! hyper_flush_whole_icache
62 sta %g0, [%o0 + %g0] ASI_M_FLUSH_USER
63 sta %g0, [%o0 + %o1] ASI_M_FLUSH_USER
64 sta %g0, [%o0 + %g1] ASI_M_FLUSH_USER
65 sta %g0, [%o0 + %g2] ASI_M_FLUSH_USER
66 sta %g0, [%o0 + %g3] ASI_M_FLUSH_USER
67 sta %g0, [%o0 + %g4] ASI_M_FLUSH_USER
68 sta %g0, [%o0 + %g5] ASI_M_FLUSH_USER
70 sta %g0, [%o0 + %o4] ASI_M_FLUSH_USER
[all …]
Dviking.S130 sta %g0, [%g1] ASI_M_FLUSH_PROBE
141 sta %o1, [%g1] ASI_M_MMUREGS
142 sta %g0, [%g2] ASI_M_FLUSH_PROBE
144 sta %g5, [%g1] ASI_M_MMUREGS
160 sta %o3, [%g1] ASI_M_MMUREGS
163 sta %g0, [%o1] ASI_M_FLUSH_PROBE
167 sta %g0, [%o1] ASI_M_FLUSH_PROBE
169 sta %g5, [%g1] ASI_M_MMUREGS
185 sta %o3, [%g1] ASI_M_MMUREGS
186 sta %g0, [%o1] ASI_M_FLUSH_PROBE
[all …]
Dsrmmu_access.S25 LEON_PI(sta %o0, [%g0] ASI_LEON_MMUREGS)
26 SUN_PI_(sta %o0, [%g0] ASI_M_MMUREGS)
38 LEON_PI(sta %g1, [%g2] ASI_LEON_MMUREGS)
39 SUN_PI_(sta %g1, [%g2] ASI_M_MMUREGS)
48 LEON_PI(sta %o0, [%g1] ASI_LEON_MMUREGS)
49 SUN_PI_(sta %o0, [%g1] ASI_M_MMUREGS)
Dtsunami.S35 sta %g0, [%g0] ASI_M_IC_FLCLEAR
36 sta %g0, [%g0] ASI_M_DC_FLCLEAR
56 sta %g0, [%o1] ASI_M_FLUSH_PROBE
75 sta %o3, [%g1] ASI_M_MMUREGS
76 sta %g0, [%o1] ASI_M_FLUSH_PROBE
84 sta %g5, [%g1] ASI_M_MMUREGS
128 sta %g0, [%g0] ASI_M_IC_FLCLEAR
129 sta %g0, [%g0] ASI_M_DC_FLCLEAR
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Drc.c38 struct ieee80211_sta *sta, in _rtl_rc_get_highest_rix() argument
54 if (sta) { in _rtl_rc_get_highest_rix()
55 sta_entry = (struct rtl_sta_info *)sta->drv_priv; in _rtl_rc_get_highest_rix()
94 struct ieee80211_sta *sta, in _rtl_rc_rate_set_series() argument
105 if (sta) { in _rtl_rc_rate_set_series()
106 sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_rc_rate_set_series()
107 sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_rc_rate_set_series()
108 sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_rc_rate_set_series()
109 sta_entry = (struct rtl_sta_info *)sta->drv_priv; in _rtl_rc_rate_set_series()
123 if (sta && (sta->ht_cap.cap & in _rtl_rc_rate_set_series()
[all …]
Dbase.c617 struct ieee80211_sta *sta, in _rtl_query_shortgi() argument
627 if (sta == NULL) in _rtl_query_shortgi()
630 sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; in _rtl_query_shortgi()
631 sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; in _rtl_query_shortgi()
632 sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; in _rtl_query_shortgi()
634 if ((!sta->ht_cap.ht_supported) && (!sta->vht_cap.vht_supported)) in _rtl_query_shortgi()
646 bw_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40; in _rtl_query_shortgi()
647 bw_80 = sta->vht_cap.vht_supported; in _rtl_query_shortgi()
694 struct ieee80211_sta *sta, in _rtl_txrate_selectmode() argument
702 if (sta) { in _rtl_txrate_selectmode()
[all …]
Dcore.c227 if (!rtlpriv->intf_ops->waitq_insert(hw, control->sta, skb)) in rtl_op_tx()
228 rtlpriv->intf_ops->adapter_tx(hw, control->sta, skb, &tcb_desc); in rtl_op_tx()
899 struct ieee80211_sta *sta) in rtl_op_sta_add() argument
906 if (sta) { in rtl_op_sta_add()
907 sta_entry = (struct rtl_sta_info *)sta->drv_priv; in rtl_op_sta_add()
913 if (sta->supp_rates[0] <= 0xf) in rtl_op_sta_add()
915 if (sta->ht_cap.ht_supported) in rtl_op_sta_add()
922 if (sta->ht_cap.ht_supported) in rtl_op_sta_add()
924 if (sta->vht_cap.vht_supported) in rtl_op_sta_add()
932 sta->supp_rates[0] &= 0xfffffff0; in rtl_op_sta_add()
[all …]
Dbase.h128 struct ieee80211_sta *sta, u16 tid, u16 *ssn);
130 struct ieee80211_sta *sta, u16 tid);
132 struct ieee80211_sta *sta, u16 tid);
134 struct ieee80211_sta *sta, u16 tid);
136 struct ieee80211_sta *sta, u16 tid);
142 struct ieee80211_sta *sta,
146 struct ieee80211_sta *sta,
Dstats.c176 struct ieee80211_sta *sta = NULL; in rtl_process_pwdb() local
181 sta = rtl_find_sta(hw, pstatus->psaddr); in rtl_process_pwdb()
184 if (sta) { in rtl_process_pwdb()
185 drv_priv = (struct rtl_sta_info *) sta->drv_priv; in rtl_process_pwdb()
204 if (sta) { in rtl_process_pwdb()
Dusb.c958 struct ieee80211_sta *sta, in _rtl_usb_tx_preprocess() argument
1002 rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, NULL, info, sta, skb, in _rtl_usb_tx_preprocess()
1013 struct ieee80211_sta *sta, in rtl_usb_tx() argument
1026 _rtl_usb_tx_preprocess(hw, sta, skb, hw_queue); in rtl_usb_tx()
1036 struct ieee80211_sta *sta, in rtl_usb_tx_chk_waitq_insert() argument
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dsta.c99 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in iwl_mvm_sta_send_to_fw() argument
102 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_send_to_fw()
116 memcpy(&add_sta_cmd.addr, sta->addr, ETH_ALEN); in iwl_mvm_sta_send_to_fw()
119 switch (sta->bandwidth) { in iwl_mvm_sta_send_to_fw()
130 if (sta->ht_cap.ht_supported) in iwl_mvm_sta_send_to_fw()
136 switch (sta->rx_nss) { in iwl_mvm_sta_send_to_fw()
148 switch (sta->smps_mode) { in iwl_mvm_sta_send_to_fw()
166 if (sta->ht_cap.ht_supported) { in iwl_mvm_sta_send_to_fw()
171 mpdu_dens = sta->ht_cap.ampdu_density; in iwl_mvm_sta_send_to_fw()
174 if (sta->vht_cap.vht_supported) { in iwl_mvm_sta_send_to_fw()
[all …]
Dtdls.c75 struct ieee80211_sta *sta; in iwl_mvm_teardown_tdls_peers() local
82 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_teardown_tdls_peers()
84 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_teardown_tdls_peers()
87 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_teardown_tdls_peers()
88 ieee80211_tdls_oper_request(mvmsta->vif, sta->addr, in iwl_mvm_teardown_tdls_peers()
97 struct ieee80211_sta *sta; in iwl_mvm_tdls_sta_count() local
105 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tdls_sta_count()
107 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_tdls_sta_count()
111 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tdls_sta_count()
133 struct ieee80211_sta *sta; in iwl_mvm_tdls_config() local
[all …]
Dsta.h335 iwl_mvm_sta_from_mac80211(struct ieee80211_sta *sta) in iwl_mvm_sta_from_mac80211() argument
337 return (void *)sta->drv_priv; in iwl_mvm_sta_from_mac80211()
351 int iwl_mvm_sta_send_to_fw(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
355 struct ieee80211_sta *sta);
358 struct ieee80211_sta *sta);
361 struct ieee80211_sta *sta);
367 struct ieee80211_sta *sta,
372 struct ieee80211_sta *sta,
378 struct ieee80211_sta *sta, u32 iv32,
386 int iwl_mvm_sta_rx_agg(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
[all …]
Dsf.c157 struct ieee80211_sta *sta) in iwl_mvm_fill_sf_command() argument
167 if (sta) { in iwl_mvm_fill_sf_command()
168 if (sta->ht_cap.ht_supported || sta->vht_cap.vht_supported) { in iwl_mvm_fill_sf_command()
169 switch (sta->rx_nss) { in iwl_mvm_fill_sf_command()
196 if (sta || IWL_UCODE_API(mvm->fw->ucode_ver) < 13) { in iwl_mvm_fill_sf_command()
220 struct ieee80211_sta *sta; in iwl_mvm_sf_config() local
248 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]); in iwl_mvm_sf_config()
249 if (IS_ERR_OR_NULL(sta)) { in iwl_mvm_sf_config()
254 iwl_mvm_fill_sf_command(mvm, &sf_cmd, sta); in iwl_mvm_sf_config()
Dtx.c165 struct ieee80211_sta *sta, __le16 fc) in iwl_mvm_set_tx_cmd_rate() argument
190 if (ieee80211_is_data(fc) && sta) { in iwl_mvm_set_tx_cmd_rate()
210 &mvm->nvm_data->bands[info->band], sta); in iwl_mvm_set_tx_cmd_rate()
284 struct ieee80211_sta *sta, u8 sta_id) in iwl_mvm_set_tx_params() argument
305 iwl_mvm_set_tx_cmd_rate(mvm, tx_cmd, info, sta, hdr->frame_control); in iwl_mvm_set_tx_params()
389 struct ieee80211_sta *sta) in iwl_mvm_tx_skb() argument
402 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb()
411 dev_cmd = iwl_mvm_set_tx_params(mvm, skb, sta, mvmsta->sta_id); in iwl_mvm_tx_skb()
447 if (sta->tdls) { in iwl_mvm_tx_skb()
484 struct ieee80211_sta *sta, u8 tid) in iwl_mvm_check_ratid_empty() argument
[all …]
Drs.c140 struct ieee80211_sta *sta,
152 static bool rs_ant_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_ant_allow() argument
159 static bool rs_mimo_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_mimo_allow() argument
166 if (!sta->ht_cap.ht_supported) in rs_mimo_allow()
169 if (sta->smps_mode == IEEE80211_SMPS_STATIC) in rs_mimo_allow()
175 if (!iwl_mvm_bt_coex_is_mimo_allowed(mvm, sta)) in rs_mimo_allow()
178 mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_mimo_allow()
189 static bool rs_siso_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_siso_allow() argument
193 if (!sta->ht_cap.ht_supported) in rs_siso_allow()
199 static bool rs_sgi_allow(struct iwl_mvm *mvm, struct ieee80211_sta *sta, in rs_sgi_allow() argument
[all …]
Dmac80211.c633 struct ieee80211_sta *sta, in iwl_mvm_defer_tx() argument
655 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_defer_tx()
678 struct ieee80211_sta *sta = control->sta; in iwl_mvm_mac_tx() local
698 sta = NULL; in iwl_mvm_mac_tx()
700 if (sta) { in iwl_mvm_mac_tx()
701 if (iwl_mvm_defer_tx(mvm, sta, skb)) in iwl_mvm_mac_tx()
703 if (iwl_mvm_tx_skb(mvm, skb, sta)) in iwl_mvm_mac_tx()
736 struct ieee80211_sta *sta, u16 tid, in iwl_mvm_mac_ampdu_action() argument
744 sta->addr, tid, action); in iwl_mvm_mac_ampdu_action()
782 ret = iwl_mvm_sta_rx_agg(mvm, sta, tid, *ssn, true); in iwl_mvm_mac_ampdu_action()
[all …]
Dmvm.h884 struct ieee80211_sta *sta; in iwl_mvm_sta_from_staid_rcu() local
889 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]); in iwl_mvm_sta_from_staid_rcu()
892 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_sta_from_staid_rcu()
895 return iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_from_staid_rcu()
901 struct ieee80211_sta *sta; in iwl_mvm_sta_from_staid_protected() local
906 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_sta_from_staid_protected()
910 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_sta_from_staid_protected()
913 return iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_sta_from_staid_protected()
1008 struct ieee80211_sta *sta);
1019 struct ieee80211_sta *sta, __le16 fc);
[all …]
Drx.c253 struct ieee80211_sta *sta; in iwl_mvm_rx_rx_mpdu() local
336 sta = ieee80211_find_sta( in iwl_mvm_rx_rx_mpdu()
338 if (sta) in iwl_mvm_rx_rx_mpdu()
339 iwl_mvm_sta_modify_disable_tx_ap(mvm, sta, false); in iwl_mvm_rx_rx_mpdu()
343 sta = ieee80211_find_sta_by_ifaddr(mvm->hw, hdr->addr2, NULL); in iwl_mvm_rx_rx_mpdu()
344 if (sta) { in iwl_mvm_rx_rx_mpdu()
346 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_rx_mpdu()
Dcoex.c780 struct ieee80211_sta *sta; in iwl_mvm_bt_rssi_iterator() local
799 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], in iwl_mvm_bt_rssi_iterator()
803 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_bt_rssi_iterator()
806 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_rssi_iterator()
866 struct ieee80211_sta *sta) in iwl_mvm_coex_agg_time_limit() argument
868 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit()
874 return iwl_mvm_coex_agg_time_limit_old(mvm, sta); in iwl_mvm_coex_agg_time_limit()
893 struct ieee80211_sta *sta) in iwl_mvm_bt_coex_is_mimo_allowed() argument
895 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_coex_is_mimo_allowed()
901 return iwl_mvm_bt_coex_is_mimo_allowed_old(mvm, sta); in iwl_mvm_bt_coex_is_mimo_allowed()
Dtt.c283 struct ieee80211_sta *sta; in iwl_mvm_tt_tx_protection() local
288 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[i], in iwl_mvm_tt_tx_protection()
290 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_tt_tx_protection()
292 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tt_tx_protection()
Dfw-api-mac.h229 struct iwl_mac_data_sta sta; member
363 struct iwl_mac_data_sta sta; member
Dcoex_legacy.c1101 struct ieee80211_sta *sta; in iwl_mvm_bt_rssi_iterator() local
1120 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], in iwl_mvm_bt_rssi_iterator()
1124 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_bt_rssi_iterator()
1127 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_rssi_iterator()
1185 struct ieee80211_sta *sta) in iwl_mvm_coex_agg_time_limit_old() argument
1187 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_coex_agg_time_limit_old()
1207 struct ieee80211_sta *sta) in iwl_mvm_bt_coex_is_mimo_allowed_old() argument
1209 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_bt_coex_is_mimo_allowed_old()
DMakefile3 iwlmvm-y += utils.o rx.o tx.o binding.o quota.o sta.o sf.o
Drs.h352 void iwl_mvm_rs_rate_init(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
356 void iwl_mvm_rs_tx_status(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
Dops.c1180 struct ieee80211_sta *sta = NULL; in iwl_mvm_d0i3_enable_tx() local
1195 sta = rcu_dereference_protected( in iwl_mvm_d0i3_enable_tx()
1199 if (IS_ERR_OR_NULL(sta)) { in iwl_mvm_d0i3_enable_tx()
1200 sta = NULL; in iwl_mvm_d0i3_enable_tx()
1206 mvm_ap_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_d0i3_enable_tx()
1219 if (!sta || iwl_mvm_tx_skb(mvm, skb, sta)) in iwl_mvm_d0i3_enable_tx()
Ddebugfs-vif.c266 struct ieee80211_sta *sta; in iwl_dbgfs_mac_params_read() local
268 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[ap_sta_id], in iwl_dbgfs_mac_params_read()
270 if (!IS_ERR_OR_NULL(sta)) { in iwl_dbgfs_mac_params_read()
271 struct iwl_mvm_sta *mvm_sta = iwl_mvm_sta_from_mac80211(sta); in iwl_dbgfs_mac_params_read()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dsta.c48 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate()
54 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate()
58 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate()
68 u8 sta_id = addsta->sta.sta_id; in iwl_process_add_sta_resp()
106 priv->stations[sta_id].sta.mode == in iwl_process_add_sta_resp()
108 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_process_add_sta_resp()
119 priv->stations[sta_id].sta.mode == in iwl_process_add_sta_resp()
121 addsta->sta.addr); in iwl_process_add_sta_resp()
139 struct iwl_addsta_cmd *sta, u8 flags) in iwl_send_add_sta() argument
145 .data = { sta, }, in iwl_send_add_sta()
[all …]
Dmac80211.c581 if (iwlagn_tx_skb(priv, control->sta, skb)) in iwlagn_mac_tx()
588 struct ieee80211_sta *sta, in iwlagn_mac_update_tkip_key() argument
593 iwl_update_tkip_key(priv, vif, keyconf, sta, iv32, phase1key); in iwlagn_mac_update_tkip_key()
598 struct ieee80211_sta *sta, in iwlagn_mac_set_key() argument
654 key->cipher == WLAN_CIPHER_SUITE_WEP104) && !sta) { in iwlagn_mac_set_key()
669 ret = iwl_set_dynamic_key(priv, vif_priv->ctx, key, sta); in iwlagn_mac_set_key()
685 ret = iwl_remove_dynamic_key(priv, ctx, key, sta); in iwlagn_mac_set_key()
720 struct ieee80211_sta *sta, u16 tid, u16 *ssn, in iwlagn_mac_ampdu_action() argument
725 struct iwl_station_priv *sta_priv = (void *) sta->drv_priv; in iwlagn_mac_ampdu_action()
728 sta->addr, tid); in iwlagn_mac_ampdu_action()
[all …]
Dagn.h209 struct ieee80211_sta *sta,
212 struct ieee80211_sta *sta, u16 tid, u16 *ssn);
214 struct ieee80211_sta *sta, u16 tid, u8 buf_size);
216 struct ieee80211_sta *sta, u16 tid);
218 struct ieee80211_sta *sta, u16 tid);
322 struct iwl_addsta_cmd *sta, u8 flags);
325 struct ieee80211_sta *sta, u8 *sta_id_r);
331 const u8 *addr, bool is_ap, struct ieee80211_sta *sta);
338 struct ieee80211_sta *sta);
342 struct ieee80211_sta *sta);
[all …]
Drs.c152 struct ieee80211_sta *sta,
397 struct ieee80211_sta *sta) in rs_tl_turn_on_agg_for_tid() argument
416 sta->addr, tid); in rs_tl_turn_on_agg_for_tid()
417 ret = ieee80211_start_tx_ba_session(sta, tid, 5000); in rs_tl_turn_on_agg_for_tid()
426 ieee80211_stop_tx_ba_session(sta, tid); in rs_tl_turn_on_agg_for_tid()
433 struct ieee80211_sta *sta) in rs_tl_turn_on_agg() argument
436 rs_tl_turn_on_agg_for_tid(priv, lq_data, tid, sta); in rs_tl_turn_on_agg()
697 static bool rs_use_green(struct ieee80211_sta *sta) in rs_use_green() argument
892 struct ieee80211_sta *sta, void *priv_sta, in rs_tx_status() argument
908 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_tx_status()
[all …]
Dtx.c129 struct ieee80211_sta *sta, in iwlagn_tx_cmd_build_rate() argument
178 &priv->nvm_data->bands[info->band], sta); in iwlagn_tx_cmd_build_rate()
258 struct ieee80211_sta *sta) in iwl_sta_id_or_broadcast() argument
262 if (!sta) in iwl_sta_id_or_broadcast()
265 sta_id = iwl_sta_id(sta); in iwl_sta_id_or_broadcast()
280 struct ieee80211_sta *sta, in iwlagn_tx_skb() argument
335 sta_id = iwl_sta_id_or_broadcast(ctx, sta); in iwlagn_tx_skb()
343 if (sta) in iwlagn_tx_skb()
344 sta_priv = (void *)sta->drv_priv; in iwlagn_tx_skb()
383 iwlagn_tx_cmd_build_rate(priv, tx_cmd, info, sta, fc); in iwlagn_tx_skb()
[all …]
DMakefile4 iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
Dlib.c915 struct ieee80211_sta *sta, in iwlagn_wowlan_program_keys() argument
935 !sta && !ctx->key_mapping_keys) in iwlagn_wowlan_program_keys()
938 ret = iwl_set_dynamic_key(priv, ctx, key, sta); in iwlagn_wowlan_program_keys()
947 if (sta) { in iwlagn_wowlan_program_keys()
1000 if (sta) { in iwlagn_wowlan_program_keys()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Ddebugfs_sta.c25 struct ieee80211_sta *sta = file->private_data; in ath10k_dbg_sta_read_aggr_mode() local
26 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_dbg_sta_read_aggr_mode()
44 struct ieee80211_sta *sta = file->private_data; in ath10k_dbg_sta_write_aggr_mode() local
45 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_dbg_sta_write_aggr_mode()
63 ret = ath10k_wmi_addba_clear_resp(ar, arsta->arvif->vdev_id, sta->addr); in ath10k_dbg_sta_write_aggr_mode()
87 struct ieee80211_sta *sta = file->private_data; in ath10k_dbg_sta_write_addba() local
88 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_dbg_sta_write_addba()
114 ret = ath10k_wmi_addba_send(ar, arsta->arvif->vdev_id, sta->addr, in ath10k_dbg_sta_write_addba()
118 arsta->arvif->vdev_id, sta->addr, tid, buf_size); in ath10k_dbg_sta_write_addba()
138 struct ieee80211_sta *sta = file->private_data; in ath10k_dbg_sta_write_addba_resp() local
[all …]
Dmac.c1215 if (arvif->u.sta.uapsd) in ath10k_mac_vif_recalc_ps_wake_threshold()
1240 if (arvif->u.sta.uapsd) in ath10k_mac_vif_recalc_ps_poll_count()
1387 struct ieee80211_sta *sta, in ath10k_peer_assoc_h_basic() argument
1394 ether_addr_copy(arg->addr, sta->addr); in ath10k_peer_assoc_h_basic()
1396 arg->peer_aid = sta->aid; in ath10k_peer_assoc_h_basic()
1446 struct ieee80211_sta *sta, in ath10k_peer_assoc_h_rates() argument
1458 ratemask = sta->supp_rates[ar->hw->conf.chandef.chan->band]; in ath10k_peer_assoc_h_rates()
1473 struct ieee80211_sta *sta, in ath10k_peer_assoc_h_ht() argument
1476 const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in ath10k_peer_assoc_h_ht()
1498 if (sta->bandwidth >= IEEE80211_STA_RX_BW_40) { in ath10k_peer_assoc_h_ht()
[all …]
Ddebug.h139 struct ieee80211_sta *sta, struct dentry *dir);
/linux-4.1.27/drivers/i2c/algos/
Di2c-algo-pca.c65 int sta = pca_get_con(adap); in pca_start() local
67 sta |= I2C_PCA_CON_STA; in pca_start()
68 sta &= ~(I2C_PCA_CON_STO|I2C_PCA_CON_SI); in pca_start()
69 pca_set_con(adap, sta); in pca_start()
80 int sta = pca_get_con(adap); in pca_repeated_start() local
82 sta |= I2C_PCA_CON_STA; in pca_repeated_start()
83 sta &= ~(I2C_PCA_CON_STO|I2C_PCA_CON_SI); in pca_repeated_start()
84 pca_set_con(adap, sta); in pca_repeated_start()
99 int sta = pca_get_con(adap); in pca_stop() local
101 sta |= I2C_PCA_CON_STO; in pca_stop()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dmain.c377 if (control->sta) in wcn36xx_tx()
378 sta_priv = (struct wcn36xx_sta *)control->sta->drv_priv; in wcn36xx_tx()
386 struct ieee80211_sta *sta, in wcn36xx_set_key() argument
391 struct wcn36xx_sta *sta_priv = vif_priv->sta; in wcn36xx_set_key()
446 sta, in wcn36xx_set_key()
447 sta->addr, in wcn36xx_set_key()
518 static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, in wcn36xx_update_allowed_rates() argument
523 struct wcn36xx_sta *sta_priv = (struct wcn36xx_sta *)sta->drv_priv; in wcn36xx_update_allowed_rates()
524 u32 rates = sta->supp_rates[band]; in wcn36xx_update_allowed_rates()
550 if (sta->ht_cap.ht_supported) { in wcn36xx_update_allowed_rates()
[all …]
Dsmd.c104 struct ieee80211_sta *sta, in wcn36xx_smd_set_bss_nw_type() argument
109 else if (sta && sta->ht_cap.ht_supported) in wcn36xx_smd_set_bss_nw_type()
111 else if (sta && (sta->supp_rates[IEEE80211_BAND_2GHZ] & 0x7f)) in wcn36xx_smd_set_bss_nw_type()
122 struct ieee80211_sta *sta, in wcn36xx_smd_set_bss_ht_params() argument
125 if (sta && sta->ht_cap.ht_supported) { in wcn36xx_smd_set_bss_ht_params()
126 unsigned long caps = sta->ht_cap.cap; in wcn36xx_smd_set_bss_ht_params()
127 bss_params->ht = sta->ht_cap.ht_supported; in wcn36xx_smd_set_bss_ht_params()
145 static void wcn36xx_smd_set_sta_ht_params(struct ieee80211_sta *sta, in wcn36xx_smd_set_sta_ht_params() argument
148 if (sta->ht_cap.ht_supported) { in wcn36xx_smd_set_sta_ht_params()
149 unsigned long caps = sta->ht_cap.cap; in wcn36xx_smd_set_sta_ht_params()
[all …]
Dsmd.h75 struct ieee80211_sta *sta, const u8 *bssid,
79 struct ieee80211_sta *sta);
120 struct ieee80211_sta *sta,
Dtxrx.c120 struct ieee80211_sta *sta; in wcn36xx_tx_start_ampdu() local
126 sta = wcn36xx_priv_to_sta(sta_priv); in wcn36xx_tx_start_ampdu()
144 ieee80211_start_tx_ba_session(sta, tid, 0); in wcn36xx_tx_start_ampdu()
/linux-4.1.27/include/net/
Dmac80211.h1660 struct ieee80211_sta *sta; member
1678 struct ieee80211_sta *sta; member
2022 struct ieee80211_sta *sta; member
3191 int (*set_tim)(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
3194 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
3199 struct ieee80211_sta *sta,
3228 struct ieee80211_sta *sta);
3230 struct ieee80211_sta *sta);
3234 struct ieee80211_sta *sta,
3238 struct ieee80211_sta *sta,
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dhtc_drv_main.c471 struct ieee80211_sta *sta) in ath9k_htc_add_station() argument
490 if (sta) { in ath9k_htc_add_station()
491 ista = (struct ath9k_htc_sta *) sta->drv_priv; in ath9k_htc_add_station()
492 memcpy(&tsta.macaddr, sta->addr, ETH_ALEN); in ath9k_htc_add_station()
497 sta->ht_cap.ampdu_factor); in ath9k_htc_add_station()
510 if (sta) in ath9k_htc_add_station()
513 sta->addr); in ath9k_htc_add_station()
517 if (sta) { in ath9k_htc_add_station()
520 sta->addr, tsta.sta_index); in ath9k_htc_add_station()
529 if (!sta) in ath9k_htc_add_station()
[all …]
Ddebug_sta.c40 if (!an->sta->ht_cap.ht_supported) { in read_file_node_aggr()
113 struct ieee80211_sta *sta; in ath_debug_rate_stats() local
121 sta = ieee80211_find_sta_by_ifaddr(sc->hw, hdr->addr2, NULL); in ath_debug_rate_stats()
122 if (!sta) in ath_debug_rate_stats()
125 an = (struct ath_node *) sta->drv_priv; in ath_debug_rate_stats()
189 struct ieee80211_sta *sta = an->sta; in read_file_node_recv() local
203 if (!sta->ht_cap.ht_supported) in read_file_node_recv()
261 struct ieee80211_sta *sta, in ath9k_sta_add_debugfs() argument
264 struct ath_node *an = (struct ath_node *)sta->drv_priv; in ath9k_sta_add_debugfs()
Dmain.c345 static void ath_node_attach(struct ath_softc *sc, struct ieee80211_sta *sta, in ath_node_attach() argument
349 an = (struct ath_node *)sta->drv_priv; in ath_node_attach()
352 an->sta = sta; in ath_node_attach()
361 static void ath_node_detach(struct ath_softc *sc, struct ieee80211_sta *sta) in ath_node_detach() argument
363 struct ath_node *an = (struct ath_node *)sta->drv_priv; in ath_node_detach()
807 txctl.sta = control->sta; in ath9k_tx()
1265 an->sta = NULL; in ath9k_add_interface()
1483 struct ieee80211_sta *sta) in ath9k_sta_add() argument
1487 struct ath_node *an = (struct ath_node *) sta->drv_priv; in ath9k_sta_add()
1491 ath_node_attach(sc, sta, vif); in ath9k_sta_add()
[all …]
Dxmit.c142 if (!tid->an->sta) in ath_send_bar()
145 ieee80211_send_bar(tid->an->vif, tid->an->sta->addr, tid->tidno, in ath_send_bar()
149 static void ath_set_rates(struct ieee80211_vif *vif, struct ieee80211_sta *sta, in ath_set_rates() argument
152 ieee80211_get_tx_rates(vif, sta, bf->bf_mpdu, bf->rates, in ath_set_rates()
444 struct ieee80211_sta *sta; in ath_tx_complete_aggr() local
476 sta = ieee80211_find_sta_by_ifaddr(hw, hdr->addr1, hdr->addr2); in ath_tx_complete_aggr()
477 if (!sta) { in ath_tx_complete_aggr()
494 an = (struct ath_node *)sta->drv_priv; in ath_tx_complete_aggr()
602 ieee80211_sta_eosp(sta); in ath_tx_complete_aggr()
640 ieee80211_sta_set_buffered(sta, tid->tidno, true); in ath_tx_complete_aggr()
[all …]
Ddynack.c117 struct ieee80211_sta *sta; in ath_dynack_compute_to() local
140 sta = ieee80211_find_sta_by_ifaddr(ah->hw, dst, in ath_dynack_compute_to()
142 if (sta) { in ath_dynack_compute_to()
143 an = (struct ath_node *)sta->drv_priv; in ath_dynack_compute_to()
Dath9k.h261 struct ieee80211_sta *sta; /* station struct we're part of */ member
285 struct ieee80211_sta *sta; member
576 int ath_tx_aggr_start(struct ath_softc *sc, struct ieee80211_sta *sta,
578 void ath_tx_aggr_stop(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid);
579 void ath_tx_aggr_resume(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid);
582 void ath_tx_aggr_sleep(struct ieee80211_sta *sta, struct ath_softc *sc,
585 struct ieee80211_sta *sta,
Dhtc_drv_txrx.c336 struct ieee80211_sta *sta, in ath9k_htc_tx_start() argument
369 if (sta) { in ath9k_htc_tx_start()
370 ista = (struct ath9k_htc_sta *) sta->drv_priv; in ath9k_htc_tx_start()
404 struct ieee80211_sta *sta; in ath9k_htc_check_tx_aggr() local
413 sta = ieee80211_find_sta(vif, hdr->addr1); in ath9k_htc_check_tx_aggr()
414 if (!sta) { in ath9k_htc_check_tx_aggr()
419 if (sta && conf_is_ht(&priv->hw->conf) && in ath9k_htc_check_tx_aggr()
427 ista = (struct ath9k_htc_sta *)sta->drv_priv; in ath9k_htc_check_tx_aggr()
429 ieee80211_start_tx_ba_session(sta, tid, 0); in ath9k_htc_check_tx_aggr()
Dchannel.c1073 struct ieee80211_sta *sta = NULL; in ath_chanctx_send_vif_ps_frame() local
1094 if (!ieee80211_tx_prepare_skb(sc->hw, vif, skb, band, &sta)) { in ath_chanctx_send_vif_ps_frame()
1105 txctl.sta = sta; in ath_chanctx_send_vif_ps_frame()
1516 struct ieee80211_sta *sta; in ath9k_p2p_ps_timer() local
1540 sta = ieee80211_find_sta(vif, avp->bssid); in ath9k_p2p_ps_timer()
1541 if (!sta) in ath9k_p2p_ps_timer()
1544 an = (void *) sta->drv_priv; in ath9k_p2p_ps_timer()
1550 ath_tx_aggr_sleep(sta, sc, an); in ath9k_p2p_ps_timer()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Drx_reorder.c94 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wil_rx_reorder()
103 struct wil_sta_info *sta = &wil->sta[cid]; in wil_rx_reorder() local
116 spin_lock(&sta->tid_rx_lock); in wil_rx_reorder()
118 r = sta->tid_rx[tid]; in wil_rx_reorder()
199 spin_unlock(&sta->tid_rx_lock); in wil_rx_reorder()
279 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wil_back_rx_handle()
281 struct wil_sta_info *sta; in wil_back_rx_handle() local
307 sta = &wil->sta[cid]; in wil_back_rx_handle()
308 if (sta->status != wil_sta_connected) { in wil_back_rx_handle()
315 cid, sta->addr, tid, req_agg_wsize, req->ba_timeout, in wil_back_rx_handle()
[all …]
Dmain.c138 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wil_disconnect_cid()
143 struct wil_sta_info *sta = &wil->sta[cid]; in wil_disconnect_cid() local
147 sta->status); in wil_disconnect_cid()
149 sta->data_port_open = false; in wil_disconnect_cid()
150 if (sta->status != wil_sta_unused) { in wil_disconnect_cid()
152 wmi_disconnect_sta(wil, sta->addr, reason_code); in wil_disconnect_cid()
158 cfg80211_del_sta(ndev, sta->addr, GFP_KERNEL); in wil_disconnect_cid()
163 sta->status = wil_sta_unused; in wil_disconnect_cid()
169 spin_lock_bh(&sta->tid_rx_lock); in wil_disconnect_cid()
171 r = sta->tid_rx[i]; in wil_disconnect_cid()
[all …]
Dwmi.c469 ether_addr_copy(wil->sta[evt->cid].addr, evt->bssid); in wmi_evt_connect()
470 wil->sta[evt->cid].status = wil_sta_conn_pending; in wmi_evt_connect()
513 stats = &wil->sta[cid].stats; in wmi_evt_eapol_rx()
569 if (cid >= ARRAY_SIZE(wil->sta)) { in wmi_evt_linkup()
574 wil->sta[cid].data_port_open = true; in wmi_evt_linkup()
588 if (cid >= ARRAY_SIZE(wil->sta)) { in wmi_evt_linkdown()
593 wil->sta[cid].data_port_open = false; in wmi_evt_linkdown()
639 __acquires(&sta->tid_rx_lock) __releases(&sta->tid_rx_lock) in wmi_evt_delba()
644 struct wil_sta_info *sta; in wmi_evt_delba() local
675 sta = &wil->sta[cid]; in wmi_evt_delba()
[all …]
Dtxrx.c428 stats = &wil->sta[cid].stats; in wil_vring_reap_rx()
532 struct wil_net_stats *stats = &wil->sta[cid].stats; in wil_netif_rx_any()
741 if (wil->sta[cid].data_port_open && (agg_wsize >= 0)) in wil_vring_init_tx()
851 if (!wil->sta[cid].data_port_open && in wil_find_tx_ucast()
897 if (!wil->sta[cid].data_port_open && in wil_find_tx_vring_sta()
944 ether_addr_copy(eth->h_dest, wil->sta[cid].addr); in wil_set_da_for_vring()
966 if (!wil->sta[cid].data_port_open) in wil_find_tx_bcast_2()
970 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN)) in wil_find_tx_bcast_2()
992 if (!wil->sta[cid].data_port_open) in wil_find_tx_bcast_2()
995 if (0 == memcmp(wil->sta[cid].addr, src, ETH_ALEN)) in wil_find_tx_bcast_2()
[all …]
Dcfg80211.c119 struct wil_net_stats *stats = &wil->sta[cid].stats; in wil_cid_fill_sinfo()
199 for (i = 0; i < ARRAY_SIZE(wil->sta); i++) { in wil_find_cid_by_idx()
200 if (wil->sta[i].status == wil_sta_unused) in wil_find_cid_by_idx()
221 ether_addr_copy(mac, wil->sta[cid].addr); in wil_cfg80211_dump_station()
845 struct wil_sta_info *sta = &wil->sta[req->cid]; in wil_probe_client_handle() local
849 bool alive = (sta->status == wil_sta_connected); in wil_probe_client_handle()
851 cfg80211_probe_status(ndev, sta->addr, req->cookie, alive, GFP_KERNEL); in wil_probe_client_handle()
Ddebugfs.c127 wil->sta[cid].addr, cid, tid, in wil_vring_debugfs_show()
933 for (i = 0; i < ARRAY_SIZE(wil->sta); i++) { in wil_bf_debugfs_show()
1099 for (i = 0; i < ARRAY_SIZE(wil->sta); i++) { in wil_link_debugfs_show()
1100 struct wil_sta_info *p = &wil->sta[i]; in wil_link_debugfs_show()
1280 for (i = 0; i < ARRAY_SIZE(wil->sta); i++) { in wil_sta_debugfs_show()
1281 struct wil_sta_info *p = &wil->sta[i]; in wil_sta_debugfs_show()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dflowring.c74 bool sta; in brcmf_flowring_lookup() local
79 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); in brcmf_flowring_lookup()
81 if ((!sta) && (is_multicast_ether_addr(da))) { in brcmf_flowring_lookup()
85 if ((sta) && (flow->tdls_active) && in brcmf_flowring_lookup()
87 sta = false; in brcmf_flowring_lookup()
89 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_lookup()
94 if ((sta || (memcmp(hash[hash_idx].mac, mac, ETH_ALEN) == 0)) && in brcmf_flowring_lookup()
118 bool sta; in brcmf_flowring_create() local
122 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); in brcmf_flowring_create()
124 if ((!sta) && (is_multicast_ether_addr(da))) { in brcmf_flowring_create()
[all …]
/linux-4.1.27/drivers/net/wireless/cw1200/
Dsta.h38 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
97 int cw1200_set_tim(struct ieee80211_hw *dev, struct ieee80211_sta *sta,
100 struct ieee80211_sta *sta);
102 struct ieee80211_sta *sta);
105 struct ieee80211_sta *sta);
113 struct ieee80211_sta *sta, u16 tid, u16 *ssn,
Dtxrx.c412 struct ieee80211_sta *sta; member
443 if (t->sta && t->sta_priv->link_id) in cw1200_tx_h_calc_link_ids()
472 if (t->sta && (t->sta->uapsd_queues & BIT(t->queue))) in cw1200_tx_h_calc_link_ids()
719 struct ieee80211_sta *sta; in cw1200_tx() local
731 t.sta = control->sta; in cw1200_tx()
732 t.sta_priv = (struct cw1200_sta_priv *)&t.sta->drv_priv; in cw1200_tx()
769 sta = rcu_dereference(t.sta); in cw1200_tx()
779 if (tid_update && sta) in cw1200_tx()
780 ieee80211_sta_set_buffered(sta, t.txpriv.tid, true); in cw1200_tx()
810 struct ieee80211_sta *sta; in cw1200_handle_pspoll() local
[all …]
Dsta.c688 struct ieee80211_vif *vif, struct ieee80211_sta *sta, in cw1200_set_key() argument
709 if (sta) in cw1200_set_key()
710 peer_addr = sta->addr; in cw1200_set_key()
1553 struct ieee80211_sta *sta) in cw1200_sta_add() argument
1557 (struct cw1200_sta_priv *)&sta->drv_priv; in cw1200_sta_add()
1564 sta_priv->link_id = cw1200_find_link_id(priv, sta->addr); in cw1200_sta_add()
1573 if ((sta->uapsd_queues & IEEE80211_WMM_IE_STA_QOSINFO_AC_MASK) == in cw1200_sta_add()
1584 struct ieee80211_sta *sta) in cw1200_sta_remove() argument
1588 (struct cw1200_sta_priv *)&sta->drv_priv; in cw1200_sta_remove()
1650 struct ieee80211_sta *sta) in cw1200_sta_notify() argument
[all …]
DMakefile9 sta.o \
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D3945-rs.c334 il3945_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id) in il3945_rs_rate_init() argument
347 psta = (struct il3945_sta_priv *)sta->drv_priv; in il3945_rs_rate_init()
375 if (sta->supp_rates[sband->band] & (1 << i)) { in il3945_rs_rate_init()
381 il->_3945.sta_supp_rates = sta->supp_rates[sband->band]; in il3945_rs_rate_init()
407 il3945_rs_alloc_sta(void *il_priv, struct ieee80211_sta *sta, gfp_t gfp) in il3945_rs_alloc_sta() argument
410 struct il3945_sta_priv *psta = (void *)sta->drv_priv; in il3945_rs_alloc_sta()
426 il3945_rs_free_sta(void *il_priv, struct ieee80211_sta *sta, void *il_sta) in il3945_rs_free_sta() argument
446 struct ieee80211_sta *sta, void *il_sta, in il3945_rs_tx_status() argument
623 il3945_rs_get_rate(void *il_r, struct ieee80211_sta *sta, void *il_sta, in il3945_rs_get_rate() argument
653 if (rate_control_send_low(sta, il_sta, txrc)) in il3945_rs_get_rate()
[all …]
D4965.h82 struct ieee80211_sta *sta,
85 struct ieee80211_sta *sta, u16 tid, u16 * ssn);
87 struct ieee80211_sta *sta, u16 tid);
144 struct ieee80211_sta *sta, u32 iv32,
147 int il4965_sta_rx_agg_start(struct il_priv *il, struct ieee80211_sta *sta,
149 int il4965_sta_rx_agg_stop(struct il_priv *il, struct ieee80211_sta *sta,
177 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
182 struct ieee80211_sta *sta, u32 iv32,
186 struct ieee80211_sta *sta, u16 tid, u16 * ssn,
189 struct ieee80211_sta *sta);
D4965-rs.c143 struct ieee80211_sta *sta,
354 u8 tid, struct ieee80211_sta *sta) in il4965_rs_tl_turn_on_agg_for_tid() argument
362 D_HT("Starting Tx agg: STA: %pM tid: %d\n", sta->addr, tid); in il4965_rs_tl_turn_on_agg_for_tid()
363 ret = ieee80211_start_tx_ba_session(sta, tid, 5000); in il4965_rs_tl_turn_on_agg_for_tid()
371 ieee80211_stop_tx_ba_session(sta, tid); in il4965_rs_tl_turn_on_agg_for_tid()
382 struct ieee80211_sta *sta) in il4965_rs_tl_turn_on_agg() argument
385 il4965_rs_tl_turn_on_agg_for_tid(il, lq_data, tid, sta); in il4965_rs_tl_turn_on_agg()
643 il4965_rs_use_green(struct il_priv *il, struct ieee80211_sta *sta) in il4965_rs_use_green() argument
645 return (sta->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && in il4965_rs_use_green()
807 struct ieee80211_sta *sta, void *il_sta, in il4965_rs_tx_status() argument
[all …]
D4965-mac.c1556 struct ieee80211_sta *sta, in il4965_tx_cmd_build_rate() argument
1591 rate_idx = rate_lowest_index(&il->bands[info->band], sta); in il4965_tx_cmd_build_rate()
1659 struct ieee80211_sta *sta, in il4965_tx_skb() argument
1709 sta_id = il_sta_id_or_broadcast(il, sta); in il4965_tx_skb()
1719 if (sta) in il4965_tx_skb()
1720 sta_priv = (void *)sta->drv_priv; in il4965_tx_skb()
1814 il4965_tx_cmd_build_rate(il, tx_cmd, info, sta, fc); in il4965_tx_skb()
2234 struct ieee80211_sta *sta, u16 tid, u16 * ssn) in il4965_tx_agg_start() argument
2248 D_HT("%s on ra = %pM tid = %d\n", __func__, sta->addr, tid); in il4965_tx_agg_start()
2250 sta_id = il_sta_id(sta); in il4965_tx_agg_start()
[all …]
Dcommon.c1760 sta_id, il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate()
1765 il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate()
1769 il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate()
1777 u8 sta_id = addsta->sta.sta_id; in il_process_add_sta_resp()
1813 il->stations[sta_id].sta.mode == in il_process_add_sta_resp()
1815 il->stations[sta_id].sta.sta.addr); in il_process_add_sta_resp()
1826 il->stations[sta_id].sta.mode == in il_process_add_sta_resp()
1827 STA_CONTROL_MODIFY_MSK ? "Modified" : "Added", addsta->sta.addr); in il_process_add_sta_resp()
1844 il_send_add_sta(struct il_priv *il, struct il_addsta_cmd *sta, u8 flags) in il_send_add_sta() argument
1848 u8 data[sizeof(*sta)]; in il_send_add_sta()
[all …]
D3945-mac.c155 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info()
157 if ((il->stations[sta_id].sta.key. in il3945_set_ccmp_dynamic_key_info()
159 il->stations[sta_id].sta.key.key_offset = in il3945_set_ccmp_dynamic_key_info()
164 WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, in il3945_set_ccmp_dynamic_key_info()
167 il->stations[sta_id].sta.key.key_flags = key_flags; in il3945_set_ccmp_dynamic_key_info()
168 il->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_KEY_MASK; in il3945_set_ccmp_dynamic_key_info()
169 il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in il3945_set_ccmp_dynamic_key_info()
173 ret = il_send_add_sta(il, &il->stations[sta_id].sta, CMD_ASYNC); in il3945_set_ccmp_dynamic_key_info()
202 memset(&il->stations[sta_id].sta.key, 0, sizeof(struct il4965_keyinfo)); in il3945_clear_sta_key_info()
203 il->stations[sta_id].sta.key.key_flags = STA_KEY_FLG_NO_ENC; in il3945_clear_sta_key_info()
[all …]
Dcommon.h720 struct il_addsta_cmd sta; member
2138 int il_send_add_sta(struct il_priv *il, struct il_addsta_cmd *sta, u8 flags);
2140 struct ieee80211_sta *sta, u8 *sta_id_r);
2143 struct ieee80211_sta *sta);
2146 struct ieee80211_sta *sta);
2173 il_sta_id(struct ieee80211_sta *sta) in il_sta_id() argument
2175 if (WARN_ON(!sta)) in il_sta_id()
2178 return ((struct il_station_priv_common *)sta->drv_priv)->sta_id; in il_sta_id()
2193 il_sta_id_or_broadcast(struct il_priv *il, struct ieee80211_sta *sta) in il_sta_id_or_broadcast() argument
2197 if (!sta) in il_sta_id_or_broadcast()
[all …]
/linux-4.1.27/drivers/i2c/busses/
Di2c-st.c342 u32 sta; in st_i2c_wait_free_bus() local
346 sta = readl_relaxed(i2c_dev->base + SSC_STA); in st_i2c_wait_free_bus()
347 if (!(sta & SSC_STA_BUSY)) in st_i2c_wait_free_bus()
353 dev_err(i2c_dev->dev, "bus not free (status = 0x%08x)\n", sta); in st_i2c_wait_free_bus()
380 u32 tx_fstat, sta; in st_i2c_wr_fill_tx_fifo() local
383 sta = readl_relaxed(i2c_dev->base + SSC_STA); in st_i2c_wr_fill_tx_fifo()
384 if (sta & SSC_STA_TX_FIFO_FULL) in st_i2c_wr_fill_tx_fifo()
409 u32 tx_fstat, sta; in st_i2c_rd_fill_tx_fifo() local
412 sta = readl_relaxed(i2c_dev->base + SSC_STA); in st_i2c_rd_fill_tx_fifo()
413 if (sta & SSC_STA_TX_FIFO_FULL) in st_i2c_rd_fill_tx_fifo()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dmain.c66 struct ath6kl_sta *sta; in ath6kl_add_new_sta() local
71 sta = &ar->sta_list[free_slot]; in ath6kl_add_new_sta()
72 memcpy(sta->mac, mac, ETH_ALEN); in ath6kl_add_new_sta()
74 memcpy(sta->wpa_ie, wpaie, ielen); in ath6kl_add_new_sta()
75 sta->aid = aid; in ath6kl_add_new_sta()
76 sta->keymgmt = keymgmt; in ath6kl_add_new_sta()
77 sta->ucipher = ucipher; in ath6kl_add_new_sta()
78 sta->auth = auth; in ath6kl_add_new_sta()
79 sta->apsd_info = apsd_info; in ath6kl_add_new_sta()
82 ar->ap_stats.sta[free_slot].aid = cpu_to_le32(aid); in ath6kl_add_new_sta()
[all …]
Dtxrx.c1705 struct ath6kl_sta *sta; in aggr_recv_addba_req_evt() local
1714 sta = ath6kl_find_sta_by_aid(vif->ar, aid); in aggr_recv_addba_req_evt()
1715 if (sta) in aggr_recv_addba_req_evt()
1716 aggr_conn = sta->aggr_conn; in aggr_recv_addba_req_evt()
1803 struct ath6kl_sta *sta; in aggr_recv_delba_req_evt() local
1810 sta = ath6kl_find_sta_by_aid(vif->ar, aid); in aggr_recv_delba_req_evt()
1811 if (sta) in aggr_recv_delba_req_evt()
1812 aggr_conn = sta->aggr_conn; in aggr_recv_delba_req_evt()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dcmd.c530 cmd->sta.basic_rate_set = cpu_to_le32(wlvif->basic_rate_set); in wl12xx_cmd_role_start_sta()
531 cmd->sta.beacon_interval = cpu_to_le16(wlvif->beacon_int); in wl12xx_cmd_role_start_sta()
532 cmd->sta.ssid_type = WL12XX_SSID_TYPE_ANY; in wl12xx_cmd_role_start_sta()
533 cmd->sta.ssid_len = wlvif->ssid_len; in wl12xx_cmd_role_start_sta()
534 memcpy(cmd->sta.ssid, wlvif->ssid, wlvif->ssid_len); in wl12xx_cmd_role_start_sta()
535 memcpy(cmd->sta.bssid, vif->bss_conf.bssid, ETH_ALEN); in wl12xx_cmd_role_start_sta()
542 cmd->sta.local_rates = cpu_to_le32(supported_rates); in wl12xx_cmd_role_start_sta()
546 if (wlvif->sta.hlid == WL12XX_INVALID_LINK_ID) { in wl12xx_cmd_role_start_sta()
547 ret = wl12xx_allocate_link(wl, wlvif, &wlvif->sta.hlid); in wl12xx_cmd_role_start_sta()
551 cmd->sta.hlid = wlvif->sta.hlid; in wl12xx_cmd_role_start_sta()
[all …]
Dps.c276 struct ieee80211_sta *sta; in wl12xx_ps_link_start() local
291 sta = ieee80211_find_sta(vif, wl->links[hlid].addr); in wl12xx_ps_link_start()
292 if (!sta) { in wl12xx_ps_link_start()
299 ieee80211_sta_ps_transition_ni(sta, true); in wl12xx_ps_link_start()
311 struct ieee80211_sta *sta; in wl12xx_ps_link_end() local
322 sta = ieee80211_find_sta(vif, wl->links[hlid].addr); in wl12xx_ps_link_end()
323 if (!sta) { in wl12xx_ps_link_end()
329 ieee80211_sta_ps_transition_ni(sta, false); in wl12xx_ps_link_end()
Dmain.c71 ret = wl12xx_cmd_set_peer_state(wl, wlvif, wlvif->sta.hlid); in wl12xx_set_authorized()
916 u8 hlid, struct ieee80211_sta *sta) in wlcore_save_freed_pkts() argument
921 wl_sta = (void *)sta->drv_priv; in wlcore_save_freed_pkts()
939 struct ieee80211_sta *sta; in wlcore_save_freed_pkts_addr() local
947 sta = ieee80211_find_sta(vif, addr); in wlcore_save_freed_pkts_addr()
948 if (sta) in wlcore_save_freed_pkts_addr()
949 wlcore_save_freed_pkts(wl, wlvif, hlid, sta); in wlcore_save_freed_pkts_addr()
1019 wlcore_save_freed_pkts_addr(wl, wlvif, wlvif->sta.hlid, in wl1271_recovery_work()
1274 hlid = wl12xx_tx_get_hlid(wl, wlvif, skb, control->sta); in wl1271_op_tx()
2282 wlvif->sta.hlid = WL12XX_INVALID_LINK_ID; in wl12xx_init_vif_data()
[all …]
Devent.c61 u8 hlid = wlvif->sta.hlid; in wl1271_stop_ba_event()
181 struct ieee80211_sta *sta; in wlcore_disconnect_sta() local
201 sta = ieee80211_find_sta(vif, addr); in wlcore_disconnect_sta()
202 if (sta) { in wlcore_disconnect_sta()
204 ieee80211_report_low_ack(sta, num_packets); in wlcore_disconnect_sta()
Dtx.c53 ret = wl12xx_cmd_set_default_wep_key(wl, id, wlvif->sta.hlid); in wl1271_set_default_wep_key()
154 struct sk_buff *skb, struct ieee80211_sta *sta) in wl12xx_tx_get_hlid_ap() argument
156 if (sta) { in wl12xx_tx_get_hlid_ap()
159 wl_sta = (struct wl1271_station *)sta->drv_priv; in wl12xx_tx_get_hlid_ap()
176 struct sk_buff *skb, struct ieee80211_sta *sta) in wl12xx_tx_get_hlid() argument
181 return wl12xx_tx_get_hlid_ap(wl, wlvif, skb, sta); in wl12xx_tx_get_hlid()
189 return wlvif->sta.hlid; in wl12xx_tx_get_hlid()
336 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr()
338 rate_idx = wlvif->sta.p2p_rate_idx; in wl1271_tx_fill_hdr()
340 rate_idx = wlvif->sta.ap_rate_idx; in wl1271_tx_fill_hdr()
[all …]
Dhw_ops.h195 struct ieee80211_sta *sta, in wlcore_hw_set_key() argument
201 return wl->ops->set_key(wl, cmd, vif, sta, key_conf); in wlcore_hw_set_key()
Ddebugfs.c578 VIF_STATE_PRINT_INT(sta.hlid); in vifs_state_read()
579 VIF_STATE_PRINT_INT(sta.basic_rate_idx); in vifs_state_read()
580 VIF_STATE_PRINT_INT(sta.ap_rate_idx); in vifs_state_read()
581 VIF_STATE_PRINT_INT(sta.p2p_rate_idx); in vifs_state_read()
582 VIF_STATE_PRINT_INT(sta.qos); in vifs_state_read()
Dwlcore.h103 struct ieee80211_sta *sta,
512 struct ieee80211_sta *sta,
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dtx.c140 struct ieee80211_sta *sta; in carl9170_tx_ps_unblock() local
144 sta = __carl9170_get_tx_sta(ar, skb); in carl9170_tx_ps_unblock()
145 if (unlikely(!sta)) in carl9170_tx_ps_unblock()
148 sta_info = (struct carl9170_sta_info *) sta->drv_priv; in carl9170_tx_ps_unblock()
150 ieee80211_sta_block_awake(ar->hw, sta, false); in carl9170_tx_ps_unblock()
383 struct ieee80211_sta *sta; in carl9170_tx_status_process_ampdu() local
393 sta = __carl9170_get_tx_sta(ar, skb); in carl9170_tx_status_process_ampdu()
394 if (unlikely(!sta)) in carl9170_tx_status_process_ampdu()
399 sta_info = (void *) sta->drv_priv; in carl9170_tx_status_process_ampdu()
609 struct ieee80211_sta *sta; in carl9170_tx_ampdu_timeout() local
[all …]
Dmain.c1176 struct ieee80211_sta *sta, in carl9170_op_set_key() argument
1234 sta = NULL; in carl9170_op_set_key()
1247 err = carl9170_upload_key(ar, i, sta ? sta->addr : NULL, in carl9170_op_set_key()
1254 err = carl9170_upload_key(ar, i, sta ? sta->addr : in carl9170_op_set_key()
1318 struct ieee80211_sta *sta) in carl9170_op_sta_add() argument
1320 struct carl9170_sta_info *sta_info = (void *) sta->drv_priv; in carl9170_op_sta_add()
1325 if (sta->ht_cap.ht_supported) { in carl9170_op_sta_add()
1326 if (sta->ht_cap.ampdu_density > 6) { in carl9170_op_sta_add()
1338 sta_info->ampdu_max_len = 1 << (3 + sta->ht_cap.ampdu_factor); in carl9170_op_sta_add()
1347 struct ieee80211_sta *sta) in carl9170_op_sta_remove() argument
[all …]
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00mac.c152 if (unlikely(rt2x00queue_write_tx_frame(queue, skb, control->sta, false))) in rt2x00mac_tx()
417 int rt2x00mac_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, in rt2x00mac_set_tim() argument
455 struct ieee80211_vif *vif, struct ieee80211_sta *sta, in rt2x00mac_set_key() argument
495 if (sta) { in rt2x00mac_set_key()
496 crypto.address = sta->addr; in rt2x00mac_set_key()
497 sta_priv = sta_to_rt2x00_sta(sta); in rt2x00mac_set_key()
539 struct ieee80211_sta *sta) in rt2x00mac_sta_add() argument
542 struct rt2x00_sta *sta_priv = sta_to_rt2x00_sta(sta); in rt2x00mac_sta_add()
548 if (rt2x00dev->ops->lib->sta_add(rt2x00dev, vif, sta)) in rt2x00mac_sta_add()
556 struct ieee80211_sta *sta) in rt2x00mac_sta_remove() argument
[all …]
Drt2x00.h508 static inline struct rt2x00_sta* sta_to_rt2x00_sta(struct ieee80211_sta *sta) in sta_to_rt2x00_sta() argument
510 return (struct rt2x00_sta *)sta->drv_priv; in sta_to_rt2x00_sta()
625 struct ieee80211_sta *sta);
1430 int rt2x00mac_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
1434 struct ieee80211_vif *vif, struct ieee80211_sta *sta,
1440 struct ieee80211_sta *sta);
1442 struct ieee80211_sta *sta);
Drt2x00queue.c302 struct ieee80211_sta *sta, in rt2x00queue_create_tx_descriptor_ht() argument
310 if (sta) { in rt2x00queue_create_tx_descriptor_ht()
312 sta->ht_cap.ampdu_density; in rt2x00queue_create_tx_descriptor_ht()
314 sta_priv = sta_to_rt2x00_sta(sta); in rt2x00queue_create_tx_descriptor_ht()
329 if (sta && txdesc->u.ht.mcs > 7 && in rt2x00queue_create_tx_descriptor_ht()
330 sta->smps_mode == IEEE80211_SMPS_DYNAMIC) in rt2x00queue_create_tx_descriptor_ht()
395 struct ieee80211_sta *sta) in rt2x00queue_create_tx_descriptor() argument
489 sta, hwrate); in rt2x00queue_create_tx_descriptor()
610 struct ieee80211_sta *sta, bool local) in rt2x00queue_write_tx_frame() argument
624 rt2x00queue_create_tx_descriptor(queue->rt2x00dev, skb, &txdesc, sta); in rt2x00queue_write_tx_frame()
Drt2800lib.h185 struct ieee80211_sta *sta);
221 struct ieee80211_sta *sta, u16 tid, u16 *ssn,
/linux-4.1.27/drivers/acpi/
Dbus.c96 unsigned long long *sta) in acpi_bus_get_status_handle() argument
100 status = acpi_evaluate_integer(handle, "_STA", NULL, sta); in acpi_bus_get_status_handle()
105 *sta = ACPI_STA_DEVICE_PRESENT | ACPI_STA_DEVICE_ENABLED | in acpi_bus_get_status_handle()
115 unsigned long long sta; in acpi_bus_get_status() local
117 status = acpi_bus_get_status_handle(device->handle, &sta); in acpi_bus_get_status()
121 acpi_set_device_status(device, sta); in acpi_bus_get_status()
126 device->pnp.bus_id, (u32)sta)); in acpi_bus_get_status()
130 device->pnp.bus_id, (u32)sta)); in acpi_bus_get_status()
Dpci_slot.c78 unsigned long long adr, sta; in check_slot() local
87 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in check_slot()
88 if (ACPI_SUCCESS(status) && !(sta & ACPI_STA_DEVICE_PRESENT)) in check_slot()
Dscan.c516 unsigned long long sta; in acpi_scan_hot_remove() local
548 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in acpi_scan_hot_remove()
552 } else if (sta & ACPI_STA_DEVICE_ENABLED) { in acpi_scan_hot_remove()
554 "Eject incomplete - status 0x%llx\n", sta); in acpi_scan_hot_remove()
848 unsigned long long sta; in status_show() local
850 status = acpi_evaluate_integer(acpi_dev->handle, "_STA", NULL, &sta); in status_show()
854 return sprintf(buf, "%llu\n", sta); in status_show()
2113 int type, unsigned long long sta) in acpi_init_device_object() argument
2120 acpi_set_device_status(device, sta); in acpi_init_device_object()
2140 unsigned long long sta) in acpi_add_single_object() argument
[all …]
Dacpi_processor.c169 unsigned long long sta; in acpi_processor_hotadd_init() local
176 status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta); in acpi_processor_hotadd_init()
177 if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_PRESENT)) in acpi_processor_hotadd_init()
Dglue.c88 unsigned long long sta; in find_child_checks() local
91 status = acpi_evaluate_integer(adev->handle, "_STA", NULL, &sta); in find_child_checks()
94 else if (ACPI_FAILURE(status) || !(sta & ACPI_STA_DEVICE_ENABLED)) in find_child_checks()
Ddock.c233 unsigned long long sta; in dock_present() local
237 status = acpi_evaluate_integer(ds->handle, "_STA", NULL, &sta); in dock_present()
238 if (ACPI_SUCCESS(status) && sta) in dock_present()
Dpower.c171 unsigned long long sta = 0; in acpi_power_get_state() local
179 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in acpi_power_get_state()
183 *state = (sta & 0x01)?ACPI_POWER_RESOURCE_STATE_ON: in acpi_power_get_state()
Dinternal.h94 int type, unsigned long long sta);
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c611 struct ieee80211_sta *sta, in rsi_mac80211_set_key() argument
673 struct ieee80211_sta *sta, in rsi_mac80211_ampdu_action() argument
713 ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid); in rsi_mac80211_ampdu_action()
726 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); in rsi_mac80211_ampdu_action()
915 struct ieee80211_sta *sta, in rsi_set_min_rate() argument
923 common->bitrate_mask[band] = sta->supp_rates[band]; in rsi_set_min_rate()
925 rate_bitmap = (common->fixedrate_mask[band] & sta->supp_rates[band]); in rsi_set_min_rate()
938 common->vif_info[0].is_ht = sta->ht_cap.ht_supported; in rsi_set_min_rate()
965 struct ieee80211_sta *sta) in rsi_mac80211_sta_add() argument
972 rsi_set_min_rate(hw, sta, common); in rsi_mac80211_sta_add()
[all …]
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c175 struct ieee80211_sta *sta; member
1672 struct ieee80211_sta *sta; in mwl8k_txq_reclaim() local
1713 sta = ieee80211_find_sta_by_ifaddr(hw, wh->addr1, in mwl8k_txq_reclaim()
1715 if (sta) { in mwl8k_txq_reclaim()
1716 sta_info = MWL8K_STA(sta); in mwl8k_txq_reclaim()
1775 mwl8k_add_stream(struct ieee80211_hw *hw, struct ieee80211_sta *sta, u8 tid) in mwl8k_add_stream() argument
1784 stream->sta = sta; in mwl8k_add_stream()
1789 sta->addr, tid); in mwl8k_add_stream()
1804 ret = ieee80211_start_tx_ba_session(stream->sta, stream->tid, 0); in mwl8k_start_stream()
1807 "%d\n", stream->sta->addr, stream->tid, ret); in mwl8k_start_stream()
[all …]
Dmac80211_hwsim.c211 static inline void hwsim_check_sta_magic(struct ieee80211_sta *sta) in hwsim_check_sta_magic() argument
213 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_check_sta_magic()
217 static inline void hwsim_set_sta_magic(struct ieee80211_sta *sta) in hwsim_set_sta_magic() argument
219 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_set_sta_magic()
223 static inline void hwsim_clear_sta_magic(struct ieee80211_sta *sta) in hwsim_clear_sta_magic() argument
225 struct hwsim_sta_priv *sp = (void *)sta->drv_priv; in hwsim_clear_sta_magic()
1286 if (control->sta) in mac80211_hwsim_tx()
1287 hwsim_check_sta_magic(control->sta); in mac80211_hwsim_tx()
1290 ieee80211_get_tx_rates(txi->control.vif, control->sta, skb, in mac80211_hwsim_tx()
1661 struct ieee80211_sta *sta) in mac80211_hwsim_sta_add() argument
[all …]
/linux-4.1.27/drivers/net/ethernet/pasemi/
Dpasemi_mac.c1266 unsigned int sta, retries; in pasemi_mac_pause_txchan() local
1273 sta = read_dma_reg(PAS_DMA_TXCHAN_TCMDSTA(txch)); in pasemi_mac_pause_txchan()
1274 if (!(sta & PAS_DMA_TXCHAN_TCMDSTA_ACT)) in pasemi_mac_pause_txchan()
1279 if (sta & PAS_DMA_TXCHAN_TCMDSTA_ACT) in pasemi_mac_pause_txchan()
1281 "Failed to stop tx channel, tcmdsta %08x\n", sta); in pasemi_mac_pause_txchan()
1288 unsigned int sta, retries; in pasemi_mac_pause_rxchan() local
1294 sta = read_dma_reg(PAS_DMA_RXCHAN_CCMDSTA(rxch)); in pasemi_mac_pause_rxchan()
1295 if (!(sta & PAS_DMA_RXCHAN_CCMDSTA_ACT)) in pasemi_mac_pause_rxchan()
1300 if (sta & PAS_DMA_RXCHAN_CCMDSTA_ACT) in pasemi_mac_pause_rxchan()
1302 "Failed to stop rx channel, ccmdsta 08%x\n", sta); in pasemi_mac_pause_rxchan()
[all …]
/linux-4.1.27/drivers/pci/hotplug/
Dacpiphp_glue.c588 unsigned long long sta = 0; in get_slot_status() local
596 "_STA", NULL, &sta); in get_slot_status()
597 if (ACPI_SUCCESS(status) && sta) in get_slot_status()
607 sta = ACPI_STA_ALL; in get_slot_status()
613 return (unsigned int)sta; in get_slot_status()
616 static inline bool device_status_valid(unsigned int sta) in device_status_valid() argument
624 return (sta & mask) == mask; in device_status_valid()
639 unsigned long long sta; in trim_stale_devices() local
641 status = acpi_evaluate_integer(adev->handle, "_STA", NULL, &sta); in trim_stale_devices()
642 alive = (ACPI_SUCCESS(status) && device_status_valid(sta)) in trim_stale_devices()
/linux-4.1.27/drivers/staging/vt6655/
Dkey.c113 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, in vnt_set_keys() argument
123 if (sta) in vnt_set_keys()
124 mac_addr = &sta->addr[0]; in vnt_set_keys()
Dkey.h66 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
/linux-4.1.27/drivers/staging/vt6656/
Dkey.c121 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, in vnt_set_keys() argument
130 if (sta) in vnt_set_keys()
131 mac_addr = &sta->addr[0]; in vnt_set_keys()
Dkey.h52 int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
/linux-4.1.27/arch/sparc/kernel/
Dwuf.S268 LEON_PI(sta %l5, [%g0] ASI_LEON_MMUREGS) ! store it
269 SUN_PI_(sta %l5, [%g0] ASI_M_MMUREGS) ! store it
284 LEON_PI(sta %twin_tmp1, [%g0] ASI_LEON_MMUREGS) ! store it
285 SUN_PI_(sta %twin_tmp1, [%g0] ASI_M_MMUREGS) ! store it
Drtrap_32.S240 LEON_PI(sta %g1, [%g0] ASI_LEON_MMUREGS)
241 SUN_PI_(sta %g1, [%g0] ASI_M_MMUREGS)
250 LEON_PI(sta %g1, [%g0] ASI_LEON_MMUREGS)
251 SUN_PI_(sta %g1, [%g0] ASI_M_MMUREGS)
Detrap_32.S253 LEON_PI(sta %glob_tmp, [%g0] ASI_LEON_MMUREGS) ! set it
254 SUN_PI_(sta %glob_tmp, [%g0] ASI_M_MMUREGS) ! set it
261 LEON_PI(sta %glob_tmp, [%g0] ASI_LEON_MMUREGS)
262 SUN_PI_(sta %glob_tmp, [%g0] ASI_M_MMUREGS)
Dwof.S341 LEON_PI(sta %glob_tmp, [%g0] ASI_LEON_MMUREGS) ! set it
342 SUN_PI_(sta %glob_tmp, [%g0] ASI_M_MMUREGS) ! set it
349 LEON_PI(sta %glob_tmp, [%g0] ASI_LEON_MMUREGS)
350 SUN_PI_(sta %glob_tmp, [%g0] ASI_M_MMUREGS)
Dhead_32.S258 sta %g6, [%g0] ASI_M_MMUREGS ! Close your eyes...
276 sta %o2, [%o3] ASI_M_BYPASS
289 sta %g5, [%g0] ASI_M_MMUREGS ! POW... ouch
318 sta %g2, [%g3] ASI_M_BYPASS ! place at KERNBASE entry
342 sta %g2, [%g3] ASI_M_BYPASS ! place at KERNBASE entry
463 sta %g4, [%g0] ASI_M_VIKING_TMP1
Dtrampoline_32.S118 sta %g1, [%g0] ASI_M_VIKING_TMP1
155 sta %g1, [%g5] ASI_LEON_MMUREGS
/linux-4.1.27/drivers/net/wireless/p54/
Dmain.c39 struct ieee80211_sta *sta) in p54_sta_add_remove() argument
48 p54_sta_unlock(priv, sta->addr); in p54_sta_add_remove()
55 struct ieee80211_sta *sta) in p54_sta_notify() argument
62 p54_sta_unlock(priv, sta->addr); in p54_sta_notify()
69 static int p54_set_tim(struct ieee80211_hw *dev, struct ieee80211_sta *sta, in p54_set_tim() argument
74 return p54_update_beacon_tim(priv, sta->aid, set); in p54_set_tim()
506 struct ieee80211_vif *vif, struct ieee80211_sta *sta, in p54_set_key() argument
593 if (sta) in p54_set_key()
594 addr = sta->addr; in p54_set_key()
Dfwio.c285 struct p54_sta_unlock *sta; in p54_sta_unlock() local
287 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*sta), in p54_sta_unlock()
292 sta = (struct p54_sta_unlock *)skb_put(skb, sizeof(*sta)); in p54_sta_unlock()
293 memcpy(sta->addr, addr, ETH_ALEN); in p54_sta_unlock()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ce/
Dhw.h63 struct ieee80211_sta *sta, u8 rssi_level);
65 struct ieee80211_sta *sta, u8 rssi_level);
Dtrx.c425 struct ieee80211_sta *sta, in rtl92ce_tx_fill_desc() argument
456 sta = get_sta(hw, mac->vif, mac->bssid); in rtl92ce_tx_fill_desc()
462 if (sta) in rtl92ce_tx_fill_desc()
463 bw_40 = sta->bandwidth >= IEEE80211_STA_RX_BW_40; in rtl92ce_tx_fill_desc()
468 rtl_get_tcb_desc(hw, info, sta, skb, tcb_desc); in rtl92ce_tx_fill_desc()
524 if (sta) { in rtl92ce_tx_fill_desc()
525 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92ce_tx_fill_desc()
Dhw.c1842 struct ieee80211_sta *sta) in rtl92ce_update_hal_rate_table() argument
1855 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92ce_update_hal_rate_table()
1857 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92ce_update_hal_rate_table()
1863 ratr_value = sta->supp_rates[1] << 4; in rtl92ce_update_hal_rate_table()
1865 ratr_value = sta->supp_rates[0]; in rtl92ce_update_hal_rate_table()
1869 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92ce_update_hal_rate_table()
1870 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92ce_update_hal_rate_table()
1934 struct ieee80211_sta *sta, u8 rssi_level) in rtl92ce_update_hal_rate_mask() argument
1943 u8 curtxbw_40mhz = (sta->ht_cap.cap & in rtl92ce_update_hal_rate_mask()
1945 u8 curshortgi_40mhz = (sta->ht_cap.cap & in rtl92ce_update_hal_rate_mask()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/
Dkey.c475 struct ieee80211_sta *sta, in ath_key_config() argument
517 if (!sta) { in ath_key_config()
521 memcpy(gmac, sta->addr, ETH_ALEN); in ath_key_config()
531 if (WARN_ON(!sta)) in ath_key_config()
533 mac = sta->addr; in ath_key_config()
542 if (WARN_ON(!sta)) in ath_key_config()
544 mac = sta->addr; in ath_key_config()
/linux-4.1.27/drivers/edac/
Docteon_edac-pci.c49 if (cfg01.s.sta) { in octeon_pci_poll()
51 cfg01.s.sta = 1; /* Reset */ in octeon_pci_poll()
/linux-4.1.27/arch/powerpc/platforms/pasemi/
Ddma_lib.c321 u32 sta; in pasemi_dma_stop_chan() local
327 sta = pasemi_read_dma_reg(reg); in pasemi_dma_stop_chan()
328 if (!(sta & PAS_DMA_RXCHAN_CCMDSTA_ACT)) { in pasemi_dma_stop_chan()
338 sta = pasemi_read_dma_reg(reg); in pasemi_dma_stop_chan()
339 if (!(sta & PAS_DMA_TXCHAN_TCMDSTA_ACT)) { in pasemi_dma_stop_chan()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192se/
Dhw.c2032 struct ieee80211_sta *sta) in rtl92se_update_hal_rate_table() argument
2045 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92se_update_hal_rate_table()
2047 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92se_update_hal_rate_table()
2052 ratr_value = sta->supp_rates[1] << 4; in rtl92se_update_hal_rate_table()
2054 ratr_value = sta->supp_rates[0]; in rtl92se_update_hal_rate_table()
2057 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92se_update_hal_rate_table()
2058 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92se_update_hal_rate_table()
2133 struct ieee80211_sta *sta, in rtl92se_update_hal_rate_mask() argument
2143 u8 curtxbw_40mhz = (sta->bandwidth >= IEEE80211_STA_RX_BW_40) ? 1 : 0; in rtl92se_update_hal_rate_mask()
2144 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92se_update_hal_rate_mask()
[all …]
Dtrx.h35 struct ieee80211_sta *sta,
Dhw.h66 struct ieee80211_sta *sta, u8 rssi_level);
Dtrx.c341 struct ieee80211_sta *sta, in rtl92se_tx_fill_desc() argument
370 if (sta) in rtl92se_tx_fill_desc()
371 bw_40 = sta->bandwidth >= IEEE80211_STA_RX_BW_40; in rtl92se_tx_fill_desc()
376 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92se_tx_fill_desc()
Ddm.c234 struct ieee80211_sta *sta = NULL; in _rtl92s_dm_refresh_rateadaptive_mask() local
300 sta = rtl_find_sta(hw, mac->bssid); in _rtl92s_dm_refresh_rateadaptive_mask()
301 if (sta) in _rtl92s_dm_refresh_rateadaptive_mask()
302 rtlpriv->cfg->ops->update_rate_tbl(hw, sta, in _rtl92s_dm_refresh_rateadaptive_mask()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192de/
Dhw.c1866 struct ieee80211_sta *sta) in rtl92de_update_hal_rate_table() argument
1879 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92de_update_hal_rate_table()
1881 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92de_update_hal_rate_table()
1886 ratr_value = sta->supp_rates[1] << 4; in rtl92de_update_hal_rate_table()
1888 ratr_value = sta->supp_rates[0]; in rtl92de_update_hal_rate_table()
1889 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92de_update_hal_rate_table()
1890 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92de_update_hal_rate_table()
1948 struct ieee80211_sta *sta, u8 rssi_level) in rtl92de_update_hal_rate_mask() argument
1957 u8 curtxbw_40mhz = (sta->bandwidth >= IEEE80211_STA_RX_BW_40) ? 1 : 0; in rtl92de_update_hal_rate_mask()
1958 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92de_update_hal_rate_mask()
[all …]
Dtrx.c548 struct ieee80211_sta *sta, in rtl92de_tx_fill_desc() argument
574 if (sta) in rtl92de_tx_fill_desc()
575 bw_40 = sta->bandwidth >= IEEE80211_STA_RX_BW_40; in rtl92de_tx_fill_desc()
578 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92de_tx_fill_desc()
661 if (sta) { in rtl92de_tx_fill_desc()
662 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92de_tx_fill_desc()
Dhw.h50 struct ieee80211_sta *sta, u8 rssi_level);
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/
Dtrx.c365 struct ieee80211_sta *sta, in rtl8723e_tx_fill_desc() argument
399 if (sta) in rtl8723e_tx_fill_desc()
400 bw_40 = sta->ht_cap.cap & in rtl8723e_tx_fill_desc()
406 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl8723e_tx_fill_desc()
465 if (sta) { in rtl8723e_tx_fill_desc()
466 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl8723e_tx_fill_desc()
Dhw.c1904 struct ieee80211_sta *sta) in rtl8723e_update_hal_rate_table() argument
1916 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723e_update_hal_rate_table()
1918 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8723e_update_hal_rate_table()
1924 ratr_value = sta->supp_rates[1] << 4; in rtl8723e_update_hal_rate_table()
1926 ratr_value = sta->supp_rates[0]; in rtl8723e_update_hal_rate_table()
1929 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8723e_update_hal_rate_table()
1930 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8723e_update_hal_rate_table()
1993 struct ieee80211_sta *sta, in rtl8723e_update_hal_rate_mask() argument
2003 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl8723e_update_hal_rate_mask()
2005 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723e_update_hal_rate_mask()
[all …]
Dhw.h52 struct ieee80211_sta *sta, u8 rssi_level);
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/
Dhw.c2015 struct ieee80211_sta *sta) in rtl92cu_update_hal_rate_table() argument
2028 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92cu_update_hal_rate_table()
2030 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92cu_update_hal_rate_table()
2035 ratr_value = sta->supp_rates[1] << 4; in rtl92cu_update_hal_rate_table()
2037 ratr_value = sta->supp_rates[0]; in rtl92cu_update_hal_rate_table()
2041 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92cu_update_hal_rate_table()
2042 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92cu_update_hal_rate_table()
2104 struct ieee80211_sta *sta, in rtl92cu_update_hal_rate_mask() argument
2114 u8 curtxbw_40mhz = (sta->bandwidth >= IEEE80211_STA_RX_BW_40) ? 1 : 0; in rtl92cu_update_hal_rate_mask()
2116 (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92cu_update_hal_rate_mask()
[all …]
Dtrx.c498 struct ieee80211_sta *sta, in rtl92cu_tx_fill_desc() argument
518 rtl_get_tcb_desc(hw, info, sta, skb, tcb_desc); in rtl92cu_tx_fill_desc()
565 sta = ieee80211_find_sta(mac->vif, mac->bssid); in rtl92cu_tx_fill_desc()
566 if (sta) { in rtl92cu_tx_fill_desc()
567 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92cu_tx_fill_desc()
Dhw.h110 struct ieee80211_sta *sta,
/linux-4.1.27/arch/sparc/crypto/
Dcrc32c_asm.S16 sta %f1, [%o0] ASI_PL
/linux-4.1.27/drivers/xen/
Dxen-acpi-cpuhotplug.c137 unsigned long long sta = 0; in is_processor_present() local
140 status = acpi_evaluate_integer(handle, "_STA", NULL, &sta); in is_processor_present()
142 if (ACPI_SUCCESS(status) && (sta & ACPI_STA_DEVICE_PRESENT)) in is_processor_present()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
Dhw.c2041 struct ieee80211_sta *sta) in rtl88ee_update_hal_rate_table() argument
2054 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl88ee_update_hal_rate_table()
2056 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl88ee_update_hal_rate_table()
2062 ratr_value = sta->supp_rates[1] << 4; in rtl88ee_update_hal_rate_table()
2064 ratr_value = sta->supp_rates[0]; in rtl88ee_update_hal_rate_table()
2067 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl88ee_update_hal_rate_table()
2068 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl88ee_update_hal_rate_table()
2131 struct ieee80211_sta *sta, u8 rssi_level) in rtl88ee_update_hal_rate_mask() argument
2140 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl88ee_update_hal_rate_mask()
2142 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl88ee_update_hal_rate_mask()
[all …]
Dtrx.c500 struct ieee80211_sta *sta, in rtl88ee_tx_fill_desc() argument
527 if (sta) in rtl88ee_tx_fill_desc()
528 bw_40 = sta->ht_cap.cap & in rtl88ee_tx_fill_desc()
532 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl88ee_tx_fill_desc()
614 if (sta) { in rtl88ee_tx_fill_desc()
615 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl88ee_tx_fill_desc()
Dhw.h50 struct ieee80211_sta *sta, u8 rssi_level);
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723be/
Dtrx.c427 struct ieee80211_sta *sta, struct sk_buff *skb, in rtl8723be_tx_fill_desc() argument
452 if (sta) in rtl8723be_tx_fill_desc()
453 bw_40 = sta->ht_cap.cap & in rtl8723be_tx_fill_desc()
457 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl8723be_tx_fill_desc()
538 if (sta) { in rtl8723be_tx_fill_desc()
539 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl8723be_tx_fill_desc()
Dhw.h48 struct ieee80211_sta *sta,
Dhw.c2327 struct ieee80211_sta *sta, in rtl8723be_update_hal_rate_mask() argument
2336 u8 curtxbw_40mhz = (sta->ht_cap.cap & in rtl8723be_update_hal_rate_mask()
2338 u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8723be_update_hal_rate_mask()
2340 u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8723be_update_hal_rate_mask()
2347 sta_entry = (struct rtl_sta_info *)sta->drv_priv; in rtl8723be_update_hal_rate_mask()
2354 macid = sta->aid + 1; in rtl8723be_update_hal_rate_mask()
2356 ratr_bitmap = sta->supp_rates[0]; in rtl8723be_update_hal_rate_mask()
2361 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8723be_update_hal_rate_mask()
2362 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8723be_update_hal_rate_mask()
2463 struct ieee80211_sta *sta, in rtl8723be_update_hal_rate_tbl() argument
[all …]
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8821ae/
Dhw.c3358 struct ieee80211_sta *sta) in rtl8821ae_update_hal_rate_table() argument
3371 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl8821ae_update_hal_rate_table()
3373 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl8821ae_update_hal_rate_table()
3378 ratr_value = sta->supp_rates[1] << 4; in rtl8821ae_update_hal_rate_table()
3380 ratr_value = sta->supp_rates[0]; in rtl8821ae_update_hal_rate_table()
3383 ratr_value |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl8821ae_update_hal_rate_table()
3384 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl8821ae_update_hal_rate_table()
3620 static bool _rtl8821ae_get_ra_shortgi(struct ieee80211_hw *hw, struct ieee80211_sta *sta, in _rtl8821ae_get_ra_shortgi() argument
3624 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in _rtl8821ae_get_ra_shortgi()
3626 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in _rtl8821ae_get_ra_shortgi()
[all …]
Dhw.h48 struct ieee80211_sta *sta,
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192ee/
Dhw.h46 struct ieee80211_sta *sta, u8 rssi_level);
Dtrx.c665 struct ieee80211_sta *sta, in rtl92ee_tx_fill_desc() argument
690 if (sta) in rtl92ee_tx_fill_desc()
691 bw_40 = sta->ht_cap.cap & in rtl92ee_tx_fill_desc()
695 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92ee_tx_fill_desc()
789 if (sta) { in rtl92ee_tx_fill_desc()
790 u8 ampdu_density = sta->ht_cap.ampdu_density; in rtl92ee_tx_fill_desc()
Dhw.c2306 struct ieee80211_sta *sta, in rtl92ee_update_hal_rate_mask() argument
2315 u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) in rtl92ee_update_hal_rate_mask()
2317 u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? in rtl92ee_update_hal_rate_mask()
2319 u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? in rtl92ee_update_hal_rate_mask()
2326 sta_entry = (struct rtl_sta_info *)sta->drv_priv; in rtl92ee_update_hal_rate_mask()
2333 macid = sta->aid + 1; in rtl92ee_update_hal_rate_mask()
2335 ratr_bitmap = sta->supp_rates[0]; in rtl92ee_update_hal_rate_mask()
2339 ratr_bitmap |= (sta->ht_cap.mcs.rx_mask[1] << 20 | in rtl92ee_update_hal_rate_mask()
2340 sta->ht_cap.mcs.rx_mask[0] << 12); in rtl92ee_update_hal_rate_mask()
2441 struct ieee80211_sta *sta, u8 rssi_level) in rtl92ee_update_hal_rate_tbl() argument
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dampdu.c148 struct ieee80211_sta *sta; member
1128 struct ieee80211_sta *sta = arg_a; in dma_cb_fn_ampdu() local
1132 (tx_info->rate_driver_data[0] == sta || sta == NULL)) in dma_cb_fn_ampdu()
1141 struct ieee80211_sta *sta, u16 tid) in brcms_c_ampdu_flush() argument
1143 brcms_c_inval_dma_pkts(wlc->hw, sta, dma_cb_fn_ampdu); in brcms_c_ampdu_flush()
Dmac80211_if.c418 tx_info->rate_driver_data[0] = control->sta; in brcms_ops_tx()
803 struct ieee80211_sta *sta) in brcms_ops_sta_add() argument
825 struct ieee80211_sta *sta, u16 tid, u16 *ssn, in brcms_ops_ampdu_action() argument
848 ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid); in brcms_ops_ampdu_action()
855 brcms_c_ampdu_flush(wl->wlc, sta, tid); in brcms_ops_ampdu_action()
857 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid); in brcms_ops_ampdu_action()
869 sta->ht_cap.ampdu_factor)) - 1); in brcms_ops_ampdu_action()
/linux-4.1.27/drivers/mtd/devices/
Dst_spi_fsm.c1157 uint8_t sta; in stfsm_mx25_config() local
1190 stfsm_read_status(fsm, SPINOR_OP_RDSR, &sta, 1); in stfsm_mx25_config()
1193 if (!(sta & MX25_STATUS_QE)) { in stfsm_mx25_config()
1195 sta |= MX25_STATUS_QE; in stfsm_mx25_config()
1197 stfsm_write_status(fsm, SPINOR_OP_WRSR, sta, 1, 1); in stfsm_mx25_config()
1200 if (sta & MX25_STATUS_QE) { in stfsm_mx25_config()
1202 sta &= ~MX25_STATUS_QE; in stfsm_mx25_config()
1204 stfsm_write_status(fsm, SPINOR_OP_WRSR, sta, 1, 1); in stfsm_mx25_config()
/linux-4.1.27/include/acpi/
Dacpi_bus.h407 static inline void acpi_set_device_status(struct acpi_device *adev, u32 sta) in acpi_set_device_status() argument
409 *((u32 *)&adev->status) = sta; in acpi_set_device_status()
458 unsigned long long *sta);
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_cmd.c609 struct sta_info *sta = (struct sta_info *)psta; in rtw_setstakey_cmd() local
638 ether_addr_copy(psetstakey_para->addr, sta->hwaddr); in rtw_setstakey_cmd()
643 GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, false); in rtw_setstakey_cmd()
646 memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16); in rtw_setstakey_cmd()
667 struct sta_info *sta = (struct sta_info *)psta; in rtw_clearstakey_cmd() local
699 ether_addr_copy(psetstakey_para->addr, sta->hwaddr); in rtw_clearstakey_cmd()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_cmd.c669 struct sta_info *sta = (struct sta_info *)psta; in rtw_setstakey_cmd23a() local
697 ether_addr_copy(psetstakey_para->addr, sta->hwaddr); in rtw_setstakey_cmd23a()
703 GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, in rtw_setstakey_cmd23a()
708 memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16); in rtw_setstakey_cmd23a()
733 struct sta_info *sta = (struct sta_info *)psta; in rtw_clearstakey_cmd23a() local
767 ether_addr_copy(psetstakey_para->addr, sta->hwaddr); in rtw_clearstakey_cmd23a()
/linux-4.1.27/drivers/net/wireless/ath/ar5523/
Dar5523.c1154 struct ieee80211_sta *sta; in ar5523_get_wlan_mode() local
1158 sta = ieee80211_find_sta(ar->vif, bss_conf->bssid); in ar5523_get_wlan_mode()
1159 if (!sta) { in ar5523_get_wlan_mode()
1163 sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; in ar5523_get_wlan_mode()
1191 struct ieee80211_sta *sta; in ar5523_create_rateset() local
1195 sta = ieee80211_find_sta(ar->vif, bss_conf->bssid); in ar5523_create_rateset()
1197 if (!sta) { in ar5523_create_rateset()
1201 sta_rate_set = sta->supp_rates[ar->hw->conf.chandef.chan->band]; in ar5523_create_rateset()
/linux-4.1.27/drivers/gpio/
Dgpio-bcm-kona.c434 unsigned long sta; in bcm_kona_gpio_irq_handler() local
448 while ((sta = readl(reg_base + GPIO_INT_STATUS(bank_id)) & in bcm_kona_gpio_irq_handler()
450 for_each_set_bit(bit, &sta, 32) { in bcm_kona_gpio_irq_handler()

12