Lines Matching refs:ref_cmd
34 struct iscsit_cmd *ref_cmd; in iscsit_tmr_abort_task() local
40 ref_cmd = iscsit_find_cmd_from_itt(conn, hdr->rtt); in iscsit_tmr_abort_task()
41 if (!ref_cmd) { in iscsit_tmr_abort_task()
48 if (ref_cmd->cmd_sn != be32_to_cpu(hdr->refcmdsn)) { in iscsit_tmr_abort_task()
51 hdr->refcmdsn, ref_cmd->cmd_sn); in iscsit_tmr_abort_task()
56 tmr_req->ref_cmd = ref_cmd; in iscsit_tmr_abort_task()
109 struct iscsit_cmd *ref_cmd = NULL; in iscsit_tmr_task_reassign() local
127 ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt); in iscsit_tmr_task_reassign()
130 " %hu\n", ref_cmd->init_task_tag, cr->cid); in iscsit_tmr_task_reassign()
157 if (ref_lun != ref_cmd->se_cmd.orig_fe_lun) { in iscsit_tmr_task_reassign()
160 ref_lun, ref_cmd->se_cmd.orig_fe_lun); in iscsit_tmr_task_reassign()
165 tmr_req->ref_cmd = ref_cmd; in iscsit_tmr_task_reassign()
198 struct iscsit_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete_nop_out()
366 struct iscsit_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete_scsi_cmnd()
418 if (!tmr_req->ref_cmd) { in iscsit_task_reassign_complete()
422 cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete()
549 struct iscsit_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_prepare_write()
782 struct iscsit_cmd *ref_cmd = tmr_req->ref_cmd; in iscsit_check_task_reassign_expdatasn() local
784 if (ref_cmd->iscsi_opcode != ISCSI_OP_SCSI_CMD) in iscsit_check_task_reassign_expdatasn()
787 if (ref_cmd->se_cmd.se_cmd_flags & SCF_SENT_CHECK_CONDITION) in iscsit_check_task_reassign_expdatasn()
790 if (ref_cmd->data_direction == DMA_NONE) in iscsit_check_task_reassign_expdatasn()
800 if (ref_cmd->data_direction == DMA_FROM_DEVICE) { in iscsit_check_task_reassign_expdatasn()
801 if (tmr_req->exp_data_sn > ref_cmd->data_sn) { in iscsit_check_task_reassign_expdatasn()
805 ref_cmd->data_sn); in iscsit_check_task_reassign_expdatasn()
808 if ((ref_cmd->cmd_flags & ICF_GOT_DATACK_SNACK) && in iscsit_check_task_reassign_expdatasn()
809 (tmr_req->exp_data_sn <= ref_cmd->acked_data_sn)) { in iscsit_check_task_reassign_expdatasn()
814 ref_cmd->acked_data_sn); in iscsit_check_task_reassign_expdatasn()
826 if (ref_cmd->data_direction == DMA_TO_DEVICE) { in iscsit_check_task_reassign_expdatasn()
827 if (tmr_req->exp_data_sn > ref_cmd->r2t_sn) { in iscsit_check_task_reassign_expdatasn()
831 ref_cmd->r2t_sn); in iscsit_check_task_reassign_expdatasn()
838 ref_cmd->data_direction); in iscsit_check_task_reassign_expdatasn()