Lines Matching defs:mpdu_blk
42 struct reordering_mpdu *mpdu_blk);
151 struct reordering_mpdu *mpdu_blk)
154 mpdu_blk->next = list->next;
155 list->next = mpdu_blk;
163 struct reordering_mpdu *mpdu_blk = NULL;
169 mpdu_blk = list->next;
170 if (mpdu_blk) {
171 list->next = mpdu_blk->next;
172 mpdu_blk->next = NULL;
175 return mpdu_blk;
201 struct reordering_mpdu *mpdu_blk;
211 while ((mpdu_blk =
213 ASSERT(mpdu_blk->pPacket);
214 RELEASE_NDIS_PACKET(pAd, mpdu_blk->pPacket,
216 ba_mpdu_blk_free(pAd, mpdu_blk);
236 struct reordering_mpdu *mpdu_blk;
251 /* allocate number of mpdu_blk memory */
263 /* build mpdu_blk free list */
265 /* get mpdu_blk */
266 mpdu_blk = (struct reordering_mpdu *)mem;
267 /* initial mpdu_blk */
268 NdisZeroMemory(mpdu_blk, sizeof(struct reordering_mpdu));
269 /* next mpdu_blk */
271 /* insert mpdu_blk into freelist */
272 ba_enqueue(freelist, mpdu_blk);
282 struct reordering_mpdu *mpdu_blk;
285 mpdu_blk = ba_dequeue(&pAd->mpdu_blk_pool.freelist);
286 if (mpdu_blk) {
288 /* reset mpdu_blk */
289 NdisZeroMemory(mpdu_blk, sizeof(struct reordering_mpdu));
292 return mpdu_blk;
296 struct reordering_mpdu *mpdu_blk)
298 ASSERT(mpdu_blk);
302 ba_enqueue(&pAd->mpdu_blk_pool.freelist, mpdu_blk);
310 struct reordering_mpdu *mpdu_blk;
315 while ((mpdu_blk = ba_reordering_mpdu_probe(&pBAEntry->list))) {
317 if (!SEQ_STEPONE(mpdu_blk->Sequence, StartSeq, MAXSEQ)) {
321 mpdu_blk = ba_reordering_mpdu_dequeue(&pBAEntry->list);
323 ANNOUNCE_REORDERING_PACKET(pAd, mpdu_blk);
325 StartSeq = mpdu_blk->Sequence;
327 /* free mpdu_blk */
328 ba_mpdu_blk_free(pAd, mpdu_blk);
341 struct reordering_mpdu *mpdu_blk;
344 while ((mpdu_blk = ba_reordering_mpdu_probe(&pBAEntry->list))) {
346 if ((mpdu_blk->Sequence == Sequence)
347 || SEQ_SMALLER(mpdu_blk->Sequence, Sequence, MAXSEQ)) {
349 mpdu_blk = ba_reordering_mpdu_dequeue(&pBAEntry->list);
351 ANNOUNCE_REORDERING_PACKET(pAd, mpdu_blk);
352 /* free mpdu_blk */
353 ba_mpdu_blk_free(pAd, mpdu_blk);
364 struct reordering_mpdu *mpdu_blk;
369 while ((mpdu_blk = ba_reordering_mpdu_dequeue(&pBAEntry->list))) {
371 ANNOUNCE_REORDERING_PACKET(pAd, mpdu_blk);
373 pBAEntry->LastIndSeq = mpdu_blk->Sequence;
374 ba_mpdu_blk_free(pAd, mpdu_blk);
1442 struct reordering_mpdu *mpdu_blk;
1445 mpdu_blk = ba_mpdu_blk_alloc(pAd);
1446 if ((mpdu_blk != NULL) && (!RX_BLK_TEST_FLAG(pRxBlk, fRX_EAP))) {
1450 mpdu_blk->Sequence = Sequence;
1452 mpdu_blk->bAMSDU = RX_BLK_TEST_FLAG(pRxBlk, fRX_AMSDU);
1466 mpdu_blk->pPacket = pRxBlk->pRxPacket;
1468 if (ba_reordering_mpdu_insertsorted(&pBAEntry->list, mpdu_blk)
1474 ba_mpdu_blk_free(pAd, mpdu_blk);