Home
last modified time | relevance | path

Searched refs:r2t (Results 1 – 10 of 10) 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
586 rc = kfifo_out(&tcp_task->r2tpool.queue, (void *)&r2t, sizeof(void *)); in iscsi_tcp_r2t_rsp()
595 r2t->exp_statsn = rhdr->statsn; in iscsi_tcp_r2t_rsp()
[all …]
Dlibiscsi.c134 void iscsi_prep_data_out_pdu(struct iscsi_task *task, struct iscsi_r2t_info *r2t, in iscsi_prep_data_out_pdu() argument
138 unsigned int left = r2t->data_length - r2t->sent; in iscsi_prep_data_out_pdu()
143 hdr->ttt = r2t->ttt; in iscsi_prep_data_out_pdu()
144 hdr->datasn = cpu_to_be32(r2t->datasn); in iscsi_prep_data_out_pdu()
145 r2t->datasn++; in iscsi_prep_data_out_pdu()
149 hdr->exp_statsn = r2t->exp_statsn; in iscsi_prep_data_out_pdu()
150 hdr->offset = cpu_to_be32(r2t->data_offset + r2t->sent); in iscsi_prep_data_out_pdu()
153 r2t->data_count = conn->max_xmit_dlength; in iscsi_prep_data_out_pdu()
157 r2t->data_count = left; in iscsi_prep_data_out_pdu()
362 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.c58 struct iscsi_r2t *r2t; in iscsit_add_r2t_to_list() local
64 r2t = kmem_cache_zalloc(lio_r2t_cache, GFP_ATOMIC); in iscsit_add_r2t_to_list()
65 if (!r2t) { in iscsit_add_r2t_to_list()
69 INIT_LIST_HEAD(&r2t->r2t_list); in iscsit_add_r2t_to_list()
71 r2t->recovery_r2t = recovery; in iscsit_add_r2t_to_list()
72 r2t->r2t_sn = (!r2t_sn) ? cmd->r2t_sn++ : r2t_sn; in iscsit_add_r2t_to_list()
73 r2t->offset = offset; in iscsit_add_r2t_to_list()
74 r2t->xfer_len = xfer_len; in iscsit_add_r2t_to_list()
75 list_add_tail(&r2t->r2t_list, &cmd->cmd_r2t_list); in iscsit_add_r2t_to_list()
89 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()
1059 struct iscsi_r2t *r2t; in iscsit_set_dataout_timeout_values() local
1077 list_for_each_entry(r2t, &cmd->cmd_r2t_list, r2t_list) { in iscsit_set_dataout_timeout_values()
1078 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.c3065 struct iscsi_r2t *r2t; in iscsit_send_r2t() local
3069 r2t = iscsit_get_r2t_from_list(cmd); in iscsit_send_r2t()
3070 if (!r2t) in iscsit_send_r2t()
3081 conn->conn_transport->iscsit_get_r2t_ttt(conn, cmd, r2t); in iscsit_send_r2t()
3083 r2t->targ_xfer_tag = session_get_next_ttt(conn->sess); in iscsit_send_r2t()
3084 hdr->ttt = cpu_to_be32(r2t->targ_xfer_tag); in iscsit_send_r2t()
3088 hdr->r2tsn = cpu_to_be32(r2t->r2t_sn); in iscsit_send_r2t()
3089 hdr->data_offset = cpu_to_be32(r2t->offset); in iscsit_send_r2t()
3090 hdr->data_length = cpu_to_be32(r2t->xfer_len); in iscsit_send_r2t()
3094 (!r2t->recovery_r2t) ? "" : "Recovery ", cmd->init_task_tag, in iscsit_send_r2t()
[all …]
/drivers/infiniband/ulp/iser/
Discsi_iser.c290 struct iscsi_r2t_info *r2t = &task->unsol_r2t; in iscsi_iser_task_xmit_unsol_data() local
296 iscsi_prep_data_out_pdu(task, r2t, &hdr); in iscsi_iser_task_xmit_unsol_data()
298 hdr.itt, r2t->data_count); in iscsi_iser_task_xmit_unsol_data()
304 r2t->datasn--; in iscsi_iser_task_xmit_unsol_data()
307 r2t->sent += r2t->data_count; in iscsi_iser_task_xmit_unsol_data()
309 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/qedi/
Dqedi_fw_api.c509 cxt->ystorm_st_context.pdu_hdr.r2t.desired_data_trns_len = val; in init_rw_iscsi_task()