Lines Matching defs:pktBuf
1567 static sPktBuf pktBuf[BUFRING]; /* foxconn wklin modified, use static */
1579 memset(pktBuf[i].packetBuf, 0x0, sizeof(pktBuf[i].packetBuf));
1585 if ((len = read(0, &(pktBuf[nPkt].packetBuf[(20+bufRemain)]), (4095-bufRemain))) < 0) {
1606 print_hex(pktBuf[nPkt].packetBuf, len);
1611 packet = &(pktBuf[nPkt].packetBuf[0]);
1612 currBufStart = &(pktBuf[nPkt].packetBuf[20]);
1620 memcpy(&(pktBuf[nPkt+1].packetBuf[20]),
1621 &(pktBuf[nPkt].packetBuf[(4115-bufRemain)]), /* 4115 = 4095 + 20 */
1625 memcpy(&(pktBuf[0].packetBuf[20]),
1626 &(pktBuf[(BUFRING-1)].packetBuf[(4115-bufRemain)]), /* 4115 = 4095 + 20 */
1649 currBufStart = &(pktBuf[nPkt].packetBuf[bufPos+20]);
1650 packet = &(pktBuf[nPkt].packetBuf[bufPos]);