Lines Matching refs:CMD_STATE

134 	SNIC_BUG_ON(!((CMD_STATE(sc) == SNIC_IOREQ_COMPLETE) ||  in snic_release_req_buf()
135 (CMD_STATE(sc) == SNIC_IOREQ_ABTS_COMPLETE) || in snic_release_req_buf()
140 (CMD_STATE(sc) == SNIC_IOREQ_LR_COMPLETE))); in snic_release_req_buf()
145 rqi->dr_req, snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_release_req_buf()
252 CMD_STATE(sc) = SNIC_IOREQ_NOT_INITED; in snic_issue_scsi_req()
257 sc->cmnd[0], sg_cnt, CMD_STATE(sc)); in snic_issue_scsi_req()
276 CMD_STATE(sc) = SNIC_IOREQ_PENDING; in snic_issue_scsi_req()
293 CMD_STATE(sc) = SNIC_IOREQ_COMPLETE; in snic_issue_scsi_req()
381 int state = CMD_STATE(sc); in snic_proc_tmreq_pending_state()
487 int state = CMD_STATE(sc); in snic_tmreq_pending()
508 CMD_STATE(sc) = SNIC_IOREQ_COMPLETE; in snic_process_icmnd_cmpl_status()
643 snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_icmnd_cmpl_handler()
698 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_proc_dr_cmpl_locked()
700 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_proc_dr_cmpl_locked()
731 CMD_STATE(sc) = SNIC_IOREQ_LR_COMPLETE; in snic_proc_dr_cmpl_locked()
819 if (CMD_STATE(sc) != SNIC_IOREQ_ABTS_PENDING) { in snic_process_itmf_cmpl()
826 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_process_itmf_cmpl()
880 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_process_itmf_cmpl()
903 snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_process_itmf_cmpl()
1553 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_send_abort_and_wait()
1562 sv_state = CMD_STATE(sc); in snic_send_abort_and_wait()
1570 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_send_abort_and_wait()
1587 CMD_STATE(sc) = sv_state; in snic_send_abort_and_wait()
1710 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_is_abts_pending()
1712 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_is_abts_pending()
1752 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_dr_clean_single_req()
1768 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_dr_clean_single_req()
1771 sv_state = CMD_STATE(sc); in snic_dr_clean_single_req()
1781 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_dr_clean_single_req()
1814 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_dr_clean_single_req()
1815 CMD_STATE(sc) = sv_state; in snic_dr_clean_single_req()
1851 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_dr_clean_single_req()
2047 sv_state = CMD_STATE(sc); in snic_send_dr_and_wait()
2049 CMD_STATE(sc) = SNIC_IOREQ_LR_PENDING; in snic_send_dr_and_wait()
2073 CMD_STATE(sc) = sv_state; in snic_send_dr_and_wait()
2256 CMD_STATE(sc) = SNIC_IOREQ_PENDING; in snic_issue_hba_reset()
2412 sc, snic_io_status_to_str(CMD_STATE(sc)), CMD_FLAGS(sc)); in snic_cmpl_pending_tmreq()
2541 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_internal_abort_io()
2558 sc, snic_cmd_tag(sc), CMD_FLAGS(sc), CMD_STATE(sc)); in snic_internal_abort_io()
2563 sv_state = CMD_STATE(sc); in snic_internal_abort_io()
2564 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_internal_abort_io()
2587 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_internal_abort_io()
2588 CMD_STATE(sc) = sv_state; in snic_internal_abort_io()