Lines Matching refs:pTxn
144 static void rxXfer_TxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct* pTxn);
145 static void rxXfer_PktDropTxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn);
147 static void rxXfer_ForwardPacket (TRxXfer* pRxXfer, TTxnStruct* pTxn);
293 static void rxXfer_ForwardPacket (TRxXfer *pRxXfer, TTxnStruct *pTxn)
297 RxIfDescriptor_t *pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[0]);
305 if (pTxn->aLen[uBufNum] == 0)
312 pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[uBufNum]);
316 if (pTxn->aLen[uBufNum] != uLenFromRxInfo)
318 TRACE3(pRxXfer->hReport, REPORT_SEVERITY_ERROR , "rxXfer_ForwardPacket: Bad Length!! RxInfoLength=%d, ShortDescLen=%d, RxInfoStatus=0x%x\n", uLenFromRxInfo, pTxn->aLen[uBufNum], pRxInfo->status);
322 pRxInfo->length = ENDIAN_HANDLE_WORD(pTxn->aLen[uBufNum] >> 2);
334 RxQueue_ReceivePacket (pRxXfer->hRxQueue, (const void *)pTxn->aBuf[uBufNum]);
338 pTxn->aBuf[0] = 0;
422 TTxnStruct * pTxn = NULL;
477 pTxn = (TTxnStruct*)&(pRxXfer->aTxnStruct[pRxXfer->uCurrTxnIndex]);
478 pTxn->uHwAddr = SLV_MEM_DATA;
483 pTxn->aBuf[uAggregPktsNum] = pHostBuf + ALIGNMENT_SIZE(uRxDesc);
484 pTxn->aLen[uAggregPktsNum] = uBuffSize;
540 pTxn->aLen[uAggregPktsNum] = 0;
548 rxXfer_ForwardPacket (pRxXfer, pTxn);
578 pTxn = (TTxnStruct*)&pRxXfer->aTxnStruct[pRxXfer->uCurrTxnIndex];
579 BUILD_TTxnStruct(pTxn, SLV_MEM_DATA, pRxXfer->aTempBuffer, uBuffSize, (TTxnDoneCb)rxXfer_PktDropTxnDoneCb, hRxXfer)
619 TTxnStruct *pTxn;
623 pTxn = &pRxXfer->aSlaveRegTxn[uIndex].tTxnStruct;
624 pTxn->uHwAddr = SLV_REG_DATA;
627 twIf_Transact(pRxXfer->hTwIf, pTxn);
630 pTxn = &pRxXfer->aTxnStruct[uIndex];
631 eStatus = twIf_Transact(pRxXfer->hTwIf, pTxn);
635 pTxn = &pRxXfer->aCounterTxn[uIndex].tTxnStruct;
636 pTxn->uHwAddr = RX_DRIVER_COUNTER_ADDRESS;
638 twIf_Transact(pRxXfer->hTwIf, pTxn);
640 TRACE5(pRxXfer->hReport, REPORT_SEVERITY_INFORMATION , "rxXfer_IssueTxn: Counter-Txn: HwAddr=0x%x, Len0=%d, Data0=%d, DrvCount=%d, TxnParams=0x%x\n", pTxn->uHwAddr, pTxn->aLen[0], *(TI_UINT32 *)(pTxn->aBuf[0]), pRxXfer->uDrvRxCntr, pTxn->uTxnParams);
677 static void rxXfer_TxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn)
686 rxXfer_ForwardPacket (pRxXfer, pTxn);
710 static void rxXfer_PktDropTxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn)
718 pTxn->fTxnDoneCb = (TTxnDoneCb)rxXfer_TxnDoneCb;
719 pTxn->hCbHandle = hRxXfer;
737 TTxnStruct* pTxn;
753 pTxn = &(pRxXfer->aTxnStruct[i]);
756 if ((pTxn->aBuf[0] != 0) && (pTxn->fTxnDoneCb == (TTxnDoneCb)rxXfer_TxnDoneCb))
765 if (pTxn->aLen[uBufNum] == 0)
770 pRxParams = (RxIfDescriptor_t *)(pTxn->aBuf[uBufNum]);
775 rxXfer_ForwardPacket (pRxXfer, pTxn);
783 pTxn = &(pRxXfer->aSlaveRegTxn[i].tTxnStruct);
784 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR)
785 BUILD_TTxnStruct(pTxn, SLV_REG_DATA, &pRxXfer->aSlaveRegTxn[i].uRegData, REGISTER_SIZE*2, NULL, NULL)
788 pTxn = &(pRxXfer->aTxnStruct[i]);
789 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_FIXED_ADDR)
790 pTxn->fTxnDoneCb = (TTxnDoneCb)rxXfer_TxnDoneCb;
791 pTxn->hCbHandle = hRxXfer;
794 pTxn = &(pRxXfer->aCounterTxn[i].tTxnStruct);
795 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR)
796 BUILD_TTxnStruct(pTxn, RX_DRIVER_COUNTER_ADDRESS, &pRxXfer->aCounterTxn[i].uCounter, REGISTER_SIZE, NULL, NULL)