• Home
  • Raw
  • Download

Lines Matching refs:rtn

171 	enum scsi_disposition rtn;  in scmd_eh_abort_handler()  local
182 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler()
183 if (rtn == SUCCESS) { in scmd_eh_abort_handler()
211 (rtn == FAST_IO_FAIL) ? in scmd_eh_abort_handler()
333 enum blk_eh_timer_return rtn = BLK_EH_DONE; in scsi_times_out() local
343 rtn = host->hostt->eh_timed_out(scmd); in scsi_times_out()
345 if (rtn == BLK_EH_DONE) { in scsi_times_out()
358 return rtn; in scsi_times_out()
827 enum scsi_disposition rtn; in scsi_try_host_reset() local
837 rtn = hostt->eh_host_reset_handler(scmd); in scsi_try_host_reset()
839 if (rtn == SUCCESS) { in scsi_try_host_reset()
847 return rtn; in scsi_try_host_reset()
857 enum scsi_disposition rtn; in scsi_try_bus_reset() local
867 rtn = hostt->eh_bus_reset_handler(scmd); in scsi_try_bus_reset()
869 if (rtn == SUCCESS) { in scsi_try_bus_reset()
877 return rtn; in scsi_try_bus_reset()
899 enum scsi_disposition rtn; in scsi_try_target_reset() local
906 rtn = hostt->eh_target_reset_handler(scmd); in scsi_try_target_reset()
907 if (rtn == SUCCESS) { in scsi_try_target_reset()
914 return rtn; in scsi_try_target_reset()
929 enum scsi_disposition rtn; in scsi_try_bus_device_reset() local
935 rtn = hostt->eh_device_reset_handler(scmd); in scsi_try_bus_device_reset()
936 if (rtn == SUCCESS) in scsi_try_bus_device_reset()
938 return rtn; in scsi_try_bus_device_reset()
1101 int rtn; in scsi_send_eh_cmnd() local
1128 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd()
1130 rtn = FAILED; in scsi_send_eh_cmnd()
1133 if (rtn) { in scsi_send_eh_cmnd()
1142 rtn = FAILED; in scsi_send_eh_cmnd()
1145 rtn = SUCCESS; in scsi_send_eh_cmnd()
1150 scsi_log_completion(scmd, rtn); in scsi_send_eh_cmnd()
1166 rtn = scsi_eh_completed_normally(scmd); in scsi_send_eh_cmnd()
1168 "%s: scsi_eh_completed_normally %x\n", __func__, rtn)); in scsi_send_eh_cmnd()
1170 switch (rtn) { in scsi_send_eh_cmnd()
1176 rtn = NEEDS_RETRY; in scsi_send_eh_cmnd()
1179 rtn = FAILED; in scsi_send_eh_cmnd()
1182 } else if (rtn != FAILED) { in scsi_send_eh_cmnd()
1184 rtn = FAILED; in scsi_send_eh_cmnd()
1189 return rtn; in scsi_send_eh_cmnd()
1207 scsi_eh_action(struct scsi_cmnd *scmd, enum scsi_disposition rtn) in scsi_eh_action() argument
1212 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()
1214 return rtn; in scsi_eh_action()
1260 enum scsi_disposition rtn; in scsi_eh_get_sense() local
1291 rtn = scsi_request_sense(scmd); in scsi_eh_get_sense()
1292 if (rtn != SUCCESS) in scsi_eh_get_sense()
1299 rtn = scsi_decide_disposition(scmd); in scsi_eh_get_sense()
1305 if (rtn == SUCCESS) in scsi_eh_get_sense()
1318 else if (rtn != NEEDS_RETRY) in scsi_eh_get_sense()
1339 enum scsi_disposition rtn; in scsi_eh_tur() local
1342 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, in scsi_eh_tur()
1346 "%s return: %x\n", __func__, rtn)); in scsi_eh_tur()
1348 switch (rtn) { in scsi_eh_tur()
1428 enum scsi_disposition rtn = NEEDS_RETRY; in scsi_eh_try_stu() local
1430 for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) in scsi_eh_try_stu()
1431 rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, scmd->device->request_queue->rq_timeout, 0); in scsi_eh_try_stu()
1433 if (rtn == SUCCESS) in scsi_eh_try_stu()
1522 enum scsi_disposition rtn; in scsi_eh_bus_device_reset() local
1546 rtn = scsi_try_bus_device_reset(bdr_scmd); in scsi_eh_bus_device_reset()
1547 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_device_reset()
1549 rtn == FAST_IO_FAIL || in scsi_eh_bus_device_reset()
1554 scsi_eh_action(scmd, rtn) != FAILED) in scsi_eh_bus_device_reset()
1589 enum scsi_disposition rtn; in scsi_eh_target_reset() local
1610 rtn = scsi_try_target_reset(scmd); in scsi_eh_target_reset()
1611 if (rtn != SUCCESS && rtn != FAST_IO_FAIL) in scsi_eh_target_reset()
1621 if (rtn == SUCCESS) in scsi_eh_target_reset()
1623 else if (rtn == FAST_IO_FAIL) in scsi_eh_target_reset()
1647 enum scsi_disposition rtn; in scsi_eh_bus_reset() local
1684 rtn = scsi_try_bus_reset(chan_scmd); in scsi_eh_bus_reset()
1685 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_reset()
1688 if (rtn == FAST_IO_FAIL) in scsi_eh_bus_reset()
1718 enum scsi_disposition rtn; in scsi_eh_host_reset() local
1729 rtn = scsi_try_host_reset(scmd); in scsi_eh_host_reset()
1730 if (rtn == SUCCESS) { in scsi_eh_host_reset()
1732 } else if (rtn == FAST_IO_FAIL) { in scsi_eh_host_reset()
1826 enum scsi_disposition rtn; in scsi_decide_disposition() local
1961 rtn = scsi_check_sense(scmd); in scsi_decide_disposition()
1962 if (rtn == NEEDS_RETRY) in scsi_decide_disposition()
1968 return rtn; in scsi_decide_disposition()
2383 enum scsi_disposition rtn; in scsi_ioctl_reset() local
2420 rtn = SUCCESS; in scsi_ioctl_reset()
2423 rtn = scsi_try_bus_device_reset(scmd); in scsi_ioctl_reset()
2424 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2428 rtn = scsi_try_target_reset(scmd); in scsi_ioctl_reset()
2429 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2433 rtn = scsi_try_bus_reset(scmd); in scsi_ioctl_reset()
2434 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2438 rtn = scsi_try_host_reset(scmd); in scsi_ioctl_reset()
2439 if (rtn == SUCCESS) in scsi_ioctl_reset()
2443 rtn = FAILED; in scsi_ioctl_reset()
2447 error = (rtn == SUCCESS) ? 0 : -EIO; in scsi_ioctl_reset()