Lines Matching defs:failure

189 	struct scsi_failure *failure;
193 for (failure = failures->failure_definitions; failure->result;
194 failure++)
195 failure->retries = 0;
209 struct scsi_failure *failure;
216 for (failure = failures->failure_definitions; failure->result;
217 failure++) {
218 if (failure->result == SCMD_FAILURE_RESULT_ANY)
222 host_byte(scmd->result) == host_byte(failure->result))
229 if (failure->result == SCMD_FAILURE_STAT_ANY &&
233 if (status != status_byte(failure->result))
236 if (status_byte(failure->result) != SAM_STAT_CHECK_CONDITION ||
237 failure->sense == SCMD_FAILURE_SENSE_ANY)
243 if (failure->sense != sshdr.sense_key)
246 if (failure->asc == SCMD_FAILURE_ASC_ANY)
249 if (failure->asc != sshdr.asc)
252 if (failure->ascq == SCMD_FAILURE_ASCQ_ANY ||
253 failure->ascq == sshdr.ascq)
260 if (failure->allowed) {
261 if (failure->allowed == SCMD_FAILURE_NO_LIMIT ||
262 ++failure->retries <= failure->allowed)
714 * scsi_rq_err_bytes - determine number of bytes till the next failure boundary
718 * A request could be merge of IOs which require different failure
922 * if logging is enabled the failure will be printed
1107 * * BLK_STS_RESOURCE - if the failure is retryable
1108 * * BLK_STS_IOERR - if the failure is fatal
2256 * Returns zero if successful, or a negative error number on failure
2851 * Returns zero if successful or a negative error code upon failure.
2919 * Returns zero if successful or a negative error code upon failure.
2972 * Returns zero if successful or a negative error code upon failure.
3054 * Returns zero if successful or a negative error code upon failure.
3256 * Returns the length of the identification or error on failure.
3382 * Returns the identifier or error on failure.