Lines Matching refs:pTxn
190 static ETxnStatus twIf_SendTransaction (TTwIfObj *pTwIf, TTxnStruct *pTxn);
192 static void twIf_TxnDoneCb (TI_HANDLE hTwIf, TTxnStruct *pTxn);
663 * \param pTxn - The transaction object
667 ETxnStatus twIf_Transact (TI_HANDLE hTwIf, TTxnStruct *pTxn)
672 if ((pTxn->uHwAddr >= pTwIf->uMemAddr2) && (pTxn->uHwAddr <= pTwIf->uMemAddr2 + pTwIf->uMemSize2))
674 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr2 + pTwIf->uMemSize1;
679 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr1;
683 TXN_PARAM_SET_MORE(pTxn, 1);
684 TXN_PARAM_SET_SINGLE_STEP(pTxn, 0);
687 return twIf_SendTransaction (pTwIf, pTxn);
690 ETxnStatus twIf_TransactReadFWStatus (TI_HANDLE hTwIf, TTxnStruct *pTxn)
695 TXN_PARAM_SET_MORE(pTxn, 1);
696 TXN_PARAM_SET_SINGLE_STEP(pTxn, 0);
699 return twIf_SendTransaction (pTwIf, pTxn);
712 * \param pTxn - The transaction object
716 static ETxnStatus twIf_SendTransaction (TTwIfObj *pTwIf, TTxnStruct *pTxn)
723 if (pTxn->uHwAddr & 0x3)
725 TRACE2(pTwIf->hReport, REPORT_SEVERITY_ERROR, "twIf_SendTransaction: Unaligned HwAddr! HwAddr=0x%x, Params=0x%x\n", pTxn->uHwAddr, pTxn->uTxnParams);
736 eStatus = txnQ_Transact(pTwIf->hTxnQ, pTxn);
743 COPY_WLAN_LONG(&data,&(pTxn->aBuf[0]));
744 TRACE8(pTwIf->hReport, REPORT_SEVERITY_INFORMATION, "twIf_SendTransaction: Status = %d, Params=0x%x, HwAddr=0x%x, Len0=%d, Len1=%d, Len2=%d, Len3=%d, Data=0x%x \n", eStatus, pTxn->uTxnParams, pTxn->uHwAddr, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3],data);
770 TRACE6(pTwIf->hReport, REPORT_SEVERITY_ERROR, "twIf_SendTransaction: Txn failed!! Params=0x%x, HwAddr=0x%x, Len0=%d, Len1=%d, Len2=%d, Len3=%d\n", pTxn->uTxnParams, pTxn->uHwAddr, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3]);
850 * \param pTxn - The completed transaction object
854 static void twIf_TxnDoneCb (TI_HANDLE hTwIf, TTxnStruct *pTxn)
860 TRACE6(pTwIf->hReport, REPORT_SEVERITY_INFORMATION, "twIf_TxnDoneCb: Params=0x%x, HwAddr=0x%x, Len0=%d, Len1=%d, Len2=%d, Len3=%d\n", pTxn->uTxnParams, pTxn->uHwAddr, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3]);
864 if (TXN_PARAM_GET_STATUS(pTxn) == TXN_PARAM_STATUS_RECOVERY)
877 if (TXN_PARAM_GET_SINGLE_STEP(pTxn))
882 if (pTxn->fTxnDoneCb)
888 eStatus = que_Enqueue (pTwIf->hTxnDoneQueue, (TI_HANDLE)pTxn);
891 TRACE3(pTwIf->hReport, REPORT_SEVERITY_ERROR, "twIf_TxnDoneCb(): Enqueue failed, pTxn=0x%x, HwAddr=0x%x, Len0=%d\n", pTxn, pTxn->uHwAddr, pTxn->aLen[0]);
928 TTxnStruct *pTxn;
949 pTxn = (TTxnStruct *) que_Dequeue (pTwIf->hTxnDoneQueue);
953 if (pTxn != NULL)
963 TRACE4(pTwIf->hReport, REPORT_SEVERITY_INFORMATION, "twIf_HandleTxnDone: Completed-Txn: Params=0x%x, HwAddr=0x%x, Len0=%d, fTxnDoneCb=0x%x\n", pTxn->uTxnParams, pTxn->uHwAddr, pTxn->aLen[0], pTxn->fTxnDoneCb);
966 if (TXN_PARAM_GET_STATUS(pTxn) == TXN_PARAM_STATUS_ERROR)
968 TRACE6(pTwIf->hReport, REPORT_SEVERITY_ERROR, "twIf_HandleTxnDone: Txn failed!! Params=0x%x, HwAddr=0x%x, Len0=%d, Len1=%d, Len2=%d, Len3=%d\n", pTxn->uTxnParams, pTxn->uHwAddr, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3]);
979 if (pTxn->fTxnDoneCb != NULL)
981 ((TTxnDoneCb)(pTxn->fTxnDoneCb)) (pTxn->hCbHandle, pTxn);
991 if (pTxn == NULL)
1012 TTxnStruct *pTxn;
1019 pTxn = (TTxnStruct *) que_Dequeue (pTwIf->hTxnDoneQueue);
1023 if (pTxn != NULL)
1033 * do not call pTxn->fTxnDoneCb (pTxn->hCbHandle, pTxn) callback
1037 if (pTxn == NULL)