Searched refs:budget (Results 1 - 24 of 24) sorted by relevance

/freebsd-11-stable/sys/net/
H A Dmp_ring.c102 drain_ring_locked(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget) argument
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) argument
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) argument
388 drain_ring_locked(r, ns, os.flags, budget);
396 ifmp_ring_enqueue(struct ifmp_ring *r, void **items, int n, int budget) argument
465 ifmp_ring_check_drainage(struct ifmp_ring *r, int budget) argument
[all...]
H A Diflib.h187 int (*ift_rxd_available) (void *, uint16_t qsidx, qidx_t pidx, qidx_t budget);
H A Diflib.c727 static int iflib_rxd_avail(if_ctx_t ctx, iflib_rxq_t rxq, qidx_t cidx, qidx_t budget);
731 static void iflib_txq_check_drain(iflib_txq_t txq, int budget);
1208 #define netmap_rx_irq(ifp, qid, budget) (0)
2567 iflib_rxeof(iflib_rxq_t rxq, qidx_t budget) argument
2591 MPASS(budget > 0);
2597 if ((avail = iflib_rxd_avail(ctx, rxq, *cidxp, budget)) == 0) {
2599 retval |= __iflib_fl_refill_lt(ctx, fl, budget + 8);
2604 for (budget_left = budget; (budget_left > 0) && (avail > 0); budget_left--, avail--) {
2655 retval |= __iflib_fl_refill_lt(ctx, fl, budget + 8);
3535 iflib_txq_check_drain(iflib_txq_t txq, int budget) argument
3734 uint16_t budget; local
5619 iflib_rxd_avail(if_ctx_t ctx, iflib_rxq_t rxq, qidx_t cidx, qidx_t budget) argument
[all...]
/freebsd-11-stable/contrib/libdivsufsort/lib/
H A Dtrsort.c202 trbudget_init(trbudget_t *budget, saidx_t chance, saidx_t incval) { argument
203 budget->chance = chance;
204 budget->remain = budget->incval = incval;
209 trbudget_check(trbudget_t *budget, saidx_t size) { argument
210 if(size <= budget->remain) { budget->remain -= size; return 1; }
211 if(budget->chance == 0) { budget->count += size; return 0; }
212 budget
327 tr_introsort(saidx_t *ISA, const saidx_t *ISAd, saidx_t *SA, saidx_t *first, saidx_t *last, trbudget_t *budget) argument
558 trbudget_t budget; local
[all...]
/freebsd-11-stable/sys/dev/cxgbe/
H A Dt4_mp_ring.c104 drain_ring(struct mp_ring *r, union ring_state os, uint16_t prev, int budget) argument
148 * everyone else, or we have exceeded our budget.
150 if (cidx != pidx && pending < 64 && total < budget)
157 ns.flags = state_to_flags(ns, total >= budget);
251 mp_ring_enqueue(struct mp_ring *r, void **items, int n, int budget) argument
320 drain_ring(r, ns, os.flags, budget);
326 mp_ring_check_drainage(struct mp_ring *r, int budget) argument
346 drain_ring(r, ns, os.flags, budget);
H A Dt4_sge.c1422 service_iq(struct sge_iq *iq, int budget) argument
1439 limit = budget ? budget : iq->qsize / 16;
1516 if (budget) {
1554 service_iq_fl(struct sge_iq *iq, int budget) argument
1573 limit = budget ? budget : iq->qsize / 16;
1676 if (budget) {
3921 * recycled do not count towards this allocation budget.
/freebsd-11-stable/contrib/bzip2/
H A Dblocksort.c352 Int32* budget )
464 (*budget)--;
492 Int32* budget )
515 ptr[j-h]+d, v+d, block, quadrant, nblock, budget
529 ptr[j-h]+d, v+d, block, quadrant, nblock, budget
543 ptr[j-h]+d, v+d, block, quadrant, nblock, budget
552 if (*budget < 0) return;
628 Int32* budget )
651 mainSimpleSort ( ptr, block, quadrant, nblock, lo, hi, d, budget );
652 if (*budget <
1040 Int32 budget; local
[all...]
/freebsd-11-stable/sys/dev/liquidio/base/
H A Dlio_iq.h322 uint32_t budget);
341 uint32_t budget);
H A Dlio_request_manager.c405 struct lio_instr_queue *iq, uint32_t budget)
475 if ((budget) && (inst_count >= budget))
487 uint32_t budget)
505 if (budget)
508 budget -
521 } while (tot_inst_processed < budget);
523 if (budget && (tot_inst_processed >= budget))
404 lio_process_iq_request_list(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument
486 lio_flush_iq(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument
H A Dlio_droq.h427 struct lio_droq *droq, uint32_t budget);
H A Dlio_droq.c727 uint32_t budget)
742 if (pkt_count > budget)
743 pkt_count = budget;
726 lio_droq_process_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t budget) argument
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_xfer.c46 unsigned int budget; member in struct:xfer_state
144 if (xfer_state->inflight_count >= xfer_state->budget)
231 xfer_state->budget = 7;
H A Dmlx5fpga_conn.c383 unsigned int budget)
387 while (budget) {
392 budget--;
397 if (!budget) {
382 mlx5_fpga_conn_cqes(struct mlx5_fpga_conn *conn, unsigned int budget) argument
/freebsd-11-stable/sys/dev/ena/
H A Dena_datapath.c231 int budget = TX_BUDGET; local
290 } while (likely(--budget));
292 work_done = TX_BUDGET - budget;
544 int budget = RX_BUDGET; local
652 } while (--budget);
668 return (RX_BUDGET - budget);
H A Dena.c3086 int i, budget, rc; local
3100 budget = adapter->missing_tx_max_queues;
3114 budget--;
3115 if (budget == 0) {
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c497 mlx5e_poll_tx_cq(struct mlx5e_sq *sq, int budget) argument
507 while (budget > 0) {
519 /* update budget according to the event factor */
520 budget -= sq->cev_factor;
H A Dmlx5_en_rx.c374 mlx5e_poll_rx_cq(struct mlx5e_rq *rq, int budget) argument
378 for (i = 0; i < budget; i++) {
/freebsd-11-stable/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_rx.c738 int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int budget) argument
847 if (++polled == budget)
867 static int mlx4_en_poll_rx_cq(struct mlx4_en_cq *cq, int budget) argument
872 done = mlx4_en_process_rx_cq(dev, cq, budget);
H A Den.h823 int budget);
/freebsd-11-stable/sys/dev/bnxt/
H A Dbnxt_txrx.c63 qidx_t budget);
329 bnxt_isc_rxd_available(void *sc, uint16_t rxqid, qidx_t idx, qidx_t budget) argument
414 if (avail > budget)
/freebsd-11-stable/sys/xen/interface/
H A Ddomctl.h349 uint32_t budget; member in struct:xen_domctl_scheduler_op::__anon13525::xen_domctl_sched_rtds
/freebsd-11-stable/tools/tools/netmap/
H A Dpkt-gen.c1925 int budget = 0; local
1965 budget = targ->g->burst;
1967 } else if (budget <= 0) {
1968 budget = targ->g->burst;
2002 limit = budget;
2059 budget--;
/freebsd-11-stable/sys/dev/cxgb/
H A Dcxgb_sge.c2815 * @budget: how many responses can be processed in this round
2817 * Process responses from an SGE response queue up to the supplied budget.
2820 * A negative budget is effectively unlimited.
2827 process_responses(adapter_t *adap, struct sge_qset *qs, int budget) argument
2831 int budget_left = budget;
2992 budget -= budget_left;
2993 return (budget);
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Dqlnx_os.c149 static int qlnx_rx_int(qlnx_host_t *ha, struct qlnx_fastpath *fp, int budget,
4694 qlnx_rx_int(qlnx_host_t *ha, struct qlnx_fastpath *fp, int budget, argument
4965 /* CR TPA - revisit how to handle budget in TPA perhaps
4967 if (rx_pkt == budget)

Completed in 273 milliseconds