Lines Matching refs:r2t
159 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
163 unsigned int left = r2t->data_length - r2t->sent; in iscsi_prep_data_out_pdu()
168 hdr->ttt = r2t->ttt; in iscsi_prep_data_out_pdu()
169 hdr->datasn = cpu_to_be32(r2t->datasn); in iscsi_prep_data_out_pdu()
170 r2t->datasn++; in iscsi_prep_data_out_pdu()
174 hdr->exp_statsn = r2t->exp_statsn; in iscsi_prep_data_out_pdu()
175 hdr->offset = cpu_to_be32(r2t->data_offset + r2t->sent); in iscsi_prep_data_out_pdu()
178 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu()
182 r2t->data_count = left; in iscsi_prep_data_out_pdu()
415 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_prep_scsi_cmd_pdu() local
433 memset(r2t, 0, sizeof(*r2t)); in iscsi_prep_scsi_cmd_pdu()
447 r2t->data_length = min(session->first_burst, out_len) - in iscsi_prep_scsi_cmd_pdu()
449 r2t->data_offset = task->imm_count; in iscsi_prep_scsi_cmd_pdu()
450 r2t->ttt = cpu_to_be32(ISCSI_RESERVED_TAG); in iscsi_prep_scsi_cmd_pdu()
451 r2t->exp_statsn = cpu_to_be32(conn->exp_statsn); in iscsi_prep_scsi_cmd_pdu()