Lines Matching refs:sta

26 	struct sta_info *sta = file->private_data;			\
28 format_string, sta->field); \
51 STA_FILE(aid, sta.aid, D);
89 struct sta_info *sta = file->private_data; in sta_flags_read() local
95 if (test_sta_flag(sta, flg)) in sta_flags_read()
108 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
114 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
115 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
125 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read() local
128 le16_to_cpu(sta->last_seq_ctrl[i])); in sta_last_seq_ctrl_read()
139 struct sta_info *sta = file->private_data; in sta_aqm_read() local
140 struct ieee80211_local *local = sta->local; in sta_aqm_read()
156 codel_time_to_us(sta->cparams.target), in sta_aqm_read()
157 codel_time_to_us(sta->cparams.interval), in sta_aqm_read()
158 sta->cparams.ecn ? "yes" : "no"); in sta_aqm_read()
163 for (i = 0; i < ARRAY_SIZE(sta->sta.txq); i++) { in sta_aqm_read()
164 if (!sta->sta.txq[i]) in sta_aqm_read()
166 txqi = to_txq_info(sta->sta.txq[i]); in sta_aqm_read()
198 struct sta_info *sta = file->private_data; in sta_airtime_read() local
199 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_read()
212 rx_airtime += sta->airtime[ac].rx_airtime; in sta_airtime_read()
213 tx_airtime += sta->airtime[ac].tx_airtime; in sta_airtime_read()
214 deficit[ac] = sta->airtime[ac].deficit; in sta_airtime_read()
223 sta->airtime_weight, in sta_airtime_read()
237 struct sta_info *sta = file->private_data; in sta_airtime_write() local
238 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_write()
243 sta->airtime[ac].rx_airtime = 0; in sta_airtime_write()
244 sta->airtime[ac].tx_airtime = 0; in sta_airtime_write()
245 sta->airtime[ac].deficit = sta->airtime_weight; in sta_airtime_write()
258 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
265 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_read()
272 tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_read()
273 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_read()
274 tid_rx_valid = test_bit(i, sta->ampdu_mlme.agg_session_valid); in sta_agg_status_read()
281 sta->ampdu_mlme.tid_rx_token[i] : 0); in sta_agg_status_read()
301 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
354 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, in sta_agg_status_write()
357 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_write()
359 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_write()
378 struct sta_info *sta = file->private_data; in sta_ht_capa_read() local
379 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; in sta_ht_capa_read()
454 struct sta_info *sta = file->private_data; in sta_vht_capa_read() local
455 struct ieee80211_sta_vht_cap *vhtc = &sta->sta.vht_cap; in sta_vht_capa_read()
560 struct sta_info *sta = file->private_data; in sta_he_capa_read() local
561 struct ieee80211_sta_he_cap *hec = &sta->sta.he_cap; in sta_he_capa_read()
928 sta->debugfs_dir, sta, &sta_ ##name## _ops);
931 if (sizeof(sta->field) == sizeof(u32)) \
932 debugfs_create_u32(#name, 0400, sta->debugfs_dir, \
933 (u32 *) &sta->field); \
935 debugfs_create_u64(#name, 0400, sta->debugfs_dir, \
936 (u64 *) &sta->field);
938 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
940 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
941 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
942 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
948 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
959 sta->debugfs_dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
981 if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) in ieee80211_sta_debugfs_add()
983 sta->debugfs_dir, in ieee80211_sta_debugfs_add()
984 (u32 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
987 sta->debugfs_dir, in ieee80211_sta_debugfs_add()
988 (u64 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
990 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); in ieee80211_sta_debugfs_add()
993 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
995 debugfs_remove_recursive(sta->debugfs_dir); in ieee80211_sta_debugfs_remove()
996 sta->debugfs_dir = NULL; in ieee80211_sta_debugfs_remove()