• Home
  • Raw
  • Download

Lines Matching refs:ScsiRspHdr

2729   SCSI_RESPONSE     *ScsiRspHdr;  in IScsiOnScsiRspRcvd()  local
2734 ScsiRspHdr = (SCSI_RESPONSE *) NetbufGetByte (Pdu, 0, NULL); in IScsiOnScsiRspRcvd()
2735 if (ScsiRspHdr == NULL) { in IScsiOnScsiRspRcvd()
2739 ScsiRspHdr->InitiatorTaskTag = NTOHL (ScsiRspHdr->InitiatorTaskTag); in IScsiOnScsiRspRcvd()
2740 if (ScsiRspHdr->InitiatorTaskTag != Tcb->InitiatorTaskTag) { in IScsiOnScsiRspRcvd()
2744 ScsiRspHdr->StatSN = NTOHL (ScsiRspHdr->StatSN); in IScsiOnScsiRspRcvd()
2746 Status = IScsiCheckSN (&Tcb->Conn->ExpStatSN, ScsiRspHdr->StatSN); in IScsiOnScsiRspRcvd()
2751 ScsiRspHdr->MaxCmdSN = NTOHL (ScsiRspHdr->MaxCmdSN); in IScsiOnScsiRspRcvd()
2752 ScsiRspHdr->ExpCmdSN = NTOHL (ScsiRspHdr->ExpCmdSN); in IScsiOnScsiRspRcvd()
2753 IScsiUpdateCmdSN (Tcb->Conn->Session, ScsiRspHdr->MaxCmdSN, ScsiRspHdr->ExpCmdSN); in IScsiOnScsiRspRcvd()
2757 Packet->HostAdapterStatus = ScsiRspHdr->Response; in IScsiOnScsiRspRcvd()
2762 Packet->TargetStatus = ScsiRspHdr->Status; in IScsiOnScsiRspRcvd()
2764 …if (ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_BI_READ_OVERFLOW | SCSI_RSP_PDU_FLAG_BI_READ_UNDE… in IScsiOnScsiRspRcvd()
2765 ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_OVERFLOW | SCSI_RSP_PDU_FLAG_UNDERFLOW) in IScsiOnScsiRspRcvd()
2770 if (ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_BI_READ_OVERFLOW)) { in IScsiOnScsiRspRcvd()
2771 Packet->InTransferLength += NTOHL (ScsiRspHdr->BiReadResidualCount); in IScsiOnScsiRspRcvd()
2775 if (ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_BI_READ_UNDERFLOW)) { in IScsiOnScsiRspRcvd()
2776 Packet->InTransferLength -= NTOHL (ScsiRspHdr->BiReadResidualCount); in IScsiOnScsiRspRcvd()
2779 if (ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_OVERFLOW)) { in IScsiOnScsiRspRcvd()
2781 Packet->InTransferLength += NTOHL (ScsiRspHdr->ResidualCount); in IScsiOnScsiRspRcvd()
2783 Packet->OutTransferLength += NTOHL (ScsiRspHdr->ResidualCount); in IScsiOnScsiRspRcvd()
2789 if (ISCSI_FLAG_ON (ScsiRspHdr, SCSI_RSP_PDU_FLAG_UNDERFLOW)) { in IScsiOnScsiRspRcvd()
2791 Packet->InTransferLength -= NTOHL (ScsiRspHdr->ResidualCount); in IScsiOnScsiRspRcvd()
2793 Packet->OutTransferLength -= NTOHL (ScsiRspHdr->ResidualCount); in IScsiOnScsiRspRcvd()
2797 DataSegLen = ISCSI_GET_DATASEG_LEN (ScsiRspHdr); in IScsiOnScsiRspRcvd()