Lines Matching refs:pTxn
104 static TI_BOOL busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn);
303 * \param pTxn - The transaction object
307 ETxnStatus busDrv_Transact (TI_HANDLE hBusDrv, TTxnStruct *pTxn)
313 pBusDrv->pCurrTxn = pTxn;
318 bWithinAggregation = busDrv_PrepareTxnParts (pBusDrv, pTxn);
353 * \param pTxn - The transaction object
357 static TI_BOOL busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn)
360 TI_UINT32 uCurrHwAddr = pTxn->uHwAddr;
361 TI_BOOL bFixedHwAddr = TXN_PARAM_GET_FIXED_ADDR(pTxn);
362 TI_BOOL bWrite = (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_WRITE) ? TI_TRUE : TI_FALSE;
371 uBufLen = pTxn->aLen[uBufNum];
382 os_memoryCopy (pBusDrv->hOs, pHostBuf + pBusDrv->uTxnLength, pTxn->aBuf[uBufNum], uBufLen);
390 if (TXN_PARAM_GET_AGGREGATE(pTxn) == TXN_AGGREGATE_ON)
392 TRACE6(pBusDrv->hReport, REPORT_SEVERITY_INFORMATION, "busDrv_PrepareTxnParts: In aggregation so exit, uTxnLength=%d, bWrite=%d, Len0=%d, Len1=%d, Len2=%d, Len3=%d\n", pBusDrv->uTxnLength, bWrite, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3]);
456 pBusDrv->aTxnParts[uPartNum - 1].bMore = TXN_PARAM_GET_MORE(pTxn);
459 TRACE9(pBusDrv->hReport, REPORT_SEVERITY_INFORMATION, "busDrv_PrepareTxnParts: Txn prepared, PartsNum=%d, bWrite=%d, uTxnLength=%d, uRemainderLen=%d, uHwAddr=0x%x, Len0=%d, Len1=%d, Len2=%d, Len3=%d\n", uPartNum, bWrite, pBusDrv->uTxnLength, uRemainderLen, pTxn->uHwAddr, pTxn->aLen[0], pTxn->aLen[1], pTxn->aLen[2], pTxn->aLen[3]);
486 TTxnStruct *pTxn = pBusDrv->pCurrTxn;
498 if (TXN_PARAM_GET_SINGLE_STEP(pTxn))
505 TXN_PARAM_GET_DIRECTION(pTxn),
516 TXN_PARAM_GET_DIRECTION(pTxn),
523 eStatus = sdioAdapt_Transact (TXN_PARAM_GET_FUNC_ID(pTxn),
527 TXN_PARAM_GET_DIRECTION(pTxn),
529 ((TXN_PARAM_GET_FIXED_ADDR(pTxn) == 1) ? 0 : 1),
533 TRACE7(pBusDrv->hReport, REPORT_SEVERITY_INFORMATION, "busDrv_SendTxnParts: PartNum = %d, SingleStep = %d, Direction = %d, HwAddr = 0x%x, HostAddr = 0x%x, Length = %d, BlkMode = %d\n", pBusDrv->uCurrTxnPartsCount-1, TXN_PARAM_GET_SINGLE_STEP(pTxn), TXN_PARAM_GET_DIRECTION(pTxn), pTxnPart->uHwAddr, pTxnPart->pHostAddr, pTxnPart->uLength, pTxnPart->bBlkMode);
548 TXN_PARAM_SET_STATUS(pTxn, TXN_PARAM_STATUS_ERROR);
551 pBusDrv->fTxnDoneCb (pBusDrv->hCbHandle, pTxn);
561 if (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_READ)
569 uBufLen = pTxn->aLen[uBufNum];
577 os_memoryCopy (pBusDrv->hOs, pTxn->aBuf[uBufNum], pDmaBuf, uBufLen);
583 TXN_PARAM_SET_STATUS(pTxn, TXN_PARAM_STATUS_OK);
586 pBusDrv->fTxnDoneCb (pBusDrv->hCbHandle, pTxn);