Lines Matching defs:residual
207 /** ISCSI BHS word 0: residual underflow. */
209 /** ISCSI BHS word 0: residual overflow. */
211 /** ISCSI BHS word 0: Bidirectional read residual underflow. */
213 /** ISCSI BHS word 0: Bidirectional read residual overflow. */
911 size_t cbToRead, cbActuallyRead, residual, cbSegActual = 0, cbAHSLength, cbDataLength;
925 residual = ISCSI_BHS_SIZE; /* Do not read more than the BHS length before the true PDU length is known. */
926 cbSegActual = residual;
941 rc = pImage->pIfNet->pfnRead(pImage->Socket, pDst, residual, &cbActuallyRead);
955 residual -= cbActuallyRead;
957 if (residual <= 40)
965 cbToRead = residual + cbAHSLength + cbDataLength;
966 residual += paResponse[0].cbSeg - ISCSI_BHS_SIZE;
967 if (residual > cbToRead)
968 residual = cbToRead;
981 residual -= cbActuallyRead;
983 if (residual == 0)
993 residual = paResponse[i].cbSeg;
994 if (residual > cbToRead)
995 residual = cbToRead;
996 cbSegActual = residual;
998 LogFlowFunc(("cbToRead=%u residual=%u cbSegActual=%u cbActuallRead=%u\n",
999 cbToRead, residual, cbSegActual, cbActuallyRead));
2625 /* SCSI responses must not be split into several PDUs nor must the residual
2626 * bits be contradicting each other nor may the residual bits be set for PDUs
2656 /* SCSI Data-in responses must not contain contradicting residual bits when