Lines Matching refs:budget
102 drain_ring_locked(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget)
141 * everyone else, or we have exceeded our budget.
143 if (cidx != pidx && pending < 64 && total < budget)
148 ns.flags = state_to_flags(ns, total >= budget);
177 drain_ring_lockless(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget)
220 * everyone else, or we have exceeded our budget.
222 if (cidx != pidx && pending < 64 && total < budget)
228 ns.flags = state_to_flags(ns, total >= budget);
326 ifmp_ring_enqueue(struct ifmp_ring *r, void **items, int n, int budget)
388 drain_ring_locked(r, ns, os.flags, budget);
396 ifmp_ring_enqueue(struct ifmp_ring *r, void **items, int n, int budget)
465 ifmp_ring_check_drainage(struct ifmp_ring *r, int budget)
487 drain_ring_locked(r, ns, os.flags, budget);
498 drain_ring_lockless(r, ns, os.flags, budget);