Lines Matching refs:tmr_req
36 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_abort_task() local
56 tmr_req->ref_cmd = ref_cmd; in iscsit_tmr_abort_task()
57 tmr_req->exp_data_sn = be32_to_cpu(hdr->exp_datasn); in iscsit_tmr_abort_task()
67 struct iscsi_tmr_req *tmr_req, in iscsit_tmr_task_warm_reset() argument
87 struct iscsi_tmr_req *tmr_req, in iscsit_tmr_task_cold_reset() argument
112 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_task_reassign() local
165 tmr_req->ref_cmd = ref_cmd; in iscsit_tmr_task_reassign()
166 tmr_req->exp_data_sn = be32_to_cpu(hdr->exp_datasn); in iscsit_tmr_task_reassign()
167 tmr_req->conn_recovery = cr; in iscsit_tmr_task_reassign()
168 tmr_req->task_reassign = 1; in iscsit_tmr_task_reassign()
195 struct iscsi_tmr_req *tmr_req, in iscsit_task_reassign_complete_nop_out() argument
198 struct iscsi_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete_nop_out()
228 struct iscsi_tmr_req *tmr_req) in iscsit_task_reassign_complete_write() argument
238 if (!tmr_req->exp_data_sn) { in iscsit_task_reassign_complete_write()
243 cmd->acked_data_sn = (tmr_req->exp_data_sn - 1); in iscsit_task_reassign_complete_write()
300 struct iscsi_tmr_req *tmr_req) in iscsit_task_reassign_complete_read() argument
309 if (!tmr_req->exp_data_sn) { in iscsit_task_reassign_complete_read()
314 cmd->acked_data_sn = (tmr_req->exp_data_sn - 1); in iscsit_task_reassign_complete_read()
339 dr->data_sn = dr->begrun = tmr_req->exp_data_sn; in iscsit_task_reassign_complete_read()
353 struct iscsi_tmr_req *tmr_req) in iscsit_task_reassign_complete_none() argument
363 struct iscsi_tmr_req *tmr_req, in iscsit_task_reassign_complete_scsi_cmnd() argument
366 struct iscsi_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete_scsi_cmnd()
397 return iscsit_task_reassign_complete_write(cmd, tmr_req); in iscsit_task_reassign_complete_scsi_cmnd()
399 return iscsit_task_reassign_complete_read(cmd, tmr_req); in iscsit_task_reassign_complete_scsi_cmnd()
401 return iscsit_task_reassign_complete_none(cmd, tmr_req); in iscsit_task_reassign_complete_scsi_cmnd()
412 struct iscsi_tmr_req *tmr_req, in iscsit_task_reassign_complete() argument
418 if (!tmr_req->ref_cmd) { in iscsit_task_reassign_complete()
422 cmd = tmr_req->ref_cmd; in iscsit_task_reassign_complete()
428 ret = iscsit_task_reassign_complete_nop_out(tmr_req, conn); in iscsit_task_reassign_complete()
431 ret = iscsit_task_reassign_complete_scsi_cmnd(tmr_req, conn); in iscsit_task_reassign_complete()
456 struct iscsi_tmr_req *tmr_req = cmd->tmr_req; in iscsit_tmr_post_handler() local
459 if (tmr_req->task_reassign && in iscsit_tmr_post_handler()
461 return iscsit_task_reassign_complete(tmr_req, conn); in iscsit_tmr_post_handler()
471 struct iscsi_tmr_req *tmr_req, in iscsit_task_reassign_prepare_read() argument
546 struct iscsi_tmr_req *tmr_req, in iscsit_task_reassign_prepare_write() argument
549 struct iscsi_cmd *cmd = tmr_req->ref_cmd; in iscsit_task_reassign_prepare_write()
566 if (!tmr_req->exp_data_sn) in iscsit_task_reassign_prepare_write()
590 if (r2t->r2t_sn >= tmr_req->exp_data_sn) in iscsit_task_reassign_prepare_write()
718 cmd->r2t_sn = tmr_req->exp_data_sn; in iscsit_task_reassign_prepare_write()
726 if (r2t->r2t_sn < tmr_req->exp_data_sn) in iscsit_task_reassign_prepare_write()
734 tmr_req->exp_data_sn, r2t->r2t_sn, in iscsit_task_reassign_prepare_write()
779 struct iscsi_tmr_req *tmr_req, in iscsit_check_task_reassign_expdatasn() argument
782 struct iscsi_cmd *ref_cmd = tmr_req->ref_cmd; in iscsit_check_task_reassign_expdatasn()
801 if (tmr_req->exp_data_sn > ref_cmd->data_sn) { in iscsit_check_task_reassign_expdatasn()
804 " DataSN: 0x%08x.\n", tmr_req->exp_data_sn, in iscsit_check_task_reassign_expdatasn()
809 (tmr_req->exp_data_sn <= ref_cmd->acked_data_sn)) { in iscsit_check_task_reassign_expdatasn()
813 " protocol error\n", tmr_req->exp_data_sn, in iscsit_check_task_reassign_expdatasn()
817 return iscsit_task_reassign_prepare_read(tmr_req, conn); in iscsit_check_task_reassign_expdatasn()
827 if (tmr_req->exp_data_sn > ref_cmd->r2t_sn) { in iscsit_check_task_reassign_expdatasn()
830 " R2TSN: 0x%08x.\n", tmr_req->exp_data_sn, in iscsit_check_task_reassign_expdatasn()
834 return iscsit_task_reassign_prepare_write(tmr_req, conn); in iscsit_check_task_reassign_expdatasn()