/freebsd-current/sys/contrib/dev/athk/ath11k/ |
H A D | dp_rx.h | 67 int ath11k_dp_process_rxdma_err(struct ath11k_base *ab, int mac_id, int budget); 69 struct napi_struct *napi, int budget); 71 int budget); 74 int budget); 88 struct napi_struct *napi, int budget); 90 struct napi_struct *napi, int budget);
|
H A D | dp.c | 786 int budget) 802 work_done = ath11k_dp_process_rx_err(ab, napi, budget); 803 budget -= work_done; 805 if (budget <= 0) 812 budget); 813 budget -= work_done; 816 if (budget <= 0) 823 budget); 824 budget -= work_done; 826 if (budget < 784 ath11k_dp_service_srng(struct ath11k_base *ab, struct ath11k_ext_irq_grp *irq_grp, int budget) argument [all...] |
/freebsd-current/sys/contrib/dev/athk/ath12k/ |
H A D | dp_mon.h | 86 int *budget, enum dp_monitor_mode monitor_mode, 89 struct napi_struct *napi, int budget, 105 struct napi_struct *napi, int *budget);
|
H A D | dp_rx.h | 113 struct napi_struct *napi, int budget); 115 int budget); 118 int budget);
|
H A D | dp.c | 878 int budget) 896 work_done = ath12k_dp_rx_process_err(ab, napi, budget); 897 budget -= work_done; 899 if (budget <= 0) 906 budget); 907 budget -= work_done; 910 if (budget <= 0) 917 budget); 918 budget -= work_done; 920 if (budget < 876 ath12k_dp_service_srng(struct ath12k_base *ab, struct ath12k_ext_irq_grp *irq_grp, int budget) argument [all...] |
/freebsd-current/sys/dev/ice/ |
H A D | ice_iflib_recovery_txrx.c | 51 static int ice_recovery_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget); 128 * @budget: maximum Rx budget 137 qidx_t __unused pidx, qidx_t __unused budget) 136 ice_recovery_rxd_available(void __unused *arg, uint16_t __unused rxqid, qidx_t __unused pidx, qidx_t __unused budget) argument
|
H A D | ice_iflib_txrx.c | 52 static int _ice_ift_rxd_available(struct ice_rx_queue *rxq, qidx_t pidx, qidx_t budget); 66 static int ice_ift_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget); 73 static int ice_ift_rxd_available_subif(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget); 317 * @budget: maximum Rx budget 320 * of the given budget. 323 _ice_ift_rxd_available(struct ice_rx_queue *rxq, qidx_t pidx, qidx_t budget) argument 331 for (cnt = 0, i = pidx; cnt < nrxd - 1 && cnt < budget;) { 351 * @budget: maximum Rx budget 357 ice_ift_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget) argument 682 ice_ift_rxd_available_subif(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget) argument [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/ |
H A D | dma.h | 57 int mt76_dma_rx_poll(struct napi_struct *napi, int budget);
|
H A D | dma.c | 820 mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) argument 834 while (done < budget) { 902 int mt76_dma_rx_poll(struct napi_struct *napi, int budget) argument 913 cur = mt76_dma_rx_process(dev, &dev->q_rx[qid], budget - done); 916 } while (cur && done < budget); 920 if (done < budget && napi_complete(napi)) 929 int (*poll)(struct napi_struct *napi, int budget)) 928 mt76_dma_init(struct mt76_dev *dev, int (*poll)(struct napi_struct *napi, int budget)) argument
|
H A D | mt792x_dma.c | 291 int mt792x_poll_tx(struct napi_struct *napi, int budget) argument 313 int mt792x_poll_rx(struct napi_struct *napi, int budget) argument 325 done = mt76_dma_rx_poll(napi, budget);
|
/freebsd-current/contrib/libdivsufsort/lib/ |
H A D | trsort.c | 202 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-current/sys/net/ |
H A D | mp_ring.c | 93 drain_ring_locked(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget) argument 131 * everyone else, or we have exceeded our budget. 133 if (cidx != pidx && pending < 64 && total < budget) 138 ns.flags = state_to_flags(ns, total >= budget); 167 drain_ring_lockless(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget) argument 210 * everyone else, or we have exceeded our budget. 212 if (cidx != pidx && pending < 64 && total < budget) 219 ns.flags = state_to_flags(ns, total >= budget); 318 ifmp_ring_enqueue(struct ifmp_ring *r, void **items, int n, int budget, int abdicate) argument 385 drain_ring_locked(r, ns, os.flags, budget); 393 ifmp_ring_enqueue(struct ifmp_ring *r, void **items, int n, int budget, int abdicate) argument 475 ifmp_ring_check_drainage(struct ifmp_ring *r, int budget) argument [all...] |
/freebsd-current/contrib/bzip2/ |
H A D | blocksort.c | 352 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-current/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 141 rc = napi->poll(napi, napi->budget); 146 if (rc >= napi->budget) 305 NAPI_TRACE_TASK(napi, pending, napi->budget); 306 count = napi->poll(napi, napi->budget); 315 if (count >= napi->budget) { 335 napi->budget = NAPI_POLL_WEIGHT;
|
/freebsd-current/sys/dev/cxgbe/ |
H A D | t4_mp_ring.c | 51 * over its budget it sets flags to TOO_BUSY. A producer that observes a 76 TOO_BUSY, /* consumer is running and is beyond its budget */ 115 drain_ring(struct mp_ring *r, int budget) argument 176 MPASS(total >= budget); 184 if (total >= budget) { 227 drain_txpkts(struct mp_ring *r, union ring_state os, int budget) argument 254 drain_ring(r, budget); 344 mp_ring_enqueue(struct mp_ring *r, void **items, int n, int budget) argument 417 drain_ring(r, budget); 469 drain_ring(r, budget); 476 mp_ring_check_drainage(struct mp_ring *r, int budget) argument [all...] |
/freebsd-current/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | phy.h | 194 * @CTDP_CMD_OPERATION_START: update the current budget 196 * @CTDP_CMD_OPERATION_REPORT: get the average budget 205 * struct iwl_mvm_ctdp_cmd - track and manage the FW power consumption budget 208 * @budget: the budget in milliwatt 213 __le32 budget; member in struct:iwl_mvm_ctdp_cmd
|
/freebsd-current/sys/dev/liquidio/base/ |
H A D | lio_iq.h | 321 uint32_t budget); 340 uint32_t budget);
|
H A D | lio_request_manager.c | 404 struct lio_instr_queue *iq, uint32_t budget) 472 if ((budget) && (inst_count >= budget)) 484 uint32_t budget) 502 if (budget) 505 budget - 518 } while (tot_inst_processed < budget); 520 if (budget && (tot_inst_processed >= budget)) 403 lio_process_iq_request_list(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument 483 lio_flush_iq(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument
|
H A D | lio_droq.h | 426 struct lio_droq *droq, uint32_t budget);
|
/freebsd-current/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_xfer.c | 44 unsigned int budget; member in struct:xfer_state 142 if (xfer_state->inflight_count >= xfer_state->budget) 229 xfer_state->budget = 7;
|
/freebsd-current/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_fp.c | 303 * loops upto budget times. budget is based on the 337 int budget = nq->budget; local 350 /* Service the NQ until empty or budget expired */ 351 while (budget--) { 428 "QPLIB: serviced %llu/%llu/%llu budget 0x%x reaped 0x%x\n", 430 nq->stats.num_dbqne_processed, budget, hw_polled); 607 nq->budget = 8; 2619 struct bnxt_qplib_cqe **pcqe, int *budget) 2618 __flush_sq(struct bnxt_qplib_q *sq, struct bnxt_qplib_qp *qp, struct bnxt_qplib_cqe **pcqe, int *budget) argument 2669 __flush_rq(struct bnxt_qplib_q *rq, struct bnxt_qplib_qp *qp, struct bnxt_qplib_cqe **pcqe, int *budget) argument 2862 bnxt_qplib_cq_process_req(struct bnxt_qplib_cq *cq, struct cq_req *hwcqe, struct bnxt_qplib_cqe **pcqe, int *budget, u32 cq_cons, struct bnxt_qplib_qp **lib_qp) argument 2983 bnxt_qplib_cq_process_res_rc(struct bnxt_qplib_cq *cq, struct cq_res_rc *hwcqe, struct bnxt_qplib_cqe **pcqe, int *budget) argument 3071 bnxt_qplib_cq_process_res_ud(struct bnxt_qplib_cq *cq, struct cq_res_ud_v2 *hwcqe, struct bnxt_qplib_cqe **pcqe, int *budget) argument 3189 bnxt_qplib_cq_process_res_raweth_qp1(struct bnxt_qplib_cq *cq, struct cq_res_raweth_qp1 *hwcqe, struct bnxt_qplib_cqe **pcqe, int *budget) argument 3295 bnxt_qplib_cq_process_terminal(struct bnxt_qplib_cq *cq, struct cq_terminal *hwcqe, struct bnxt_qplib_cqe **pcqe, int *budget) argument 3424 u32 budget = num_cqes; local 3451 int budget, rc = 0; local [all...] |
/freebsd-current/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | dma.c | 66 static int mt7615_poll_tx(struct napi_struct *napi, int budget) argument 87 static int mt7615_poll_rx(struct napi_struct *napi, int budget) argument 99 done = mt76_dma_rx_poll(napi, budget);
|
/freebsd-current/sys/contrib/zstd/lib/dictBuilder/ |
H A D | divsufsort.c | 1050 trbudget_init(trbudget_t *budget, int chance, int incval) { argument 1051 budget->chance = chance; 1052 budget->remain = budget->incval = incval; 1057 trbudget_check(trbudget_t *budget, int size) { argument 1058 if(size <= budget->remain) { budget->remain -= size; return 1; } 1059 if(budget->chance == 0) { budget->count += size; return 0; } 1060 budget 1175 tr_introsort(int *ISA, const int *ISAd, int *SA, int *first, int *last, trbudget_t *budget) argument 1405 trbudget_t budget; local [all...] |
/freebsd-current/sys/dev/netmap/ |
H A D | if_ptnet.c | 192 unsigned int budget, 220 static int ptnet_rx_eof(struct ptnet_queue *pq, unsigned int budget, 1376 ptnet_drain_transmit_queue(struct ptnet_queue *pq, unsigned int budget, argument 1422 while (count < budget) { 1561 if (count >= budget && may_resched) { 1562 DBG(nm_prlim(1, "out of budget: resched, %d mbufs pending\n", 1677 ptnet_rx_eof(struct ptnet_queue *pq, unsigned int budget, bool may_resched) argument 1701 while (count < budget) { 1897 if (count >= budget && may_resched) { 1898 /* If we ran out of budget o 1932 ptnet_poll(if_t ifp, enum poll_cmd cmd, int budget) argument [all...] |
/freebsd-current/sys/contrib/dev/iwlwifi/pcie/ |
H A D | rx.c | 1005 static int iwl_pcie_rx_handle(struct iwl_trans *trans, int queue, int budget); 1007 static int iwl_pcie_napi_poll(struct napi_struct *napi, int budget) 1017 ret = iwl_pcie_rx_handle(trans, rxq->id, budget); 1019 IWL_DEBUG_ISR(trans, "[%d] handled %d, budget %d\n", 1020 rxq->id, ret, budget); 1022 if (ret < budget) { 1034 static int iwl_pcie_napi_poll_msix(struct napi_struct *napi, int budget) 1044 ret = iwl_pcie_rx_handle(trans, rxq->id, budget); 1045 IWL_DEBUG_ISR(trans, "[%d] handled %d, budget %d\n", rxq->id, ret, 1046 budget); [all...] |