Home
last modified time | relevance | path

Searched refs:r2t (Results 1 – 11 of 11) sorted by relevance

/drivers/scsi/
Dlibiscsi_tcp.c457 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()
[all …]
Dlibiscsi.c146 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
150 unsigned int left = r2t->data_length - r2t->sent; in iscsi_prep_data_out_pdu()
155 hdr->ttt = r2t->ttt; in iscsi_prep_data_out_pdu()
156 hdr->datasn = cpu_to_be32(r2t->datasn); in iscsi_prep_data_out_pdu()
157 r2t->datasn++; in iscsi_prep_data_out_pdu()
161 hdr->exp_statsn = r2t->exp_statsn; in iscsi_prep_data_out_pdu()
162 hdr->offset = cpu_to_be32(r2t->data_offset + r2t->sent); in iscsi_prep_data_out_pdu()
165 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu()
169 r2t->data_count = left; in iscsi_prep_data_out_pdu()
369 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_prep_scsi_cmd_pdu() local
[all …]
/drivers/target/iscsi/
Discsi_target_tmr.c551 struct iscsi_r2t *r2t = NULL, *r2t_tmp; in iscsit_task_reassign_prepare_write() local
588 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_task_reassign_prepare_write()
590 if (r2t->r2t_sn >= tmr_req->exp_data_sn) in iscsit_task_reassign_prepare_write()
596 if (r2t->seq_complete) in iscsit_task_reassign_prepare_write()
599 if (r2t->recovery_r2t) in iscsit_task_reassign_prepare_write()
637 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
643 cmd->r2t_offset -= (r2t->xfer_len - in iscsit_task_reassign_prepare_write()
650 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
658 if ((pdu->offset >= r2t->offset) && in iscsit_task_reassign_prepare_write()
659 (pdu->offset < (r2t->offset + in iscsit_task_reassign_prepare_write()
[all …]
Discsi_target_util.c41 struct iscsi_r2t *r2t; in iscsit_add_r2t_to_list() local
47 r2t = kmem_cache_zalloc(lio_r2t_cache, GFP_ATOMIC); in iscsit_add_r2t_to_list()
48 if (!r2t) { in iscsit_add_r2t_to_list()
52 INIT_LIST_HEAD(&r2t->r2t_list); in iscsit_add_r2t_to_list()
54 r2t->recovery_r2t = recovery; in iscsit_add_r2t_to_list()
55 r2t->r2t_sn = (!r2t_sn) ? cmd->r2t_sn++ : r2t_sn; in iscsit_add_r2t_to_list()
56 r2t->offset = offset; in iscsit_add_r2t_to_list()
57 r2t->xfer_len = xfer_len; in iscsit_add_r2t_to_list()
58 list_add_tail(&r2t->r2t_list, &cmd->cmd_r2t_list); in iscsit_add_r2t_to_list()
72 struct iscsi_r2t *r2t; in iscsit_get_r2t_for_eos() local
[all …]
Discsi_target_erl1.c91 struct iscsi_r2t *r2t) in iscsit_send_recovery_r2t_for_snack() argument
99 if (!r2t->sent_r2t) { in iscsit_send_recovery_r2t_for_snack()
103 r2t->sent_r2t = 0; in iscsit_send_recovery_r2t_for_snack()
118 struct iscsi_r2t *r2t; in iscsit_handle_r2t_snack() local
149 r2t = iscsit_get_holder_for_r2tsn(cmd, begrun); in iscsit_handle_r2t_snack()
150 if (!r2t) in iscsit_handle_r2t_snack()
152 if (iscsit_send_recovery_r2t_for_snack(cmd, r2t) < 0) in iscsit_handle_r2t_snack()
1057 struct iscsi_r2t *r2t; in iscsit_set_dataout_timeout_values() local
1075 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_set_dataout_timeout_values()
1076 if (r2t->sent_r2t && !r2t->recovery_r2t && !r2t->seq_complete) { in iscsit_set_dataout_timeout_values()
[all …]
Discsi_target_erl0.c482 struct iscsi_r2t *r2t; in iscsit_dataout_update_r2t() local
487 r2t = iscsit_get_r2t_for_eos(cmd, offset, length); in iscsit_dataout_update_r2t()
488 if (!r2t) in iscsit_dataout_update_r2t()
492 r2t->seq_complete = 1; in iscsit_dataout_update_r2t()
Discsi_target.c3115 struct iscsi_r2t *r2t; in iscsit_send_r2t() local
3119 r2t = iscsit_get_r2t_from_list(cmd); in iscsit_send_r2t()
3120 if (!r2t) in iscsit_send_r2t()
3131 conn->conn_transport->iscsit_get_r2t_ttt(conn, cmd, r2t); in iscsit_send_r2t()
3133 r2t->targ_xfer_tag = session_get_next_ttt(conn->sess); in iscsit_send_r2t()
3134 hdr->ttt = cpu_to_be32(r2t->targ_xfer_tag); in iscsit_send_r2t()
3138 hdr->r2tsn = cpu_to_be32(r2t->r2t_sn); in iscsit_send_r2t()
3139 hdr->data_offset = cpu_to_be32(r2t->offset); in iscsit_send_r2t()
3140 hdr->data_length = cpu_to_be32(r2t->xfer_len); in iscsit_send_r2t()
3144 (!r2t->recovery_r2t) ? "" : "Recovery ", cmd->init_task_tag, in iscsit_send_r2t()
[all …]
/drivers/infiniband/ulp/iser/
Discsi_iser.c288 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_iser_task_xmit_unsol_data() local
294 iscsi_prep_data_out_pdu(task, r2t, &hdr); in iscsi_iser_task_xmit_unsol_data()
296 hdr.itt, r2t->data_count); in iscsi_iser_task_xmit_unsol_data()
302 r2t->datasn--; in iscsi_iser_task_xmit_unsol_data()
305 r2t->sent += r2t->data_count; in iscsi_iser_task_xmit_unsol_data()
307 r2t->data_length - r2t->sent); in iscsi_iser_task_xmit_unsol_data()
/drivers/target/iscsi/cxgbit/
Dcxgbit_ddp.c231 struct iscsi_r2t *r2t) in cxgbit_get_r2t_ttt() argument
260 r2t->targ_xfer_tag = ttinfo->tag; in cxgbit_get_r2t_ttt()
/drivers/scsi/cxgbi/
Dlibcxgbi.c2065 struct iscsi_r2t_info *r2t; in cxgbi_prep_iso_info() local
2092 r2t = &task->unsol_r2t; in cxgbi_prep_iso_info()
2094 r2t = tcp_task->r2t; in cxgbi_prep_iso_info()
2096 if (r2t) { in cxgbi_prep_iso_info()
2101 r2t->data_length, r2t->sent); in cxgbi_prep_iso_info()
2103 r2t_dlength = r2t->data_length - r2t->sent; in cxgbi_prep_iso_info()
2104 segment_offset = r2t->sent; in cxgbi_prep_iso_info()
2105 r2t->datasn += num_pdu - 1; in cxgbi_prep_iso_info()
2108 if (!r2t || !r2t->sent) in cxgbi_prep_iso_info()
/drivers/scsi/qedi/
Dqedi_fw_api.c509 cxt->ystorm_st_context.pdu_hdr.r2t.desired_data_trns_len = val; in init_rw_iscsi_task()