Lines Matching +full:0 +full:x2002
27 #define SCSI_MAX_PROT_SG_SEGMENTS 0xFFFF
33 #define SCAN_WILD_CARD ~0
57 #define SCSI_W_LUN_BASE 0xc100
64 return (lun & 0xff00) == SCSI_W_LUN_BASE; in scsi_is_wlun()
77 if (status < 0) in scsi_status_is_check_condition()
79 status &= 0xfe; in scsi_status_is_check_condition()
86 #define EXTENDED_MODIFY_DATA_POINTER 0x00
87 #define EXTENDED_SDTR 0x01
88 #define EXTENDED_EXTENDED_IDENTIFY 0x02 /* SCSI-I only */
89 #define EXTENDED_WDTR 0x03
90 #define EXTENDED_PPR 0x04
91 #define EXTENDED_MODIFY_BIDI_DATA_PTR 0x05
97 NEEDS_RETRY = 0x2001,
98 SUCCESS = 0x2002,
99 FAILED = 0x2003,
100 QUEUED = 0x2004,
101 SOFT_ERROR = 0x2005,
102 ADD_TO_MLQUEUE = 0x2006,
103 TIMEOUT_ERROR = 0x2007,
104 SCSI_RETURN_NOT_HANDLED = 0x2008,
105 FAST_IO_FAIL = 0x2009,
111 #define SCSI_MLQUEUE_HOST_BUSY 0x1055
112 #define SCSI_MLQUEUE_DEVICE_BUSY 0x1056
113 #define SCSI_MLQUEUE_EH_RETRY 0x1057
114 #define SCSI_MLQUEUE_TARGET_BUSY 0x1058
125 #define status_byte(result) (result & 0xff)
126 #define host_byte(result) (((result) >> 16) & 0xff)
128 #define sense_class(sense) (((sense) >> 4) & 0x7)
129 #define sense_error(sense) ((sense) & 0xf)
130 #define sense_valid(sense) ((sense) & 0x80)
142 #define IDENTIFY_BASE 0x80
144 ((can_disconnect) ? 0x40 : 0) |\
145 ((lun) & 0x07))
154 #define SCSI_UNKNOWN 0
168 #define SCSI_INQ_PQ_CON 0x00
169 #define SCSI_INQ_PQ_NOT_CON 0x01
170 #define SCSI_INQ_PQ_NOT_CAP 0x03
176 * Note that include/linux/cdrom.h also defines IOCTL 0x5300 - 0x5395
180 #define SCSI_IOCTL_GET_IDLUN 0x5382
182 /* 0x5383 and 0x5384 were used for SCSI_IOCTL_TAGGED_{ENABLE,DISABLE} */
185 #define SCSI_IOCTL_PROBE_HOST 0x5385
188 #define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
191 #define SCSI_IOCTL_GET_PCI 0x5387
204 if (status < 0) in scsi_status_is_good()
215 status &= 0xfe; in scsi_status_is_good()