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()
109 spin_unlock_bh(&local->fq.lock); in aqm_read()
120 struct ieee80211_local *local = file->private_data; in aqm_write() local
134 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1) in aqm_write()
136 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1) in aqm_write()
138 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1) in aqm_write()
154 struct ieee80211_local *local = file->private_data; in airtime_flags_read() local
160 if (local->airtime_flags & AIRTIME_USE_TX) in airtime_flags_read()
163 if (local->airtime_flags & AIRTIME_USE_RX) in airtime_flags_read()
175 struct ieee80211_local *local = file->private_data; in airtime_flags_write() local
189 if (kstrtou16(buf, 0, &local->airtime_flags)) in airtime_flags_write()
205 struct ieee80211_local *local = file->private_data; in aql_pending_read() local
216 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VO]), in aql_pending_read()
217 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_VI]), in aql_pending_read()
218 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BE]), in aql_pending_read()
219 atomic_read(&local->aql_ac_pending_airtime[IEEE80211_AC_BK]), in aql_pending_read()
220 atomic_read(&local->aql_total_pending_airtime)); in aql_pending_read()
235 struct ieee80211_local *local = file->private_data; in aql_txq_limit_read() local
245 local->aql_txq_limit_low[IEEE80211_AC_VO], in aql_txq_limit_read()
246 local->aql_txq_limit_high[IEEE80211_AC_VO], in aql_txq_limit_read()
247 local->aql_txq_limit_low[IEEE80211_AC_VI], in aql_txq_limit_read()
248 local->aql_txq_limit_high[IEEE80211_AC_VI], in aql_txq_limit_read()
249 local->aql_txq_limit_low[IEEE80211_AC_BE], in aql_txq_limit_read()
250 local->aql_txq_limit_high[IEEE80211_AC_BE], in aql_txq_limit_read()
251 local->aql_txq_limit_low[IEEE80211_AC_BK], in aql_txq_limit_read()
252 local->aql_txq_limit_high[IEEE80211_AC_BK]); in aql_txq_limit_read()
262 struct ieee80211_local *local = file->private_data; in aql_txq_limit_write() local
284 q_limit_low_old = local->aql_txq_limit_low[ac]; in aql_txq_limit_write()
285 q_limit_high_old = local->aql_txq_limit_high[ac]; in aql_txq_limit_write()
287 guard(wiphy)(local->hw.wiphy); in aql_txq_limit_write()
289 local->aql_txq_limit_low[ac] = q_limit_low; in aql_txq_limit_write()
290 local->aql_txq_limit_high[ac] = q_limit_high; in aql_txq_limit_write()
292 list_for_each_entry(sta, &local->sta_list, list) { in aql_txq_limit_write()
364 struct ieee80211_local *local = file->private_data; in force_tx_status_read() local
368 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status); in force_tx_status_read()
379 struct ieee80211_local *local = file->private_data; in force_tx_status_write() local
394 local->force_tx_status = 0; in force_tx_status_write()
396 local->force_tx_status = 1; in force_tx_status_write()
413 struct ieee80211_local *local = file->private_data; in reset_write() local
417 wiphy_lock(local->hw.wiphy); in reset_write()
418 __ieee80211_suspend(&local->hw, NULL); in reset_write()
419 ret = __ieee80211_resume(&local->hw); in reset_write()
420 wiphy_unlock(local->hw.wiphy); in reset_write()
423 cfg80211_shutdown_all_interfaces(local->hw.wiphy); in reset_write()
501 struct ieee80211_local *local = file->private_data; in hwflags_read() local
517 if (test_bit(i, local->hw.flags)) in hwflags_read()
530 struct ieee80211_local *local = file->private_data; in hwflags_write() local
548 ieee80211_hw_set(&local->hw, STRICT); in hwflags_write()
551 __clear_bit(IEEE80211_HW_STRICT, local->hw.flags); in hwflags_write()
570 struct ieee80211_local *local = file->private_data; in misc_read() local
589 ln = skb_queue_len(&local->pending[i]); in misc_read()
602 struct ieee80211_local *local = file->private_data; in queues_read() local
607 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
608 for (q = 0; q < local->hw.queues; q++) in queues_read()
610 local->queue_stop_reasons[q], in queues_read()
611 skb_queue_len(&local->pending[q])); in queues_read()
612 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
622 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
632 wiphy_lock(local->hw.wiphy); in format_devstat_counter()
633 res = drv_get_stats(local, &stats); in format_devstat_counter()
634 wiphy_unlock(local->hw.wiphy); in format_devstat_counter()
665 debugfs_create_u32(#name, 0400, statsd, &local->name);
668 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
675 void debugfs_hw_add(struct ieee80211_local *local) in debugfs_hw_add() argument
677 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
683 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
706 phyd, &local->aql_threshold); in debugfs_hw_add()