Lines Matching refs:offRead

264     uint32_t const offRead     = ASMAtomicUoReadU32(&pRingBuf->offReadX);
266 return offRead <= offWriteInt
267 ? pRingBuf->offEnd - offWriteInt + offRead - pRingBuf->offStart - 1
268 : offRead - offWriteInt - 1;
280 uint32_t const offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
282 return offRead != offWriteCom;
294 uint32_t const offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
296 if (offRead == offWriteCom)
298 return (PINTNETHDR)((uint8_t *)pRingBuf + offRead);
310 uint32_t const offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
312 return offRead <= offWriteCom
313 ? offWriteCom - offRead
314 : pRingBuf->offEnd - offRead + offWriteCom - pRingBuf->offStart;
415 uint32_t offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
416 if (offRead <= offWriteInt)
428 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (1) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u8Type, cbFrame));
444 if (offRead - pRingBuf->offStart > cb) /* not >= ! */
449 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (2) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u8Type, cbFrame));
464 else if (offRead - offWriteInt > cb + sizeof(INTNETHDR)) /* not >= ! */
469 Log2(("intnetRingAllocateFrameInternal: offWriteInt: %#x -> %#x (3) (R=%#x T=%#x S=%#x)\n", offWriteInt, offNew, offRead, u8Type, cbFrame));
652 uint32_t offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
653 if (offRead <= offWriteInt)
685 if (offRead - pRingBuf->offStart > cb) /* not >= ! */
709 else if (offRead - offWriteInt > cb + sizeof(INTNETHDR)) /* not >= ! */
750 uint32_t offRead = ASMAtomicUoReadU32(&pRingBuf->offReadX);
752 if (offRead == offWriteCom)
755 PINTNETHDR pHdr = (PINTNETHDR)((uint8_t *)pRingBuf + offRead);
768 offRead += offFrame + cbFrame;
769 offRead = RT_ALIGN_32(offRead, INTNETHDR_ALIGNMENT);
770 Assert(offRead <= pRingBuf->offEnd && offRead >= pRingBuf->offStart);
771 if (offRead >= pRingBuf->offEnd)
772 offRead = pRingBuf->offStart;
773 ASMAtomicWriteU32(&pRingBuf->offReadX, offRead);