Lines Matching defs: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 local->aql_txq_limit_low[ac] = q_limit_low;
292 local->aql_txq_limit_high[ac] = q_limit_high;
294 mutex_lock(&local->sta_mtx);
295 list_for_each_entry(sta, &local->sta_list, list) {
303 mutex_unlock(&local->sta_mtx);
369 struct ieee80211_local *local = file->private_data;
373 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status);
384 struct ieee80211_local *local = file->private_data;
399 local->force_tx_status = 0;
401 local->force_tx_status = 1;
419 struct ieee80211_local *local = file->private_data;
423 wiphy_lock(local->hw.wiphy);
424 __ieee80211_suspend(&local->hw, NULL);
425 ret = __ieee80211_resume(&local->hw);
426 wiphy_unlock(local->hw.wiphy);
429 cfg80211_shutdown_all_interfaces(local->hw.wiphy);
505 struct ieee80211_local *local = file->private_data;
521 if (test_bit(i, local->hw.flags))
534 struct ieee80211_local *local = file->private_data;
553 ln = skb_queue_len(&local->pending[i]);
566 struct ieee80211_local *local = file->private_data;
571 spin_lock_irqsave(&local->queue_stop_reason_lock, flags);
572 for (q = 0; q < local->hw.queues; q++)
574 local->queue_stop_reasons[q],
575 skb_queue_len(&local->pending[q]));
576 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
587 static ssize_t format_devstat_counter(struct ieee80211_local *local,
598 res = drv_get_stats(local, &stats);
631 debugfs_create_u32(#name, 0400, statsd, &local->name);
634 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
641 void debugfs_hw_add(struct ieee80211_local *local)
643 struct dentry *phyd = local->hw.wiphy->debugfsdir;
649 local->debugfs.keys = debugfs_create_dir("keys", phyd);
672 phyd, &local->aql_threshold);