Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
debugfs.c File Reference
#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.

Macros

#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)
 

Functions

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)
 

Macro Definition Documentation

#define DRIVER_STATE_BUF_LEN   1024
#define DRIVER_STATE_PRINT (   x,
  fmt 
)
Value:
(res += scnprintf(buf + res, DRIVER_STATE_BUF_LEN - res,\
#x " = " fmt "\n", wl->x))
#define DRIVER_STATE_PRINT_HEX (   x)    DRIVER_STATE_PRINT(x, "0x%x")
#define DRIVER_STATE_PRINT_INT (   x)    DRIVER_STATE_PRINT(x, "%d")
#define DRIVER_STATE_PRINT_LHEX (   x)    DRIVER_STATE_PRINT(x, "0x%lx")
#define DRIVER_STATE_PRINT_LONG (   x)    DRIVER_STATE_PRINT(x, "%ld")
#define DRIVER_STATE_PRINT_STR (   x)    DRIVER_STATE_PRINT(x, "%s")
#define VIF_STATE_PRINT (   x,
  fmt 
)
Value:
#x " = " fmt "\n", wlvif->x))
#define VIF_STATE_PRINT_HEX (   x)    VIF_STATE_PRINT(x, "0x%x")
#define VIF_STATE_PRINT_INT (   x)    VIF_STATE_PRINT(x, "%d")
#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_LONG (   x)    VIF_STATE_PRINT(x, "%ld")
#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)); \
res += scnprintf(buf + res, buf_size - res, \
#x " = %s\n", tmp_buf); \
} while (0)
#define VIF_STATE_PRINT_STR (   x)    VIF_STATE_PRINT(x, "%s")
#define WL1271_DEBUGFS_STATS_LIFETIME   1000

Definition at line 39 of file debugfs.c.

#define WL12XX_CONF_DEBUGFS (   param,
  conf_sub_struct,
  min_val,
  max_val,
  write_handler_locked,
  write_handler_arg 
)

Definition at line 138 of file debugfs.c.

#define WLCORE_MAX_BLOCK_SIZE   ((size_t)(4*PAGE_SIZE))

Definition at line 41 of file debugfs.c.

Function Documentation

DEBUGFS_READONLY_FILE ( retry_count  ,
"%u"  ,
wl->stats.  retry_count 
)
DEBUGFS_READONLY_FILE ( excessive_retries  ,
"%u"  ,
wl->stats.  excessive_retries 
)
EXPORT_SYMBOL_GPL ( wl1271_format_buffer  )
EXPORT_SYMBOL_GPL ( wl1271_debugfs_update_stats  )
void wl1271_debugfs_exit ( struct wl1271 wl)

Definition at line 1325 of file debugfs.c.

int wl1271_debugfs_init ( struct wl1271 wl)

Definition at line 1284 of file debugfs.c.

void wl1271_debugfs_reset ( struct wl1271 wl)

Definition at line 1274 of file debugfs.c.

void wl1271_debugfs_update_stats ( struct wl1271 wl)

Definition at line 59 of file debugfs.c.

int wl1271_format_buffer ( char __user userbuf,
size_t  count,
loff_t *  ppos,
char fmt,
  ... 
)

Definition at line 44 of file debugfs.c.

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   
)

Definition at line 186 of file debugfs.c.