Lines Matching refs:failure
193 struct scsi_failure *failure; in scsi_failures_reset_retries() local
197 for (failure = failures->failure_definitions; failure->result; in scsi_failures_reset_retries()
198 failure++) in scsi_failures_reset_retries()
199 failure->retries = 0; in scsi_failures_reset_retries()
213 struct scsi_failure *failure; in scsi_check_passthrough() local
223 for (failure = failures->failure_definitions; failure->result; in scsi_check_passthrough()
224 failure++) { in scsi_check_passthrough()
225 if (failure->result == SCMD_FAILURE_RESULT_ANY) in scsi_check_passthrough()
229 host_byte(scmd->result) == host_byte(failure->result)) in scsi_check_passthrough()
236 if (failure->result == SCMD_FAILURE_STAT_ANY && in scsi_check_passthrough()
240 if (status != status_byte(failure->result)) in scsi_check_passthrough()
243 if (status_byte(failure->result) != SAM_STAT_CHECK_CONDITION || in scsi_check_passthrough()
244 failure->sense == SCMD_FAILURE_SENSE_ANY) in scsi_check_passthrough()
250 if (failure->sense != sshdr.sense_key) in scsi_check_passthrough()
253 if (failure->asc == SCMD_FAILURE_ASC_ANY) in scsi_check_passthrough()
256 if (failure->asc != sshdr.asc) in scsi_check_passthrough()
259 if (failure->ascq == SCMD_FAILURE_ASCQ_ANY || in scsi_check_passthrough()
260 failure->ascq == sshdr.ascq) in scsi_check_passthrough()
267 if (failure->allowed) { in scsi_check_passthrough()
268 if (failure->allowed == SCMD_FAILURE_NO_LIMIT || in scsi_check_passthrough()
269 ++failure->retries <= failure->allowed) in scsi_check_passthrough()