/hardware/ti/wlan/wl1271/Txn/ |
D | BusDrv.h | 83 #define TXN_PARAM_GET_PRIORITY(pTxn) ( (pTxn->uTxnParams & 0x00000003) >> 0 ) argument 84 #define TXN_PARAM_GET_FUNC_ID(pTxn) ( (pTxn->uTxnParams & 0x0000000C) >> 2 ) argument 85 #define TXN_PARAM_GET_DIRECTION(pTxn) ( (pTxn->uTxnParams & 0x00000010) >> 4 ) argument 86 #define TXN_PARAM_GET_FIXED_ADDR(pTxn) ( (pTxn->uTxnParams & 0x00000020) >> 5 ) argument 87 #define TXN_PARAM_GET_MORE(pTxn) ( (pTxn->uTxnParams & 0x00000040) >> 6 ) argument 88 #define TXN_PARAM_GET_SINGLE_STEP(pTxn) ( (pTxn->uTxnParams & 0x00000080) >> 7 ) argument 89 #define TXN_PARAM_GET_STATUS(pTxn) ( (pTxn->uTxnParams & 0x00000F00) >> 8 ) argument 90 #define TXN_PARAM_GET_AGGREGATE(pTxn) ( (pTxn->uTxnParams & 0x00001000) >> 12 ) argument 91 #define TXN_PARAM_GET_END_OF_BURST(pTxn) ( (pTxn->uTxnParams & 0x00002000) >> 13 ) argument 96 #define TXN_PARAM_SET_PRIORITY(pTxn, uValue) ( pTxn->uTxnParams = (pTxn->uTxnParams & ~0x0000000… argument [all …]
|
D | SdioBusDrv.c | 104 static TI_BOOL busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn); 307 ETxnStatus busDrv_Transact (TI_HANDLE hBusDrv, TTxnStruct *pTxn) in busDrv_Transact() argument 313 pBusDrv->pCurrTxn = pTxn; in busDrv_Transact() 318 bWithinAggregation = busDrv_PrepareTxnParts (pBusDrv, pTxn); in busDrv_Transact() 357 static TI_BOOL busDrv_PrepareTxnParts (TBusDrvObj *pBusDrv, TTxnStruct *pTxn) in busDrv_PrepareTxnParts() argument 360 TI_UINT32 uCurrHwAddr = pTxn->uHwAddr; in busDrv_PrepareTxnParts() 361 TI_BOOL bFixedHwAddr = TXN_PARAM_GET_FIXED_ADDR(pTxn); in busDrv_PrepareTxnParts() 362 …TI_BOOL bWrite = (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_WRITE) ? TI_TRUE : TI_FAL… in busDrv_PrepareTxnParts() 371 uBufLen = pTxn->aLen[uBufNum]; in busDrv_PrepareTxnParts() 382 … os_memoryCopy (pBusDrv->hOs, pHostBuf + pBusDrv->uTxnLength, pTxn->aBuf[uBufNum], uBufLen); in busDrv_PrepareTxnParts() [all …]
|
D | WspiBusDrv.c | 277 ETxnStatus busDrv_Transact (TI_HANDLE hBusDrv, TTxnStruct *pTxn) in busDrv_Transact() argument 283 pBusDrv->pCurrTxn = pTxn; in busDrv_Transact() 289 if (TXN_PARAM_GET_DIRECTION(pTxn) == TXN_DIRECTION_WRITE) in busDrv_Transact() 300 tempWriteBuff = pTxn->aBuf[0]; in busDrv_Transact() 304 …I_WriteAsync(pBusDrv->hWspi, pTxn->uHwAddr,tempWriteBuff,pTxn->aLen[0], &cb, TI_TRUE, TI_TRUE,TXN_… in busDrv_Transact() 316 tempReadBuff = pTxn->aBuf[0]; in busDrv_Transact() 319 …SPI_ReadAsync(pBusDrv->hWspi, pTxn->uHwAddr,tempReadBuff,pTxn->aLen[0], &cb, TI_TRUE, TI_TRUE,TXN_… in busDrv_Transact()
|
D | TxnQueue.c | 419 ETxnStatus txnQ_Transact (TI_HANDLE hTxnQ, TTxnStruct *pTxn) in txnQ_Transact() argument 422 TI_UINT32 uFuncId = TXN_PARAM_GET_FUNC_ID(pTxn); in txnQ_Transact() 425 if (TXN_PARAM_GET_SINGLE_STEP(pTxn)) in txnQ_Transact() 427 pTxnQ->aFuncInfo[uFuncId].pSingleStep = pTxn; in txnQ_Transact() 433 TI_HANDLE hQueue = pTxnQ->aTxnQueues[uFuncId][TXN_PARAM_GET_PRIORITY(pTxn)]; in txnQ_Transact() 435 eStatus = que_Enqueue (hQueue, (TI_HANDLE)pTxn); in txnQ_Transact() 439 …Transact(): Enqueue failed, pTxn=0x%x, HwAddr=0x%x, Len0=%d\n", pTxn, pTxn->uHwAddr, pTxn->aLen[0]… in txnQ_Transact() 446 rc = txnQ_RunScheduler (pTxnQ, pTxn); in txnQ_Transact() 489 TTxnStruct *pTxn = (TTxnStruct *)hTxn; in txnQ_TxnDoneCb() local 490 TI_UINT32 uFuncId = TXN_PARAM_GET_FUNC_ID(pTxn); in txnQ_TxnDoneCb() [all …]
|
D | TxnQueue.h | 232 ETxnStatus txnQ_Transact (TI_HANDLE hTxnQ, TTxnStruct *pTxn);
|
/hardware/ti/wlan/wl1271/TWD/TwIf/ |
D | TwIf.c | 190 static ETxnStatus twIf_SendTransaction (TTwIfObj *pTwIf, TTxnStruct *pTxn); 192 static void twIf_TxnDoneCb (TI_HANDLE hTwIf, TTxnStruct *pTxn); 667 ETxnStatus twIf_Transact (TI_HANDLE hTwIf, TTxnStruct *pTxn) in twIf_Transact() argument 672 … if ((pTxn->uHwAddr >= pTwIf->uMemAddr2) && (pTxn->uHwAddr <= pTwIf->uMemAddr2 + pTwIf->uMemSize2)) in twIf_Transact() 674 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr2 + pTwIf->uMemSize1; in twIf_Transact() 679 pTxn->uHwAddr = pTxn->uHwAddr - pTwIf->uMemAddr1; in twIf_Transact() 683 TXN_PARAM_SET_MORE(pTxn, 1); in twIf_Transact() 684 TXN_PARAM_SET_SINGLE_STEP(pTxn, 0); in twIf_Transact() 687 return twIf_SendTransaction (pTwIf, pTxn); in twIf_Transact() 690 ETxnStatus twIf_TransactReadFWStatus (TI_HANDLE hTwIf, TTxnStruct *pTxn) in twIf_TransactReadFWStatus() argument [all …]
|
D | TwIf.h | 96 ETxnStatus twIf_Transact (TI_HANDLE hTwIf, TTxnStruct *pTxn); 97 ETxnStatus twIf_TransactReadFWStatus (TI_HANDLE hTwIf, TTxnStruct *pTxn);
|
/hardware/ti/wlan/wl1271/TWD/FW_Transfer/ |
D | RxXfer.c | 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) in rxXfer_ForwardPacket() argument 315 RxIfDescriptor_t *pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[0]); in rxXfer_ForwardPacket() 324 if (pTxn->aLen[uBufNum] == 0) in rxXfer_ForwardPacket() 331 pRxInfo = (RxIfDescriptor_t*)(pTxn->aBuf[uBufNum]); in rxXfer_ForwardPacket() 335 if (pTxn->aLen[uBufNum] != uLenFromRxInfo) in rxXfer_ForwardPacket() 337 …! RxInfoLength=%d, ShortDescLen=%d, RxInfoStatus=0x%x\n", uLenFromRxInfo, pTxn->aLen[uBufNum], pRx… in rxXfer_ForwardPacket() 341 pRxInfo->length = ENDIAN_HANDLE_WORD(pTxn->aLen[uBufNum] >> 2); in rxXfer_ForwardPacket() [all …]
|
D | HwInit.c | 168 #define HW_INIT_PTXN_SET(pHwInit, pTxn) pTxn = (TTxnStruct*)&(pHwInit->aHwInitTxn[pHwInit->uTxnInd… argument 170 #define BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, uAddr, uVal, uSize, direction, fCB, hCB) \ argument 171 HW_INIT_PTXN_SET(pHwInit, pTxn) \ 172 TXN_PARAM_SET_DIRECTION(pTxn, direction); \ 174 … BUILD_TTxnStruct(pTxn, uAddr, &(pHwInit->aHwInitTxn[pHwInit->uTxnIndex].uData), uSize, fCB, hCB) 176 #define BUILD_HW_INIT_FW_STATIC_TXN(pHwInit, pTxn, uAddr, fCB, hCB) \ argument 177 HW_INIT_PTXN_SET(pHwInit, pTxn) \ 178 TXN_PARAM_SET_DIRECTION(pTxn, TXN_DIRECTION_READ); \ 179 …BUILD_TTxnStruct(pTxn, uAddr, &(pHwInit->tFwStaticTxn.tFwStaticInfo), sizeof(FwStaticData_t), fCB,… 181 #define BUILD_HW_INIT_FW_DL_TXN(pHwInit, pTxn, uAddr, uVal, uSize, direction, fCB, hCB) \ argument [all …]
|
D | fwDebug.c | 70 static void fwDbg_WriteAddrCb (TI_HANDLE hFwDebug,TTxnStruct* pTxn); 71 static void fwDbg_ReadAddrCb (TI_HANDLE hFwDebug,TTxnStruct* pTxn); 181 TTxnStruct *pTxn; in fwDbg_WriteAddr() local 184 pTxn = &pFwDebug->tTxn; in fwDbg_WriteAddr() 198 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR) in fwDbg_WriteAddr() 200 … BUILD_TTxnStruct(pTxn, Address, pFwDebug->pDMABuf, Length,(TTxnDoneCb)fwDbg_WriteAddrCb, pFwDebug) in fwDbg_WriteAddr() 201 rc = twIf_Transact(pFwDebug->hTwif,pTxn); in fwDbg_WriteAddr() 232 TTxnStruct *pTxn; in fwDbg_ReadAddr() local 234 pTxn = &pFwDebug->tTxn; in fwDbg_ReadAddr() 247 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_INC_ADDR) in fwDbg_ReadAddr() [all …]
|
D | txXfer.c | 93 static void txXfer_TransferDoneCb (TI_HANDLE hTxXfer, TTxnStruct *pTxn); 137 TTxnStruct *pTxn; in txXfer_Init() local 147 pTxn = &(pTxXfer->aPktsCntrTxn[i].tTxnStruct); in txXfer_Init() 148 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR) in txXfer_Init() 149 …BUILD_TTxnStruct(pTxn, HOST_WR_ACCESS_REG, &pTxXfer->aPktsCntrTxn[i].uPktsCntr, REGISTER_SIZE, NUL… in txXfer_Init() 299 TTxnStruct *pTxn; in txXfer_SendAggregatedPkts() local 308 pTxn = (TTxnStruct *)pCurrPkt; in txXfer_SendAggregatedPkts() 313 TXN_PARAM_SET_AGGREGATE(pTxn, TXN_AGGREGATE_ON); in txXfer_SendAggregatedPkts() 314 pTxn->fTxnDoneCb = NULL; in txXfer_SendAggregatedPkts() 320 TXN_PARAM_SET_AGGREGATE(pTxn, TXN_AGGREGATE_OFF); in txXfer_SendAggregatedPkts() [all …]
|
D | txResult.c | 179 TTxnStruct *pTxn; in txResult_Init() local 185 pTxn = &pTxResult->tHostCounterWriteTxn.tTxnStruct; in txResult_Init() 186 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR) in txResult_Init() 187 BUILD_TTxnStruct(pTxn, 0, &pTxResult->tHostCounterWriteTxn.uCounter, REGISTER_SIZE, NULL, NULL) in txResult_Init() 190 pTxn = &pTxResult->tResultsInfoReadTxn.tTxnStruct; in txResult_Init() 191 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_INC_ADDR) in txResult_Init() 192 BUILD_TTxnStruct(pTxn, in txResult_Init() 309 TTxnStruct *pTxn = &(pTxResult->tResultsInfoReadTxn.tTxnStruct); in txResult_StateMachine() local 320 pTxn->uHwAddr = pTxResult->uTxResultInfoAddr; in txResult_StateMachine() 321 eTwifStatus = twIf_Transact (pTxResult->hTwIf, pTxn); in txResult_StateMachine() [all …]
|
D | eventMbox.c | 357 TTxnStruct *pTxn; in eventMbox_InitMboxAddr() local 361 pTxn = &pEventMbox->iTxnGenRegSize.tTxnReg; in eventMbox_InitMboxAddr() 368 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_INC_ADDR) in eventMbox_InitMboxAddr() 370 …BUILD_TTxnStruct(pTxn, REG_EVENT_MAILBOX_PTR, &pEventMbox->iTxnGenRegSize.iRegBuffer, REGISTER_SIZ… in eventMbox_InitMboxAddr() 371 rc = twIf_Transact(pEventMbox->hTwif,pTxn); in eventMbox_InitMboxAddr() 614 TTxnStruct *pTxn; in eventMbox_Handle() local 617 pTxn = &pEventMbox->iTxnEventMbox.tEventMbox; in eventMbox_Handle() 646 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_INC_ADDR) in eventMbox_Handle() 648 …BUILD_TTxnStruct(pTxn, pEventMbox->EventMboxAddr[pEventMbox->ActiveMbox], &pEventMbox->iTxnEventMb… in eventMbox_Handle() 649 rc = twIf_Transact(pEventMbox->hTwif,pTxn); in eventMbox_Handle() [all …]
|
D | FwEvent.c | 225 TTxnStruct* pTxn; in fwEvent_Init() local 252 pTxn = (TTxnStruct*)&pFwEvent->tMaskTxn.tTxnStruct; in fwEvent_Init() 253 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_INC_ADDR) in fwEvent_Init() 254 BUILD_TTxnStruct(pTxn, HINT_MASK, &pFwEvent->tMaskTxn.uData, REGISTER_SIZE, NULL, NULL) in fwEvent_Init() 261 pTxn = (TTxnStruct*)&pFwEvent->tFwStatusTxn.tTxnStruct; in fwEvent_Init() 262 TXN_PARAM_SET(pTxn, TXN_HIGH_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_READ, TXN_INC_ADDR) in fwEvent_Init() 263 …BUILD_TTxnStruct(pTxn, FW_STATUS_ADDR, &pFwEvent->tFwStatusTxn.tFwStatus, sizeof(FwStatus_t), (TTx… in fwEvent_Init()
|
D | CmdMBox.c | 69 static void cmdMbox_ConfigHwCb (TI_HANDLE hCmdMbox, TTxnStruct *pTxn); 393 static void cmdMbox_ConfigHwCb (TI_HANDLE hCmdMbox, TTxnStruct *pTxn) in cmdMbox_ConfigHwCb() argument
|
/hardware/ti/wlan/wl1271/TWD/Data_Service/ |
D | txCtrlBlk.c | 129 TTxnStruct *pTxn; in txCtrlBlk_Init() local 145 pTxn = &(pTxCtrlBlk->aTxCtrlBlkTbl[entry].tTxnStruct); in txCtrlBlk_Init() 146 TXN_PARAM_SET(pTxn, TXN_LOW_PRIORITY, TXN_FUNC_ID_WLAN, TXN_DIRECTION_WRITE, TXN_FIXED_ADDR) in txCtrlBlk_Init()
|