Lines Matching refs:failures
187 void scsi_failures_reset_retries(struct scsi_failures *failures) in scsi_failures_reset_retries() argument
191 failures->total_retries = 0; in scsi_failures_reset_retries()
193 for (failure = failures->failure_definitions; failure->result; in scsi_failures_reset_retries()
207 struct scsi_failures *failures) in scsi_check_passthrough() argument
213 if (!failures) in scsi_check_passthrough()
216 for (failure = failures->failure_definitions; failure->result; in scsi_check_passthrough()
265 if (failures->total_allowed == SCMD_FAILURE_NO_LIMIT || in scsi_check_passthrough()
266 ++failures->total_retries <= failures->total_allowed) in scsi_check_passthrough()
327 if (scsi_check_passthrough(scmd, args->failures) == -EAGAIN) { in scsi_execute_cmd()
2271 struct scsi_failures failures = { in scsi_mode_sense() local
2277 .failures = &failures, in scsi_mode_sense()