Lines Matching refs:local
38 struct ieee80211_local *local = file->private_data; \
56 debugfs_create_file(#name, 0400, phyd, local, &name## _ops);
59 debugfs_create_file(#name, mode, phyd, local, &name## _ops);
63 local->hw.conf.flags);
65 local->user_power_level);
67 local->hw.conf.power_level);
69 local->total_ps_buffered);
71 local->wep_iv & 0xffffff);
73 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver");
80 struct ieee80211_local *local = file->private_data; in aqm_read() local
81 struct fq *fq = &local->fq; in aqm_read()
85 spin_lock_bh(&local->fq.lock); in aqm_read()
110 spin_unlock_bh(&local->fq.lock); in aqm_read()
121 struct ieee80211_local *local = file->private_data; in aqm_write() local
135 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1) in aqm_write()
137 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
139 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1) in aqm_write()
156 struct ieee80211_local *local = file->private_data; in airtime_flags_read() local
162 if (local->airtime_flags & AIRTIME_USE_TX) in airtime_flags_read()
165 if (local->airtime_flags & AIRTIME_USE_RX) in airtime_flags_read()
177 struct ieee80211_local *local = file->private_data; in airtime_flags_write() local
191 if (kstrtou16(buf, 0, &local->airtime_flags)) in airtime_flags_write()
209 struct ieee80211_local *local = file->private_data; in aql_txq_limit_read() local
219 local->aql_txq_limit_low[IEEE80211_AC_VO], in aql_txq_limit_read()
220 local->aql_txq_limit_high[IEEE80211_AC_VO], in aql_txq_limit_read()
221 local->aql_txq_limit_low[IEEE80211_AC_VI], in aql_txq_limit_read()
222 local->aql_txq_limit_high[IEEE80211_AC_VI], in aql_txq_limit_read()
223 local->aql_txq_limit_low[IEEE80211_AC_BE], in aql_txq_limit_read()
224 local->aql_txq_limit_high[IEEE80211_AC_BE], in aql_txq_limit_read()
225 local->aql_txq_limit_low[IEEE80211_AC_BK], in aql_txq_limit_read()
226 local->aql_txq_limit_high[IEEE80211_AC_BK]); in aql_txq_limit_read()
236 struct ieee80211_local *local = file->private_data; in aql_txq_limit_write() local
258 q_limit_low_old = local->aql_txq_limit_low[ac]; in aql_txq_limit_write()
259 q_limit_high_old = local->aql_txq_limit_high[ac]; in aql_txq_limit_write()
261 local->aql_txq_limit_low[ac] = q_limit_low; in aql_txq_limit_write()
262 local->aql_txq_limit_high[ac] = q_limit_high; in aql_txq_limit_write()
264 mutex_lock(&local->sta_mtx); in aql_txq_limit_write()
265 list_for_each_entry(sta, &local->sta_list, list) { in aql_txq_limit_write()
273 mutex_unlock(&local->sta_mtx); in aql_txq_limit_write()
289 struct ieee80211_local *local = file->private_data; in force_tx_status_read() local
293 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status); in force_tx_status_read()
304 struct ieee80211_local *local = file->private_data; in force_tx_status_write() local
319 local->force_tx_status = 0; in force_tx_status_write()
321 local->force_tx_status = 1; in force_tx_status_write()
339 struct ieee80211_local *local = file->private_data; in reset_write() local
342 __ieee80211_suspend(&local->hw, NULL); in reset_write()
343 __ieee80211_resume(&local->hw); in reset_write()
414 struct ieee80211_local *local = file->private_data; in hwflags_read() local
430 if (test_bit(i, local->hw.flags)) in hwflags_read()
443 struct ieee80211_local *local = file->private_data; in misc_read() local
462 ln = skb_queue_len(&local->pending[i]); in misc_read()
475 struct ieee80211_local *local = file->private_data; in queues_read() local
480 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
481 for (q = 0; q < local->hw.queues; q++) in queues_read()
483 local->queue_stop_reasons[q], in queues_read()
484 skb_queue_len(&local->pending[q])); in queues_read()
485 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
496 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
507 res = drv_get_stats(local, &stats); in format_devstat_counter()
539 debugfs_create_u32(#name, 0400, statsd, &local->name);
541 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
548 void debugfs_hw_add(struct ieee80211_local *local) in debugfs_hw_add() argument
550 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
556 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
572 if (local->ops->wake_tx_queue) in debugfs_hw_add()
579 phyd, &local->aql_threshold); in debugfs_hw_add()