Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
scsi_logging.h File Reference

Go to the source code of this file.

Macros

#define SCSI_LOG_ERROR_SHIFT   0
 
#define SCSI_LOG_TIMEOUT_SHIFT   3
 
#define SCSI_LOG_SCAN_SHIFT   6
 
#define SCSI_LOG_MLQUEUE_SHIFT   9
 
#define SCSI_LOG_MLCOMPLETE_SHIFT   12
 
#define SCSI_LOG_LLQUEUE_SHIFT   15
 
#define SCSI_LOG_LLCOMPLETE_SHIFT   18
 
#define SCSI_LOG_HLQUEUE_SHIFT   21
 
#define SCSI_LOG_HLCOMPLETE_SHIFT   24
 
#define SCSI_LOG_IOCTL_SHIFT   27
 
#define SCSI_LOG_ERROR_BITS   3
 
#define SCSI_LOG_TIMEOUT_BITS   3
 
#define SCSI_LOG_SCAN_BITS   3
 
#define SCSI_LOG_MLQUEUE_BITS   3
 
#define SCSI_LOG_MLCOMPLETE_BITS   3
 
#define SCSI_LOG_LLQUEUE_BITS   3
 
#define SCSI_LOG_LLCOMPLETE_BITS   3
 
#define SCSI_LOG_HLQUEUE_BITS   3
 
#define SCSI_LOG_HLCOMPLETE_BITS   3
 
#define SCSI_LOG_IOCTL_BITS   3
 
#define SCSI_CHECK_LOGGING(SHIFT, BITS, LEVEL, CMD)
 
#define SCSI_LOG_ERROR_RECOVERY(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_ERROR_SHIFT, SCSI_LOG_ERROR_BITS, LEVEL,CMD);
 
#define SCSI_LOG_TIMEOUT(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_TIMEOUT_SHIFT, SCSI_LOG_TIMEOUT_BITS, LEVEL,CMD);
 
#define SCSI_LOG_SCAN_BUS(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_SCAN_SHIFT, SCSI_LOG_SCAN_BITS, LEVEL,CMD);
 
#define SCSI_LOG_MLQUEUE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_MLQUEUE_SHIFT, SCSI_LOG_MLQUEUE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_MLCOMPLETE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_MLCOMPLETE_SHIFT, SCSI_LOG_MLCOMPLETE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_LLQUEUE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_LLQUEUE_SHIFT, SCSI_LOG_LLQUEUE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_LLCOMPLETE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_LLCOMPLETE_SHIFT, SCSI_LOG_LLCOMPLETE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_HLQUEUE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_HLQUEUE_SHIFT, SCSI_LOG_HLQUEUE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_HLCOMPLETE(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_HLCOMPLETE_SHIFT, SCSI_LOG_HLCOMPLETE_BITS, LEVEL,CMD);
 
#define SCSI_LOG_IOCTL(LEVEL, CMD)   SCSI_CHECK_LOGGING(SCSI_LOG_IOCTL_SHIFT, SCSI_LOG_IOCTL_BITS, LEVEL,CMD);
 

Variables

unsigned int scsi_logging_level
 

Macro Definition Documentation

#define SCSI_CHECK_LOGGING (   SHIFT,
  BITS,
  LEVEL,
  CMD 
)

Definition at line 54 of file scsi_logging.h.

#define SCSI_LOG_ERROR_BITS   3

Definition at line 28 of file scsi_logging.h.

#define SCSI_LOG_ERROR_RECOVERY (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_ERROR_SHIFT, SCSI_LOG_ERROR_BITS, LEVEL,CMD);

Definition at line 62 of file scsi_logging.h.

#define SCSI_LOG_ERROR_SHIFT   0

Definition at line 17 of file scsi_logging.h.

#define SCSI_LOG_HLCOMPLETE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_HLCOMPLETE_SHIFT, SCSI_LOG_HLCOMPLETE_BITS, LEVEL,CMD);

Definition at line 78 of file scsi_logging.h.

