Lines Matching refs:lender_ac
1185 int lender_ac; in brcmf_fws_return_credits() local
1196 for (lender_ac = BRCMF_FWS_FIFO_AC_VO; lender_ac >= 0; in brcmf_fws_return_credits()
1197 lender_ac--) { in brcmf_fws_return_credits()
1198 borrowed = &fws->credits_borrowed[fifo][lender_ac]; in brcmf_fws_return_credits()
1200 fws->fifo_credit_map |= (1 << lender_ac); in brcmf_fws_return_credits()
1201 fifo_credit = &fws->fifo_credit[lender_ac]; in brcmf_fws_return_credits()
2026 int lender_ac, borrow_limit = 0; in brcmf_fws_borrow_credit() local
2028 for (lender_ac = 0; lender_ac <= highest_lender_ac; lender_ac++) { in brcmf_fws_borrow_credit()
2032 fws->init_fifo_credit[lender_ac] / BRCMF_BORROW_RATIO; in brcmf_fws_borrow_credit()
2036 if (fws->fifo_credit[lender_ac] > borrow_limit) { in brcmf_fws_borrow_credit()
2037 fws->credits_borrowed[borrower_ac][lender_ac]++; 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()
2040 fws->fifo_credit_map &= ~(1 << lender_ac); in brcmf_fws_borrow_credit()
2042 brcmf_dbg(DATA, "borrow credit from: %d\n", lender_ac); in brcmf_fws_borrow_credit()