#include "debugfs.h"
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "wlcore.h"
#include "debug.h"
#include "acx.h"
#include "ps.h"
#include "io.h"
#include "tx.h"
#include "hw_ops.h"
Go to the source code of this file.
|
#define | WL1271_DEBUGFS_STATS_LIFETIME 1000 |
|
#define | WLCORE_MAX_BLOCK_SIZE ((size_t)(4*PAGE_SIZE)) |
|
#define | WL12XX_CONF_DEBUGFS(param, conf_sub_struct,min_val, max_val, write_handler_locked, write_handler_arg) |
|
#define | DRIVER_STATE_BUF_LEN 1024 |
|
#define | DRIVER_STATE_PRINT(x, fmt) |
|
#define | DRIVER_STATE_PRINT_LONG(x) DRIVER_STATE_PRINT(x, "%ld") |
|
#define | DRIVER_STATE_PRINT_INT(x) DRIVER_STATE_PRINT(x, "%d") |
|
#define | DRIVER_STATE_PRINT_STR(x) DRIVER_STATE_PRINT(x, "%s") |
|
#define | DRIVER_STATE_PRINT_LHEX(x) DRIVER_STATE_PRINT(x, "0x%lx") |
|
#define | DRIVER_STATE_PRINT_HEX(x) DRIVER_STATE_PRINT(x, "0x%x") |
|
#define | VIF_STATE_PRINT(x, fmt) |
|
#define | VIF_STATE_PRINT_LONG(x) VIF_STATE_PRINT(x, "%ld") |
|
#define | VIF_STATE_PRINT_INT(x) VIF_STATE_PRINT(x, "%d") |
|
#define | VIF_STATE_PRINT_STR(x) VIF_STATE_PRINT(x, "%s") |
|
#define | VIF_STATE_PRINT_LHEX(x) VIF_STATE_PRINT(x, "0x%lx") |
|
#define | VIF_STATE_PRINT_LLHEX(x) VIF_STATE_PRINT(x, "0x%llx") |
|
#define | VIF_STATE_PRINT_HEX(x) VIF_STATE_PRINT(x, "0x%x") |
|
#define | VIF_STATE_PRINT_NSTR(x, len) |
|
|
int | wl1271_format_buffer (char __user *userbuf, size_t count, loff_t *ppos, char *fmt,...) |
|
| EXPORT_SYMBOL_GPL (wl1271_format_buffer) |
|
void | wl1271_debugfs_update_stats (struct wl1271 *wl) |
|
| EXPORT_SYMBOL_GPL (wl1271_debugfs_update_stats) |
|
| DEBUGFS_READONLY_FILE (retry_count,"%u", wl->stats.retry_count) |
|
| DEBUGFS_READONLY_FILE (excessive_retries,"%u", wl->stats.excessive_retries) |
|
| WL12XX_CONF_DEBUGFS (irq_pkt_threshold, WL12XX_CONF_DEBUGFS(rx, WL12XX_CONF_DEBUGFS(0, WL12XX_CONF_DEBUGFS(65535, WL12XX_CONF_DEBUGFS(chip_op_handler, wl1271_acx_init_rx_interrupt) |
|
void | wl1271_debugfs_reset (struct wl1271 *wl) |
|
int | wl1271_debugfs_init (struct wl1271 *wl) |
|
void | wl1271_debugfs_exit (struct wl1271 *wl) |
|
#define DRIVER_STATE_BUF_LEN 1024 |
#define DRIVER_STATE_PRINT |
( |
|
x, |
|
|
|
fmt |
|
) |
| |
Value:
#
x " = " fmt "\n", wl->x))
#define VIF_STATE_PRINT |
( |
|
x, |
|
|
|
fmt |
|
) |
| |
Value:
#
x " = " fmt "\n", wlvif->x))
#define VIF_STATE_PRINT_NSTR |
( |
|
x, |
|
|
|
len |
|
) |
| |
Value:do { \
memset(tmp_buf, 0, sizeof(tmp_buf)); \
memcpy(tmp_buf, wlvif->x, \
min_t(
u8, len,
sizeof(tmp_buf) - 1)); \
#
x " = %s\n", tmp_buf); \
} while (0)
#define WL1271_DEBUGFS_STATS_LIFETIME 1000 |
#define WL12XX_CONF_DEBUGFS |
( |
|
param, |
|
|
|
conf_sub_struct, |
|
|
|
min_val, |
|
|
|
max_val, |
|
|
|
write_handler_locked, |
|
|
|
write_handler_arg |
|
) |
| |
DEBUGFS_READONLY_FILE |
( |
retry_count |
, |
|
|
"%u" |
, |
|
|
wl->stats. |
retry_count |
|
) |
| |
DEBUGFS_READONLY_FILE |
( |
excessive_retries |
, |
|
|
"%u" |
, |
|
|
wl->stats. |
excessive_retries |
|
) |
| |
WL12XX_CONF_DEBUGFS |
( |
irq_pkt_threshold |
, |
|
|
WL12XX_CONF_DEBUGFS( |
rx, |
|
|
WL12XX_CONF_DEBUGFS( |
0, |
|
|
WL12XX_CONF_DEBUGFS( |
65535, |
|
|
WL12XX_CONF_DEBUGFS( |
chip_op_handler, |
|
|
wl1271_acx_init_rx_interrupt |
|
|
) |
| |