Lines Matching refs:pEndpoint
95 HTC_ENDPOINT *pEndpoint; in htc_get_control_endpoint_tx_host_credits() local
106 pEndpoint = &target->endpoint[i]; in htc_get_control_endpoint_tx_host_credits()
107 if (pEndpoint->service_id == WMI_CONTROL_SVC) { in htc_get_control_endpoint_tx_host_credits()
108 *credits = pEndpoint->TxCredits; in htc_get_control_endpoint_tx_host_credits()
133 HTC_ENDPOINT *pEndpoint = &target->endpoint[pPacket->Endpoint]; in send_packet_completion() local
137 (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint))) in send_packet_completion()
154 pEndpoint->Id, pPacket)); in send_packet_completion()
156 EpTxComplete = pEndpoint->EpCallBacks.EpTxComplete; in send_packet_completion()
158 EpTxComplete(pEndpoint->EpCallBacks.pContext, pPacket); in send_packet_completion()
176 HTC_ENDPOINT *pEndpoint = &target->endpoint[pPacket->Endpoint]; in log_packet_info() local
180 ep_log_pkt = pEndpoint->EpCallBacks.ep_log_pkt; in log_packet_info()
183 ep_log_pkt(pEndpoint->EpCallBacks.pContext, pPacket); in log_packet_info()
212 HTC_ENDPOINT *pEndpoint = (HTC_ENDPOINT *) context; in htc_send_complete_check_cleanup() local
214 htc_send_complete_check(pEndpoint, 1); in htc_send_complete_check_cleanup()
374 HTC_ENDPOINT *pEndpoint, in htc_send_bundled_netbuf() argument
390 pEndpoint->Id, HTC_TX_PACKET_TAG_BUNDLED); in htc_send_bundled_netbuf()
392 HTC_PACKET_ENQUEUE(&pEndpoint->TxLookupQueue, pPacketTx); in htc_send_bundled_netbuf()
393 pEndpoint->ul_outstanding_cnt++; in htc_send_bundled_netbuf()
397 pEndpoint->Id, in htc_send_bundled_netbuf()
398 pEndpoint->TxCreditSize, in htc_send_bundled_netbuf()
399 data_len, data_len / pEndpoint->TxCreditSize); in htc_send_bundled_netbuf()
403 pEndpoint->TxCreditSize); in htc_send_bundled_netbuf()
406 pEndpoint->UL_PipeID, in htc_send_bundled_netbuf()
407 pEndpoint->Id, data_len, in htc_send_bundled_netbuf()
415 pEndpoint->ul_outstanding_cnt--; in htc_send_bundled_netbuf()
416 HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacketTx); in htc_send_bundled_netbuf()
436 HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue, in htc_send_bundled_netbuf()
549 HTC_ENDPOINT *pEndpoint, in htc_issue_packets_bundle() argument
565 target->MaxMsgsPerHTCBundle * pEndpoint->TxCreditSize; in htc_issue_packets_bundle()
578 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_issue_packets_bundle()
579 if (htc_tx_pad_credit_avail(pEndpoint) < 1) in htc_issue_packets_bundle()
587 creditRemainder = transferLength % pEndpoint->TxCreditSize; in htc_issue_packets_bundle()
589 if (transferLength < pEndpoint->TxCreditSize) { in htc_issue_packets_bundle()
590 creditPad = pEndpoint->TxCreditSize - in htc_issue_packets_bundle()
599 htc_handle_extra_tx_credit(pEndpoint, p_last_htc_pkt, in htc_issue_packets_bundle()
606 htc_send_bundled_netbuf(target, pEndpoint, in htc_issue_packets_bundle()
619 pEndpoint->TxCreditSize; in htc_issue_packets_bundle()
678 htc_handle_extra_tx_credit(pEndpoint, p_last_htc_pkt, in htc_issue_packets_bundle()
684 htc_send_bundled_netbuf(target, pEndpoint, in htc_issue_packets_bundle()
713 HTC_ENDPOINT *pEndpoint, in htc_issue_packets_bundle() argument
728 HTC_ENDPOINT *pEndpoint, in htc_issue_packets() argument
748 pEndpoint->EpCallBacks.ep_padding_credit_update; in htc_issue_packets()
762 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) in htc_issue_packets()
766 (pEndpoint) < 1) in htc_issue_packets()
772 pEndpoint, in htc_issue_packets()
782 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_issue_packets()
783 if (htc_tx_pad_credit_avail(pEndpoint) < 1) { in htc_issue_packets()
800 if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_issue_packets()
839 __func__, pEndpoint)); in htc_issue_packets()
848 if (!pEndpoint->async_update) { in htc_issue_packets()
852 HTC_PACKET_ENQUEUE(&pEndpoint->TxLookupQueue, pPacket); in htc_issue_packets()
853 INC_HTC_EP_STAT(pEndpoint, TxIssued, 1); in htc_issue_packets()
854 pEndpoint->ul_outstanding_cnt++; in htc_issue_packets()
855 if (!pEndpoint->async_update) { in htc_issue_packets()
858 pEndpoint->UL_PipeID, false); in htc_issue_packets()
882 pEndpoint->Id, in htc_issue_packets()
883 pEndpoint->TxCreditSize, in htc_issue_packets()
888 htc_handle_extra_tx_credit(pEndpoint, pPacket, buf, in htc_issue_packets()
893 pEndpoint->UL_PipeID, pEndpoint->Id, in htc_issue_packets()
906 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_issue_packets()
908 ctx = pEndpoint->EpCallBacks.pContext; in htc_issue_packets()
917 pEndpoint->htc_send_cnt++; in htc_issue_packets()
931 if (pEndpoint->num_requeues_warn > in htc_issue_packets()
939 if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_issue_packets()
947 if (!pEndpoint->async_update) { in htc_issue_packets()
951 pEndpoint->htc_send_cnt--; in htc_issue_packets()
952 pEndpoint->ul_outstanding_cnt--; in htc_issue_packets()
953 HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacket); in htc_issue_packets()
960 pEndpoint->TxCredits += in htc_issue_packets()
963 if (!pEndpoint->async_update) { in htc_issue_packets()
976 (pEndpoint->num_requeues_warn > MAX_REQUEUE_WARN)) || in htc_issue_packets()
980 pPacket, status, pEndpoint->Id); in htc_issue_packets()
1158 HTC_ENDPOINT *pEndpoint, in get_htc_send_packets_credit_based() argument
1179 extract_htc_pm_packets(pEndpoint, &pm_queue); in get_htc_send_packets_credit_based()
1184 extract_htc_system_resume_pkts(pEndpoint, &sys_pm_queue); in get_htc_send_packets_credit_based()
1186 tx_queue = &pEndpoint->TxQueue; in get_htc_send_packets_credit_based()
1199 pEndpoint->service_id); in get_htc_send_packets_credit_based()
1246 if (transferLength <= pEndpoint->TxCreditSize) { in get_htc_send_packets_credit_based()
1251 transferLength / pEndpoint->TxCreditSize; in get_htc_send_packets_credit_based()
1252 remainder = transferLength % pEndpoint->TxCreditSize; in get_htc_send_packets_credit_based()
1260 creditsRequired, pEndpoint->TxCredits)); in get_htc_send_packets_credit_based()
1262 if (pEndpoint->Id == ENDPOINT_0) { in get_htc_send_packets_credit_based()
1270 if (pEndpoint->TxCredits < creditsRequired) { in get_htc_send_packets_credit_based()
1274 pEndpoint->Id, in get_htc_send_packets_credit_based()
1275 pEndpoint->TxCredits, in get_htc_send_packets_credit_based()
1288 pEndpoint->TxCredits -= creditsRequired; in get_htc_send_packets_credit_based()
1289 INC_HTC_EP_STAT(pEndpoint, TxCreditsConsummed, in get_htc_send_packets_credit_based()
1293 if (pEndpoint->TxCredits <= in get_htc_send_packets_credit_based()
1294 pEndpoint->TxCreditsPerMaxMsg) { in get_htc_send_packets_credit_based()
1297 if (pEndpoint->service_id == WMI_CONTROL_SVC) { in get_htc_send_packets_credit_based()
1299 pEndpoint->TxCredits, in get_htc_send_packets_credit_based()
1306 INC_HTC_EP_STAT(pEndpoint, in get_htc_send_packets_credit_based()
1311 pEndpoint->Id)); in get_htc_send_packets_credit_based()
1330 queue_htc_pm_packets(pEndpoint, &pm_queue); in get_htc_send_packets_credit_based()
1338 HTC_ENDPOINT *pEndpoint, in get_htc_send_packets() argument
1354 extract_htc_pm_packets(pEndpoint, &pm_queue); in get_htc_send_packets()
1356 tx_queue = &pEndpoint->TxQueue; in get_htc_send_packets()
1369 pEndpoint->service_id); in get_htc_send_packets()
1435 queue_htc_pm_packets(pEndpoint, &pm_queue); in get_htc_send_packets()
1451 HTC_ENDPOINT *pEndpoint, in htc_try_send() argument
1488 if (HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue) >= in htc_try_send()
1489 pEndpoint->MaxTxQueueDepth) { in htc_try_send()
1494 overflow = HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue); in htc_try_send()
1497 overflow -= pEndpoint->MaxTxQueueDepth; in htc_try_send()
1504 pEndpoint->Id, overflow, in htc_try_send()
1505 HTC_PACKET_QUEUE_DEPTH(&pEndpoint-> in htc_try_send()
1507 pEndpoint->MaxTxQueueDepth)); in htc_try_send()
1510 || (!pEndpoint->EpCallBacks.EpSendFull)) { in htc_try_send()
1560 if (pEndpoint->EpCallBacks. in htc_try_send()
1561 EpSendFull(pEndpoint->EpCallBacks.pContext, in htc_try_send()
1564 INC_HTC_EP_STAT(pEndpoint, TxDropped, in htc_try_send()
1618 HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue, in htc_try_send()
1623 HTC_PACKET_QUEUE_TRANSFER_TO_TAIL(&pEndpoint->TxQueue, in htc_try_send()
1631 if (qdf_atomic_inc_return(&pEndpoint->TxProcessCount) > 1) { in htc_try_send()
1636 qdf_atomic_dec(&pEndpoint->TxProcessCount); in htc_try_send()
1647 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_try_send()
1650 pEndpoint->UL_PipeID); in htc_try_send()
1657 if (HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue) == 0) in htc_try_send()
1660 if (pEndpoint->async_update && in htc_try_send()
1661 (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) && in htc_try_send()
1664 pEndpoint->UL_PipeID); in htc_try_send()
1668 if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_try_send()
1670 int cred = pEndpoint->TxCredits; in htc_try_send()
1677 get_htc_send_packets_credit_based(target, pEndpoint, in htc_try_send()
1680 if (ep_debug_mask & (1 << pEndpoint->Id)) { in htc_try_send()
1681 if (cred - pEndpoint->TxCredits > 0) { in htc_try_send()
1684 pEndpoint->Id, cred, in htc_try_send()
1686 pEndpoint->TxCredits, in htc_try_send()
1687 pEndpoint->TxCredits)); in htc_try_send()
1702 if (pEndpoint->service_id == in htc_try_send()
1713 get_htc_send_packets(target, pEndpoint, &sendQueue, in htc_try_send()
1724 if (!pEndpoint->async_update) in htc_try_send()
1728 status = htc_issue_packets(target, pEndpoint, &sendQueue); in htc_try_send()
1737 if (pEndpoint->num_requeues_warn <= MAX_REQUEUE_WARN) { in htc_try_send()
1738 pEndpoint->num_requeues_warn++; in htc_try_send()
1739 pEndpoint->total_num_requeues++; in htc_try_send()
1742 pEndpoint->total_num_requeues++; in htc_try_send()
1743 pEndpoint->num_requeues_warn = 0; in htc_try_send()
1750 "callersSendQueue", result, pEndpoint->Id); in htc_try_send()
1755 pEndpoint->service_id); in htc_try_send()
1761 if (!pEndpoint->async_update) { in htc_try_send()
1764 HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue, in htc_try_send()
1768 if (pEndpoint->num_requeues_warn) in htc_try_send()
1769 pEndpoint->num_requeues_warn = 0; in htc_try_send()
1772 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_try_send()
1775 pEndpoint->UL_PipeID); in htc_try_send()
1778 if (!pEndpoint->async_update) { in htc_try_send()
1785 qdf_atomic_init(&pEndpoint->TxProcessCount); in htc_try_send()
1799 HTC_ENDPOINT *pEndpoint; in htc_send_pkts_sched_check() local
1809 pEndpoint = &target->endpoint[eid]; in htc_send_pkts_sched_check()
1810 pTxQueue = &pEndpoint->TxQueue; in htc_send_pkts_sched_check()
1837 HTC_ENDPOINT *pEndpoint; in htc_send_pkts_sched_queue() local
1842 pEndpoint = &target->endpoint[eid]; in htc_send_pkts_sched_queue()
1843 pTxQueue = &pEndpoint->TxQueue; in htc_send_pkts_sched_queue()
1848 pEndpoint->MaxTxQueueDepth - in htc_send_pkts_sched_queue()
1849 HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue); in htc_send_pkts_sched_queue()
1866 if (pEndpoint->EpCallBacks. in htc_send_pkts_sched_queue()
1867 EpSendFull(pEndpoint->EpCallBacks.pContext, in htc_send_pkts_sched_queue()
1869 INC_HTC_EP_STAT(pEndpoint, TxDropped, 1); in htc_send_pkts_sched_queue()
1889 HTC_ENDPOINT *pEndpoint; in __htc_send_pkt() local
1914 pEndpoint = &target->endpoint[pPacket->Endpoint]; in __htc_send_pkt()
1916 if (!pEndpoint->service_id) { in __htc_send_pkt()
1924 INC_HTC_EP_STAT(pEndpoint, TxPosted, 1); in __htc_send_pkt()
1950 pPacket->PktInfo.AsTx.SeqNo = pEndpoint->SeqNo; in __htc_send_pkt()
1951 pEndpoint->SeqNo++; in __htc_send_pkt()
1964 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in __htc_send_pkt()
1974 __func__, pEndpoint, pEndpoint->SeqNo)); in __htc_send_pkt()
1981 if (!htc_send_pkts_sched_check(HTCHandle, pEndpoint->Id)) in __htc_send_pkt()
1982 htc_send_pkts_sched_queue(HTCHandle, &pPktQueue, pEndpoint->Id); in __htc_send_pkt()
1984 htc_try_send(target, pEndpoint, &pPktQueue); in __htc_send_pkt()
1986 htc_try_send(target, pEndpoint, &pPktQueue); in __htc_send_pkt()
2211 HTC_ENDPOINT *pEndpoint; in htc_send_data_pkt() local
2219 pEndpoint = &target->endpoint[ep_id]; in htc_send_data_pkt()
2222 pEndpoint->UL_PipeID); in htc_send_data_pkt()
2225 if (pEndpoint->ul_is_polled) { in htc_send_data_pkt()
2226 hif_send_complete_check(pEndpoint->target->hif_dev, in htc_send_data_pkt()
2227 pEndpoint->UL_PipeID, 1); in htc_send_data_pkt()
2230 pEndpoint->UL_PipeID); in htc_send_data_pkt()
2237 pEndpoint->service_id); in htc_send_data_pkt()
2269 SM(pEndpoint->SeqNo, HTC_FRAME_HDR_CONTROLBYTES1)); in htc_send_data_pkt()
2271 pEndpoint->SeqNo++; in htc_send_data_pkt()
2278 pEndpoint->UL_PipeID, in htc_send_data_pkt()
2279 pEndpoint->Id, actual_length, netbuf, data_attr); in htc_send_data_pkt()
2298 HTC_ENDPOINT *pEndpoint; in htc_send_data_pkt() local
2315 pEndpoint = &target->endpoint[pPacket->Endpoint]; in htc_send_data_pkt()
2344 if (pEndpoint->ul_is_polled) { in htc_send_data_pkt()
2345 htc_send_complete_poll_timer_stop(pEndpoint); in htc_send_data_pkt()
2346 hif_send_complete_check(pEndpoint->target->hif_dev, in htc_send_data_pkt()
2347 pEndpoint->UL_PipeID, 0); in htc_send_data_pkt()
2352 pPacket->PktInfo.AsTx.SeqNo = pEndpoint->SeqNo; in htc_send_data_pkt()
2353 pEndpoint->SeqNo++; in htc_send_data_pkt()
2360 HTC_PACKET_ENQUEUE(&pEndpoint->TxQueue, pPacket); in htc_send_data_pkt()
2372 pEndpoint = &target->endpoint[1]; in htc_send_data_pkt()
2376 qdf_atomic_inc(&pEndpoint->TxProcessCount); in htc_send_data_pkt()
2377 if (qdf_atomic_read(&pEndpoint->TxProcessCount) > 1) { in htc_send_data_pkt()
2383 qdf_atomic_dec(&pEndpoint->TxProcessCount); in htc_send_data_pkt()
2391 if (IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_send_data_pkt()
2393 int cred = pEndpoint->TxCredits; in htc_send_data_pkt()
2395 get_htc_send_packets_credit_based(target, pEndpoint, in htc_send_data_pkt()
2398 if (ep_debug_mask & (1 << pEndpoint->Id)) { in htc_send_data_pkt()
2399 if (cred - pEndpoint->TxCredits > 0) { in htc_send_data_pkt()
2402 pEndpoint->Id, cred, in htc_send_data_pkt()
2403 cred - pEndpoint->TxCredits, in htc_send_data_pkt()
2404 pEndpoint->TxCredits)); in htc_send_data_pkt()
2414 pEndpoint->UL_PipeID)) in htc_send_data_pkt()
2420 get_htc_send_packets(target, pEndpoint, in htc_send_data_pkt()
2426 get_htc_send_packets(target, pEndpoint, &sendQueue, in htc_send_data_pkt()
2437 pEndpoint->UL_PipeID); in htc_send_data_pkt()
2438 get_htc_send_packets(target, pEndpoint, &sendQueue, in htc_send_data_pkt()
2450 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_send_data_pkt()
2451 if (htc_tx_pad_credit_avail(pEndpoint) < 1) { in htc_send_data_pkt()
2458 &pEndpoint->TxQueue, in htc_send_data_pkt()
2464 htc_issue_packets_bundle(target, pEndpoint, &sendQueue); in htc_send_data_pkt()
2466 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_send_data_pkt()
2467 if (htc_tx_pad_credit_avail(pEndpoint) < 1) { in htc_send_data_pkt()
2474 &pEndpoint->TxQueue, in htc_send_data_pkt()
2488 HTC_PACKET_ENQUEUE(&pEndpoint->TxLookupQueue, pPacket); in htc_send_data_pkt()
2489 INC_HTC_EP_STAT(pEndpoint, TxIssued, 1); in htc_send_data_pkt()
2490 pEndpoint->ul_outstanding_cnt++; in htc_send_data_pkt()
2494 htc_handle_extra_tx_credit(pEndpoint, pPacket, in htc_send_data_pkt()
2501 pEndpoint->UL_PipeID, in htc_send_data_pkt()
2502 pEndpoint->Id, in htc_send_data_pkt()
2506 if (pEndpoint->EpCallBacks.ep_padding_credit_update) { in htc_send_data_pkt()
2508 pEndpoint->EpCallBacks. in htc_send_data_pkt()
2510 (pEndpoint->EpCallBacks.pContext, 1); in htc_send_data_pkt()
2516 pEndpoint->Id, in htc_send_data_pkt()
2517 pEndpoint->TxCreditSize, in htc_send_data_pkt()
2525 pEndpoint->ul_outstanding_cnt--; in htc_send_data_pkt()
2527 HTC_PACKET_REMOVE(&pEndpoint->TxLookupQueue, pPacket); in htc_send_data_pkt()
2547 HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxQueue, in htc_send_data_pkt()
2554 qdf_atomic_init(&pEndpoint->TxProcessCount); in htc_send_data_pkt()
2556 if (pEndpoint->ul_is_polled) { in htc_send_data_pkt()
2563 htc_send_complete_poll_timer_start(pEndpoint); in htc_send_data_pkt()
2580 HTC_ENDPOINT *pEndpoint, in htc_lookup_tx_packet() argument
2588 LOCK_HTC_EP_TX_LOOKUP(pEndpoint); in htc_lookup_tx_packet()
2592 pEndpoint->ul_outstanding_cnt--; in htc_lookup_tx_packet()
2595 pPacket = htc_packet_dequeue(&pEndpoint->TxLookupQueue); in htc_lookup_tx_packet()
2598 UNLOCK_HTC_EP_TX_LOOKUP(pEndpoint); in htc_lookup_tx_packet()
2603 UNLOCK_HTC_EP_TX_LOOKUP(pEndpoint); in htc_lookup_tx_packet()
2613 &pEndpoint->TxLookupQueue); in htc_lookup_tx_packet()
2634 HTC_PACKET_QUEUE_TRANSFER_TO_HEAD(&pEndpoint->TxLookupQueue, in htc_lookup_tx_packet()
2637 UNLOCK_HTC_EP_TX_LOOKUP(pEndpoint); in htc_lookup_tx_packet()
2656 HTC_ENDPOINT *pEndpoint; in htc_tx_completion_handler() local
2667 pEndpoint = &target->endpoint[EpID]; in htc_tx_completion_handler()
2669 pEndpoint->htc_comp_cnt++; in htc_tx_completion_handler()
2672 pPacket = htc_lookup_tx_packet(target, pEndpoint, netbuf); in htc_tx_completion_handler()
2701 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) in htc_tx_completion_handler()
2702 htc_try_send(target, pEndpoint, NULL); in htc_tx_completion_handler()
2714 if (!IS_TX_CREDIT_FLOW_ENABLED(pEndpoint)) { in htc_tx_completion_handler()
2719 if ((qdf_atomic_read(&pEndpoint->TxProcessCount) == 0) || in htc_tx_completion_handler()
2720 (!pEndpoint->async_update)) { in htc_tx_completion_handler()
2721 htc_try_send(target, pEndpoint, NULL); in htc_tx_completion_handler()
2753 HTC_ENDPOINT *pEndpoint = NULL; in htc_tx_resource_avail_handler() local
2756 pEndpoint = &target->endpoint[i]; in htc_tx_resource_avail_handler()
2757 if (pEndpoint->service_id != 0) { in htc_tx_resource_avail_handler()
2758 if (pEndpoint->UL_PipeID == pipeID) in htc_tx_resource_avail_handler()
2774 htc_try_send(target, pEndpoint, NULL); in htc_tx_resource_avail_handler()
2816 void htc_flush_endpoint_tx(HTC_TARGET *target, HTC_ENDPOINT *pEndpoint, in htc_flush_endpoint_tx() argument
2822 while (HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue)) { in htc_flush_endpoint_tx()
2823 pPacket = htc_packet_dequeue(&pEndpoint->TxQueue); in htc_flush_endpoint_tx()
2868 HTC_ENDPOINT *pEndpoint = &target->endpoint[Endpoint]; in htc_flush_endpoint() local
2870 if (pEndpoint->service_id == 0) { in htc_flush_endpoint()
2876 htc_flush_endpoint_tx(target, pEndpoint, Tag); in htc_flush_endpoint()
2925 HTC_ENDPOINT *pEndpoint; in htc_process_credit_rpt() local
2947 pEndpoint = &target->endpoint[rpt_ep_id]; in htc_process_credit_rpt()
2949 if (ep_debug_mask & (1 << pEndpoint->Id)) { in htc_process_credit_rpt()
2952 rpt_ep_id, pEndpoint->TxCredits, in htc_process_credit_rpt()
2954 pEndpoint->TxCredits + rpt_credits)); in htc_process_credit_rpt()
2960 INC_HTC_EP_STAT(pEndpoint, TxCreditRpts, 1); in htc_process_credit_rpt()
2961 INC_HTC_EP_STAT(pEndpoint, TxCreditsReturned, rpt_credits); in htc_process_credit_rpt()
2967 INC_HTC_EP_STAT(pEndpoint, TxCreditsFromRx, in htc_process_credit_rpt()
2969 INC_HTC_EP_STAT(pEndpoint, TxCreditRptsFromRx, 1); in htc_process_credit_rpt()
2972 INC_HTC_EP_STAT(pEndpoint, TxCreditsFromEp0, in htc_process_credit_rpt()
2974 INC_HTC_EP_STAT(pEndpoint, TxCreditRptsFromEp0, 1); in htc_process_credit_rpt()
2977 INC_HTC_EP_STAT(pEndpoint, TxCreditsFromOther, in htc_process_credit_rpt()
2979 INC_HTC_EP_STAT(pEndpoint, TxCreditRptsFromOther, 1); in htc_process_credit_rpt()
2984 if (pEndpoint->service_id == WMI_CONTROL_SVC) { in htc_process_credit_rpt()
2986 pEndpoint->TxCredits + rpt_credits, in htc_process_credit_rpt()
2987 HTC_PACKET_QUEUE_DEPTH(&pEndpoint-> in htc_process_credit_rpt()
2994 pEndpoint->TxCredits += rpt_credits; in htc_process_credit_rpt()
2996 if (pEndpoint->TxCredits in htc_process_credit_rpt()
2997 && HTC_PACKET_QUEUE_DEPTH(&pEndpoint->TxQueue)) { in htc_process_credit_rpt()
3000 htc_try_send(target, pEndpoint, NULL); in htc_process_credit_rpt()
3002 if (pEndpoint->service_id == HTT_DATA_MSG_SVC) in htc_process_credit_rpt()
3005 htc_try_send(target, pEndpoint, NULL); in htc_process_credit_rpt()