• Home
  • Raw
  • Download

Lines Matching refs:r2t

457 	struct iscsi_r2t_info *r2t;  in iscsi_tcp_cleanup_task()  local
465 while (kfifo_out(&tcp_task->r2tqueue, (void*)&r2t, sizeof(void*))) { in iscsi_tcp_cleanup_task()
466 kfifo_in(&tcp_task->r2tpool.queue, (void*)&r2t, in iscsi_tcp_cleanup_task()
471 r2t = tcp_task->r2t; in iscsi_tcp_cleanup_task()
472 if (r2t != NULL) { in iscsi_tcp_cleanup_task()
473 kfifo_in(&tcp_task->r2tpool.queue, (void*)&r2t, in iscsi_tcp_cleanup_task()
475 tcp_task->r2t = NULL; in iscsi_tcp_cleanup_task()
535 struct iscsi_r2t_info *r2t; in iscsi_tcp_r2t_rsp() local
622 rc = kfifo_out(&tcp_task->r2tpool.queue, (void *)&r2t, sizeof(void *)); in iscsi_tcp_r2t_rsp()
632 r2t->exp_statsn = rhdr->statsn; in iscsi_tcp_r2t_rsp()
633 r2t->data_length = data_length; in iscsi_tcp_r2t_rsp()
634 r2t->data_offset = data_offset; in iscsi_tcp_r2t_rsp()
636 r2t->ttt = rhdr->ttt; /* no flip */ in iscsi_tcp_r2t_rsp()
637 r2t->datasn = 0; in iscsi_tcp_r2t_rsp()
638 r2t->sent = 0; in iscsi_tcp_r2t_rsp()
641 kfifo_in(&tcp_task->r2tqueue, (void*)&r2t, sizeof(void*)); in iscsi_tcp_r2t_rsp()
1028 struct iscsi_r2t_info *r2t = NULL; in iscsi_tcp_get_curr_r2t() local
1031 r2t = &task->unsol_r2t; in iscsi_tcp_get_curr_r2t()
1034 if (tcp_task->r2t) { in iscsi_tcp_get_curr_r2t()
1035 r2t = tcp_task->r2t; in iscsi_tcp_get_curr_r2t()
1037 if (r2t->data_length <= r2t->sent) { in iscsi_tcp_get_curr_r2t()
1039 " done with r2t %p\n", r2t); in iscsi_tcp_get_curr_r2t()
1041 (void *)&tcp_task->r2t, in iscsi_tcp_get_curr_r2t()
1043 tcp_task->r2t = r2t = NULL; in iscsi_tcp_get_curr_r2t()
1047 if (r2t == NULL) { in iscsi_tcp_get_curr_r2t()
1049 (void *)&tcp_task->r2t, sizeof(void *)) != in iscsi_tcp_get_curr_r2t()
1051 r2t = NULL; in iscsi_tcp_get_curr_r2t()
1053 r2t = tcp_task->r2t; in iscsi_tcp_get_curr_r2t()
1058 return r2t; in iscsi_tcp_get_curr_r2t()
1073 struct iscsi_r2t_info *r2t; in iscsi_tcp_task_xmit() local
1093 r2t = iscsi_tcp_get_curr_r2t(task); in iscsi_tcp_task_xmit()
1094 if (r2t == NULL) { in iscsi_tcp_task_xmit()
1103 iscsi_prep_data_out_pdu(task, r2t, (struct iscsi_data *) task->hdr); in iscsi_tcp_task_xmit()
1106 r2t, r2t->datasn - 1, task->hdr->itt, in iscsi_tcp_task_xmit()
1107 r2t->data_offset + r2t->sent, r2t->data_count); in iscsi_tcp_task_xmit()
1109 rc = conn->session->tt->init_pdu(task, r2t->data_offset + r2t->sent, in iscsi_tcp_task_xmit()
1110 r2t->data_count); in iscsi_tcp_task_xmit()
1116 r2t->sent += r2t->data_count; in iscsi_tcp_task_xmit()