Lines Matching refs:fifo_credit
493 int fifo_credit[BRCMF_FWS_FIFO_COUNT]; member
1187 int *fifo_credit; in brcmf_fws_return_credits() local
1201 fifo_credit = &fws->fifo_credit[lender_ac]; in brcmf_fws_return_credits()
1204 *fifo_credit += credits; in brcmf_fws_return_credits()
1208 *fifo_credit += *borrowed; in brcmf_fws_return_credits()
1216 fws->fifo_credit[fifo] += credits; in brcmf_fws_return_credits()
1219 if (fws->fifo_credit[fifo] > fws->init_fifo_credit[fifo]) in brcmf_fws_return_credits()
1220 fws->fifo_credit[fifo] = fws->init_fifo_credit[fifo]; in brcmf_fws_return_credits()
1613 for (i = 0; i < ARRAY_SIZE(fws->fifo_credit); i++) { in brcmf_fws_notify_credit_map()
1614 fws->fifo_credit[i] += credits[i] - fws->init_fifo_credit[i]; in brcmf_fws_notify_credit_map()
1616 if (fws->fifo_credit[i] > 0) in brcmf_fws_notify_credit_map()
1620 WARN_ONCE(fws->fifo_credit[i] < 0, in brcmf_fws_notify_credit_map()
1622 fws->fifo_credit[i]); in brcmf_fws_notify_credit_map()
2036 if (fws->fifo_credit[lender_ac] > borrow_limit) { in brcmf_fws_borrow_credit()
2038 fws->fifo_credit[lender_ac]--; in brcmf_fws_borrow_credit()
2039 if (fws->fifo_credit[lender_ac] == 0) in brcmf_fws_borrow_credit()
2238 while ((fws->fifo_credit[fifo]) || in brcmf_fws_dequeue_worker()
2244 fws->fifo_credit[fifo]--; in brcmf_fws_dequeue_worker()
2253 fws->fifo_credit[fifo] == 0 && in brcmf_fws_dequeue_worker()