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;
81 struct fq *fq = &local->fq;
85 spin_lock_bh(&local->fq.lock);
110 spin_unlock_bh(&local->fq.lock);
121 struct ieee80211_local *local = file->private_data;
135 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1)
137 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1)
139 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1)
156 struct ieee80211_local *local = file->private_data;
162 if (local->airtime_flags & AIRTIME_USE_TX)
165 if (local->airtime_flags & AIRTIME_USE_RX)
177 struct ieee80211_local *local = file->private_data;
191 if (kstrtou16(buf, 0, &local->airtime_flags))
208 struct ieee80211_local *local = file->private_data;
219 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VO]),
220 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VI]),
221 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BE]),
222 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BK]),
223 atomic_read(&local->aql_total_pending_airtime));
239 struct ieee80211_local *local = file->private_data;
249 local->aql_txq_limit_low[IEEE80211_AC_VO],
250 local->aql_txq_limit_high[IEEE80211_AC_VO],
251 local->aql_txq_limit_low[IEEE80211_AC_VI],
252 local->aql_txq_limit_high[IEEE80211_AC_VI],
253 local->aql_txq_limit_low[IEEE80211_AC_BE],
254 local->aql_txq_limit_high[IEEE80211_AC_BE],
255 local->aql_txq_limit_low[IEEE80211_AC_BK],
256 local->aql_txq_limit_high[IEEE80211_AC_BK]);
266 struct ieee80211_local *local = file->private_data;
288 q_limit_low_old = local->aql_txq_limit_low[ac];
289 q_limit_high_old = local->aql_txq_limit_high[ac];
291 wiphy_lock(local->hw.wiphy);
292 local->aql_txq_limit_low[ac] = q_limit_low;
293 local->aql_txq_limit_high[ac] = q_limit_high;
295 list_for_each_entry(sta, &local->sta_list, list) {
303 wiphy_unlock(local->hw.wiphy);
370 struct ieee80211_local *local = file->private_data;
374 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status);
385 struct ieee80211_local *local = file->private_data;
400 local->force_tx_status = 0;
402 local->force_tx_status = 1;
420 struct ieee80211_local *local = file->private_data;
424 wiphy_lock(local->hw.wiphy);
425 __ieee80211_suspend(&local->hw, NULL);
426 ret = __ieee80211_resume(&local->hw);
427 wiphy_unlock(local->hw.wiphy);
430 cfg80211_shutdown_all_interfaces(local->hw.wiphy);
508 struct ieee80211_local *local = file->private_data;
524 if (test_bit(i, local->hw.flags))
537 struct ieee80211_local *local = file->private_data;
556 ln = skb_queue_len(&local->pending[i]);
569 struct ieee80211_local *local = file->private_data;
574 spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
575 for (q = 0; q < local->hw.queues; q++)
577 local->queue_stop_reasons[q],
578 skb_queue_len(&local->pending[q]));
579 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
590 static ssize_t format_devstat_counter(struct ieee80211_local *local,
600 wiphy_lock(local->hw.wiphy);
601 res = drv_get_stats(local, &stats);
602 wiphy_unlock(local->hw.wiphy);
634 debugfs_create_u32(#name, 0400, statsd, &local->name);
637 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
644 void debugfs_hw_add(struct ieee80211_local *local)
646 struct dentry *phyd = local->hw.wiphy->debugfsdir;
652 local->debugfs.keys = debugfs_create_dir("keys", phyd);
675 phyd, &local->aql_threshold);