Lines Matching refs:pPacket

61 static void destroy_htc_tx_ctrl_packet(HTC_PACKET *pPacket)  in destroy_htc_tx_ctrl_packet()  argument
65 netbuf = (qdf_nbuf_t) GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in destroy_htc_tx_ctrl_packet()
68 qdf_mem_free(pPacket); in destroy_htc_tx_ctrl_packet()
73 HTC_PACKET *pPacket = NULL; in build_htc_tx_ctrl_packet() local
77 pPacket = (HTC_PACKET *) qdf_mem_malloc(sizeof(HTC_PACKET)); in build_htc_tx_ctrl_packet()
78 if (!pPacket) in build_htc_tx_ctrl_packet()
83 qdf_mem_free(pPacket); in build_htc_tx_ctrl_packet()
84 pPacket = NULL; in build_htc_tx_ctrl_packet()
87 SET_HTC_PACKET_NET_BUF_CONTEXT(pPacket, netbuf); in build_htc_tx_ctrl_packet()
90 return pPacket; in build_htc_tx_ctrl_packet()
93 void htc_free_control_tx_packet(HTC_TARGET *target, HTC_PACKET *pPacket) in htc_free_control_tx_packet() argument
98 HTC_PACKET_ENQUEUE(&target->ControlBufferTXFreeList, pPacket); in htc_free_control_tx_packet()
102 destroy_htc_tx_ctrl_packet(pPacket); in htc_free_control_tx_packet()
110 HTC_PACKET *pPacket; in htc_alloc_control_tx_packet() local
113 pPacket = htc_packet_dequeue(&target->ControlBufferTXFreeList); in htc_alloc_control_tx_packet()
116 return pPacket; in htc_alloc_control_tx_packet()
187 HTC_PACKET *pPacket; in htc_cleanup() local
206 pPacket = allocate_htc_packet_container(target); in htc_cleanup()
207 if (!pPacket) in htc_cleanup()
209 qdf_mem_free(pPacket); in htc_cleanup()
213 pPacket = target->pBundleFreeList; in htc_cleanup()
216 while (pPacket) { in htc_cleanup()
217 HTC_PACKET *pPacketTmp = (HTC_PACKET *) pPacket->ListLink.pNext; in htc_cleanup()
218 netbuf = GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_cleanup()
221 pkt_queue = pPacket->pContext; in htc_cleanup()
224 qdf_mem_free(pPacket); in htc_cleanup()
225 pPacket = pPacketTmp; in htc_cleanup()
230 pPacket = htc_alloc_control_tx_packet(target); in htc_cleanup()
231 if (!pPacket) in htc_cleanup()
233 netbuf = (qdf_nbuf_t) GET_HTC_PACKET_NET_BUF_CONTEXT(pPacket); in htc_cleanup()
236 qdf_mem_free(pPacket); in htc_cleanup()
483 HTC_PACKET *pPacket = (HTC_PACKET *) in htc_create() local
485 if (pPacket) in htc_create()
486 free_htc_packet_container(target, pPacket); in htc_create()
491 pPacket = build_htc_tx_ctrl_packet(); in htc_create()
492 if (!pPacket) in htc_create()
494 htc_free_control_tx_packet(target, pPacket); in htc_create()
566 static void htc_control_tx_complete(void *Context, HTC_PACKET *pPacket) in htc_control_tx_complete() argument
571 ("+-htc_control_tx_complete 0x%pK (l:%d)\n", pPacket, in htc_control_tx_complete()
572 pPacket->ActualLength)); in htc_control_tx_complete()
573 htc_free_control_tx_packet(target, pPacket); in htc_control_tx_complete()