Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
debugfs.c File Reference
#include <linux/fs.h>
#include <linux/debugfs.h>
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "b43legacy.h"
#include "main.h"
#include "debugfs.h"
#include "dma.h"
#include "pio.h"
#include "xmit.h"

Go to the source code of this file.

Data Structures

struct  b43legacy_debugfs_fops
 

Macros

#define fappend(fmt, x...)
 
#define B43legacy_DEBUGFS_FOPS(name, _read, _write, _take_irqlock)
 
#define add_dyn_dbg(name, id, initstate)
 
#define ADD_FILE(name, mode)
 

Functions

 B43legacy_DEBUGFS_FOPS (tsf, tsf_read_file, tsf_write_file, 1)
 
 B43legacy_DEBUGFS_FOPS (ucode_regs, ucode_regs_read_file, NULL, 1)
 
 B43legacy_DEBUGFS_FOPS (shm, shm_read_file, NULL, 1)
 
 B43legacy_DEBUGFS_FOPS (txstat, txstat_read_file, NULL, 0)
 
 B43legacy_DEBUGFS_FOPS (restart, NULL, restart_write_file, 1)
 
int b43legacy_debug (struct b43legacy_wldev *dev, enum b43legacy_dyndbg feature)
 
void b43legacy_debugfs_add_device (struct b43legacy_wldev *dev)
 
void b43legacy_debugfs_remove_device (struct b43legacy_wldev *dev)
 
void b43legacy_debugfs_log_txstat (struct b43legacy_wldev *dev, const struct b43legacy_txstatus *status)
 
void b43legacy_debugfs_init (void)
 
void b43legacy_debugfs_exit (void)
 

Macro Definition Documentation

#define add_dyn_dbg (   name,
  id,
  initstate 
)
Value:
do { \
e->dyn_debug[id] = (initstate); \
d = debugfs_create_bool(name, 0600, e->subdir, \
&(e->dyn_debug[id])); \
if (!IS_ERR(d)) \
e->dyn_debug_dentries[id] = d; \
} while (0)
#define ADD_FILE (   name,
  mode 
)
Value:
do { \
mode, e->subdir, dev, \
&fops_##name.fops); \
e->file_##name.dentry = NULL; \
if (!IS_ERR(d)) \
e->file_##name.dentry = d; \
} while (0)
#define B43legacy_DEBUGFS_FOPS (   name,
  _read,
  _write,
  _take_irqlock 
)
Value:
static struct b43legacy_debugfs_fops fops_##name = { \
.read = _read, \
.write = _write, \
.fops = { \
.open = simple_open, \
.read = b43legacy_debugfs_read, \
.write = b43legacy_debugfs_write, \
.llseek = generic_file_llseek, \
}, \
.file_struct_offset = offsetof(struct b43legacy_dfsentry, \
file_##name), \
.take_irqlock = _take_irqlock, \
}

Definition at line 323 of file debugfs.c.

#define fappend (   fmt,
  x... 
)
Value:
do { \
if (bufsize - count) \
count += snprintf(buf + count, \
fmt , ##x); \
printk(KERN_ERR "b43legacy: fappend overflow\n"); \
} while (0)

Definition at line 67 of file debugfs.c.

Function Documentation

int b43legacy_debug ( struct b43legacy_wldev dev,
enum b43legacy_dyndbg  feature 
)

Definition at line 345 of file debugfs.c.

void b43legacy_debugfs_add_device ( struct b43legacy_wldev dev)

Definition at line 381 of file debugfs.c.

void b43legacy_debugfs_exit ( void  )

Definition at line 497 of file debugfs.c.

B43legacy_DEBUGFS_FOPS ( tsf  ,
tsf_read_file  ,
tsf_write_file  ,
 
)
B43legacy_DEBUGFS_FOPS ( ucode_regs  ,
ucode_regs_read_file  ,
NULL  ,
 
)
B43legacy_DEBUGFS_FOPS ( shm  ,
shm_read_file  ,
NULL  ,
 
)
B43legacy_DEBUGFS_FOPS ( txstat  ,
txstat_read_file  ,
NULL  ,
 
)
B43legacy_DEBUGFS_FOPS ( restart  ,
NULL  ,
restart_write_file  ,
 
)
void b43legacy_debugfs_init ( void  )

Definition at line 490 of file debugfs.c.

void b43legacy_debugfs_log_txstat ( struct b43legacy_wldev dev,
const struct b43legacy_txstatus status 
)

Definition at line 468 of file debugfs.c.

void b43legacy_debugfs_remove_device ( struct b43legacy_wldev dev)

Definition at line 446 of file debugfs.c.