Lines Matching refs:pPacket

90 				   HTC_PACKET *pPacket)  in do_recv_completion_pkt()  argument
96 pPacket)); in do_recv_completion_pkt()
97 if (pPacket) in do_recv_completion_pkt()
98 htc_rx_nbuf_free(pPacket->pPktContext); in do_recv_completion_pkt()
102 pEndpoint->Id, pPacket)); in do_recv_completion_pkt()
104 pPacket); in do_recv_completion_pkt()
111 HTC_PACKET *pPacket; in do_recv_completion() local
119 pPacket = htc_packet_dequeue(pQueueToIndicate); in do_recv_completion()
120 do_recv_completion_pkt(pEndpoint, pPacket); in do_recv_completion()
124 void htc_control_rx_complete(void *Context, HTC_PACKET *pPacket) in htc_control_rx_complete() argument
158 HTC_PACKET *pPacket; in allocate_htc_packet_container() local
167 pPacket = target->pHTCPacketStructPool; in allocate_htc_packet_container()
168 target->pHTCPacketStructPool = (HTC_PACKET *) pPacket->ListLink.pNext; in allocate_htc_packet_container()
172 pPacket->ListLink.pNext = NULL; in allocate_htc_packet_container()
173 return pPacket; in allocate_htc_packet_container()
176 void free_htc_packet_container(HTC_TARGET *target, HTC_PACKET *pPacket) in free_htc_packet_container() argument
178 pPacket->ListLink.pPrev = NULL; in free_htc_packet_container()
182 target->pHTCPacketStructPool = pPacket; in free_htc_packet_container()
183 pPacket->ListLink.pNext = NULL; in free_htc_packet_container()
185 pPacket->ListLink.pNext = in free_htc_packet_container()
187 target->pHTCPacketStructPool = pPacket; in free_htc_packet_container()
254 HTC_PACKET *pPacket; in htc_rx_completion_handler() local
506 pPacket = allocate_htc_packet_container(target); in htc_rx_completion_handler()
507 if (!pPacket) { in htc_rx_completion_handler()
511 pPacket->Status = QDF_STATUS_SUCCESS; in htc_rx_completion_handler()
512 pPacket->Endpoint = htc_ep_id; in htc_rx_completion_handler()
513 pPacket->pPktContext = netbuf; in htc_rx_completion_handler()
514 pPacket->pBuffer = qdf_nbuf_data(netbuf) + HTC_HDR_LENGTH; in htc_rx_completion_handler()
515 pPacket->ActualLength = netlen - HTC_HEADER_LEN - trailerlen; in htc_rx_completion_handler()
518 qdf_nbuf_set_pktlen(netbuf, pPacket->ActualLength); in htc_rx_completion_handler()
520 do_recv_completion_pkt(pEndpoint, pPacket); in htc_rx_completion_handler()
523 free_htc_packet_container(target, pPacket); in htc_rx_completion_handler()
547 HTC_PACKET *pPacket; in htc_add_receive_pkt_multiple() local
588 HTC_PACKET_QUEUE_ITERATE_ALLOW_REMOVE(pPktQueue, pPacket) { in htc_add_receive_pkt_multiple()
589 pPacket->Status = QDF_STATUS_E_CANCELED; in htc_add_receive_pkt_multiple()
601 HTC_PACKET *pPacket; in htc_flush_rx_hold_queue() local
606 pPacket = htc_packet_dequeue(&pEndpoint->RxBufferHoldQueue); in htc_flush_rx_hold_queue()
607 if (!pPacket) in htc_flush_rx_hold_queue()
610 pPacket->Status = QDF_STATUS_E_CANCELED; in htc_flush_rx_hold_queue()
611 pPacket->ActualLength = 0; in htc_flush_rx_hold_queue()
614 pPacket, pPacket->BufferLength, in htc_flush_rx_hold_queue()
615 pPacket->Endpoint)); in htc_flush_rx_hold_queue()
617 do_recv_completion_pkt(pEndpoint, pPacket); in htc_flush_rx_hold_queue()