Lines Matching full:local

44 	struct ieee80211_local *local = file->private_data;		\
62 debugfs_create_file(#name, 0400, phyd, local, &name## _ops);
65 debugfs_create_file(#name, mode, phyd, local, &name## _ops);
69 local->user_power_level);
71 local->hw.conf.power_level);
73 local->hw.conf.channel->center_freq);
75 local->total_ps_buffered);
77 local->wep_iv & 0xffffff);
79 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver");
84 struct ieee80211_local *local = file->private_data; in reset_write() local
87 __ieee80211_suspend(&local->hw, NULL); in reset_write()
88 __ieee80211_resume(&local->hw); in reset_write()
103 struct ieee80211_local *local = file->private_data; in uapsd_queues_read() local
105 local->uapsd_queues); in uapsd_queues_read()
112 struct ieee80211_local *local = file->private_data; in uapsd_queues_write() local
123 local->uapsd_queues = val; in uapsd_queues_write()
138 struct ieee80211_local *local = file->private_data; in uapsd_max_sp_len_read() local
141 local->uapsd_max_sp_len); in uapsd_max_sp_len_read()
148 struct ieee80211_local *local = file->private_data; in uapsd_max_sp_len_write() local
167 local->uapsd_max_sp_len = val; in uapsd_max_sp_len_write()
182 struct ieee80211_local *local = file->private_data; in channel_type_read() local
185 switch (local->hw.conf.channel_type) { in channel_type_read()
209 struct ieee80211_local *local = file->private_data; in hwflags_read() local
218 sf += snprintf(buf, mxln - sf, "0x%x\n", local->hw.flags); in hwflags_read()
219 if (local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) in hwflags_read()
221 if (local->hw.flags & IEEE80211_HW_RX_INCLUDES_FCS) in hwflags_read()
223 if (local->hw.flags & IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING) in hwflags_read()
226 if (local->hw.flags & IEEE80211_HW_2GHZ_SHORT_SLOT_INCAPABLE) in hwflags_read()
229 if (local->hw.flags & IEEE80211_HW_2GHZ_SHORT_PREAMBLE_INCAPABLE) in hwflags_read()
232 if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC) in hwflags_read()
234 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) in hwflags_read()
236 if (local->hw.flags & IEEE80211_HW_NEED_DTIM_PERIOD) in hwflags_read()
238 if (local->hw.flags & IEEE80211_HW_SPECTRUM_MGMT) in hwflags_read()
240 if (local->hw.flags & IEEE80211_HW_AMPDU_AGGREGATION) in hwflags_read()
242 if (local->hw.flags & IEEE80211_HW_SUPPORTS_PS) in hwflags_read()
244 if (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) in hwflags_read()
246 if (local->hw.flags & IEEE80211_HW_SUPPORTS_DYNAMIC_PS) in hwflags_read()
248 if (local->hw.flags & IEEE80211_HW_MFP_CAPABLE) in hwflags_read()
250 if (local->hw.flags & IEEE80211_HW_BEACON_FILTER) in hwflags_read()
252 if (local->hw.flags & IEEE80211_HW_SUPPORTS_STATIC_SMPS) in hwflags_read()
254 if (local->hw.flags & IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS) in hwflags_read()
256 if (local->hw.flags & IEEE80211_HW_SUPPORTS_UAPSD) in hwflags_read()
258 if (local->hw.flags & IEEE80211_HW_REPORTS_TX_ACK_STATUS) in hwflags_read()
260 if (local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR) in hwflags_read()
262 if (local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI) in hwflags_read()
264 if (local->hw.flags & IEEE80211_HW_SUPPORTS_PER_STA_GTK) in hwflags_read()
266 if (local->hw.flags & IEEE80211_HW_AP_LINK_PS) in hwflags_read()
268 if (local->hw.flags & IEEE80211_HW_TX_AMPDU_SETUP_IN_HW) in hwflags_read()
279 struct ieee80211_local *local = file->private_data; in queues_read() local
284 spin_lock_irqsave(&local->queue_stop_reason_lock, flags); in queues_read()
285 for (q = 0; q < local->hw.queues; q++) in queues_read()
287 local->queue_stop_reasons[q], in queues_read()
288 skb_queue_len(&local->pending[q])); in queues_read()
289 spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags); in queues_read()
300 static ssize_t format_devstat_counter(struct ieee80211_local *local, in format_devstat_counter() argument
311 res = drv_get_stats(local, &stats); in format_devstat_counter()
345 debugfs_create_file(#name, 0400, statsd, local, &stats_ ##name## _ops);
352 void debugfs_hw_add(struct ieee80211_local *local) in debugfs_hw_add() argument
354 struct dentry *phyd = local->hw.wiphy->debugfsdir; in debugfs_hw_add()
360 local->debugfs.keys = debugfs_create_dir("keys", phyd); in debugfs_hw_add()
381 local->dot11TransmittedFragmentCount); in debugfs_hw_add()
383 local->dot11MulticastTransmittedFrameCount); in debugfs_hw_add()
384 DEBUGFS_STATS_ADD(failed_count, local->dot11FailedCount); in debugfs_hw_add()
385 DEBUGFS_STATS_ADD(retry_count, local->dot11RetryCount); in debugfs_hw_add()
387 local->dot11MultipleRetryCount); in debugfs_hw_add()
389 local->dot11FrameDuplicateCount); in debugfs_hw_add()
391 local->dot11ReceivedFragmentCount); in debugfs_hw_add()
393 local->dot11MulticastReceivedFrameCount); in debugfs_hw_add()
395 local->dot11TransmittedFrameCount); in debugfs_hw_add()
397 DEBUGFS_STATS_ADD(tx_handlers_drop, local->tx_handlers_drop); in debugfs_hw_add()
398 DEBUGFS_STATS_ADD(tx_handlers_queued, local->tx_handlers_queued); in debugfs_hw_add()
400 local->tx_handlers_drop_unencrypted); in debugfs_hw_add()
402 local->tx_handlers_drop_fragment); in debugfs_hw_add()
404 local->tx_handlers_drop_wep); in debugfs_hw_add()
406 local->tx_handlers_drop_not_assoc); in debugfs_hw_add()
408 local->tx_handlers_drop_unauth_port); in debugfs_hw_add()
409 DEBUGFS_STATS_ADD(rx_handlers_drop, local->rx_handlers_drop); in debugfs_hw_add()
410 DEBUGFS_STATS_ADD(rx_handlers_queued, local->rx_handlers_queued); in debugfs_hw_add()
412 local->rx_handlers_drop_nullfunc); in debugfs_hw_add()
414 local->rx_handlers_drop_defrag); in debugfs_hw_add()
416 local->rx_handlers_drop_short); in debugfs_hw_add()
418 local->rx_handlers_drop_passive_scan); in debugfs_hw_add()
420 local->tx_expand_skb_head); in debugfs_hw_add()
422 local->tx_expand_skb_head_cloned); in debugfs_hw_add()
424 local->rx_expand_skb_head); in debugfs_hw_add()
426 local->rx_expand_skb_head2); in debugfs_hw_add()
428 local->rx_handlers_fragments); in debugfs_hw_add()
430 local->tx_status_drop); in debugfs_hw_add()