Lines Matching refs:SCloop
1307 Scsi_Cmnd *SCloop; in scsi_unjam_host() local
1470 for (SCloop = SDpnt->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1471 if (SCloop->state != SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1474 rtn = scsi_try_to_abort_command(SCloop, ABORT_TIMEOUT); in scsi_unjam_host()
1476 rtn = scsi_test_unit_ready(SCloop); in scsi_unjam_host()
1478 if (rtn == SUCCESS && scsi_unit_is_ready(SCloop)) { in scsi_unjam_host()
1479 rtn = scsi_eh_retry_command(SCloop); in scsi_unjam_host()
1482 SCloop->host->host_failed--; in scsi_unjam_host()
1483 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1510 for (SCloop = SDpnt->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1511 if (SCloop->state == SCSI_STATE_FAILED in scsi_unjam_host()
1512 || SCloop->state == SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1517 if (SCloop == NULL) { in scsi_unjam_host()
1528 rtn = scsi_try_bus_device_reset(SCloop, RESET_TIMEOUT); in scsi_unjam_host()
1531 rtn = scsi_test_unit_ready(SCloop); in scsi_unjam_host()
1533 if (rtn == SUCCESS && scsi_unit_is_ready(SCloop)) { in scsi_unjam_host()
1534 rtn = scsi_eh_retry_command(SCloop); in scsi_unjam_host()
1537 SCloop->host->host_failed--; in scsi_unjam_host()
1538 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1574 for (SCloop = SDloop->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1575 if (SCloop->channel != SCpnt->channel) { in scsi_unjam_host()
1578 if (SCloop->state != SCSI_STATE_FAILED in scsi_unjam_host()
1579 && SCloop->state != SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1582 if (SDloop->soft_reset && SCloop->state == SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1611 for (SCloop = SDloop->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1612 if (SCloop->channel != SCpnt->channel) { in scsi_unjam_host()
1615 if (SCloop->state != SCSI_STATE_FAILED in scsi_unjam_host()
1616 && SCloop->state != SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1619 rtn = scsi_test_unit_ready(SCloop); in scsi_unjam_host()
1621 if (rtn == SUCCESS && scsi_unit_is_ready(SCloop)) { in scsi_unjam_host()
1622 rtn = scsi_eh_retry_command(SCloop); in scsi_unjam_host()
1626 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1639 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1712 for (SCloop = SDloop->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1713 if (SCloop->state != SCSI_STATE_FAILED in scsi_unjam_host()
1714 && SCloop->state != SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1717 rtn = scsi_test_unit_ready(SCloop); in scsi_unjam_host()
1719 if (rtn == SUCCESS && scsi_unit_is_ready(SCloop)) { in scsi_unjam_host()
1720 rtn = scsi_eh_retry_command(SCloop); in scsi_unjam_host()
1724 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1731 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()
1755 for (SCloop = SDpnt->device_queue; SCloop; SCloop = SCloop->next) { in scsi_unjam_host()
1756 if (SCloop->state == SCSI_STATE_FAILED || SCloop->state == SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1757 SDloop = SCloop->device; in scsi_unjam_host()
1767 SCloop->host->host_failed--; in scsi_unjam_host()
1769 if (SCloop->state == SCSI_STATE_TIMEOUT) { in scsi_unjam_host()
1770 SCloop->result |= (DRIVER_TIMEOUT << 24); in scsi_unjam_host()
1773 SDloop->id, SCloop->result)); in scsi_unjam_host()
1775 scsi_eh_finish_command(&SCdone, SCloop); in scsi_unjam_host()