Lines Matching refs:CMD_STATE

120 	SNIC_BUG_ON(!((CMD_STATE(sc) == SNIC_IOREQ_COMPLETE) ||  in snic_release_req_buf()
121 (CMD_STATE(sc) == SNIC_IOREQ_ABTS_COMPLETE) || in snic_release_req_buf()
126 (CMD_STATE(sc) == SNIC_IOREQ_LR_COMPLETE))); in snic_release_req_buf()
131 rqi->dr_req, snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_release_req_buf()
238 CMD_STATE(sc) = SNIC_IOREQ_NOT_INITED; in snic_issue_scsi_req()
243 sc->cmnd[0], sg_cnt, CMD_STATE(sc)); in snic_issue_scsi_req()
262 CMD_STATE(sc) = SNIC_IOREQ_PENDING; in snic_issue_scsi_req()
279 CMD_STATE(sc) = SNIC_IOREQ_COMPLETE; in snic_issue_scsi_req()
367 int state = CMD_STATE(sc); in snic_proc_tmreq_pending_state()
473 int state = CMD_STATE(sc); in snic_tmreq_pending()
494 CMD_STATE(sc) = SNIC_IOREQ_COMPLETE; in snic_process_icmnd_cmpl_status()
629 snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_icmnd_cmpl_handler()
683 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_proc_dr_cmpl_locked()
685 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_proc_dr_cmpl_locked()
716 CMD_STATE(sc) = SNIC_IOREQ_LR_COMPLETE; in snic_proc_dr_cmpl_locked()
804 if (CMD_STATE(sc) != SNIC_IOREQ_ABTS_PENDING) { in snic_process_itmf_cmpl()
811 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_process_itmf_cmpl()
863 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_process_itmf_cmpl()
886 snic_ioreq_state_to_str(CMD_STATE(sc)), in snic_process_itmf_cmpl()
1536 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_send_abort_and_wait()
1545 sv_state = CMD_STATE(sc); in snic_send_abort_and_wait()
1553 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_send_abort_and_wait()
1570 CMD_STATE(sc) = sv_state; in snic_send_abort_and_wait()
1693 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_is_abts_pending()
1695 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) { in snic_is_abts_pending()
1735 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_dr_clean_single_req()
1751 snic_ioreq_state_to_str(CMD_STATE(sc))); in snic_dr_clean_single_req()
1754 sv_state = CMD_STATE(sc); in snic_dr_clean_single_req()
1764 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_dr_clean_single_req()
1797 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_dr_clean_single_req()
1798 CMD_STATE(sc) = sv_state; in snic_dr_clean_single_req()
1834 CMD_STATE(sc) = SNIC_IOREQ_ABTS_COMPLETE; in snic_dr_clean_single_req()
2030 sv_state = CMD_STATE(sc); in snic_send_dr_and_wait()
2032 CMD_STATE(sc) = SNIC_IOREQ_LR_PENDING; in snic_send_dr_and_wait()
2056 CMD_STATE(sc) = sv_state; in snic_send_dr_and_wait()
2239 CMD_STATE(sc) = SNIC_IOREQ_PENDING; in snic_issue_hba_reset()
2395 sc, snic_io_status_to_str(CMD_STATE(sc)), CMD_FLAGS(sc)); in snic_cmpl_pending_tmreq()
2522 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_internal_abort_io()
2539 sc, snic_cmd_tag(sc), CMD_FLAGS(sc), CMD_STATE(sc)); in snic_internal_abort_io()
2544 sv_state = CMD_STATE(sc); in snic_internal_abort_io()
2545 CMD_STATE(sc) = SNIC_IOREQ_ABTS_PENDING; in snic_internal_abort_io()
2568 if (CMD_STATE(sc) == SNIC_IOREQ_ABTS_PENDING) in snic_internal_abort_io()
2569 CMD_STATE(sc) = sv_state; in snic_internal_abort_io()