#define SCSI_LOG_HLCOMPLETE_BITS   3

Definition at line 36 of file scsi_logging.h.

#define SCSI_LOG_HLCOMPLETE_SHIFT   24

Definition at line 25 of file scsi_logging.h.

#define SCSI_LOG_HLQUEUE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_HLQUEUE_SHIFT, SCSI_LOG_HLQUEUE_BITS, LEVEL,CMD);

Definition at line 76 of file scsi_logging.h.

#define SCSI_LOG_HLQUEUE_BITS   3

Definition at line 35 of file scsi_logging.h.

#define SCSI_LOG_HLQUEUE_SHIFT   21

Definition at line 24 of file scsi_logging.h.

#define SCSI_LOG_IOCTL (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_IOCTL_SHIFT, SCSI_LOG_IOCTL_BITS, LEVEL,CMD);

Definition at line 80 of file scsi_logging.h.

#define SCSI_LOG_IOCTL_BITS   3

Definition at line 37 of file scsi_logging.h.

#define SCSI_LOG_IOCTL_SHIFT   27

Definition at line 26 of file scsi_logging.h.

#define SCSI_LOG_LLCOMPLETE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_LLCOMPLETE_SHIFT, SCSI_LOG_LLCOMPLETE_BITS, LEVEL,CMD);

Definition at line 74 of file scsi_logging.h.

#define SCSI_LOG_LLCOMPLETE_BITS   3

Definition at line 34 of file scsi_logging.h.

#define SCSI_LOG_LLCOMPLETE_SHIFT   18

Definition at line 23 of file scsi_logging.h.

#define SCSI_LOG_LLQUEUE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_LLQUEUE_SHIFT, SCSI_LOG_LLQUEUE_BITS, LEVEL,CMD);

Definition at line 72 of file scsi_logging.h.

#define SCSI_LOG_LLQUEUE_BITS   3

Definition at line 33 of file scsi_logging.h.

#define SCSI_LOG_LLQUEUE_SHIFT   15

Definition at line 22 of file scsi_logging.h.

#define SCSI_LOG_MLCOMPLETE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_MLCOMPLETE_SHIFT, SCSI_LOG_MLCOMPLETE_BITS, LEVEL,CMD);

Definition at line 70 of file scsi_logging.h.

#define SCSI_LOG_MLCOMPLETE_BITS   3

Definition at line 32 of file scsi_logging.h.

#define SCSI_LOG_MLCOMPLETE_SHIFT   12

Definition at line 21 of file scsi_logging.h.

#define SCSI_LOG_MLQUEUE (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_MLQUEUE_SHIFT, SCSI_LOG_MLQUEUE_BITS, LEVEL,CMD);

Definition at line 68 of file scsi_logging.h.

#define SCSI_LOG_MLQUEUE_BITS   3

Definition at line 31 of file scsi_logging.h.

#define SCSI_LOG_MLQUEUE_SHIFT   9

Definition at line 20 of file scsi_logging.h.

#define SCSI_LOG_SCAN_BITS   3

Definition at line 30 of file scsi_logging.h.

#define SCSI_LOG_SCAN_BUS (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_SCAN_SHIFT, SCSI_LOG_SCAN_BITS, LEVEL,CMD);

Definition at line 66 of file scsi_logging.h.

#define SCSI_LOG_SCAN_SHIFT   6

Definition at line 19 of file scsi_logging.h.

#define SCSI_LOG_TIMEOUT (   LEVEL,
  CMD 
)    SCSI_CHECK_LOGGING(SCSI_LOG_TIMEOUT_SHIFT, SCSI_LOG_TIMEOUT_BITS, LEVEL,CMD);

Definition at line 64 of file scsi_logging.h.

#define SCSI_LOG_TIMEOUT_BITS   3

Definition at line 29 of file scsi_logging.h.

#define SCSI_LOG_TIMEOUT_SHIFT   3

Definition at line 18 of file scsi_logging.h.

Variable Documentation

unsigned int scsi_logging_level

Definition at line 90 of file scsi.c.