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()
875 enum scsi_disposition rtn; in scsi_try_host_reset() local
885 rtn = hostt->eh_host_reset_handler(scmd); in scsi_try_host_reset()
887 if (rtn == SUCCESS) { in scsi_try_host_reset()
895 return rtn; in scsi_try_host_reset()
905 enum scsi_disposition rtn; in scsi_try_bus_reset() local
915 rtn = hostt->eh_bus_reset_handler(scmd); in scsi_try_bus_reset()
917 if (rtn == SUCCESS) { in scsi_try_bus_reset()
925 return rtn; in scsi_try_bus_reset()
947 enum scsi_disposition rtn; in scsi_try_target_reset() local
954 rtn = hostt->eh_target_reset_handler(scmd); in scsi_try_target_reset()
955 if (rtn == SUCCESS) { in scsi_try_target_reset()
962 return rtn; in scsi_try_target_reset()
977 enum scsi_disposition rtn; in scsi_try_bus_device_reset() local
983 rtn = hostt->eh_device_reset_handler(scmd); in scsi_try_bus_device_reset()
984 if (rtn == SUCCESS) in scsi_try_bus_device_reset()
986 return rtn; in scsi_try_bus_device_reset()
1148 int rtn; in scsi_send_eh_cmnd() local
1175 rtn = shost->hostt->queuecommand(shost, scmd); in scsi_send_eh_cmnd()
1177 rtn = FAILED; in scsi_send_eh_cmnd()
1180 if (rtn) { in scsi_send_eh_cmnd()
1190 rtn = FAILED; in scsi_send_eh_cmnd()
1193 rtn = SUCCESS; in scsi_send_eh_cmnd()
1198 scsi_log_completion(scmd, rtn); in scsi_send_eh_cmnd()
1214 rtn = scsi_eh_completed_normally(scmd); in scsi_send_eh_cmnd()
1216 "%s: scsi_eh_completed_normally %x\n", __func__, rtn)); in scsi_send_eh_cmnd()
1218 switch (rtn) { in scsi_send_eh_cmnd()
1224 rtn = NEEDS_RETRY; in scsi_send_eh_cmnd()
1227 rtn = FAILED; in scsi_send_eh_cmnd()
1230 } else if (rtn != FAILED) { in scsi_send_eh_cmnd()
1232 rtn = FAILED; in scsi_send_eh_cmnd()
1237 return rtn; in scsi_send_eh_cmnd()
1255 scsi_eh_action(struct scsi_cmnd *scmd, enum scsi_disposition rtn) in scsi_eh_action() argument
1260 rtn = sdrv->eh_action(scmd, rtn); in scsi_eh_action()
1262 return rtn; in scsi_eh_action()
1308 enum scsi_disposition rtn; in scsi_eh_get_sense() local
1339 rtn = scsi_request_sense(scmd); in scsi_eh_get_sense()
1340 if (rtn != SUCCESS) in scsi_eh_get_sense()
1347 rtn = scsi_decide_disposition(scmd); in scsi_eh_get_sense()
1353 if (rtn == SUCCESS) in scsi_eh_get_sense()
1366 else if (rtn != NEEDS_RETRY) in scsi_eh_get_sense()
1387 enum scsi_disposition rtn; in scsi_eh_tur() local
1390 rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, in scsi_eh_tur()
1394 "%s return: %x\n", __func__, rtn)); in scsi_eh_tur()
1396 switch (rtn) { in scsi_eh_tur()
1476 enum scsi_disposition rtn = NEEDS_RETRY; in scsi_eh_try_stu() local
1478 for (i = 0; rtn == NEEDS_RETRY && i < 2; i++) in scsi_eh_try_stu()
1479 rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, in scsi_eh_try_stu()
1482 if (rtn == SUCCESS) in scsi_eh_try_stu()
1571 enum scsi_disposition rtn; in scsi_eh_bus_device_reset() local
1595 rtn = scsi_try_bus_device_reset(bdr_scmd); in scsi_eh_bus_device_reset()
1596 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_device_reset()
1598 rtn == FAST_IO_FAIL || in scsi_eh_bus_device_reset()
1603 scsi_eh_action(scmd, rtn) != FAILED) in scsi_eh_bus_device_reset()
1638 enum scsi_disposition rtn; in scsi_eh_target_reset() local
1659 rtn = scsi_try_target_reset(scmd); in scsi_eh_target_reset()
1660 if (rtn != SUCCESS && rtn != FAST_IO_FAIL) in scsi_eh_target_reset()
1670 if (rtn == SUCCESS) in scsi_eh_target_reset()
1672 else if (rtn == FAST_IO_FAIL) in scsi_eh_target_reset()
1696 enum scsi_disposition rtn; in scsi_eh_bus_reset() local
1733 rtn = scsi_try_bus_reset(chan_scmd); in scsi_eh_bus_reset()
1734 if (rtn == SUCCESS || rtn == FAST_IO_FAIL) { in scsi_eh_bus_reset()
1737 if (rtn == FAST_IO_FAIL) in scsi_eh_bus_reset()
1767 enum scsi_disposition rtn; in scsi_eh_host_reset() local
1778 rtn = scsi_try_host_reset(scmd); in scsi_eh_host_reset()
1779 if (rtn == SUCCESS) { in scsi_eh_host_reset()
1781 } else if (rtn == FAST_IO_FAIL) { in scsi_eh_host_reset()
1879 enum scsi_disposition rtn; in scsi_decide_disposition() local
2022 rtn = scsi_check_sense(scmd); in scsi_decide_disposition()
2023 if (rtn == NEEDS_RETRY) in scsi_decide_disposition()
2029 return rtn; in scsi_decide_disposition()
2444 enum scsi_disposition rtn; in scsi_ioctl_reset() local
2480 rtn = SUCCESS; in scsi_ioctl_reset()
2483 rtn = scsi_try_bus_device_reset(scmd); in scsi_ioctl_reset()
2484 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2488 rtn = scsi_try_target_reset(scmd); in scsi_ioctl_reset()
2489 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2493 rtn = scsi_try_bus_reset(scmd); in scsi_ioctl_reset()
2494 if (rtn == SUCCESS || (val & SG_SCSI_RESET_NO_ESCALATE)) in scsi_ioctl_reset()
2498 rtn = scsi_try_host_reset(scmd); in scsi_ioctl_reset()
2499 if (rtn == SUCCESS) in scsi_ioctl_reset()
2503 rtn = FAILED; in scsi_ioctl_reset()
2507 error = (rtn == SUCCESS) ? 0 : -EIO; in scsi_ioctl_reset()