Lines Matching refs:credits
42 int credits) in ath6kl_credit_deposit() argument
45 ep_dist->endpoint, credits); in ath6kl_credit_deposit()
47 ep_dist->credits += credits; in ath6kl_credit_deposit()
48 ep_dist->cred_assngd += credits; in ath6kl_credit_deposit()
49 cred_info->cur_free_credits -= credits; in ath6kl_credit_deposit()
138 cur_ep_dist->credits, in ath6kl_credit_init()
170 int credits; in ath6kl_credit_reduce() local
177 if (ep_dist->credits <= limit) in ath6kl_credit_reduce()
180 credits = ep_dist->credits - limit; in ath6kl_credit_reduce()
181 ep_dist->credits -= credits; in ath6kl_credit_reduce()
182 cred_info->cur_free_credits += credits; in ath6kl_credit_reduce()
195 cur_list->credits += cur_list->cred_to_dist; in ath6kl_credit_update()
198 if (cur_list->credits > cur_list->cred_assngd) in ath6kl_credit_update()
203 if (cur_list->credits > cur_list->cred_norm) in ath6kl_credit_update()
224 int credits = 0; in ath6kl_credit_seek() local
242 credits = min(cred_info->cur_free_credits, ep_dist->seek_cred); in ath6kl_credit_seek()
244 if (credits >= ep_dist->seek_cred) in ath6kl_credit_seek()
285 credits = min(cred_info->cur_free_credits, ep_dist->seek_cred); in ath6kl_credit_seek()
289 if (credits) in ath6kl_credit_seek()
290 ath6kl_credit_deposit(cred_info, ep_dist, credits); in ath6kl_credit_seek()
555 *req_cred, ep->cred_dist.credits); in htc_check_credits()
557 if (ep->cred_dist.credits < *req_cred) { in htc_check_credits()
562 ep->cred_dist.seek_cred = *req_cred - ep->cred_dist.credits; in htc_check_credits()
568 if (ep->cred_dist.credits < *req_cred) { in htc_check_credits()
576 ep->cred_dist.credits -= *req_cred; in htc_check_credits()
580 if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { in htc_check_credits()
582 ep->cred_dist.cred_per_msg - ep->cred_dist.credits; in htc_check_credits()
587 if (ep->cred_dist.credits < ep->cred_dist.cred_per_msg) { in htc_check_credits()
1024 endpoint->cred_dist.credits, in htc_chk_ep_txq()
1614 rpt->eid, rpt->credits); in htc_proc_cred_rpt()
1617 endpoint->ep_st.cred_retnd += rpt->credits; in htc_proc_cred_rpt()
1624 endpoint->ep_st.cred_from_rx += rpt->credits; in htc_proc_cred_rpt()
1628 endpoint->ep_st.cred_from_ep0 += rpt->credits; in htc_proc_cred_rpt()
1631 endpoint->ep_st.cred_from_other += rpt->credits; in htc_proc_cred_rpt()
1637 endpoint->cred_dist.credits += rpt->credits; in htc_proc_cred_rpt()
1639 endpoint->cred_dist.cred_to_dist += rpt->credits; in htc_proc_cred_rpt()
1651 tot_credits += rpt->credits; in htc_proc_cred_rpt()