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
136 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1) in aqm_write()
138 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
140 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1) in aqm_write()
157 struct ieee80211_local *local = file->private_data; in airtime_flags_read() local
163 if (local->airtime_flags & AIRTIME_USE_TX) in airtime_flags_read()
166 if (local->airtime_flags & AIRTIME_USE_RX) in airtime_flags_read()
178 struct ieee80211_local *local = file->private_data; in airtime_flags_write() local
193 if (kstrtou16(buf, 0, &local->airtime_flags)) in airtime_flags_write()
211 struct ieee80211_local *local = file->private_data; in aql_txq_limit_read() local
221 local->aql_txq_limit_low[IEEE80211_AC_VO], in aql_txq_limit_read()
222 local->aql_txq_limit_high[IEEE80211_AC_VO], in aql_txq_limit_read()
223 local->aql_txq_limit_low[IEEE80211_AC_VI], in aql_txq_limit_read()
224 local->aql_txq_limit_high[IEEE80211_AC_VI], in aql_txq_limit_read()
225 local->aql_txq_limit_low[IEEE80211_AC_BE], in aql_txq_limit_read()
226 local->aql_txq_limit_high[IEEE80211_AC_BE], in aql_txq_limit_read()
227 local->aql_txq_limit_low[IEEE80211_AC_BK], in aql_txq_limit_read()
228 local->aql_txq_limit_high[IEEE80211_AC_BK]); in aql_txq_limit_read()
238 struct ieee80211_local *local = file->private_data; in aql_txq_limit_write() local
261 q_limit_low_old = local->aql_txq_limit_low[ac]; in aql_txq_limit_write()
262 q_limit_high_old = local->aql_txq_limit_high[ac]; in aql_txq_limit_write()
264 local->aql_txq_limit_low[ac] = q_limit_low; in aql_txq_limit_write()
265 local->aql_txq_limit_high[ac] = q_limit_high; in aql_txq_limit_write()
267 mutex_lock(&local->sta_mtx); in aql_txq_limit_write()
268 list_for_each_entry(sta, &local->sta_list, list) { in aql_txq_limit_write()
276 mutex_unlock(&local->sta_mtx); in aql_txq_limit_write()
292 struct ieee80211_local *local = file->private_data; in force_tx_status_read() local
296 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status); in force_tx_status_read()
307 struct ieee80211_local *local = file->private_data; in force_tx_status_write() local
323 local->force_tx_status = 0; in force_tx_status_write()
325 local->force_tx_status = 1; in force_tx_status_write()
343 struct ieee80211_local *local = file->private_data; in reset_write() local
346 __ieee80211_suspend(&local->hw, NULL); in reset_write()
347 __ieee80211_resume(&local->hw); in reset_write()
418 struct ieee80211_local *local = file->private_data; in hwflags_read() local
434 if (test_bit(i, local->hw.flags)) in hwflags_read()
447 struct ieee80211_local *local = file->private_data; in misc_read() local
466 ln = skb_queue_len(&local->pending[i]); in misc_read()
479 struct ieee80211_local *local = file->private_data; in queues_read() local
484 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
485 for (q = 0; q < local->hw.queues; q++) in queues_read()
487 local->queue_stop_reasons[q], in queues_read()
488 skb_queue_len(&local->pending[q])); in queues_read()
489 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
500 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
511 res = drv_get_stats(local, &stats); in format_devstat_counter()
543 debugfs_create_u32(#name, 0400, statsd, &local->name);
545 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
552 void debugfs_hw_add(struct ieee80211_local *local) in debugfs_hw_add() argument
554 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
560 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
576 if (local->ops->wake_tx_queue) in debugfs_hw_add()
583 phyd, &local->aql_threshold); in debugfs_hw_add()