Lines Matching refs:pRxContext
131 void RTUSBInitRxDesc(struct rt_rtmp_adapter *pAd, struct rt_rx_context *pRxContext)
137 pUrb = pRxContext->pUrb;
149 &(pRxContext->
153 (void *)pRxContext);
155 pUrb->transfer_dma = pRxContext->data_dma + pAd->NextRxBulkInPosition;
782 struct rt_rx_context *pRxContext;
788 pRxContext = &(pAd->RxContext[pAd->NextRxBulkInIndex]);
789 if ((pAd->PendingRx > 0) || (pRxContext->Readable == TRUE)
790 || (pRxContext->InUse == TRUE)) {
794 pRxContext->InUse = TRUE;
795 pRxContext->IRPPending = TRUE;
801 NdisZeroMemory(pRxContext->TransferBuffer, pRxContext->BulkInOffset);
802 RTUSBInitRxDesc(pAd, pRxContext);
804 pUrb = pRxContext->pUrb;
809 pRxContext->InUse = FALSE;
810 pRxContext->IRPPending = FALSE;
817 ASSERT((pRxContext->InUse == pRxContext->IRPPending));
854 struct rt_rx_context *pRxContext;
864 pRxContext = &(pAd->RxContext[pAd->NextRxBulkInReadIndex]);
865 if (((pRxContext->InUse == FALSE)
866 && (pRxContext->Readable == TRUE))
867 && (pRxContext->bRxHandling == FALSE)) {
868 pRxContext->bRxHandling = TRUE;
876 pRxContext->BulkInOffset = 0;
877 pRxContext->Readable = FALSE;
878 pRxContext->bRxHandling = FALSE;
924 struct rt_rx_context *pRxContext;
928 pRxContext = (struct rt_rx_context *)pUrb->context;
929 pAd = pRxContext->pAd;
1111 struct rt_rx_context *pRxContext;
1116 pRxContext = &(pAd->RxContext[i]);
1117 if (pRxContext->IRPPending == TRUE) {
1118 RTUSB_UNLINK_URB(pRxContext->pUrb);
1119 pRxContext->IRPPending = FALSE;
1120 pRxContext->InUse = FALSE;