Lines Matching refs:status
67 * scsi_status_is_check_condition - check the status return.
69 * @status: the status passed up from the driver (including host and
72 * This returns true if the status code is SAM_STAT_CHECK_CONDITION.
74 static inline int scsi_status_is_check_condition(int status)
76 if (status < 0)
78 status &= 0xfe;
79 return status == SAM_STAT_CHECK_CONDITION;
116 * Use these to separate status msg and our bytes
120 * status byte = set from target device
122 * host_byte = set by low-level driver to indicate status.
192 /** scsi_status_is_good - check the status return.
194 * @status: the status passed up from the driver (including host and
200 static inline bool scsi_status_is_good(int status)
202 if (status < 0)
205 if (host_byte(status) == DID_NO_CONNECT)
213 status &= 0xfe;
214 return ((status == SAM_STAT_GOOD) ||
215 (status == SAM_STAT_CONDITION_MET) ||
217 (status == SAM_STAT_INTERMEDIATE) ||
218 (status == SAM_STAT_INTERMEDIATE_CONDITION_MET) ||
220 (status == SAM_STAT_COMMAND_TERMINATED));