Lines Matching refs:local

38 	struct ieee80211_local *local = file->private_data;		\
55 debugfs_create_file(#name, 0400, phyd, local, &name## _ops)
58 debugfs_create_file(#name, mode, phyd, local, &name## _ops);
62 local->hw.conf.flags);
64 local->user_power_level);
66 local->hw.conf.power_level);
68 local->total_ps_buffered);
70 local->wep_iv & 0xffffff);
72 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver");
79 struct ieee80211_local *local = file->private_data; in aqm_read() local
80 struct fq *fq = &local->fq; in aqm_read()
84 spin_lock_bh(&local->fq.lock); in aqm_read()
107 spin_unlock_bh(&local->fq.lock); in aqm_read()
118 struct ieee80211_local *local = file->private_data; in aqm_write() local
132 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1) in aqm_write()
134 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
136 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1) in aqm_write()
152 struct ieee80211_local *local = file->private_data; in airtime_flags_read() local
158 if (local->airtime_flags & AIRTIME_USE_TX) in airtime_flags_read()
161 if (local->airtime_flags & AIRTIME_USE_RX) in airtime_flags_read()
173 struct ieee80211_local *local = file->private_data; in airtime_flags_write() local
187 if (kstrtou16(buf, 0, &local->airtime_flags)) in airtime_flags_write()
203 struct ieee80211_local *local = file->private_data; in aql_pending_read() local
214 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VO]), in aql_pending_read()
215 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VI]), in aql_pending_read()
216 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BE]), in aql_pending_read()
217 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BK]), in aql_pending_read()
218 atomic_read(&local->aql_total_pending_airtime)); in aql_pending_read()
233 struct ieee80211_local *local = file->private_data; in aql_txq_limit_read() local
243 local->aql_txq_limit_low[IEEE80211_AC_VO], in aql_txq_limit_read()
244 local->aql_txq_limit_high[IEEE80211_AC_VO], in aql_txq_limit_read()
245 local->aql_txq_limit_low[IEEE80211_AC_VI], in aql_txq_limit_read()
246 local->aql_txq_limit_high[IEEE80211_AC_VI], in aql_txq_limit_read()
247 local->aql_txq_limit_low[IEEE80211_AC_BE], in aql_txq_limit_read()
248 local->aql_txq_limit_high[IEEE80211_AC_BE], in aql_txq_limit_read()
249 local->aql_txq_limit_low[IEEE80211_AC_BK], in aql_txq_limit_read()
250 local->aql_txq_limit_high[IEEE80211_AC_BK]); in aql_txq_limit_read()
260 struct ieee80211_local *local = file->private_data; in aql_txq_limit_write() local
282 q_limit_low_old = local->aql_txq_limit_low[ac]; in aql_txq_limit_write()
283 q_limit_high_old = local->aql_txq_limit_high[ac]; in aql_txq_limit_write()
285 guard(wiphy)(local->hw.wiphy); in aql_txq_limit_write()
287 local->aql_txq_limit_low[ac] = q_limit_low; in aql_txq_limit_write()
288 local->aql_txq_limit_high[ac] = q_limit_high; in aql_txq_limit_write()
290 list_for_each_entry(sta, &local->sta_list, list) { in aql_txq_limit_write()
358 struct ieee80211_local *local = file->private_data; in force_tx_status_read() local
362 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status); in force_tx_status_read()
373 struct ieee80211_local *local = file->private_data; in force_tx_status_write() local
388 local->force_tx_status = 0; in force_tx_status_write()
390 local->force_tx_status = 1; in force_tx_status_write()
407 struct ieee80211_local *local = file->private_data; in reset_write() local
411 wiphy_lock(local->hw.wiphy); in reset_write()
412 __ieee80211_suspend(&local->hw, NULL); in reset_write()
413 ret = __ieee80211_resume(&local->hw); in reset_write()
414 wiphy_unlock(local->hw.wiphy); in reset_write()
417 cfg80211_shutdown_all_interfaces(local->hw.wiphy); in reset_write()
495 struct ieee80211_local *local = file->private_data; in hwflags_read() local
511 if (test_bit(i, local->hw.flags)) in hwflags_read()
524 struct ieee80211_local *local = file->private_data; in hwflags_write() local
542 ieee80211_hw_set(&local->hw, STRICT); in hwflags_write()
545 __clear_bit(IEEE80211_HW_STRICT, local->hw.flags); in hwflags_write()
564 struct ieee80211_local *local = file->private_data; in misc_read() local
583 ln = skb_queue_len(&local->pending[i]); in misc_read()
596 struct ieee80211_local *local = file->private_data; in queues_read() local
601 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
602 for (q = 0; q < local->hw.queues; q++) in queues_read()
604 local->queue_stop_reasons[q], in queues_read()
605 skb_queue_len(&local->pending[q])); in queues_read()
606 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
616 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
626 wiphy_lock(local->hw.wiphy); in format_devstat_counter()
627 res = drv_get_stats(local, &stats); in format_devstat_counter()
628 wiphy_unlock(local->hw.wiphy); in format_devstat_counter()
659 debugfs_create_u32(#name, 0400, statsd, &local->name);
662 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
669 void debugfs_hw_add(struct ieee80211_local *local) in debugfs_hw_add() argument
671 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
677 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
700 phyd, &local->aql_threshold); in debugfs_hw_add()