Lines Matching refs:sta
26 struct sta_info *sta = file->private_data; \
28 format_string, sta->field); \
49 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()
157 for (i = 0; i < ARRAY_SIZE(sta->sta.txq); i++) { in sta_aqm_read()
158 if (!sta->sta.txq[i]) in sta_aqm_read()
160 txqi = to_txq_info(sta->sta.txq[i]); in sta_aqm_read()
193 struct sta_info *sta = file->private_data; in sta_airtime_read() local
194 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_read()
207 rx_airtime += sta->airtime[ac].rx_airtime; in sta_airtime_read()
208 tx_airtime += sta->airtime[ac].tx_airtime; in sta_airtime_read()
209 deficit[ac] = sta->airtime[ac].deficit; in sta_airtime_read()
216 rx_airtime, tx_airtime, sta->airtime_weight, in sta_airtime_read()
227 struct sta_info *sta = file->private_data; in sta_airtime_write() local
228 struct ieee80211_local *local = sta->sdata->local; in sta_airtime_write()
233 sta->airtime[ac].rx_airtime = 0; in sta_airtime_write()
234 sta->airtime[ac].tx_airtime = 0; in sta_airtime_write()
235 sta->airtime[ac].deficit = sta->airtime_weight; in sta_airtime_write()
246 struct sta_info *sta = file->private_data; in sta_aql_read() local
247 struct ieee80211_local *local = sta->sdata->local; in sta_aql_read()
260 q_limit_l[ac] = sta->airtime[ac].aql_limit_low; in sta_aql_read()
261 q_limit_h[ac] = sta->airtime[ac].aql_limit_high; in sta_aql_read()
263 q_depth[ac] = atomic_read(&sta->airtime[ac].aql_tx_pending); in sta_aql_read()
281 struct sta_info *sta = file->private_data; in sta_aql_write() local
299 sta->airtime[ac].aql_limit_low = q_limit_l; in sta_aql_write()
300 sta->airtime[ac].aql_limit_high = q_limit_h; in sta_aql_write()
310 struct sta_info *sta = data; in sta_agg_status_do_read() local
317 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_do_read()
324 tid_rx = wiphy_dereference(wiphy, sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_do_read()
325 tid_tx = wiphy_dereference(wiphy, sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_do_read()
326 tid_rx_valid = test_bit(i, sta->ampdu_mlme.agg_session_valid); in sta_agg_status_do_read()
333 sta->ampdu_mlme.tid_rx_token[i] : 0); in sta_agg_status_do_read()
351 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
352 struct wiphy *wiphy = sta->local->hw.wiphy; in sta_agg_status_read()
362 sta_agg_status_do_read, sta); in sta_agg_status_read()
371 struct sta_info *sta = data; in sta_agg_status_do_write() local
416 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, in sta_agg_status_do_write()
419 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_do_write()
421 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_do_write()
433 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
434 struct wiphy *wiphy = sta->local->hw.wiphy; in sta_agg_status_write()
439 sta_agg_status_do_write, sta); in sta_agg_status_write()
1228 sta->debugfs_dir, sta, &sta_ ##name## _ops)
1231 debugfs_create_ulong(#name, 0400, sta->debugfs_dir, &sta->field);
1233 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
1235 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
1236 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
1237 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
1243 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
1254 sta->debugfs_dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
1271 debugfs_create_xul("driver_buffered_tids", 0400, sta->debugfs_dir, in ieee80211_sta_debugfs_add()
1272 &sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
1274 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); in ieee80211_sta_debugfs_add()
1277 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
1279 debugfs_remove_recursive(sta->debugfs_dir); in ieee80211_sta_debugfs_remove()
1280 sta->debugfs_dir = NULL; in ieee80211_sta_debugfs_remove()
1294 if (WARN_ON(!link_sta->sta->debugfs_dir)) in ieee80211_link_sta_debugfs_add()
1298 if (link_sta->sta->sta.valid_links) { in ieee80211_link_sta_debugfs_add()
1306 link_sta->sta->debugfs_dir); in ieee80211_link_sta_debugfs_add()
1310 if (WARN_ON(link_sta != &link_sta->sta->deflink)) in ieee80211_link_sta_debugfs_add()
1313 link_sta->debugfs_dir = link_sta->sta->debugfs_dir; in ieee80211_link_sta_debugfs_add()
1327 if (!link_sta->debugfs_dir || !link_sta->sta->debugfs_dir) { in ieee80211_link_sta_debugfs_remove()
1332 if (link_sta->debugfs_dir == link_sta->sta->debugfs_dir) { in ieee80211_link_sta_debugfs_remove()
1333 WARN_ON(link_sta != &link_sta->sta->deflink); in ieee80211_link_sta_debugfs_remove()
1334 link_sta->sta->debugfs_dir = NULL; in ieee80211_link_sta_debugfs_remove()
1347 drv_link_sta_add_debugfs(link_sta->sta->local, link_sta->sta->sdata, in ieee80211_link_sta_debugfs_drv_add()
1356 if (WARN_ON(link_sta->debugfs_dir == link_sta->sta->debugfs_dir)) in ieee80211_link_sta_debugfs_drv_remove()