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()
208 struct ieee80211_local *local = file->private_data; in aql_pending_read() local
219 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VO]), in aql_pending_read()
220 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VI]), in aql_pending_read()
221 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BE]), in aql_pending_read()
222 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BK]), in aql_pending_read()
223 atomic_read(&local->aql_total_pending_airtime)); in aql_pending_read()
239 struct ieee80211_local *local = file->private_data; in aql_txq_limit_read() local
249 local->aql_txq_limit_low[IEEE80211_AC_VO], in aql_txq_limit_read()
250 local->aql_txq_limit_high[IEEE80211_AC_VO], in aql_txq_limit_read()
251 local->aql_txq_limit_low[IEEE80211_AC_VI], in aql_txq_limit_read()
252 local->aql_txq_limit_high[IEEE80211_AC_VI], in aql_txq_limit_read()
253 local->aql_txq_limit_low[IEEE80211_AC_BE], in aql_txq_limit_read()
254 local->aql_txq_limit_high[IEEE80211_AC_BE], in aql_txq_limit_read()
255 local->aql_txq_limit_low[IEEE80211_AC_BK], in aql_txq_limit_read()
256 local->aql_txq_limit_high[IEEE80211_AC_BK]); in aql_txq_limit_read()
266 struct ieee80211_local *local = file->private_data; in aql_txq_limit_write() local
288 q_limit_low_old = local->aql_txq_limit_low[ac]; in aql_txq_limit_write()
289 q_limit_high_old = local->aql_txq_limit_high[ac]; in aql_txq_limit_write()
291 local->aql_txq_limit_low[ac] = q_limit_low; in aql_txq_limit_write()
292 local->aql_txq_limit_high[ac] = q_limit_high; in aql_txq_limit_write()
294 mutex_lock(&local->sta_mtx); in aql_txq_limit_write()
295 list_for_each_entry(sta, &local->sta_list, list) { in aql_txq_limit_write()
303 mutex_unlock(&local->sta_mtx); in aql_txq_limit_write()
369 struct ieee80211_local *local = file->private_data; in force_tx_status_read() local
373 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status); in force_tx_status_read()
384 struct ieee80211_local *local = file->private_data; in force_tx_status_write() local
399 local->force_tx_status = 0; in force_tx_status_write()
401 local->force_tx_status = 1; in force_tx_status_write()
419 struct ieee80211_local *local = file->private_data; in reset_write() local
423 wiphy_lock(local->hw.wiphy); in reset_write()
424 __ieee80211_suspend(&local->hw, NULL); in reset_write()
425 ret = __ieee80211_resume(&local->hw); in reset_write()
426 wiphy_unlock(local->hw.wiphy); in reset_write()
429 cfg80211_shutdown_all_interfaces(local->hw.wiphy); in reset_write()
505 struct ieee80211_local *local = file->private_data; in hwflags_read() local
521 if (test_bit(i, local->hw.flags)) in hwflags_read()
534 struct ieee80211_local *local = file->private_data; in misc_read() local
553 ln = skb_queue_len(&local->pending[i]); in misc_read()
566 struct ieee80211_local *local = file->private_data; in queues_read() local
571 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
572 for (q = 0; q < local->hw.queues; q++) in queues_read()
574 local->queue_stop_reasons[q], in queues_read()
575 skb_queue_len(&local->pending[q])); in queues_read()
576 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
587 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
598 res = drv_get_stats(local, &stats); in format_devstat_counter()
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) in debugfs_hw_add() argument
643 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
649 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
667 if (local->ops->wake_tx_queue) in debugfs_hw_add()
674 phyd, &local->aql_threshold); in debugfs_hw_add()