Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tcm_qla2xxx.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <generated/utsrelease.h>
#include <linux/utsname.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/configfs.h>
#include <linux/ctype.h>
#include <asm/unaligned.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_cmnd.h>
#include <target/target_core_base.h>
#include <target/target_core_fabric.h>
#include <target/target_core_fabric_configfs.h>
#include <target/target_core_configfs.h>
#include <target/configfs_macros.h>
#include "qla_def.h"
#include "qla_target.h"
#include "tcm_qla2xxx.h"

Go to the source code of this file.

Macros

#define DEF_QLA_TPG_ATTRIB(name)
 
#define DEF_QLA_TPG_ATTR_BOOL(_name)
 
#define QLA_TPG_ATTR(_name, _mode)   TF_TPG_ATTRIB_ATTR(tcm_qla2xxx, _name, _mode);
 

Functions

 DEF_QLA_TPG_ATTR_BOOL (generate_node_acls)
 
 DEF_QLA_TPG_ATTRIB (generate_node_acls)
 
 QLA_TPG_ATTR (generate_node_acls, S_IRUGO|S_IWUSR)
 
 DEF_QLA_TPG_ATTR_BOOL (cache_dynamic_acls)
 
 DEF_QLA_TPG_ATTRIB (cache_dynamic_acls)
 
 QLA_TPG_ATTR (cache_dynamic_acls, S_IRUGO|S_IWUSR)
 
 DEF_QLA_TPG_ATTR_BOOL (demo_mode_write_protect)
 
 DEF_QLA_TPG_ATTRIB (demo_mode_write_protect)
 
 QLA_TPG_ATTR (demo_mode_write_protect, S_IRUGO|S_IWUSR)
 
 DEF_QLA_TPG_ATTR_BOOL (prod_mode_write_protect)
 
 DEF_QLA_TPG_ATTRIB (prod_mode_write_protect)
 
 QLA_TPG_ATTR (prod_mode_write_protect, S_IRUGO|S_IWUSR)
 
 TF_TPG_BASE_ATTR (tcm_qla2xxx, enable, S_IRUGO|S_IWUSR)
 
 TF_WWN_ATTR_RO (tcm_qla2xxx, version)
 
 MODULE_DESCRIPTION ("TCM QLA2XXX series NPIV enabled fabric driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (tcm_qla2xxx_init)
 
 module_exit (tcm_qla2xxx_exit)
 

Variables

struct workqueue_structtcm_qla2xxx_free_wq
 
struct workqueue_structtcm_qla2xxx_cmd_wq
 
struct target_fabric_configfstcm_qla2xxx_fabric_configfs
 
struct target_fabric_configfstcm_qla2xxx_npiv_fabric_configfs
 

Macro Definition Documentation

#define DEF_QLA_TPG_ATTR_BOOL (   _name)
Value:
\
static int tcm_qla2xxx_set_attrib_##_name( \
struct tcm_qla2xxx_tpg *tpg, \
unsigned long val) \
{ \
struct tcm_qla2xxx_tpg_attrib *a = &tpg->tpg_attrib; \
if ((val != 0) && (val != 1)) { \
pr_err("Illegal boolean value %lu\n", val); \
return -EINVAL; \
} \
\
a->_name = val; \
return 0; \
}

Definition at line 890 of file tcm_qla2xxx.c.

#define DEF_QLA_TPG_ATTRIB (   name)

Definition at line 857 of file tcm_qla2xxx.c.

#define QLA_TPG_ATTR (   _name,
  _mode 
)    TF_TPG_ATTRIB_ATTR(tcm_qla2xxx, _name, _mode);

Definition at line 907 of file tcm_qla2xxx.c.

Function Documentation

DEF_QLA_TPG_ATTR_BOOL ( generate_node_acls  )
DEF_QLA_TPG_ATTR_BOOL ( cache_dynamic_acls  )
DEF_QLA_TPG_ATTR_BOOL ( demo_mode_write_protect  )
DEF_QLA_TPG_ATTR_BOOL ( prod_mode_write_protect  )
DEF_QLA_TPG_ATTRIB ( generate_node_acls  )
DEF_QLA_TPG_ATTRIB ( cache_dynamic_acls  )
DEF_QLA_TPG_ATTRIB ( demo_mode_write_protect  )
DEF_QLA_TPG_ATTRIB ( prod_mode_write_protect  )
MODULE_DESCRIPTION ( "TCM QLA2XXX series NPIV enabled fabric driver )
module_exit ( tcm_qla2xxx_exit  )
module_init ( tcm_qla2xxx_init  )
MODULE_LICENSE ( "GPL"  )
QLA_TPG_ATTR ( generate_node_acls  ,
S_IRUGO S_IWUSR 
)
QLA_TPG_ATTR ( cache_dynamic_acls  ,
S_IRUGO S_IWUSR 
)
QLA_TPG_ATTR ( demo_mode_write_protect  ,
S_IRUGO S_IWUSR 
)
QLA_TPG_ATTR ( prod_mode_write_protect  ,
S_IRUGO S_IWUSR 
)
TF_TPG_BASE_ATTR ( tcm_qla2xxx  ,
enable  ,
S_IRUGO S_IWUSR 
)
TF_WWN_ATTR_RO ( tcm_qla2xxx  ,
version   
)

Variable Documentation

struct workqueue_struct* tcm_qla2xxx_cmd_wq

Definition at line 57 of file tcm_qla2xxx.c.

struct target_fabric_configfs* tcm_qla2xxx_fabric_configfs

Definition at line 739 of file tcm_qla2xxx.c.

struct workqueue_struct* tcm_qla2xxx_free_wq

Definition at line 56 of file tcm_qla2xxx.c.

struct target_fabric_configfs* tcm_qla2xxx_npiv_fabric_configfs

Definition at line 740 of file tcm_qla2xxx.c.