Lines Matching refs:pTxn
103 static void busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn);
291 * \param pTxn - The transaction object
295 ETxnStatus busDrv_Transact (TI_HANDLE hBusDrv, TTxnStruct *pTxn)
300 pBusDrv->pCurrTxn = pTxn;
305 busDrv_PrepareTxnParts (pBusDrv, pTxn);
332 * \param pTxn - The transaction object
336 static void busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn)
341 TI_UINT32 uCurrHwAddr = pTxn->uHwAddr;
342 TI_BOOL bFixedHwAddr = TXN_PARAM_GET_FIXED_ADDR(pTxn);
350 uBufLen = pTxn->aLen[uBufNum];
359 if (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_WRITE)
361 os_memoryCopy (pBusDrv->hOs, pHostBuf + uTxnLength, pTxn->aBuf[uBufNum], uBufLen);
429 pBusDrv->aTxnParts[uPartNum - 1].bMore = TXN_PARAM_GET_MORE(pTxn);
452 TTxnStruct *pTxn = pBusDrv->pCurrTxn;
464 if (TXN_PARAM_GET_SINGLE_STEP(pTxn))
471 TXN_PARAM_GET_DIRECTION(pTxn),
482 TXN_PARAM_GET_DIRECTION(pTxn),
489 eStatus = sdioAdapt_Transact (TXN_PARAM_GET_FUNC_ID(pTxn),
493 TXN_PARAM_GET_DIRECTION(pTxn),
495 ((TXN_PARAM_GET_FIXED_ADDR(pTxn) == 1) ? 0 : 1),
499 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);
514 TXN_PARAM_SET_STATUS(pTxn, TXN_PARAM_STATUS_ERROR);
517 pBusDrv->fTxnDoneCb (pBusDrv->hCbHandle, pTxn);
527 if (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_READ)
535 uBufLen = pTxn->aLen[uBufNum];
543 os_memoryCopy (pBusDrv->hOs, pTxn->aBuf[uBufNum], pDmaBuf, uBufLen);
549 TXN_PARAM_SET_STATUS(pTxn, TXN_PARAM_STATUS_OK);
552 pBusDrv->fTxnDoneCb (pBusDrv->hCbHandle, pTxn);