• Home
  • Raw
  • Download

Lines Matching refs:NbufQue

1331   IN OUT NET_BUF_QUEUE          *NbufQue  in NetbufQueInit()  argument
1334 NbufQue->Signature = NET_QUE_SIGNATURE; in NetbufQueInit()
1335 NbufQue->RefCnt = 1; in NetbufQueInit()
1336 InitializeListHead (&NbufQue->List); in NetbufQueInit()
1338 InitializeListHead (&NbufQue->BufList); in NetbufQueInit()
1339 NbufQue->BufSize = 0; in NetbufQueInit()
1340 NbufQue->BufNum = 0; in NetbufQueInit()
1357 NET_BUF_QUEUE *NbufQue; in NetbufQueAlloc() local
1359 NbufQue = AllocatePool (sizeof (NET_BUF_QUEUE)); in NetbufQueAlloc()
1360 if (NbufQue == NULL) { in NetbufQueAlloc()
1364 NetbufQueInit (NbufQue); in NetbufQueAlloc()
1366 return NbufQue; in NetbufQueAlloc()
1383 IN NET_BUF_QUEUE *NbufQue in NetbufQueFree() argument
1386 ASSERT (NbufQue != NULL); in NetbufQueFree()
1387 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueFree()
1389 NbufQue->RefCnt--; in NetbufQueFree()
1391 if (NbufQue->RefCnt == 0) { in NetbufQueFree()
1392 NetbufQueFlush (NbufQue); in NetbufQueFree()
1393 FreePool (NbufQue); in NetbufQueFree()
1408 IN OUT NET_BUF_QUEUE *NbufQue, in NetbufQueAppend() argument
1412 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueAppend()
1415 InsertTailList (&NbufQue->BufList, &Nbuf->List); in NetbufQueAppend()
1417 NbufQue->BufSize += Nbuf->TotalSize; in NetbufQueAppend()
1418 NbufQue->BufNum++; in NetbufQueAppend()
1434 IN OUT NET_BUF_QUEUE *NbufQue in NetbufQueRemove() argument
1439 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueRemove()
1441 if (NbufQue->BufNum == 0) { in NetbufQueRemove()
1445 First = NET_LIST_USER_STRUCT (NbufQue->BufList.ForwardLink, NET_BUF, List); in NetbufQueRemove()
1447 NetListRemoveHead (&NbufQue->BufList); in NetbufQueRemove()
1449 NbufQue->BufSize -= First->TotalSize; in NetbufQueRemove()
1450 NbufQue->BufNum--; in NetbufQueRemove()
1474 IN NET_BUF_QUEUE *NbufQue, in NetbufQueCopy() argument
1487 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueCopy()
1490 if ((Len == 0) || (NbufQue->BufSize <= Offset)) { in NetbufQueCopy()
1494 if (NbufQue->BufSize - Offset < Len) { in NetbufQueCopy()
1495 Len = NbufQue->BufSize - Offset; in NetbufQueCopy()
1504 NET_LIST_FOR_EACH (Entry, &NbufQue->BufList) { in NetbufQueCopy()
1536 while ((Len > 0) && (Entry != &NbufQue->BufList)) { in NetbufQueCopy()
1575 IN OUT NET_BUF_QUEUE *NbufQue, in NetbufQueTrim() argument
1584 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueTrim()
1590 if (Len > NbufQue->BufSize) { in NetbufQueTrim()
1591 Len = NbufQue->BufSize; in NetbufQueTrim()
1594 NbufQue->BufSize -= Len; in NetbufQueTrim()
1597 NET_LIST_FOR_EACH_SAFE (Entry, Next, &NbufQue->BufList) { in NetbufQueTrim()
1607 NbufQue->BufNum--; in NetbufQueTrim()
1632 IN OUT NET_BUF_QUEUE *NbufQue in NetbufQueFlush() argument
1635 NET_CHECK_SIGNATURE (NbufQue, NET_QUE_SIGNATURE); in NetbufQueFlush()
1637 NetbufFreeList (&NbufQue->BufList); in NetbufQueFlush()
1639 NbufQue->BufNum = 0; in NetbufQueFlush()
1640 NbufQue->BufSize = 0; in NetbufQueFlush()