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/debugfs.h>
#include "main.h"
#include "11n.h"

Go to the source code of this file.

Data Structures

struct  mwifiex_debug_data
 

Macros

#define item_size(n)   (FIELD_SIZEOF(struct mwifiex_debug_info, n))
 
#define item_addr(n)   (offsetof(struct mwifiex_debug_info, n))
 
#define adapter_item_size(n)   (FIELD_SIZEOF(struct mwifiex_adapter, n))
 
#define adapter_item_addr(n)   (offsetof(struct mwifiex_adapter, n))
 
#define MWIFIEX_DFS_ADD_FILE(name)
 
#define MWIFIEX_DFS_FILE_OPS(name)
 
#define MWIFIEX_DFS_FILE_READ_OPS(name)
 
#define MWIFIEX_DFS_FILE_WRITE_OPS(name)
 

Functions

 MWIFIEX_DFS_FILE_READ_OPS (info)
 
 MWIFIEX_DFS_FILE_READ_OPS (debug)
 
 MWIFIEX_DFS_FILE_READ_OPS (getlog)
 
 MWIFIEX_DFS_FILE_OPS (regrdwr)
 
 MWIFIEX_DFS_FILE_OPS (rdeeprom)
 
void mwifiex_dev_debugfs_init (struct mwifiex_private *priv)
 
void mwifiex_dev_debugfs_remove (struct mwifiex_private *priv)
 
void mwifiex_debugfs_init (void)
 
void mwifiex_debugfs_remove (void)
 

Macro Definition Documentation

#define adapter_item_addr (   n)    (offsetof(struct mwifiex_adapter, n))

Definition at line 41 of file debugfs.c.

#define adapter_item_size (   n)    (FIELD_SIZEOF(struct mwifiex_adapter, n))

Definition at line 40 of file debugfs.c.

#define item_addr (   n)    (offsetof(struct mwifiex_debug_info, n))

Definition at line 37 of file debugfs.c.

#define item_size (   n)    (FIELD_SIZEOF(struct mwifiex_debug_info, n))

Definition at line 36 of file debugfs.c.

#define MWIFIEX_DFS_ADD_FILE (   name)
Value:
do { \
if (!debugfs_create_file(#name, 0644, priv->dfs_dev_dir, \
priv, &mwifiex_dfs_##name##_fops)) \
return; \
} while (0);

Definition at line 657 of file debugfs.c.

#define MWIFIEX_DFS_FILE_OPS (   name)
Value:
static const struct file_operations mwifiex_dfs_##name##_fops = { \
.read = mwifiex_##name##_read, \
.write = mwifiex_##name##_write, \
.open = simple_open, \
};

Definition at line 663 of file debugfs.c.

#define MWIFIEX_DFS_FILE_READ_OPS (   name)
Value:
static const struct file_operations mwifiex_dfs_##name##_fops = { \
.read = mwifiex_##name##_read, \
.open = simple_open, \
};

Definition at line 670 of file debugfs.c.

#define MWIFIEX_DFS_FILE_WRITE_OPS (   name)
Value:
static const struct file_operations mwifiex_dfs_##name##_fops = { \
.write = mwifiex_##name##_write, \
.open = simple_open, \
};

Definition at line 676 of file debugfs.c.

Function Documentation

void mwifiex_debugfs_init ( void  )

Definition at line 727 of file debugfs.c.

void mwifiex_debugfs_remove ( void  )

Definition at line 737 of file debugfs.c.

void mwifiex_dev_debugfs_init ( struct mwifiex_private priv)

Definition at line 693 of file debugfs.c.

void mwifiex_dev_debugfs_remove ( struct mwifiex_private priv)

Definition at line 715 of file debugfs.c.

MWIFIEX_DFS_FILE_OPS ( regrdwr  )
MWIFIEX_DFS_FILE_OPS ( rdeeprom  )
MWIFIEX_DFS_FILE_READ_OPS ( info  )
MWIFIEX_DFS_FILE_READ_OPS ( debug  )
MWIFIEX_DFS_FILE_READ_OPS ( getlog  )