• Home
  • Raw
  • Download

Lines Matching refs:Tcb

2009   OUT ISCSI_TCB         **Tcb  in IScsiNewTcb()  argument
2015 ASSERT (Tcb != NULL); in IScsiNewTcb()
2043 *Tcb = NewTcb; in IScsiNewTcb()
2057 IN ISCSI_TCB *Tcb in IScsiDelTcb() argument
2060 RemoveEntryList (&Tcb->Link); in IScsiDelTcb()
2062 FreePool (Tcb); in IScsiDelTcb()
2082 ISCSI_TCB *Tcb; in IScsiFindTcbByITT() local
2085 Tcb = NULL; in IScsiFindTcbByITT()
2088 Tcb = NET_LIST_USER_STRUCT (Entry, ISCSI_TCB, Link); in IScsiFindTcbByITT()
2090 if (Tcb->InitiatorTaskTag == InitiatorTaskTag) { in IScsiFindTcbByITT()
2095 return Tcb; in IScsiFindTcbByITT()
2156 IN ISCSI_TCB *Tcb in IScsiNewScsiCmdPdu() argument
2239 ScsiCmd->InitiatorTaskTag = NTOHL (Tcb->InitiatorTaskTag); in IScsiNewScsiCmdPdu()
2240 ScsiCmd->CmdSN = NTOHL (Tcb->CmdSN); in IScsiNewScsiCmdPdu()
2241 ScsiCmd->ExpStatSN = NTOHL (Tcb->Conn->ExpStatSN); in IScsiNewScsiCmdPdu()
2253 Session = Tcb->Conn->Session; in IScsiNewScsiCmdPdu()
2263 ImmediateDataLen = MIN (ImmediateDataLen, Tcb->Conn->MaxRecvDataSegmentLength); in IScsiNewScsiCmdPdu()
2337 IN ISCSI_TCB *Tcb, in IScsiNewDataOutPdu() argument
2373 XferContext = &Tcb->XferContext; in IScsiNewDataOutPdu()
2383 DataOutHdr->InitiatorTaskTag = HTONL (Tcb->InitiatorTaskTag); in IScsiNewDataOutPdu()
2385 DataOutHdr->ExpStatSN = HTONL (Tcb->Conn->ExpStatSN); in IScsiNewDataOutPdu()
2428 IN ISCSI_TCB *Tcb, in IScsiGenerateDataOutPduSequence() argument
2448 Conn = Tcb->Conn; in IScsiGenerateDataOutPduSequence()
2450 XferContext = &Tcb->XferContext; in IScsiGenerateDataOutPduSequence()
2461 DataOutPdu = IScsiNewDataOutPdu (Data, DataLen, DataSN, Tcb, Lun); in IScsiGenerateDataOutPduSequence()
2512 IN ISCSI_TCB *Tcb in IScsiSendDataOutPduSequence() argument
2523 DataOutPduList = IScsiGenerateDataOutPduSequence (Data, Tcb, Lun); in IScsiSendDataOutPduSequence()
2536 Status = TcpIoTransmit (&Tcb->Conn->TcpIo, Pdu); in IScsiSendDataOutPduSequence()
2566 IN ISCSI_TCB *Tcb, in IScsiOnDataInRcvd() argument
2586 Status = IScsiCheckSN (&Tcb->ExpDataSN, DataInHdr->DataSN); in IScsiOnDataInRcvd()
2591 if (DataInHdr->InitiatorTaskTag != Tcb->InitiatorTaskTag) { in IScsiOnDataInRcvd()
2597 IScsiUpdateCmdSN (Tcb->Conn->Session, DataInHdr->MaxCmdSN, DataInHdr->ExpCmdSN); in IScsiOnDataInRcvd()
2607 Tcb->StatusXferd = TRUE; in IScsiOnDataInRcvd()
2618 Status = IScsiCheckSN (&Tcb->Conn->ExpStatSN, NTOHL (DataInHdr->StatSN)); in IScsiOnDataInRcvd()
2656 IN ISCSI_TCB *Tcb, in IScsiOnR2TRcvd() argument
2678 …if ((R2THdr->InitiatorTaskTag != Tcb->InitiatorTaskTag) || !ISCSI_SEQ_EQ (R2THdr->StatSN, Tcb->Con… in IScsiOnR2TRcvd()
2684 Status = IScsiCheckSN (&Tcb->ExpDataSN, R2THdr->R2TSeqNum); in IScsiOnR2TRcvd()
2689 XferContext = &Tcb->XferContext; in IScsiOnR2TRcvd()
2695 (XferContext->DesiredLength > Tcb->Conn->Session->MaxBurstLength) in IScsiOnR2TRcvd()
2703 Status = IScsiSendDataOutPduSequence (Data, Lun, Tcb); in IScsiOnR2TRcvd()
2725 IN ISCSI_TCB *Tcb, in IScsiOnScsiRspRcvd() argument
2740 if (ScsiRspHdr->InitiatorTaskTag != Tcb->InitiatorTaskTag) { in IScsiOnScsiRspRcvd()
2746 Status = IScsiCheckSN (&Tcb->Conn->ExpStatSN, ScsiRspHdr->StatSN); in IScsiOnScsiRspRcvd()
2753 IScsiUpdateCmdSN (Tcb->Conn->Session, ScsiRspHdr->MaxCmdSN, ScsiRspHdr->ExpCmdSN); in IScsiOnScsiRspRcvd()
2755 Tcb->StatusXferd = TRUE; in IScsiOnScsiRspRcvd()
2832 IN ISCSI_TCB *Tcb in IScsiOnNopInRcvd() argument
2848 if (NopInHdr->StatSN != Tcb->Conn->ExpStatSN) { in IScsiOnNopInRcvd()
2852 Status = IScsiCheckSN (&Tcb->Conn->ExpStatSN, NopInHdr->StatSN); in IScsiOnNopInRcvd()
2858 IScsiUpdateCmdSN (Tcb->Conn->Session, NopInHdr->MaxCmdSN, NopInHdr->ExpCmdSN); in IScsiOnNopInRcvd()
2895 ISCSI_TCB *Tcb; in IScsiExecuteScsiCommand() local
2906 Tcb = NULL; in IScsiExecuteScsiCommand()
2926 Status = IScsiNewTcb (Conn, &Tcb); in IScsiExecuteScsiCommand()
2933 Pdu = IScsiNewScsiCmdPdu (Packet, Lun, Tcb); in IScsiExecuteScsiCommand()
2939 XferContext = &Tcb->XferContext; in IScsiExecuteScsiCommand()
2974 Status = IScsiSendDataOutPduSequence (Data, Lun, Tcb); in IScsiExecuteScsiCommand()
2983 while (!Tcb->StatusXferd) { in IScsiExecuteScsiCommand()
3012 Status = IScsiOnDataInRcvd (Pdu, Tcb, Packet); in IScsiExecuteScsiCommand()
3016 Status = IScsiOnR2TRcvd (Pdu, Tcb, Lun, Packet); in IScsiExecuteScsiCommand()
3020 Status = IScsiOnScsiRspRcvd (Pdu, Tcb, Packet); in IScsiExecuteScsiCommand()
3024 Status = IScsiOnNopInRcvd (Pdu, Tcb); in IScsiExecuteScsiCommand()
3053 if (Tcb != NULL) { in IScsiExecuteScsiCommand()
3054 IScsiDelTcb (Tcb); in IScsiExecuteScsiCommand()