Lines Matching full:budget
92 static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc *wcs, in __ib_process_cq() argument
100 * budget might be (-1) if the caller does not in __ib_process_cq()
105 budget - completed), wcs)) > 0) { in __ib_process_cq()
117 if (n != batch || (budget != -1 && completed >= budget)) in __ib_process_cq()
127 * @budget: number of CQEs to poll for
135 * Note: do not pass -1 as %budget unless it is guaranteed that the number
138 int ib_process_cq_direct(struct ib_cq *cq, int budget) in ib_process_cq_direct() argument
142 return __ib_process_cq(cq, budget, wcs, IB_POLL_BATCH_DIRECT); in ib_process_cq_direct()
151 static int ib_poll_handler(struct irq_poll *iop, int budget) in ib_poll_handler() argument
157 completed = __ib_process_cq(cq, budget, cq->wc, IB_POLL_BATCH); in ib_poll_handler()
158 if (completed < budget) { in ib_poll_handler()