Lines Matching refs:sta
26 struct sta_info *sta = file->private_data; \
28 format_string, sta->field); \
51 STA_FILE(aid, sta.aid, D);
91 struct sta_info *sta = file->private_data; in sta_flags_read() local
97 if (test_sta_flag(sta, flg)) in sta_flags_read()
110 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
116 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
117 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
127 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read() local
130 le16_to_cpu(sta->last_seq_ctrl[i])); in sta_last_seq_ctrl_read()
141 struct sta_info *sta = file->private_data; in sta_aqm_read() local
142 struct ieee80211_local *local = sta->local; in sta_aqm_read()
158 codel_time_to_us(sta->cparams.target), in sta_aqm_read()
159 codel_time_to_us(sta->cparams.interval), in sta_aqm_read()
160 sta->cparams.ecn ? "yes" : "no"); in sta_aqm_read()
165 for (i = 0; i < ARRAY_SIZE(sta->sta.txq); i++) { in sta_aqm_read()
166 if (!sta->sta.txq[i]) in sta_aqm_read()
168 txqi = to_txq_info(sta->sta.txq[i]); in sta_aqm_read()
201 struct sta_info *sta = file->private_data; in sta_airtime_read() local
202 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_read()
215 rx_airtime += sta->airtime[ac].rx_airtime; in sta_airtime_read()
216 tx_airtime += sta->airtime[ac].tx_airtime; in sta_airtime_read()
217 deficit[ac] = sta->airtime[ac].deficit; in sta_airtime_read()
224 rx_airtime, tx_airtime, sta->airtime_weight, in sta_airtime_read()
235 struct sta_info *sta = file->private_data; in sta_airtime_write() local
236 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_write()
241 sta->airtime[ac].rx_airtime = 0; in sta_airtime_write()
242 sta->airtime[ac].tx_airtime = 0; in sta_airtime_write()
243 sta->airtime[ac].deficit = sta->airtime_weight; in sta_airtime_write()
254 struct sta_info *sta = file->private_data; in sta_aql_read() local
255 struct ieee80211_local *local = sta->sdata->local; in sta_aql_read()
268 q_limit_l[ac] = sta->airtime[ac].aql_limit_low; in sta_aql_read()
269 q_limit_h[ac] = sta->airtime[ac].aql_limit_high; in sta_aql_read()
271 q_depth[ac] = atomic_read(&sta->airtime[ac].aql_tx_pending); in sta_aql_read()
289 struct sta_info *sta = file->private_data; in sta_aql_write() local
307 sta->airtime[ac].aql_limit_low = q_limit_l; in sta_aql_write()
308 sta->airtime[ac].aql_limit_high = q_limit_h; in sta_aql_write()
321 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
334 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_read()
341 tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_read()
342 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_read()
343 tid_rx_valid = test_bit(i, sta->ampdu_mlme.agg_session_valid); in sta_agg_status_read()
350 sta->ampdu_mlme.tid_rx_token[i] : 0); in sta_agg_status_read()
372 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
425 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, in sta_agg_status_write()
428 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_write()
430 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_write()
1040 sta->debugfs_dir, sta, &sta_ ##name## _ops)
1043 debugfs_create_ulong(#name, 0400, sta->debugfs_dir, &sta->field);
1045 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
1047 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
1048 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
1049 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
1055 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
1066 sta->debugfs_dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
1083 debugfs_create_xul("driver_buffered_tids", 0400, sta->debugfs_dir, in ieee80211_sta_debugfs_add()
1084 &sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
1086 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); in ieee80211_sta_debugfs_add()
1089 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
1091 debugfs_remove_recursive(sta->debugfs_dir); in ieee80211_sta_debugfs_remove()
1092 sta->debugfs_dir = NULL; in ieee80211_sta_debugfs_remove()
1106 if (WARN_ON(!link_sta->sta->debugfs_dir)) in ieee80211_link_sta_debugfs_add()
1110 if (link_sta->sta->sta.valid_links) { in ieee80211_link_sta_debugfs_add()
1118 link_sta->sta->debugfs_dir); in ieee80211_link_sta_debugfs_add()
1122 if (WARN_ON(link_sta != &link_sta->sta->deflink)) in ieee80211_link_sta_debugfs_add()
1125 link_sta->debugfs_dir = link_sta->sta->debugfs_dir; in ieee80211_link_sta_debugfs_add()
1138 if (!link_sta->debugfs_dir || !link_sta->sta->debugfs_dir) { in ieee80211_link_sta_debugfs_remove()
1143 if (link_sta->debugfs_dir == link_sta->sta->debugfs_dir) { in ieee80211_link_sta_debugfs_remove()
1144 WARN_ON(link_sta != &link_sta->sta->deflink); in ieee80211_link_sta_debugfs_remove()
1145 link_sta->sta->debugfs_dir = NULL; in ieee80211_link_sta_debugfs_remove()
1158 drv_link_sta_add_debugfs(link_sta->sta->local, link_sta->sta->sdata, in ieee80211_link_sta_debugfs_drv_add()
1167 if (WARN_ON(link_sta->debugfs_dir == link_sta->sta->debugfs_dir)) in ieee80211_link_sta_debugfs_drv_remove()