/hardware/ti/wlan/wl1271/stad/src/Data_link/ |
D | txCtrl.c | 73 static void txCtrl_BuildDataPkt (txCtrl_t *pTxCtrl, TTxCtrlBlk *pPktCtrlBlk, 75 static void txCtrl_BuildMgmtPkt (txCtrl_t *pTxCtrl, TTxCtrlBlk *pPktCtrlBlk, TI_UINT32 uAc); 81 TTxCtrlBlk *pPktCtrlBlk, 106 static inline TI_UINT16 txCtrl_TranslateLengthToFw (TTxCtrlBlk *pPktCtrlBlk) in txCtrl_TranslateLengthToFw() argument 108 TI_UINT16 uPktLen = pPktCtrlBlk->tTxDescriptor.length; in txCtrl_TranslateLengthToFw() 113 …uLastWordPad = uPktLen - pPktCtrlBlk->tTxDescriptor.length; /* Find number of alignment bytes … in txCtrl_TranslateLengthToFw() 115 …pPktCtrlBlk->tTxDescriptor.length = ENDIAN_HANDLE_WORD(uPktLen);/* Save FW format length in descri… in txCtrl_TranslateLengthToFw() 120 if (pPktCtrlBlk->tTxnStruct.aLen[uBufNum] == 0) in txCtrl_TranslateLengthToFw() 126 pPktCtrlBlk->tTxnStruct.aLen[uBufNum - 1] += uLastWordPad; in txCtrl_TranslateLengthToFw() 132 static inline void txCtrl_TranslateTimeToFw (txCtrl_t *pTxCtrl, TTxCtrlBlk *pPktCtrlBlk, TI_UINT16 … in txCtrl_TranslateTimeToFw() argument [all …]
|
D | txCtrl_Api.h | 64 #define BUILD_TX_TWO_BUF_PKT_BDL(pPktCtrlBlk, pHdrBuf, uHdrLen, pDataBuf, uDataLen) \ argument 65 pPktCtrlBlk->tTxnStruct.aBuf[0] = (TI_UINT8 *) (pHdrBuf); \ 66 pPktCtrlBlk->tTxnStruct.aLen[0] = (TI_UINT16 ) (uHdrLen); \ 67 pPktCtrlBlk->tTxnStruct.aBuf[1] = (TI_UINT8 *) (pDataBuf); \ 68 pPktCtrlBlk->tTxnStruct.aLen[1] = (TI_UINT16 ) (uDataLen); \ 69 pPktCtrlBlk->tTxnStruct.aLen[2] = 0; \ 70 pPktCtrlBlk->tTxDescriptor.length = (TI_UINT16)((uHdrLen) + (uDataLen)); 84 TI_STATUS txCtrl_XmitData (TI_HANDLE hTxCtrl, TTxCtrlBlk *pPktCtrlBlk); 85 TI_STATUS txCtrl_XmitMgmt (TI_HANDLE hTxCtrl, TTxCtrlBlk *pPktCtrlBlk); 87 void * txCtrl_AllocPacketBuffer (TI_HANDLE hTxCtrl, TTxCtrlBlk *pPktCtrlBlk, TI_UINT32 uPacketLe… [all …]
|
D | txDataQueue.c | 280 TTxCtrlBlk *pPktCtrlBlk; in txDataQ_ClearQueues() local 288 pPktCtrlBlk = (TTxCtrlBlk *) que_Dequeue(pTxDataQ->aQueues[uQueId]); in txDataQ_ClearQueues() 290 if (pPktCtrlBlk != NULL) { in txDataQ_ClearQueues() 291 txCtrl_FreePacket (pTxDataQ->hTxCtrl, pPktCtrlBlk, TI_NOK); in txDataQ_ClearQueues() 293 } while (pPktCtrlBlk != NULL); in txDataQ_ClearQueues() 314 TI_STATUS txDataQ_InsertPacket (TI_HANDLE hTxDataQ, TTxCtrlBlk *pPktCtrlBlk, TI_UINT8 uPacketDtag) in txDataQ_InsertPacket() argument 317 TEthernetHeader *pEthHead = (TEthernetHeader *)(pPktCtrlBlk->tTxnStruct.aBuf[0]); in txDataQ_InsertPacket() 330 pPktCtrlBlk->tTxPktParams.uPktType = TX_PKT_TYPE_EAPOL; in txDataQ_InsertPacket() 332 return txMgmtQ_Xmit (pTxDataQ->hTxMgmtQ, pPktCtrlBlk, TI_TRUE); in txDataQ_InsertPacket() 336 pPktCtrlBlk->tTxPktParams.uPktType = TX_PKT_TYPE_ETHER; in txDataQ_InsertPacket() [all …]
|
D | txMgmtQueue.c | 307 TTxCtrlBlk *pPktCtrlBlk; in txMgmtQ_ClearQueues() local 315 pPktCtrlBlk = (TTxCtrlBlk *)que_Dequeue(pTxMgmtQ->aQueues[uQueId]); in txMgmtQ_ClearQueues() 317 if (pPktCtrlBlk != NULL) { in txMgmtQ_ClearQueues() 318 txCtrl_FreePacket (pTxMgmtQ->hTxCtrl, pPktCtrlBlk, TI_NOK); in txMgmtQ_ClearQueues() 320 } while (pPktCtrlBlk != NULL); in txMgmtQ_ClearQueues() 348 TI_STATUS txMgmtQ_Xmit (TI_HANDLE hTxMgmtQ, TTxCtrlBlk *pPktCtrlBlk, TI_BOOL bExternalContext) in txMgmtQ_Xmit() argument 356 pPktCtrlBlk->tTxDescriptor.tid = MGMT_QUEUES_TID; in txMgmtQ_Xmit() 359 …uQueId = (pPktCtrlBlk->tTxPktParams.uPktType == TX_PKT_TYPE_MGMT) ? QUEUE_TYPE_MGMT : QUEUE_TYPE_E… in txMgmtQ_Xmit() 365 eStatus = que_Enqueue (pTxMgmtQ->aQueues[uQueId], (TI_HANDLE)pPktCtrlBlk); in txMgmtQ_Xmit() 398 txCtrl_FreePacket (pTxMgmtQ->hTxCtrl, pPktCtrlBlk, TI_NOK); in txMgmtQ_Xmit() [all …]
|
D | TxDataClsfr.c | 192 TTxCtrlBlk *pPktCtrlBlk, in getIpAndUdpHeader() argument 196 TI_UINT8 *pEthHead = pPktCtrlBlk->tTxnStruct.aBuf[0]; in getIpAndUdpHeader() 207 *pIpHeader = pPktCtrlBlk->tTxnStruct.aBuf[1]; in getIpAndUdpHeader() 211 if (ipHeaderLen == pPktCtrlBlk->tTxnStruct.aLen[1]) in getIpAndUdpHeader() 213 *pUdpHeader = pPktCtrlBlk->tTxnStruct.aBuf[2]; in getIpAndUdpHeader() 243 TI_STATUS txDataClsfr_ClassifyTxPacket (TI_HANDLE hTxDataQ, TTxCtrlBlk *pPktCtrlBlk, TI_UINT8 uPack… in txDataClsfr_ClassifyTxPacket() argument 254 pPktCtrlBlk->tTxDescriptor.tid = 0; in txDataClsfr_ClassifyTxPacket() 265 pPktCtrlBlk->tTxDescriptor.tid = uPacketDtag; in txDataClsfr_ClassifyTxPacket() 270 if( (getIpAndUdpHeader(pTxDataQ, pPktCtrlBlk, &pIpHeader, &pUdpHeader) != TI_OK) in txDataClsfr_ClassifyTxPacket() 286 pPktCtrlBlk->tTxDescriptor.tid = pClsfrParams->ClsfrTable[i].DTag; in txDataClsfr_ClassifyTxPacket() [all …]
|
D | txDataQueue_Api.h | 58 TI_STATUS txDataQ_InsertPacket (TI_HANDLE hTxDataQ, TTxCtrlBlk *pPktCtrlBlk, TI_UINT8 uPacketDtag); 75 TI_STATUS txDataClsfr_ClassifyTxPacket (TI_HANDLE hTxDataQ, TTxCtrlBlk *pPktCtrlBlk, TI_UINT8 uPack…
|
D | txMgmtQueue_Api.h | 67 TI_STATUS txMgmtQ_Xmit (TI_HANDLE hTxMgmtQ, TTxCtrlBlk *pPktCtrlBlk, TI_BOOL bExternalContext);
|
D | txCtrl.h | 49 extern void wlanDrvIf_FreeTxPacket (TI_HANDLE hOs, TTxCtrlBlk *pPktCtrlBlk, TI_STATUS eStatus);
|
/hardware/ti/wlan/wl1271/stad/src/Sta_Management/ |
D | mlmeBuilder.c | 84 TTxCtrlBlk *pPktCtrlBlk; in mlmeBuilder_sendFrame() local 90 pPktCtrlBlk = TWD_txCtrlBlk_Alloc (pHandle->hTWD); in mlmeBuilder_sendFrame() 92 pPktCtrlBlk, in mlmeBuilder_sendFrame() 97 TWD_txCtrlBlk_Free (pHandle->hTWD, pPktCtrlBlk); in mlmeBuilder_sendFrame() 101 pDot11Header = (dot11_mgmtHeader_t *)(pPktCtrlBlk->aPktHdr); in mlmeBuilder_sendFrame() 106 txCtrl_FreePacket (pHandle->hTxCtrl, pPktCtrlBlk, TI_NOK); in mlmeBuilder_sendFrame() 113 txCtrl_FreePacket (pHandle->hTxCtrl, pPktCtrlBlk, TI_NOK); in mlmeBuilder_sendFrame() 123 txCtrl_FreePacket (pHandle->hTxCtrl, pPktCtrlBlk, TI_NOK); in mlmeBuilder_sendFrame() 139 pPktCtrlBlk->tTxDescriptor.startTime = os_timeStampMs (pHandle->hOs); in mlmeBuilder_sendFrame() 140 pPktCtrlBlk->tTxPktParams.uPktType = TX_PKT_TYPE_MGMT; in mlmeBuilder_sendFrame() [all …]
|
D | trafficAdmControl.c | 104 …STATUS trafficAdmCtrl_buildFrameHeader(trafficAdmCtrl_t *pTrafficAdmCtrl, TTxCtrlBlk *pPktCtrlBlk); 778 TTxCtrlBlk *pPktCtrlBlk; in trafficAdmCtrl_sendDeltsFrame() local 788 pPktCtrlBlk = TWD_txCtrlBlk_Alloc (pTrafficAdmCtrl->hTWD); in trafficAdmCtrl_sendDeltsFrame() 789 pPktBuffer = txCtrl_AllocPacketBuffer (pTrafficAdmCtrl->hTxCtrl, pPktCtrlBlk, 2000); in trafficAdmCtrl_sendDeltsFrame() 793 TWD_txCtrlBlk_Free (pTrafficAdmCtrl->hTWD, pPktCtrlBlk); in trafficAdmCtrl_sendDeltsFrame() 797 status = trafficAdmCtrl_buildFrameHeader (pTrafficAdmCtrl, pPktCtrlBlk); in trafficAdmCtrl_sendDeltsFrame() 800 TWD_txCtrlBlk_Free (pTrafficAdmCtrl->hTWD, pPktCtrlBlk); in trafficAdmCtrl_sendDeltsFrame() 856 pPktCtrlBlk->tTxDescriptor.startTime = os_timeStampMs (pTrafficAdmCtrl->hOs); in trafficAdmCtrl_sendDeltsFrame() 857 pPktCtrlBlk->tTxPktParams.uPktType = TX_PKT_TYPE_MGMT; in trafficAdmCtrl_sendDeltsFrame() 858 BUILD_TX_TWO_BUF_PKT_BDL (pPktCtrlBlk, pPktCtrlBlk->aPktHdr, WLAN_HDR_LEN, pPktBuffer, totalLen) in trafficAdmCtrl_sendDeltsFrame() [all …]
|
/hardware/ti/wlan/wl1271/TWD/FW_Transfer/ |
D | txXfer.c | 207 ETxnStatus txXfer_SendPacket (TI_HANDLE hTxXfer, TTxCtrlBlk *pPktCtrlBlk) in txXfer_SendPacket() argument 210 …TI_UINT32 uPktLen = ENDIAN_HANDLE_WORD(pPktCtrlBlk->tTxDescriptor.length << 2); /* swap back f… in txXfer_SendPacket() 218 pTxXfer->pAggregFirstPkt = pPktCtrlBlk; in txXfer_SendPacket() 219 pTxXfer->pAggregLastPkt = pPktCtrlBlk; in txXfer_SendPacket() 220 pPktCtrlBlk->pNextAggregEntry = pPktCtrlBlk; /* First packet points to itself */ in txXfer_SendPacket() 238 pTxXfer->pAggregLastPkt->pNextAggregEntry = pPktCtrlBlk; /* Link new packet to last */ in txXfer_SendPacket() 239 pTxXfer->pAggregLastPkt = pPktCtrlBlk; /* Save new packet as last */ in txXfer_SendPacket() 240 pPktCtrlBlk->pNextAggregEntry = pTxXfer->pAggregFirstPkt; /* Point from last to first */ in txXfer_SendPacket() 251 pTxXfer->pAggregFirstPkt = pPktCtrlBlk; in txXfer_SendPacket() 252 pTxXfer->pAggregLastPkt = pPktCtrlBlk; in txXfer_SendPacket() [all …]
|
/hardware/ti/wlan/wl1271/Test/ |
D | fwdriverdebug.c | 223 TTxCtrlBlk * pPktCtrlBlk; in sendDataPacket() local 230 pPktCtrlBlk = TWD_txCtrlBlk_Alloc (tmp_hTWD); in sendDataPacket() 231 pPktCtrlBlk->tTxDescriptor.startTime = os_timeStampMs (hOs); in sendDataPacket() 232 pPktCtrlBlk->tTxDescriptor.length = (TI_UINT16)packetLength + ETHERNET_HDR_LEN; in sendDataPacket() 233 pPktCtrlBlk->tTxDescriptor.tid = 0; in sendDataPacket() 234 pPktCtrlBlk->tTxPktParams.uPktType = TX_PKT_TYPE_ETHER; in sendDataPacket() 237 …pPktBuf = txCtrl_AllocPacketBuffer (tmp_hTxCtrl, pPktCtrlBlk, packetLength + ETHERNET_HDR_LEN + 2); in sendDataPacket() 246 BUILD_TX_TWO_BUF_PKT_BDL (pPktCtrlBlk, in sendDataPacket() 259 txCtrl_XmitData (tmp_hTxCtrl, pPktCtrlBlk); in sendDataPacket()
|
/hardware/ti/wlan/wl1271/platforms/os/linux/src/ |
D | WlanDrvIf.c | 136 TTxCtrlBlk * pPktCtrlBlk; in wlanDrvIf_Xmit() local 146 pPktCtrlBlk = TWD_txCtrlBlk_Alloc (drv->tCommon.hTWD); in wlanDrvIf_Xmit() 148 …pPktCtrlBlk->tTxDescriptor.startTime = os_timeStampMs(drv); /* remove use of skb->tstamp.off_us… in wlanDrvIf_Xmit() 149 pPktCtrlBlk->tTxDescriptor.length = skb->len; in wlanDrvIf_Xmit() 150 pPktCtrlBlk->tTxPktParams.pInputPkt = skb; in wlanDrvIf_Xmit() 153 pPktCtrlBlk->tTxnStruct.aBuf[0] = skb->data; in wlanDrvIf_Xmit() 154 pPktCtrlBlk->tTxnStruct.aLen[0] = ETHERNET_HDR_LEN; in wlanDrvIf_Xmit() 155 pPktCtrlBlk->tTxnStruct.aBuf[1] = skb->data + ETHERNET_HDR_LEN; in wlanDrvIf_Xmit() 156 pPktCtrlBlk->tTxnStruct.aLen[1] = (TI_UINT16)skb->len - ETHERNET_HDR_LEN; in wlanDrvIf_Xmit() 157 pPktCtrlBlk->tTxnStruct.aLen[2] = 0; in wlanDrvIf_Xmit() [all …]
|
/hardware/ti/wlan/wl1271/TWD/TWDriver/ |
D | TWDriverTx.c | 100 ETxnStatus TWD_txXfer_SendPacket (TI_HANDLE hTWD, TTxCtrlBlk *pPktCtrlBlk) in TWD_txXfer_SendPacket() argument 104 return txXfer_SendPacket (pTWD->hTxXfer, pPktCtrlBlk); in TWD_txXfer_SendPacket()
|
D | TWDriver.h | 2793 typedef void (* TSendPacketTranferCb)(TI_HANDLE CBObj, TTxCtrlBlk *pPktCtrlBlk); 2807 typedef void (* TSendPacketDebugCb) (TI_HANDLE CBObj, TTxCtrlBlk *pPktCtrlBlk, TI_UINT32 uDebugInf… 4617 ETxnStatus TWD_txXfer_SendPacket (TI_HANDLE hTWD, TTxCtrlBlk *pPktCtrlBlk);
|
/hardware/ti/wlan/wl1271/TWD/FW_Transfer/Export_Inc/ |
D | txXfer_api.h | 175 ETxnStatus txXfer_SendPacket (TI_HANDLE hTxXfer, TTxCtrlBlk *pPktCtrlBlk);
|