Lines Matching refs:pTxn
184 static ETxnStatus twIf_SendTransaction (TTwIfObj *pTwIf, TTxnStruct *pTxn);
186 static void twIf_TxnDoneCb (TI_HANDLE hTwIf, TTxnStruct *pTxn);
621 * \param pTxn - The transaction object
625 ETxnStatus twIf_Transact (TI_HANDLE hTwIf, TTxnStruct *pTxn)
630 if ((pTxn->uHwAddr >= pTwIf->uMemAddr2) && (pTxn->uHwAddr <= pTwIf->uMemAddr2 + pTwIf->uMemSize2))
632 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr2 + pTwIf->uMemSize1;
637 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr1;
641 TXN_PARAM_SET_MORE(pTxn, 1);
642 TXN_PARAM_SET_SINGLE_STEP(pTxn, 0);
645 return twIf_SendTransaction (pTwIf, pTxn);
648 ETxnStatus twIf_TransactReadFWStatus (TI_HANDLE hTwIf, TTxnStruct *pTxn)
653 TXN_PARAM_SET_MORE(pTxn, 1);
654 TXN_PARAM_SET_SINGLE_STEP(pTxn, 0);
657 return twIf_SendTransaction (pTwIf, pTxn);
670 * \param pTxn - The transaction object
674 static ETxnStatus twIf_SendTransaction (TTwIfObj *pTwIf, TTxnStruct *pTxn)
681 if (pTxn->uHwAddr & 0x3)
683 TRACE2(pTwIf->hReport, REPORT_SEVERITY_ERROR, "twIf_SendTransaction: Unaligned HwAddr! HwAddr=0x%x, Params=0x%x\n", pTxn->uHwAddr, pTxn->uTxnParams);
694 eStatus = txnQ_Transact(pTwIf->hTxnQ, pTxn);
701 COPY_WLAN_LONG(&data,&(pTxn->aBuf[0]));
702 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);
728 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]);
808 * \param pTxn - The completed transaction object
812 static void twIf_TxnDoneCb (TI_HANDLE hTwIf, TTxnStruct *pTxn)
818 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]);
822 if (TXN_PARAM_GET_STATUS(pTxn) == TXN_PARAM_STATUS_RECOVERY)
835 if (TXN_PARAM_GET_SINGLE_STEP(pTxn))
840 if (pTxn->fTxnDoneCb)
844 que_Enqueue (pTwIf->hTxnDoneQueue, (TI_HANDLE)pTxn);
880 TTxnStruct *pTxn;
896 pTxn = (TTxnStruct *) que_Dequeue (pTwIf->hTxnDoneQueue);
900 if (pTxn != NULL)
910 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);
913 if (TXN_PARAM_GET_STATUS(pTxn) == TXN_PARAM_STATUS_ERROR)
915 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]);
926 if (pTxn->fTxnDoneCb != NULL)
928 ((TTxnDoneCb)(pTxn->fTxnDoneCb)) (pTxn->hCbHandle, pTxn);
938 if (pTxn == NULL)
959 TTxnStruct *pTxn;
966 pTxn = (TTxnStruct *) que_Dequeue (pTwIf->hTxnDoneQueue);
970 if (pTxn != NULL)
980 * do not call pTxn->fTxnDoneCb (pTxn->hCbHandle, pTxn) callback
984 if (pTxn == NULL)