Lines Matching refs:text

1559  * iscsi_rx_process_text_rsp - processes iSCSI text response.  It sets
1563 * a text request.
1565 * iSCSI commands because the initiator sends additional empty text requests
1567 * request. iscsi_handle_text controls the operation of text request, while
1602 * responses of a long text response
1607 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_FINAL_RSP;
1610 "received text response with invalid flags:0x%x or "
1615 if ((icmdp->cmd_un.text.stage == ISCSI_CMD_TEXT_INITIAL_REQ) &&
1620 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_FINAL_RSP;
1623 "error - received text response with invalid "
1630 * in a long text request/response sequence
1632 if (icmdp->cmd_un.text.stage == ISCSI_CMD_TEXT_INITIAL_REQ) {
1633 icmdp->cmd_un.text.ttt = ithp->ttt;
1639 if ((icmdp->cmd_un.text.total_rx_len + data_len) >
1640 icmdp->cmd_un.text.buf_len) {
1641 icmdp->cmd_un.text.total_rx_len += data_len;
1646 * text response if needed.
1649 char *buf_data = (icmdp->cmd_un.text.buf +
1650 icmdp->cmd_un.text.offset);
1653 icmdp->cmd_un.text.offset += data_len;
1654 icmdp->cmd_un.text.total_rx_len += data_len;
1656 bcopy(ithp->rsvd4, icmdp->cmd_un.text.lun,
1657 sizeof (icmdp->cmd_un.text.lun));
1662 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_FINAL_RSP;
1664 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_CONTINUATION;
2237 (uint8_t *)icmdp->cmd_un.text.buf,
2402 * iscsi_tx_text - setup iSCSI text request header and send PDU with
2404 * text request, the target may need to send its response in multiple
2405 * text response. In this case, empty text requests are sent after
2408 * the text specific portion of a command is set to the amount of data
2410 * empty text requests are required for long responses, the data_len
2427 hton24(ith->dlength, icmdp->cmd_un.text.data_len);
2428 ith->ttt = icmdp->cmd_un.text.ttt;
2431 bcopy(icmdp->cmd_un.text.lun, ith->rsvd4, sizeof (ith->rsvd4));
2836 * iscsi_handle_text - main control function for iSCSI text requests. This
2837 * function handles allocating the command, sending initial text request, and
2859 * Ensure data for text request command is not greater
2862 * Although iSCSI allows for long text requests (multiple
2863 * pdus), this function places a restriction on text
2878 icmdp->cmd_un.text.buf = buf;
2879 icmdp->cmd_un.text.buf_len = buf_len;
2880 icmdp->cmd_un.text.offset = 0;
2881 icmdp->cmd_un.text.data_len = data_len;
2882 icmdp->cmd_un.text.total_rx_len = 0;
2883 icmdp->cmd_un.text.ttt = ISCSI_RSVD_TASK_TAG;
2884 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_INITIAL_REQ;
2920 /* check if this was a partial text PDU */
2921 if (icmdp->cmd_un.text.stage != ISCSI_CMD_TEXT_FINAL_RSP) {
2923 * If a paritial text rexponse received, send an empty
2924 * text request. This follows the behaviour specified
2925 * in RFC3720 regarding long text responses.
2929 icmdp->cmd_un.text.data_len = 0;
2930 icmdp->cmd_un.text.stage = ISCSI_CMD_TEXT_CONTINUATION;
2939 *rx_data_len = icmdp->cmd_un.text.total_rx_len;