Lines Matching defs:pktBuf
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;
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);