Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/seq_file.h>
#include <linux/vmalloc.h>
#include "carl9170.h"
#include "cmd.h"
Go to the source code of this file.
Data Structures | |
struct | carl9170_debugfs_fops |
Macros | |
#define | ADD(buf, off, max, fmt, args...) off += snprintf(&buf[off], max - off, fmt, ##args); |
#define | __DEBUGFS_DECLARE_FILE(name, _read, _write, _read_bufsize, _attr, _dstate) |
#define | DEBUGFS_DECLARE_FILE(name, _read, _write, _read_bufsize, _attr) |
#define | DEBUGFS_DECLARE_RO_FILE(name, _read_bufsize) |
#define | DEBUGFS_DECLARE_WO_FILE(name) |
#define | DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize) |
#define | __DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize, _dstate) |
#define | DEBUGFS_READONLY_FILE(name, _read_bufsize, fmt, value...) |
#define | BM_STR_OFF(offset) |
#define | DEBUGFS_QUEUE_DUMP(q, qi) |
#define | UPDATE_COUNTER(ar, name) |
#define | TALLY_SUM_UP(ar, name) |
#define | DEBUGFS_HW_TALLY_FILE(name, f) |
#define | DEBUGFS_HW_REG_FILE(name, f) |
#define | DEBUGFS_ADD(name) |
Functions | |
DEBUGFS_DECLARE_RO_FILE (mem_usage, 512) | |
DEBUGFS_DECLARE_RO_FILE (qos_stat, 512) | |
DEBUGFS_DECLARE_RO_FILE (ampdu_state, 8000) | |
DEBUGFS_DECLARE_RO_FILE (sta_psm, 160) | |
DEBUGFS_DECLARE_RO_FILE (tx_stuck, 180) | |
DEBUGFS_DECLARE_RO_FILE (phy_noise, 180) | |
DEBUGFS_DECLARE_RO_FILE (vif_dump, 8000) | |
DEBUGFS_DECLARE_RW_FILE (hw_ioread32, CARL9170_DEBUG_RING_SIZE *40) | |
__DEBUGFS_DECLARE_RW_FILE (bug, 400, CARL9170_STOPPED) | |
DEBUGFS_DECLARE_RW_FILE (erp, 80) | |
DEBUGFS_DECLARE_WO_FILE (hw_iowrite32) | |
DEBUGFS_HW_TALLY_FILE (hw_tx_tally,"u") | |
DEBUGFS_HW_TALLY_FILE (hw_rx_tally,"u") | |
DEBUGFS_HW_TALLY_FILE (hw_phy_errors,"u") | |
DEBUGFS_HW_REG_FILE (hw_wlan_queue,".8x") | |
DEBUGFS_HW_REG_FILE (hw_pta_queue,".8x") | |
DEBUGFS_HW_REG_FILE (hw_ampdu_info,".8x") | |
DEBUGFS_QUEUE_DUMP (tx_status, 0) | |
DEBUGFS_QUEUE_DUMP (tx_status, 1) | |
DEBUGFS_QUEUE_DUMP (tx_status, 2) | |
DEBUGFS_QUEUE_DUMP (tx_status, 3) | |
DEBUGFS_QUEUE_DUMP (tx_pending, 0) | |
DEBUGFS_QUEUE_DUMP (tx_pending, 1) | |
DEBUGFS_QUEUE_DUMP (tx_pending, 2) | |
DEBUGFS_QUEUE_DUMP (tx_pending, 3) | |
DEBUGFS_READONLY_FILE (usb_tx_anch_urbs, 20,"%d", atomic_read(&ar->tx_anch_urbs)) | |
DEBUGFS_READONLY_FILE (usb_rx_anch_urbs, 20,"%d", atomic_read(&ar->rx_anch_urbs)) | |
DEBUGFS_READONLY_FILE (usb_rx_work_urbs, 20,"%d", atomic_read(&ar->rx_work_urbs)) | |
DEBUGFS_READONLY_FILE (usb_rx_pool_urbs, 20,"%d", atomic_read(&ar->rx_pool_urbs)) | |
DEBUGFS_READONLY_FILE (tx_total_queued, 20,"%d", atomic_read(&ar->tx_total_queued)) | |
DEBUGFS_READONLY_FILE (tx_ampdu_scheduler, 20,"%d", atomic_read(&ar->tx_ampdu_scheduler)) | |
DEBUGFS_READONLY_FILE (tx_total_pending, 20,"%d", atomic_read(&ar->tx_total_pending)) | |
DEBUGFS_READONLY_FILE (tx_ampdu_list_len, 20,"%d", ar->tx_ampdu_list_len) | |
DEBUGFS_READONLY_FILE (tx_ampdu_upload, 20,"%d", atomic_read(&ar->tx_ampdu_upload)) | |
DEBUGFS_READONLY_FILE (tx_janitor_last_run, 64,"last run:%d ms ago", jiffies_to_msecs(jiffies-ar->tx_janitor_last_run)) | |
DEBUGFS_READONLY_FILE (tx_dropped, 20,"%d", ar->tx_dropped) | |
DEBUGFS_READONLY_FILE (rx_dropped, 20,"%d", ar->rx_dropped) | |
DEBUGFS_READONLY_FILE (sniffer_enabled, 20,"%d", ar->sniffer_enabled) | |
DEBUGFS_READONLY_FILE (rx_software_decryption, 20,"%d", ar->rx_software_decryption) | |
DEBUGFS_READONLY_FILE (ampdu_factor, 20,"%d", ar->current_factor) | |
DEBUGFS_READONLY_FILE (ampdu_density, 20,"%d", ar->current_density) | |
DEBUGFS_READONLY_FILE (beacon_int, 20,"%d TU", ar->global_beacon_int) | |
DEBUGFS_READONLY_FILE (pretbtt, 20,"%d TU", ar->global_pretbtt) | |
void | carl9170_debugfs_register (struct ar9170 *ar) |
void | carl9170_debugfs_unregister (struct ar9170 *ar) |
#define __DEBUGFS_DECLARE_FILE | ( | name, | |
_read, | |||
_write, | |||
_read_bufsize, | |||
_attr, | |||
_dstate | |||
) |
#define __DEBUGFS_DECLARE_RW_FILE | ( | name, | |
_read_bufsize, | |||
_dstate | |||
) |
#define BM_STR_OFF | ( | offset | ) |
#define DEBUGFS_ADD | ( | name | ) |
#define DEBUGFS_DECLARE_FILE | ( | name, | |
_read, | |||
_write, | |||
_read_bufsize, | |||
_attr | |||
) |
#define DEBUGFS_DECLARE_RO_FILE | ( | name, | |
_read_bufsize | |||
) |
#define DEBUGFS_DECLARE_RW_FILE | ( | name, | |
_read_bufsize | |||
) |
#define DEBUGFS_DECLARE_WO_FILE | ( | name | ) |
#define DEBUGFS_QUEUE_DUMP | ( | q, | |
qi | |||
) |
__DEBUGFS_DECLARE_RW_FILE | ( | bug | , |
400 | , | ||
CARL9170_STOPPED | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | mem_usage | , |
512 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | qos_stat | , |
512 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | ampdu_state | , |
8000 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | sta_psm | , |
160 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | tx_stuck | , |
180 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | phy_noise | , |
180 | |||
) |
DEBUGFS_DECLARE_RO_FILE | ( | vif_dump | , |
8000 | |||
) |
DEBUGFS_DECLARE_RW_FILE | ( | hw_ioread32 | , |
CARL9170_DEBUG_RING_SIZE * | 40 | ||
) |
DEBUGFS_DECLARE_RW_FILE | ( | erp | , |
80 | |||
) |
DEBUGFS_DECLARE_WO_FILE | ( | hw_iowrite32 | ) |
DEBUGFS_HW_REG_FILE | ( | hw_wlan_queue | , |
".8x" | |||
) |
DEBUGFS_HW_REG_FILE | ( | hw_pta_queue | , |
".8x" | |||
) |
DEBUGFS_HW_REG_FILE | ( | hw_ampdu_info | , |
".8x" | |||
) |
DEBUGFS_HW_TALLY_FILE | ( | hw_tx_tally | , |
"u" | |||
) |
DEBUGFS_HW_TALLY_FILE | ( | hw_rx_tally | , |
"u" | |||
) |
DEBUGFS_HW_TALLY_FILE | ( | hw_phy_errors | , |
"u" | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_status | , |
0 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_status | , |
1 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_status | , |
2 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_status | , |
3 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_pending | , |
0 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_pending | , |
1 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_pending | , |
2 | |||
) |
DEBUGFS_QUEUE_DUMP | ( | tx_pending | , |
3 | |||
) |
DEBUGFS_READONLY_FILE | ( | usb_tx_anch_urbs | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | tx_anch_urbs | ||
) |
DEBUGFS_READONLY_FILE | ( | usb_rx_anch_urbs | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | rx_anch_urbs | ||
) |
DEBUGFS_READONLY_FILE | ( | usb_rx_work_urbs | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | rx_work_urbs | ||
) |
DEBUGFS_READONLY_FILE | ( | usb_rx_pool_urbs | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | rx_pool_urbs | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_total_queued | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | tx_total_queued | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_ampdu_scheduler | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | tx_ampdu_scheduler | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_total_pending | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | tx_total_pending | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_ampdu_list_len | , |
20 | , | ||
"%d" | , | ||
ar-> | tx_ampdu_list_len | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_ampdu_upload | , |
20 | , | ||
"%d" | , | ||
atomic_read &-> | tx_ampdu_upload | ||
) |
DEBUGFS_READONLY_FILE | ( | tx_janitor_last_run | , |
64 | , | ||
"last run:%d ms ago" | , | ||
jiffies_to_msecs(jiffies-ar->tx_janitor_last_run) | |||
) |
DEBUGFS_READONLY_FILE | ( | tx_dropped | , |
20 | , | ||
"%d" | , | ||
ar-> | tx_dropped | ||
) |
DEBUGFS_READONLY_FILE | ( | rx_dropped | , |
20 | , | ||
"%d" | , | ||
ar-> | rx_dropped | ||
) |
DEBUGFS_READONLY_FILE | ( | sniffer_enabled | , |
20 | , | ||
"%d" | , | ||
ar-> | sniffer_enabled | ||
) |
DEBUGFS_READONLY_FILE | ( | rx_software_decryption | , |
20 | , | ||
"%d" | , | ||
ar-> | rx_software_decryption | ||
) |
DEBUGFS_READONLY_FILE | ( | ampdu_factor | , |
20 | , | ||
"%d" | , | ||
ar-> | current_factor | ||
) |
DEBUGFS_READONLY_FILE | ( | ampdu_density | , |
20 | , | ||
"%d" | , | ||
ar-> | current_density | ||
) |
DEBUGFS_READONLY_FILE | ( | beacon_int | , |
20 | , | ||
"%d TU" | , | ||
ar-> | global_beacon_int | ||
) |
DEBUGFS_READONLY_FILE | ( | pretbtt | , |
20 | , | ||
"%d TU" | , | ||
ar-> | global_pretbtt | ||
) |