Lines Matching full:credits
82 int credits = 0; in ath12k_htc_send() local
93 credits = DIV_ROUND_UP(skb->len, htc->target_credit_size); in ath12k_htc_send()
95 if (ep->tx_credits < credits) { in ath12k_htc_send()
97 "htc insufficient credits ep %d required %d available %d\n", in ath12k_htc_send()
98 eid, credits, ep->tx_credits); in ath12k_htc_send()
103 ep->tx_credits -= credits; in ath12k_htc_send()
105 "htc ep %d consumed %d credits (total %d)\n", in ath12k_htc_send()
106 eid, credits, ep->tx_credits); in ath12k_htc_send()
130 ep->tx_credits += credits; in ath12k_htc_send()
132 "htc ep %d reverted %d credits back (total %d)\n", in ath12k_htc_send()
133 eid, credits, ep->tx_credits); in ath12k_htc_send()
165 ep->tx_credits += report->credits; in ath12k_htc_process_credit_report()
167 ath12k_dbg(ab, ATH12K_DBG_HTC, "htc ep %d got %d credits (total %d)\n", in ath12k_htc_process_credit_report()
168 report->eid, report->credits, ep->tx_credits); in ath12k_htc_process_credit_report()
472 int i, credits; in ath12k_htc_setup_target_buffer_assignments() local
474 credits = htc->total_transmit_credits; in ath12k_htc_setup_target_buffer_assignments()
481 /* Divide credits among number of endpoints for WMI */ in ath12k_htc_setup_target_buffer_assignments()
482 credits = credits / htc->wmi_ep_count; in ath12k_htc_setup_target_buffer_assignments()
485 serv_entry[i].credit_allocation = credits; in ath12k_htc_setup_target_buffer_assignments()
588 "boot htc service %s does not allocate target credits\n", in ath12k_htc_connect_service()