Lines Matching defs:rx_pdu
708 * rx_pdu The received login response PDU
713 negotiate_login(connection_t *conn, pdu_t *rx_pdu, ccb_t *tx_ccb)
720 if (rx_pdu->pdu_hdr.pduh_Flags & FLAG_TRANSIT)
721 c_phase = rx_pdu->pdu_hdr.pduh_Flags & SG_MASK;
723 c_phase = (rx_pdu->pdu_hdr.pduh_Flags >> CSG_SHIFT) & SG_MASK;
726 rx_pdu->pdu_hdr.pduh_Flags, c_phase));
732 sess->s_TSIH = ((login_isid_t *) &rx_pdu->pdu_hdr.pduh_LUN)->TSIH;
734 if (rx_pdu->pdu_temp_data != NULL)
735 assemble_negotiation_parameters(conn, tx_ccb, rx_pdu, NULL);
753 rc = assemble_security_parameters(conn, tx_ccb, rx_pdu, tx_pdu);
768 rc = assemble_security_parameters(conn, tx_ccb, rx_pdu, tx_pdu);
777 rx_pdu->pdu_temp_data = NULL;
780 rc = assemble_negotiation_parameters(conn, tx_ccb, rx_pdu, tx_pdu);
808 * rx_pdu The received PDU if this is an unsolicited negotiation
812 init_text_pdu(connection_t *conn, ccb_t *ccb, pdu_t *ppdu, pdu_t *rx_pdu)
823 if (rx_pdu != NULL) {
825 rx_pdu->pdu_hdr.pduh_p.text_rsp.TargetTransferTag;
826 hpdu->pduh_LUN = rx_pdu->pdu_hdr.pduh_LUN;
840 * rx_pdu The received login/text response PDU
845 acknowledge_text(connection_t *conn, pdu_t *rx_pdu, ccb_t *tx_ccb)
853 if (rx_pdu != NULL &&
854 (rx_pdu->pdu_hdr.pduh_Opcode & OPCODE_MASK) == IOP_Login_Request)
857 init_text_pdu(conn, tx_ccb, tx_pdu, rx_pdu);
905 * rx_pdu The received text response PDU
910 negotiate_text(connection_t *conn, pdu_t *rx_pdu, ccb_t *tx_ccb)
916 if (!(rx_pdu->pdu_hdr.pduh_Flags & FLAG_FINAL)) {
922 tx_ccb->ccb_text_data = rx_pdu->pdu_temp_data;
923 tx_ccb->ccb_text_len = rx_pdu->pdu_temp_data_len;
924 rx_pdu->pdu_temp_data = NULL;
927 if (!(rx_pdu->pdu_hdr.pduh_Flags & FLAG_FINAL))
932 rc = assemble_negotiation_parameters(conn, tx_ccb, rx_pdu, tx_pdu);
939 init_text_pdu(conn, tx_ccb, tx_pdu, rx_pdu);
1018 * rx_pdu The received Nop-In PDU
1024 send_nop_out(connection_t *conn, pdu_t *rx_pdu)
1032 if (rx_pdu != NULL) {
1061 if (rx_pdu != NULL) {
1063 rx_pdu->pdu_hdr.pduh_p.nop_in.TargetTransferTag;
1064 hpdu->pduh_InitiatorTaskTag = rx_pdu->pdu_hdr.pduh_InitiatorTaskTag;
1066 hpdu->pduh_LUN = rx_pdu->pdu_hdr.pduh_LUN;
1074 DEBC(conn, 10, ("Send NOP_Out CmdSN=%d, rx_pdu=%p\n", sn, rx_pdu));
1077 send_pdu(ccb, ppdu, (rx_pdu != NULL) ? CCBDISP_NOWAIT : CCBDISP_FREE,
1127 * rx_pdu The received data in PDU
1135 send_snack(connection_t *conn, pdu_t *rx_pdu, ccb_t *tx_ccb, uint8_t type)
1149 hpdu->pduh_InitiatorTaskTag = rx_pdu->pdu_hdr.pduh_InitiatorTaskTag;
1151 hpdu->pduh_p.snack.BegRun = rx_pdu->pdu_hdr.pduh_p.data_in.DataSN;
1158 hpdu->pduh_p.snack.BegRun = rx_pdu->pdu_hdr.pduh_p.response.StatSN;
1165 rx_pdu->pdu_hdr.pduh_p.data_in.TargetTransferTag;
1175 hpdu->pduh_LUN = rx_pdu->pdu_hdr.pduh_LUN;
1366 * rx_pdu The received R2T PDU (NULL if unsolicited)
1372 send_data_out(connection_t *conn, pdu_t *rx_pdu, ccb_t *tx_ccb,
1381 if (rx_pdu) {
1382 offs = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.BufferOffset);
1383 totlen = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.DesiredDataTransferLength);
1410 if (rx_pdu != NULL)
1412 rx_pdu->pdu_hdr.pduh_p.r2t.TargetTransferTag;