Lines Matching refs:datain
574 const struct iscsi_datain *datain) in iscsit_xmit_datain_pdu() argument
601 datain->offset, datain->length); in iscsit_xmit_datain_pdu()
606 tx_size += datain->length; in iscsit_xmit_datain_pdu()
608 cmd->padding = ((-datain->length) & 3); in iscsit_xmit_datain_pdu()
619 cmd, datain->offset, in iscsit_xmit_datain_pdu()
620 datain->length, in iscsit_xmit_datain_pdu()
629 datain->length + cmd->padding, cmd->data_crc); in iscsit_xmit_datain_pdu()
2783 struct iscsi_datain *datain, struct iscsi_data_rsp *hdr, in iscsit_build_datain_pdu() argument
2787 hdr->flags = datain->flags; in iscsit_build_datain_pdu()
2797 hton24(hdr->dlength, datain->length); in iscsit_build_datain_pdu()
2817 hdr->datasn = cpu_to_be32(datain->data_sn); in iscsit_build_datain_pdu()
2818 hdr->offset = cpu_to_be32(datain->offset); in iscsit_build_datain_pdu()
2823 ntohl(hdr->offset), datain->length, conn->cid); in iscsit_build_datain_pdu()
2830 struct iscsi_datain datain; in iscsit_send_datain() local
2835 memset(&datain, 0, sizeof(struct iscsi_datain)); in iscsit_send_datain()
2836 dr = iscsit_get_datain_values(cmd, &datain); in iscsit_send_datain()
2845 if ((datain.offset + datain.length) > cmd->se_cmd.data_length) { in iscsit_send_datain()
2848 cmd->init_task_tag, datain.offset, datain.length, in iscsit_send_datain()
2853 atomic_long_add(datain.length, &conn->sess->tx_data_octets); in iscsit_send_datain()
2858 if ((datain.flags & ISCSI_FLAG_DATA_STATUS) && in iscsit_send_datain()
2860 datain.flags &= ~ISCSI_FLAG_DATA_STATUS; in iscsit_send_datain()
2872 iscsit_build_datain_pdu(cmd, conn, &datain, hdr, set_statsn); in iscsit_send_datain()
2874 ret = conn->conn_transport->iscsit_xmit_pdu(conn, cmd, dr, &datain, 0); in iscsit_send_datain()