Lines Matching refs:credits

1419 	/* Borrow from lowest priority available AC (including BC/MC credits) */
1448 dhd_wlfc_FIFOcreditmap_update(void* state, uint8* credits)
1453 ctx->FIFO_credit[0] = credits[0];
1454 ctx->FIFO_credit[1] = credits[1];
1455 ctx->FIFO_credit[2] = credits[2];
1456 ctx->FIFO_credit[3] = credits[3];
1458 ctx->FIFO_credit[4] = credits[4];
1567 First, use up FIFO credits available to each AC. Based on distribution
1568 and credits left, borrow from other ACs as applicable
1652 /* If no credits were used, the queue is idle and can be re-used
1653 Note that resv credits cannot be borrowed
1674 ac = 1; /* Set ac to AC_BE and borrow credits */
1700 /* At this point, borrow all credits only for "ac" (which should be set above to AC_BE)
1786 /* Return credits to highest priority lender first */
1893 /* Return credits to highest priority lender first */
1964 dhd_wlfc_fifocreditback_indicate(dhd_pub_t *dhd, uint8* credits)
1971 wlfc->stats.fifo_credits_back[i] += credits[i];
1973 /* update FIFO credits */
1978 /* Return credits to highest priority lender first */
1979 for (lender = AC_COUNT; (lender >= 0) && (credits[i] > 0); lender--) {
1981 if (credits[i] >= wlfc->credits_borrowed[i][lender]) {
1982 credits[i] -= wlfc->credits_borrowed[i][lender];
1988 wlfc->credits_borrowed[i][lender] -= credits[i];
1989 wlfc->FIFO_credit[lender] += credits[i];
1990 credits[i] = 0;
1995 /* If we have more credits left over, these must belong to the AC */
1996 if (credits[i] > 0) {
1997 wlfc->FIFO_credit[i] += credits[i];
2111 /* a fresh PS mode should wipe old ps credits? */