Lines Matching refs:rtn

153 	enum scsi_disposition rtn;  in scmd_eh_abort_handler()  local
166 rtn = scsi_try_to_abort_cmd(shost->hostt, scmd); in scmd_eh_abort_handler()
167 if (rtn != SUCCESS) { in scmd_eh_abort_handler()
171 (rtn == FAST_IO_FAIL) ? in scmd_eh_abort_handler()
874 enum scsi_disposition rtn; in scsi_try_host_reset() local
884 rtn = hostt->eh_host_reset_handler(scmd); in scsi_try_host_reset()
886 if (rtn == SUCCESS) { in scsi_try_host_reset()
894 return rtn; in scsi_try_host_reset()
904 enum scsi_disposition rtn; in scsi_try_bus_reset() local
914 rtn = hostt->eh_bus_reset_handler(scmd); in scsi_try_bus_reset()
916 if (rtn == SUCCESS) { in scsi_try_bus_reset()
924 return rtn; in scsi_try_bus_reset()
946 enum scsi_disposition rtn; in scsi_try_target_reset() local
953 rtn = hostt->eh_target_reset_handler(scmd); in scsi_try_target_reset()
954 if (rtn == SUCCESS) { in scsi_try_target_reset()
961 return rtn; in scsi_try_target_reset()
976 enum scsi_disposition rtn; in scsi_try_bus_device_reset() local
982 rtn = hostt->eh_device_reset_handler(scmd); in scsi_try_bus_device_reset()
983 if (rtn == SUCCESS) in scsi_try_bus_device_reset()
985 return rtn; in scsi_try_bus_device_reset()
1147 int rtn; in scsi_send_eh_cmnd() local
1173 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd()
1175 rtn = FAILED; in scsi_send_eh_cmnd()
1178 if (rtn) { in scsi_send_eh_cmnd()
1188 rtn = FAILED; in scsi_send_eh_cmnd()
1191 rtn = SUCCESS; in scsi_send_eh_cmnd()
1196 scsi_log_completion(scmd, rtn); in scsi_send_eh_cmnd()
1212 rtn = scsi_eh_completed_normally(scmd); in scsi_send_eh_cmnd()
1214 "%s: scsi_eh_completed_normally %x\n", __func__, rtn)); in scsi_send_eh_cmnd()
1216 switch (rtn) { in scsi_send_eh_cmnd()
1222 rtn = NEEDS_RETRY; in scsi_send_eh_cmnd()
1225 rtn = FAILED; in scsi_send_eh_cmnd()
1228 } else if (rtn != FAILED) { in scsi_send_eh_cmnd()
1230 rtn = FAILED; in scsi_send_eh_cmnd()
1235 return rtn; in scsi_send_eh_cmnd()
1253 scsi_eh_action(struct scsi_cmnd *scmd, enum scsi_disposition rtn) in scsi_eh_action() argument
1258 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()
1260 return rtn; in scsi_eh_action()
1306 enum scsi_disposition rtn; in scsi_eh_get_sense() local
1337 rtn = scsi_request_sense(scmd); in scsi_eh_get_sense()
1338 if (rtn != SUCCESS) in scsi_eh_get_sense()
1345 rtn = scsi_decide_disposition(scmd); in scsi_eh_get_sense()
1351 if (rtn == SUCCESS) in scsi_eh_get_sense()
1364 else if (rtn != NEEDS_RETRY) in scsi_eh_get_sense()
1385 enum scsi_disposition rtn; in scsi_eh_tur() local
1388 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, in scsi_eh_tur()
1392 "%s return: %x\n", __func__, rtn)); in scsi_eh_tur()
1394 switch (rtn) { in scsi_eh_tur()
1474 enum scsi_disposition rtn = NEEDS_RETRY; in scsi_eh_try_stu() local
1476 for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) in scsi_eh_try_stu()
1477 rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, in scsi_eh_try_stu()
1480 if (rtn == SUCCESS) in scsi_eh_try_stu()
1569 enum scsi_disposition rtn; in scsi_eh_bus_device_reset() local
1593 rtn = scsi_try_bus_device_reset(bdr_scmd); in scsi_eh_bus_device_reset()
1594 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_device_reset()
1596 rtn == FAST_IO_FAIL || in scsi_eh_bus_device_reset()
1601 scsi_eh_action(scmd, rtn) != FAILED) in scsi_eh_bus_device_reset()
1636 enum scsi_disposition rtn; in scsi_eh_target_reset() local
1657 rtn = scsi_try_target_reset(scmd); in scsi_eh_target_reset()
1658 if (rtn != SUCCESS && rtn != FAST_IO_FAIL) in scsi_eh_target_reset()
1668 if (rtn == SUCCESS) in scsi_eh_target_reset()
1670 else if (rtn == FAST_IO_FAIL) in scsi_eh_target_reset()
1694 enum scsi_disposition rtn; in scsi_eh_bus_reset() local
1731 rtn = scsi_try_bus_reset(chan_scmd); in scsi_eh_bus_reset()
1732 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_reset()
1735 if (rtn == FAST_IO_FAIL) in scsi_eh_bus_reset()
1765 enum scsi_disposition rtn; in scsi_eh_host_reset() local
1776 rtn = scsi_try_host_reset(scmd); in scsi_eh_host_reset()
1777 if (rtn == SUCCESS) { in scsi_eh_host_reset()
1779 } else if (rtn == FAST_IO_FAIL) { in scsi_eh_host_reset()
1877 enum scsi_disposition rtn; in scsi_decide_disposition() local
2020 rtn = scsi_check_sense(scmd); in scsi_decide_disposition()
2021 if (rtn == NEEDS_RETRY) in scsi_decide_disposition()
2027 return rtn; in scsi_decide_disposition()
2439 enum scsi_disposition rtn; in scsi_ioctl_reset() local
2474 rtn = SUCCESS; in scsi_ioctl_reset()
2477 rtn = scsi_try_bus_device_reset(scmd); in scsi_ioctl_reset()
2478 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2482 rtn = scsi_try_target_reset(scmd); in scsi_ioctl_reset()
2483 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2487 rtn = scsi_try_bus_reset(scmd); in scsi_ioctl_reset()
2488 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2492 rtn = scsi_try_host_reset(scmd); in scsi_ioctl_reset()
2493 if (rtn == SUCCESS) in scsi_ioctl_reset()
2497 rtn = FAILED; in scsi_ioctl_reset()
2501 error = (rtn == SUCCESS) ? 0 : -EIO; in scsi_ioctl_reset()