Lines Matching refs:RX_ELEMENT
87 RX_ELEMENT _pktRxBuf[NUM_RX_BUF];
114 extern RX_ELEMENT pktRxBuf [NUM_RX_BUF]; /* PktDrvr Rx buffers */
478 LOCAL __inline BOOL CheckElement (RX_ELEMENT *rx) in CheckElement()
480 LOCAL __inline BOOL CheckElement (RX_ELEMENT _far *rx) in CheckElement()
781 RX_ELEMENT _far *head = (RX_ELEMENT _far*)(protBase+outOfs); in PktReceive()
786 size = min (head->firstCount, sizeof(RX_ELEMENT)); in PktReceive()
793 outOfs += sizeof (RX_ELEMENT); in PktReceive()
804 *rxOutOfsFp = busy ? (*rxInOfsFp + sizeof(RX_ELEMENT)) : *rxInOfsFp; in PktQueueBusy()
816 return (inOfs - outOfs) / sizeof(RX_ELEMENT); in PktBuffersUsed()
817 return (NUM_RX_BUF - (outOfs - inOfs) / sizeof(RX_ELEMENT)); in PktBuffersUsed()
832 RX_ELEMENT head; in PktReceive()
841 size = min (head.firstCount, sizeof(RX_ELEMENT)); in PktReceive()
848 ofs += sizeof (RX_ELEMENT); in PktReceive()
864 ofs += sizeof (RX_ELEMENT); in PktQueueBusy()
882 return (inOfs - outOfs) / sizeof(RX_ELEMENT); in PktBuffersUsed()
883 return (NUM_RX_BUF - (outOfs - inOfs) / sizeof(RX_ELEMENT)); in PktBuffersUsed()
898 RX_ELEMENT head; in PktReceive()
907 size = min (head.firstCount, sizeof(RX_ELEMENT)); in PktReceive()
914 ofs += sizeof (RX_ELEMENT); in PktReceive()
930 ofs += sizeof (RX_ELEMENT); in PktQueueBusy()
948 return (inOfs - outOfs) / sizeof(RX_ELEMENT); in PktBuffersUsed()
949 return (NUM_RX_BUF - (outOfs - inOfs) / sizeof(RX_ELEMENT)); in PktBuffersUsed()
963 RX_ELEMENT far *head = (RX_ELEMENT far*) MK_FP (_DS,rxOutOfs); in PktReceive()
968 size = min (head->firstCount, sizeof(RX_ELEMENT)); in PktReceive()
975 rxOutOfs += sizeof (RX_ELEMENT); in PktReceive()
985 rxOutOfs = busy ? (rxInOfs + sizeof(RX_ELEMENT)) : rxInOfs; in PktQueueBusy()
997 return ((inOfs - outOfs) / sizeof(RX_ELEMENT)); in PktBuffersUsed()
998 return (NUM_RX_BUF - (outOfs - inOfs) / sizeof(RX_ELEMENT)); in PktBuffersUsed()