Home
last modified time | relevance | path

Searched refs:pPacket (Results 1 – 25 of 43) sorted by relevance

12

/linux-2.6.39/drivers/staging/ath6kl/htc2/
Dhtc_send.c65 struct htc_packet *pPacket; in DoSendCompletion() local
68 pPacket = HTC_PACKET_DEQUEUE(pQueueToIndicate); in DoSendCompletion()
70 pEndpoint->Id, (unsigned long)(pPacket))); in DoSendCompletion()
71 …pEndpoint->EpCallBacks.EpTxComplete(pEndpoint->EpCallBacks.pContext, pPacket); … in DoSendCompletion()
80 …teSentPacket(struct htc_target *target, struct htc_endpoint *pEndpoint, struct htc_packet *pPacket) in CompleteSentPacket() argument
82 pPacket->Completion = NULL; in CompleteSentPacket()
84 if (pPacket->Status) { in CompleteSentPacket()
87pPacket->Status, pPacket->Endpoint, pPacket->ActualLength, pPacket->PktInfo.AsTx.CreditsUsed)); … in CompleteSentPacket()
90 pEndpoint->CreditDist.TxCreditsToDist += pPacket->PktInfo.AsTx.CreditsUsed; in CompleteSentPacket()
99 pPacket->pBuffer += HTC_HDR_LENGTH; in CompleteSentPacket()
[all …]
Dhtc_recv.c72 struct htc_packet *pPacket; in DoRecvCompletion() local
75 pPacket = HTC_PACKET_DEQUEUE(pQueueToIndicate); in DoRecvCompletion()
77 pEndpoint->Id, (unsigned long)(pPacket))); in DoRecvCompletion()
78 …pEndpoint->EpCallBacks.EpRecv(pEndpoint->EpCallBacks.pContext, pPacket); … in DoRecvCompletion()
230 struct htc_packet *pPacket, in HTCProcessRecvHeader() argument
240 pBuf = pPacket->pBuffer; in HTCProcessRecvHeader()
249 AR_DEBUG_PRINTBUF(pBuf,pPacket->ActualLength,"HTC Recv PKT"); in HTCProcessRecvHeader()
262 if (pPacket->PktInfo.AsRx.HTCRxFlags & HTC_RX_PKT_REFRESH_HDR) { in HTCProcessRecvHeader()
265 pPacket->PktInfo.AsRx.ExpectedHdr = lookAhead; in HTCProcessRecvHeader()
267 pPacket->ActualLength = payloadLen + HTC_HDR_LENGTH; in HTCProcessRecvHeader()
[all …]
Dhtc_internal.h154 HTC_PACKET_RESET_RX(pPacket); \
155 pPacket->Status = A_ECANCELED; \
159 HTC_PACKET_RESET_RX(pPacket); \
165 void HTCControlTxComplete(void *Context, struct htc_packet *pPacket);
166 void HTCControlRecv(void *Context, struct htc_packet *pPacket);
169 void HTCFreeControlBuffer(struct htc_target *target, struct htc_packet *pPacket, struct htc_…
170 int HTCIssueSend(struct htc_target *target, struct htc_packet *pPacket);
171 void HTCRecvCompleteHandler(void *Context, struct htc_packet *pPacket);
185 struct htc_packet *pPacket = HTCAllocControlBuffer(target,&target->ControlBufferTXFreeList); in HTC_ALLOC_CONTROL_TX() local
186 if (pPacket != NULL) { in HTC_ALLOC_CONTROL_TX()
[all …]
Dhtc.c46 void HTCFreeControlBuffer(struct htc_target *target, struct htc_packet *pPacket, struct htc_packet_… in HTCFreeControlBuffer() argument
49 HTC_PACKET_ENQUEUE(pList,pPacket); in HTCFreeControlBuffer()
55 struct htc_packet *pPacket; in HTCAllocControlBuffer() local
58 pPacket = HTC_PACKET_DEQUEUE(pList); in HTCAllocControlBuffer()
61 return pPacket; in HTCAllocControlBuffer()
229 struct htc_packet *pPacket = NULL; in HTCWaitTarget() local
250 status = HTCWaitforControlMessage(target, &pPacket); in HTCWaitTarget()
258 pRdyMsg = (HTC_READY_EX_MSG *)pPacket->pBuffer; in HTCWaitTarget()
261 (pPacket->ActualLength < sizeof(HTC_READY_MSG))) { in HTCWaitTarget()
283 if (pPacket->ActualLength >= sizeof(HTC_READY_EX_MSG)) { in HTCWaitTarget()
[all …]
Dhtc_services.c25 void HTCControlTxComplete(void *Context, struct htc_packet *pPacket) in HTCControlTxComplete() argument
33 void HTCControlRecv(void *Context, struct htc_packet *pPacket) in HTCControlRecv() argument
35 AR_DEBUG_ASSERT(pPacket->Endpoint == ENDPOINT_0); in HTCControlRecv()
37 if (pPacket->Status == A_ECANCELED) { in HTCControlRecv()
39 HTC_FREE_CONTROL_RX((struct htc_target*)Context,pPacket); in HTCControlRecv()
44 if (pPacket->ActualLength > 0) { in HTCControlRecv()
47 pPacket->ActualLength + (u32)HTC_HDR_LENGTH)); in HTCControlRecv()
51 DebugDumpBytes(pPacket->pBuffer - HTC_HDR_LENGTH, in HTCControlRecv()
52 pPacket->ActualLength + HTC_HDR_LENGTH, in HTCControlRecv()
57 …HTC_RECYCLE_RX_PKT((struct htc_target*)Context,pPacket,&((struct htc_target*)Context)->EndPoint[0]… in HTCControlRecv()
/linux-2.6.39/drivers/staging/ath6kl/htc2/AR6000/
Dar6k_gmbox_hciuart.c102 static int HCITrySend(struct gmbox_proto_hci_uart *pProt, struct htc_packet *pPacket, bool Synchron…
315 struct htc_packet *pPacket = NULL; in HCIUartMessagePending() local
363 pPacket = pProt->HCIConfig.pHCIPktRecvAlloc(pProt->HCIConfig.pContext, in HCIUartMessagePending()
393 pPacket = HTC_PACKET_DEQUEUE(pQueue); in HCIUartMessagePending()
397 pPacket = HTC_PACKET_DEQUEUE(pQueue); in HCIUartMessagePending()
404 if (NULL == pPacket) { in HCIUartMessagePending()
414 if (totalRecvLength > (int)pPacket->BufferLength) { in HCIUartMessagePending()
416 LookAheadBytes[0], totalRecvLength, pPacket->BufferLength)); in HCIUartMessagePending()
429 if (status || (NULL == pPacket)) { in HCIUartMessagePending()
434 pPacket->Completion = NULL; in HCIUartMessagePending()
[all …]
Dar6k_gmbox.c57 extern void AR6KFreeIOPacket(struct ar6k_device *pDev, struct htc_packet *pPacket);
62 static void DevGMboxIRQActionAsyncHandler(void *Context, struct htc_packet *pPacket) in DevGMboxIRQActionAsyncHandler() argument
68 if (pPacket->Status) { in DevGMboxIRQActionAsyncHandler()
70 …("IRQAction Operation (%d) failed! status:%d \n", pPacket->PktInfo.AsRx.HTCRxFlags,pPacket->Status… in DevGMboxIRQActionAsyncHandler()
73 AR6KFreeIOPacket(pDev,pPacket); in DevGMboxIRQActionAsyncHandler()
399 int DevGMboxWrite(struct ar6k_device *pDev, struct htc_packet *pPacket, u32 WriteLength) in DevGMboxWrite() argument
402 bool sync = (pPacket->Completion == NULL) ? true : false; in DevGMboxWrite()
420 pPacket->pBuffer, in DevGMboxWrite()
423 … sync ? NULL : pPacket); /* pass the packet as the context to the HIF request */ in DevGMboxWrite()
426 pPacket->Status = status; in DevGMboxWrite()
[all …]
Dar6k.h179 static INLINE int DevSendPacket(struct ar6k_device *pDev, struct htc_packet *pPacket, u32 SendLengt… in DevSendPacket() argument
181 bool sync = (pPacket->Completion == NULL) ? true : false; in DevSendPacket()
188 if (paddedLength > pPacket->BufferLength) { in DevSendPacket()
190 if (pPacket->Completion != NULL) { in DevSendPacket()
191 COMPLETE_HTC_PACKET(pPacket,A_EINVAL); in DevSendPacket()
206 pPacket->pBuffer, in DevSendPacket()
209 … sync ? NULL : pPacket); /* pass the packet as the context to the HIF request */ in DevSendPacket()
212 pPacket->Status = status; in DevSendPacket()
222 static INLINE int DevRecvPacket(struct ar6k_device *pDev, struct htc_packet *pPacket, u32 RecvLengt… in DevRecvPacket() argument
225 bool sync = (pPacket->Completion == NULL) ? true : false; in DevRecvPacket()
[all …]
Dar6k_events.c36 extern void AR6KFreeIOPacket(struct ar6k_device *pDev, struct htc_packet *pPacket);
46 struct htc_packet *pPacket = (struct htc_packet *)context; in DevRWCompletionHandler() local
50 (unsigned long)pPacket, in DevRWCompletionHandler()
53 COMPLETE_HTC_PACKET(pPacket,status); in DevRWCompletionHandler()
303 static void DevGetEventAsyncHandler(void *Context, struct htc_packet *pPacket) in DevGetEventAsyncHandler() argument
313 if (pPacket->Status) { in DevGetEventAsyncHandler()
315 (" GetEvents I/O request failed, status:%d \n", pPacket->Status)); in DevGetEventAsyncHandler()
322 … struct hif_pending_events_info *pEvents = (struct hif_pending_events_info *)pPacket->pBuffer; in DevGetEventAsyncHandler()
334 … struct ar6k_irq_proc_registers *pReg = (struct ar6k_irq_proc_registers *)pPacket->pBuffer; in DevGetEventAsyncHandler()
385 AR6KFreeIOPacket(pDev,pPacket); in DevGetEventAsyncHandler()
Dar6k.c43 void AR6KFreeIOPacket(struct ar6k_device *pDev, struct htc_packet *pPacket) in AR6KFreeIOPacket() argument
46 HTC_PACKET_ENQUEUE(&pDev->RegisterIOList,pPacket); in AR6KFreeIOPacket()
52 struct htc_packet *pPacket; in AR6KAllocIOPacket() local
55 pPacket = HTC_PACKET_DEQUEUE(&pDev->RegisterIOList); in AR6KAllocIOPacket()
58 return pPacket; in AR6KAllocIOPacket()
340 static void DevDoEnableDisableRecvAsyncHandler(void *Context, struct htc_packet *pPacket) in DevDoEnableDisableRecvAsyncHandler() argument
346 if (pPacket->Status) { in DevDoEnableDisableRecvAsyncHandler()
348 (" Failed to disable receiver, status:%d \n", pPacket->Status)); in DevDoEnableDisableRecvAsyncHandler()
351 AR6KFreeIOPacket(pDev,pPacket); in DevDoEnableDisableRecvAsyncHandler()
651 static void DevReadWriteScatterAsyncHandler(void *Context, struct htc_packet *pPacket) in DevReadWriteScatterAsyncHandler() argument
[all …]
/linux-2.6.39/drivers/staging/ath6kl/os/linux/
Dhci_bridge.c142 static void FreeHTCStruct(struct ar6k_hci_bridge_info *pHcidevInfo, struct htc_packet *pPacket) in FreeHTCStruct() argument
145 HTC_PACKET_ENQUEUE(&pHcidevInfo->HTCPacketStructHead,pPacket); in FreeHTCStruct()
151 struct htc_packet *pPacket = NULL; in AllocHTCStruct() local
153 pPacket = HTC_PACKET_DEQUEUE(&pHcidevInfo->HTCPacketStructHead); in AllocHTCStruct()
155 return pPacket; in AllocHTCStruct()
167 struct htc_packet *pPacket; in RefillRecvBuffers() local
198 pPacket = AllocHTCStruct(pHcidevInfo); in RefillRecvBuffers()
199 if (NULL == pPacket) { in RefillRecvBuffers()
205 SET_HTC_PACKET_INFO_RX_REFILL(pPacket,osBuf,A_NETBUF_DATA(osBuf),length,Type); in RefillRecvBuffers()
207 HTC_PACKET_ENQUEUE(&queue,pPacket); in RefillRecvBuffers()
[all …]
Dar6000_raw_if.c29 ar6000_htc_raw_read_cb(void *Context, struct htc_packet *pPacket) argument
36 busy = (raw_htc_buffer *)pPacket->pPktContext;
39 if (pPacket->Status == A_ECANCELED) {
47 streamID = arEndpoint2RawStreamID(ar,pPacket->Endpoint);
58 A_ASSERT((pPacket->Status != 0) ||
59 (pPacket->pBuffer == (busy->data + HTC_HEADER_LEN)));
61 busy->length = pPacket->ActualLength + HTC_HEADER_LEN;
73 ar6000_htc_raw_write_cb(void *Context, struct htc_packet *pPacket) argument
80 free = (raw_htc_buffer *)pPacket->pPktContext;
83 if (pPacket->Status == A_ECANCELED) {
[all …]
/linux-2.6.39/drivers/staging/rt2860/common/
Dcmm_data.c110 void *pPacket; in MiniportMMRequest() local
166 RTMPAllocateNdisPacket(pAd, &pPacket, in MiniportMMRequest()
181 MlmeDataHardTransmit(pAd, QueIdx, pPacket); in MiniportMMRequest()
185 Status = MlmeHardTransmit(pAd, QueIdx, pPacket); in MiniportMMRequest()
189 RTMPFreeNdisPacket(pAd, pPacket); in MiniportMMRequest()
246 u8 QueIdx, void *pPacket) in MlmeHardTransmit() argument
258 RTMP_QueryPacketInfo(pPacket, &PacketInfo, &pSrcBufVA, &SrcBufLen); in MlmeHardTransmit()
266 return MlmeHardTransmitTxRing(pAd, QueIdx, pPacket); in MlmeHardTransmit()
269 return MlmeHardTransmitMgmtRing(pAd, QueIdx, pPacket); in MlmeHardTransmit()
274 u8 QueIdx, void *pPacket) in MlmeHardTransmitMgmtRing() argument
[all …]
Dcmm_data_pci.c69 pTxRing->Cell[TxIdx].pNdisPacket = pTxBlk->pPacket; in RtmpPCI_WriteTxResource()
129 pTxRing->Cell[TxIdx].pNdisPacket = pTxBlk->pPacket; in RtmpPCI_WriteSingleTxResource()
207 pTxRing->Cell[TxIdx].pNdisPacket = pTxBlk->pPacket; in RtmpPCI_WriteMultiTxResource()
312 pTxRing->Cell[TxIdx].pNdisPacket = pTxBlk->pPacket; in RtmpPCI_WriteFragTxResource()
346 void *pPacket, in RtmpPCIMgmtKickOut() argument
354 pAd->MgmtRing.Cell[SwIdx].pNdisPacket = pPacket; in RtmpPCIMgmtKickOut()
523 void *pPacket; in RTMPFreeTXDUponTxDmaDone() local
552 pPacket = in RTMPFreeTXDUponTxDmaDone()
554 if (pPacket) { in RTMPFreeTXDUponTxDmaDone()
558 RELEASE_NDIS_PACKET(pAd, pPacket, in RTMPFreeTXDUponTxDmaDone()
[all …]
Dcmm_mac_pci.c63 void *pPacket; in RTMPAllocTxRxRingMemory() local
294 pPacket = RTMP_AllocateRxPacketBuffer(pAd, in RTMPAllocTxRxRingMemory()
302 pAd->RxRing.Cell[index].pNdisPacket = pPacket; in RTMPAllocTxRxRingMemory()
408 void *pPacket; in RTMPRingCleanUp() local
431 pPacket = (void *)pTxRing->Cell[i].pNdisPacket; in RTMPRingCleanUp()
433 if (pPacket) { in RTMPRingCleanUp()
434 RELEASE_NDIS_PACKET(pAd, pPacket, in RTMPRingCleanUp()
439 pPacket = in RTMPRingCleanUp()
442 if (pPacket) { in RTMPRingCleanUp()
443 RELEASE_NDIS_PACKET(pAd, pPacket, in RTMPRingCleanUp()
[all …]
Dcmm_data_usb.c128 RELEASE_NDIS_PACKET(pAd, pTxBlk->pPacket, in RtmpUSB_WriteFragTxResource()
143 RELEASE_NDIS_PACKET(pAd, pTxBlk->pPacket, in RtmpUSB_WriteFragTxResource()
211 RELEASE_NDIS_PACKET(pAd, pTxBlk->pPacket, NDIS_STATUS_SUCCESS); in RtmpUSB_WriteFragTxResource()
325 RELEASE_NDIS_PACKET(pAd, pTxBlk->pPacket, NDIS_STATUS_SUCCESS); in RtmpUSB_WriteSingleTxResource()
464 RELEASE_NDIS_PACKET(pAd, pTxBlk->pPacket, NDIS_STATUS_SUCCESS); in RtmpUSB_WriteMultiTxResource()
578 void *pPacket, in RtmpUSBMgmtKickOut() argument
609 skb_put(GET_OS_PKT_TYPE(pPacket), padLen); in RtmpUSBMgmtKickOut()
614 pAd->MgmtRing.Cell[pAd->MgmtRing.TxCpuIdx].pNdisPacket = pPacket; in RtmpUSBMgmtKickOut()
616 (struct rt_tx_buffer *)(GET_OS_PKT_DATAPTR(pPacket)); in RtmpUSBMgmtKickOut()
/linux-2.6.39/drivers/staging/rt2860/
Drt_linux.c225 void *pPacket, in build_tx_packet() argument
231 ASSERT(pPacket); in build_tx_packet()
232 pTxPkt = RTPKT_TO_OSPKT(pPacket); in build_tx_packet()
333 void *pPacket; in RTMPAllocateNdisPacket() local
338 pPacket = in RTMPAllocateNdisPacket()
341 if (pPacket == NULL) { in RTMPAllocateNdisPacket()
349 NdisMoveMemory(GET_OS_PKT_DATAPTR(pPacket), pHeader, HeaderLen); in RTMPAllocateNdisPacket()
351 NdisMoveMemory(GET_OS_PKT_DATAPTR(pPacket) + HeaderLen, pData, in RTMPAllocateNdisPacket()
355 skb_put(GET_OS_PKT_TYPE(pPacket), HeaderLen + DataLen); in RTMPAllocateNdisPacket()
357 RTMP_SET_PACKET_SOURCE(pPacket, PKTSRC_NDIS); in RTMPAllocateNdisPacket()
[all …]
/linux-2.6.39/drivers/staging/ath6kl/os/linux/include/
Dexport_hci_transport.h31 extern int (*_HCI_TransportSendPkt)(HCI_TRANSPORT_HANDLE HciTrans, struct htc_packet *pPacket, b…
36 struct htc_packet *pPacket,
48 #define HCI_TransportSendPkt(HciTrans, pPacket, Synchronous) \ argument
49 _HCI_TransportSendPkt((HciTrans), (pPacket), (Synchronous))
56 #define HCI_TransportRecvHCIEventSync(HciTrans, pPacket, MaxPollMS) \ argument
57 _HCI_TransportRecvHCIEventSync((HciTrans), (pPacket), (MaxPollMS))
/linux-2.6.39/drivers/staging/rt2860/sta/
Drtmp_data.c866 void *pPacket; in STASendPackets() local
870 pPacket = ppPacketArray[Index]; in STASendPackets()
885 RTMP_SET_PACKET_WCID(pPacket, 0); /* this field is useless when in STA mode */ in STASendPackets()
886 RTMP_SET_PACKET_SOURCE(pPacket, PKTSRC_NDIS); in STASendPackets()
887 NDIS_SET_PACKET_STATUS(pPacket, in STASendPackets()
896 STASendPacket(pAd, pPacket); in STASendPackets()
898 RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_FAILURE); in STASendPackets()
925 int STASendPacket(struct rt_rtmp_adapter *pAd, void *pPacket) in STASendPacket() argument
941 RTMP_QueryPacketInfo(pPacket, &PacketInfo, &pSrcBufVA, &SrcBufLen); in STASendPacket()
949 RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_FAILURE); in STASendPacket()
[all …]
/linux-2.6.39/drivers/staging/rt2870/common/
Drtusb_data.c50 void *pPacket; in REPORT_AMSDU_FRAMES_TO_LLC() local
57 pPacket = (void *)OSPKT_TO_RTPKT(pSkb); in REPORT_AMSDU_FRAMES_TO_LLC()
62 RTMP_SET_PACKET_SOURCE(pPacket, PKTSRC_NDIS); in REPORT_AMSDU_FRAMES_TO_LLC()
63 deaggregate_AMSDU_announce(pAd, pPacket, pData, DataSize); in REPORT_AMSDU_FRAMES_TO_LLC()
198 void *pPacket; in RTUSBRejectPendingPackets() local
206 pPacket = QUEUE_ENTRY_TO_PACKET(pEntry); in RTUSBRejectPendingPackets()
207 RELEASE_NDIS_PACKET(pAd, pPacket, NDIS_STATUS_FAILURE); in RTUSBRejectPendingPackets()
/linux-2.6.39/drivers/staging/vt6655/
Drxtx.h79 PSEthernetHeader psEthHeader, unsigned char *pPacket, PSKeyItem pTransmitKey,
84 CMD_STATUS csMgmt_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
85 CMD_STATUS csBeacon_xmit(PSDevice pDevice, PSTxMgmtPacket pPacket);
/linux-2.6.39/drivers/staging/ath6kl/miscdrv/
Dar3kconfig.c56 struct htc_packet *pPacket = NULL; in SendHCICommand() local
61 pPacket = (struct htc_packet *)A_MALLOC(sizeof(struct htc_packet)); in SendHCICommand()
62 if (NULL == pPacket) { in SendHCICommand()
67 A_MEMZERO(pPacket,sizeof(struct htc_packet)); in SendHCICommand()
68 SET_HTC_PACKET_INFO_TX(pPacket, in SendHCICommand()
76 status = HCI_TransportSendPkt(pConfig->pHCIDev,pPacket,true); in SendHCICommand()
80 if (pPacket != NULL) { in SendHCICommand()
81 A_FREE(pPacket); in SendHCICommand()
/linux-2.6.39/drivers/staging/ath6kl/include/
Dhci_transport_api.h169 int HCI_TransportSendPkt(HCI_TRANSPORT_HANDLE HciTrans, struct htc_packet *pPacket, bool Synchro…
226 struct htc_packet *pPacket,
Dhtc_api.h117 typedef HTC_SEND_FULL_ACTION (*HTC_EP_SEND_QUEUE_FULL)(void *, struct htc_packet *pPacket);
351 int HTCAddReceivePkt(HTC_HANDLE HTCHandle, struct htc_packet *pPacket);
380 int HTCSendPkt(HTC_HANDLE HTCHandle, struct htc_packet *pPacket);
/linux-2.6.39/drivers/staging/rt2860/chip/
Dmac_usb.h243 #define RTMP_HAS_ENOUGH_FREE_DESC(pAd, pTxBlk, freeNum, pPacket) \ argument
244 …(RTUSBFreeDescriptorRequest(pAd, pTxBlk->QueIdx, (pTxBlk->TotalFrameLen + GET_OS_PKT_LEN(pPacket))…
274 #define HAL_KickOutMgmtTx(pAd, QueIdx, pPacket, pSrcBufVA, SrcBufLen) \ argument
275 RtmpUSBMgmtKickOut(pAd, QueIdx, pPacket, pSrcBufVA, SrcBufLen)

12