Searched refs:r2t (Results 1 – 8 of 8) sorted by relevance
/drivers/scsi/ |
D | libiscsi_tcp.c | 454 struct iscsi_r2t_info *r2t; in iscsi_tcp_cleanup_task() local 461 while (kfifo_out(&tcp_task->r2tqueue, (void*)&r2t, sizeof(void*))) { in iscsi_tcp_cleanup_task() 462 kfifo_in(&tcp_task->r2tpool.queue, (void*)&r2t, in iscsi_tcp_cleanup_task() 467 r2t = tcp_task->r2t; in iscsi_tcp_cleanup_task() 468 if (r2t != NULL) { in iscsi_tcp_cleanup_task() 469 kfifo_in(&tcp_task->r2tpool.queue, (void*)&r2t, in iscsi_tcp_cleanup_task() 471 tcp_task->r2t = NULL; in iscsi_tcp_cleanup_task() 530 struct iscsi_r2t_info *r2t; in iscsi_tcp_r2t_rsp() local 557 rc = kfifo_out(&tcp_task->r2tpool.queue, (void*)&r2t, sizeof(void*)); in iscsi_tcp_r2t_rsp() 565 r2t->exp_statsn = rhdr->statsn; in iscsi_tcp_r2t_rsp() [all …]
|
D | libiscsi.c | 144 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument 148 unsigned int left = r2t->data_length - r2t->sent; in iscsi_prep_data_out_pdu() 153 hdr->ttt = r2t->ttt; in iscsi_prep_data_out_pdu() 154 hdr->datasn = cpu_to_be32(r2t->datasn); in iscsi_prep_data_out_pdu() 155 r2t->datasn++; in iscsi_prep_data_out_pdu() 159 hdr->exp_statsn = r2t->exp_statsn; in iscsi_prep_data_out_pdu() 160 hdr->offset = cpu_to_be32(r2t->data_offset + r2t->sent); in iscsi_prep_data_out_pdu() 163 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu() 167 r2t->data_count = left; in iscsi_prep_data_out_pdu() 400 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_prep_scsi_cmd_pdu() local [all …]
|
/drivers/target/iscsi/ |
D | iscsi_target_tmr.c | 557 struct iscsi_r2t *r2t = NULL, *r2t_tmp; in iscsit_task_reassign_prepare_write() local 594 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_task_reassign_prepare_write() 596 if (r2t->r2t_sn >= tmr_req->exp_data_sn) in iscsit_task_reassign_prepare_write() 602 if (r2t->seq_complete) in iscsit_task_reassign_prepare_write() 605 if (r2t->recovery_r2t) in iscsit_task_reassign_prepare_write() 643 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write() 649 cmd->r2t_offset -= (r2t->xfer_len - in iscsit_task_reassign_prepare_write() 656 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write() 664 if ((pdu->offset >= r2t->offset) && in iscsit_task_reassign_prepare_write() 665 (pdu->offset < (r2t->offset + in iscsit_task_reassign_prepare_write() [all …]
|
D | iscsi_target_util.c | 70 struct iscsi_r2t *r2t; in iscsit_add_r2t_to_list() local 72 r2t = kmem_cache_zalloc(lio_r2t_cache, GFP_ATOMIC); in iscsit_add_r2t_to_list() 73 if (!r2t) { in iscsit_add_r2t_to_list() 77 INIT_LIST_HEAD(&r2t->r2t_list); in iscsit_add_r2t_to_list() 79 r2t->recovery_r2t = recovery; in iscsit_add_r2t_to_list() 80 r2t->r2t_sn = (!r2t_sn) ? cmd->r2t_sn++ : r2t_sn; in iscsit_add_r2t_to_list() 81 r2t->offset = offset; in iscsit_add_r2t_to_list() 82 r2t->xfer_len = xfer_len; in iscsit_add_r2t_to_list() 83 list_add_tail(&r2t->r2t_list, &cmd->cmd_r2t_list); in iscsit_add_r2t_to_list() 97 struct iscsi_r2t *r2t; in iscsit_get_r2t_for_eos() local [all …]
|
D | iscsi_target_erl1.c | 120 struct iscsi_r2t *r2t) in iscsit_send_recovery_r2t_for_snack() argument 128 if (!r2t->sent_r2t) { in iscsit_send_recovery_r2t_for_snack() 132 r2t->sent_r2t = 0; in iscsit_send_recovery_r2t_for_snack() 147 struct iscsi_r2t *r2t; in iscsit_handle_r2t_snack() local 180 r2t = iscsit_get_holder_for_r2tsn(cmd, begrun); in iscsit_handle_r2t_snack() 181 if (!r2t) in iscsit_handle_r2t_snack() 183 if (iscsit_send_recovery_r2t_for_snack(cmd, r2t) < 0) in iscsit_handle_r2t_snack() 1120 struct iscsi_r2t *r2t; in iscsit_set_dataout_timeout_values() local 1138 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_set_dataout_timeout_values() 1139 if (r2t->sent_r2t && !r2t->recovery_r2t && !r2t->seq_complete) { in iscsit_set_dataout_timeout_values() [all …]
|
D | iscsi_target_erl0.c | 493 struct iscsi_r2t *r2t; in iscsit_dataout_update_r2t() local 498 r2t = iscsit_get_r2t_for_eos(cmd, offset, length); in iscsit_dataout_update_r2t() 499 if (!r2t) in iscsit_dataout_update_r2t() 503 r2t->seq_complete = 1; in iscsit_dataout_update_r2t()
|
D | iscsi_target.c | 2834 struct iscsi_r2t *r2t; in iscsit_send_r2t() local 2837 r2t = iscsit_get_r2t_from_list(cmd); in iscsit_send_r2t() 2838 if (!r2t) in iscsit_send_r2t() 2849 r2t->targ_xfer_tag = conn->sess->targ_xfer_tag++; in iscsit_send_r2t() 2850 if (r2t->targ_xfer_tag == 0xFFFFFFFF) in iscsit_send_r2t() 2851 r2t->targ_xfer_tag = conn->sess->targ_xfer_tag++; in iscsit_send_r2t() 2853 hdr->ttt = cpu_to_be32(r2t->targ_xfer_tag); in iscsit_send_r2t() 2857 hdr->r2tsn = cpu_to_be32(r2t->r2t_sn); in iscsit_send_r2t() 2858 hdr->data_offset = cpu_to_be32(r2t->offset); in iscsit_send_r2t() 2859 hdr->data_length = cpu_to_be32(r2t->xfer_len); in iscsit_send_r2t() [all …]
|
/drivers/infiniband/ulp/iser/ |
D | iscsi_iser.c | 214 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_iser_task_xmit_unsol_data() local 220 iscsi_prep_data_out_pdu(task, r2t, &hdr); in iscsi_iser_task_xmit_unsol_data() 222 hdr.itt, r2t->data_count); in iscsi_iser_task_xmit_unsol_data() 228 r2t->datasn--; in iscsi_iser_task_xmit_unsol_data() 231 r2t->sent += r2t->data_count; in iscsi_iser_task_xmit_unsol_data() 233 r2t->data_length - r2t->sent); in iscsi_iser_task_xmit_unsol_data()
|