Lines Matching refs:pTxn
143 static void rxXfer_TxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct* pTxn);
144 static void rxXfer_PktDropTxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn);
146 static void rxXfer_ForwardPacket (TRxXfer* pRxXfer, TTxnStruct* pTxn);
312 static void rxXfer_ForwardPacket (TRxXfer *pRxXfer, TTxnStruct *pTxn)
315 RxIfDescriptor_t *pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[0]);
324 if (pTxn->aLen[uBufNum] == 0)
331 pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[uBufNum]);
335 if (pTxn->aLen[uBufNum] != uLenFromRxInfo)
337 TRACE3(pRxXfer->hReport, REPORT_SEVERITY_ERROR , "rxXfer_ForwardPacket: Bad Length!! RxInfoLength=%d, ShortDescLen=%d, RxInfoStatus=0x%x\n", uLenFromRxInfo, pTxn->aLen[uBufNum], pRxInfo->status);
341 pRxInfo->length = ENDIAN_HANDLE_WORD(pTxn->aLen[uBufNum] >> 2);
357 if (TXN_PARAM_GET_END_OF_BURST(pTxn) && (uBufNum == (MAX_XFER_BUFS - 1) || pTxn->aLen[uBufNum + 1] == 0))
359 TXN_PARAM_SET_END_OF_BURST(pTxn, 0);
363 RxQueue_ReceivePacket (pRxXfer->hRxQueue, (const void *)pTxn->aBuf[uBufNum]);
367 pTxn->aBuf[0] = 0;
451 TTxnStruct * pTxn = NULL;
506 pTxn = (TTxnStruct*)&(pRxXfer->aTxnStruct[pRxXfer->uCurrTxnIndex]);
507 pTxn->uHwAddr = SLV_MEM_DATA;
512 pTxn->aBuf[uAggregPktsNum] = pHostBuf + ALIGNMENT_SIZE(uRxDesc);
513 pTxn->aLen[uAggregPktsNum] = uBuffSize;
568 TXN_PARAM_SET_END_OF_BURST(pTxn, 1);
573 pTxn->aLen[uAggregPktsNum] = 0;
581 rxXfer_ForwardPacket (pRxXfer, pTxn);
611 pTxn = (TTxnStruct*)&pRxXfer->aTxnStruct[pRxXfer->uCurrTxnIndex];
612 BUILD_TTxnStruct(pTxn, SLV_MEM_DATA, pRxXfer->aTempBuffer, uBuffSize, (TTxnDoneCb)rxXfer_PktDropTxnDoneCb, hRxXfer)
652 TTxnStruct *pTxn;
656 pTxn = &pRxXfer->aSlaveRegTxn[uIndex].tTxnStruct;
657 pTxn->uHwAddr = SLV_REG_DATA;
660 twIf_Transact(pRxXfer->hTwIf, pTxn);
663 pTxn = &pRxXfer->aTxnStruct[uIndex];
664 eStatus = twIf_Transact(pRxXfer->hTwIf, pTxn);
668 pTxn = &pRxXfer->aCounterTxn[uIndex].tTxnStruct;
669 pTxn->uHwAddr = RX_DRIVER_COUNTER_ADDRESS;
671 twIf_Transact(pRxXfer->hTwIf, pTxn);
673 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);
710 static void rxXfer_TxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn)
719 rxXfer_ForwardPacket (pRxXfer, pTxn);
743 static void rxXfer_PktDropTxnDoneCb (TI_HANDLE hRxXfer, TTxnStruct *pTxn)
751 pTxn->fTxnDoneCb = (TTxnDoneCb)rxXfer_TxnDoneCb;
752 pTxn->hCbHandle = hRxXfer;
770 TTxnStruct* pTxn;
781 pTxn = &(pRxXfer->aTxnStruct[i]);
784 if ((pTxn->aBuf[0] != 0) && (pTxn->fTxnDoneCb == (TTxnDoneCb)rxXfer_TxnDoneCb))
793 if (pTxn->aLen[uBufNum] == 0)
798 pRxParams = (RxIfDescriptor_t *)(pTxn->aBuf[uBufNum]);
803 rxXfer_ForwardPacket (pRxXfer, pTxn);
811 pTxn = &(pRxXfer->aSlaveRegTxn[i].tTxnStruct);
812 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR)
813 BUILD_TTxnStruct(pTxn, SLV_REG_DATA, &pRxXfer->aSlaveRegTxn[i].uRegData, REGISTER_SIZE*2, NULL, NULL)
816 pTxn = &(pRxXfer->aTxnStruct[i]);
817 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_FIXED_ADDR)
818 pTxn->fTxnDoneCb = (TTxnDoneCb)rxXfer_TxnDoneCb;
819 pTxn->hCbHandle = hRxXfer;
822 pTxn = &(pRxXfer->aCounterTxn[i].tTxnStruct);
823 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR)
824 BUILD_TTxnStruct(pTxn, RX_DRIVER_COUNTER_ADDRESS, &pRxXfer->aCounterTxn[i].uCounter, REGISTER_SIZE, NULL, NULL)