Home | History | Annotate | Download | only in msdos

Lines Matching refs:pktBuf

57 extern int     FreePktBuf  (PktBuf *buf);

58 extern int EnquePktBuf (PktBuf *buf);
59 extern PktBuf* AllocPktBuf (void);
349 PktBuf *pktBuf;
364 if ((pktBuf = AllocPktBuf()) == NULL)
377 tDBufDescr.tDBufDescrRec[0].tDDataPtr = pktBuf->buffer;
378 tDBufDescr.tDBufDescrRec[0].tDDataLen = pktBuf->length;
383 pktBuf->packetLength = bytesCopied;
386 EnquePktBuf(pktBuf);
387 else FreePktBuf (pktBuf);
414 struct _PktBuf *pktBuf;
418 * For now we copy the entire packet over to a PktBuf structure. This may be
424 if ((pktBuf = AllocPktBuf()) == NULL)
429 pktBuf->packetLength = 0;
437 memcpy (pktBuf->buffer + pktBuf->packetLength,
439 pktBuf->packetLength += rxDescr->rxDataLen;
442 EnquePktBuf (pktBuf);
486 int NdisSendPacket (struct _PktBuf *pktBuf, int macId)
492 txBufPending = pktBuf; /* we only have 1 pending Tx at a time */
499 txBufDescr.txBufDescrRec[0].txDataLen = pktBuf->packetLength;
500 txBufDescr.txBufDescrRec[0].txDataPtr = pktBuf->buffer;
503 pktBuf->handle,
520 FreePktBuf (pktBuf);