Home
last modified time | relevance | path

Searched full:budget (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/linux-6.15/drivers/media/pci/ttpci/
Dbudget-core.c3 * budget-core.ko: base-driver for the SAA7146 based Budget DVB cards
21 #include "budget.h"
41 MODULE_PARM_DESC(debug, "Turn on/off budget debugging (default:off).");
45 * TT budget / WinTV Nova
48 static int stop_ts_capture(struct budget *budget) in stop_ts_capture() argument
50 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
52 saa7146_write(budget->dev, MC1, MASK_20); // DMA3 off in stop_ts_capture()
53 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
57 static int start_ts_capture(struct budget *budget) in start_ts_capture() argument
59 struct saa7146_dev *dev = budget->dev; in start_ts_capture()
[all …]
Dbudget.c3 * budget.ko: driver for the SAA7146 based Budget DVB cards
21 #include "budget.h"
46 static void Set22K(struct budget *budget, int state) in Set22K() argument
48 struct saa7146_dev *dev = budget->dev; in Set22K()
50 dprintk(2, "budget: %p\n", budget); in Set22K()
55 * Diseqc functions only for TT Budget card
60 static void DiseqcSendBit(struct budget *budget, int data) in DiseqcSendBit() argument
62 struct saa7146_dev *dev = budget->dev; in DiseqcSendBit()
64 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit()
72 static void DiseqcSendByte(struct budget *budget, int data) in DiseqcSendByte() argument
[all …]
Dbudget-ci.c3 * budget-ci.ko: driver for the SAA7146 based Budget DVB cards
24 #include "budget.h"
95 struct budget budget; member
109 u32 command = ttpci_budget_debiread(&budget_ci->budget, DEBINOSWAP, DEBIADDR_IR, 2, 1, 0) >> 8; in msp430_ir_interrupt()
163 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_init()
174 "Budget-CI dvb ir receiver %s", saa->name); in msp430_ir_init()
198 switch (budget_ci->budget.dev->pci->subsystem_device) { in msp430_ir_init()
245 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_deinit()
261 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_attribute_mem()
272 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_attribute_mem()
[all …]
Dbudget-av.c3 * budget-av.ko: driver for the SAA7146 based Budget DVB cards
20 #include "budget.h"
54 struct budget budget; member
132 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem()
135 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem()
151 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem()
154 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem()
170 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control()
173 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control()
190 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control()
[all …]
DKconfig3 tristate "SAA7146 DVB cards (aka Budget, Nova-PCI)"
9 (so called Budget- or Nova-PCI cards) without onboard
13 tristate "Budget cards"
29 Support for simple SAA7146 based DVB cards (so called Budget-
36 module will be called budget.
39 tristate "Budget cards with onboard CI connector"
54 (so called Budget- or Nova-PCI cards) without onboard
63 module will be called budget-ci.
66 tristate "Budget cards with analog video inputs"
80 (so called Budget- or Nova-PCI cards) without onboard
[all …]
Dbudget.h44 struct budget { struct
123 extern int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev,
126 extern void ttpci_budget_init_hooks(struct budget *budget);
127 extern int ttpci_budget_deinit(struct budget *budget);
130 extern int ttpci_budget_debiread(struct budget *budget, u32 config, int addr, int count,
132 extern int ttpci_budget_debiwrite(struct budget *budget, u32 config, int addr, int count, u32 value,
DMakefile6 obj-$(CONFIG_DVB_BUDGET_CORE) += budget-core.o
7 obj-$(CONFIG_DVB_BUDGET) += budget.o
8 obj-$(CONFIG_DVB_BUDGET_AV) += budget-av.o
9 obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpower_budget.c60 struct nvbios_power_budget *budget) in nvbios_power_budget_header() argument
65 if (!bios || !budget) in nvbios_power_budget_header()
85 "invalid cap_entry in power budget table found\n"); in nvbios_power_budget_header()
86 budget->cap_entry = 0xff; in nvbios_power_budget_header()
90 budget->offset = header; in nvbios_power_budget_header()
91 budget->ver = ver; in nvbios_power_budget_header()
92 budget->hlen = hdr; in nvbios_power_budget_header()
93 budget->elen = len; in nvbios_power_budget_header()
94 budget->ecount = cnt; in nvbios_power_budget_header()
96 budget->cap_entry = cap_entry; in nvbios_power_budget_header()
[all …]
/linux-6.15/include/trace/events/
Dnapi.h16 TP_PROTO(struct napi_struct *napi, int work, int budget),
18 TP_ARGS(napi, work, budget),
24 __field( int, budget)
31 __entry->budget = budget;
34 TP_printk("napi poll on napi struct %p for device %s work %d budget %d",
36 __entry->work, __entry->budget)
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c124 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument
150 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll()
160 busy |= mlx5e_poll_tx_cq(&sq->cq, budget); in mlx5e_napi_poll()
164 /* budget=0 means we may be in IRQ context, do as little as possible */ in mlx5e_napi_poll()
165 if (unlikely(!budget)) in mlx5e_napi_poll()
175 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
177 if (likely(budget - work_done)) in mlx5e_napi_poll()
178 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
180 busy |= work_done == budget; in mlx5e_napi_poll()
190 if (unlikely(mlx5e_ktls_rx_pending_resync_list(c, budget))) in mlx5e_napi_poll()
[all …]
/linux-6.15/drivers/net/wireless/ath/wil6210/
Dnetdev.c91 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument
95 int quota = budget; in wil6210_netdev_poll_rx()
99 done = budget - quota; in wil6210_netdev_poll_rx()
101 if (done < budget) { in wil6210_netdev_poll_rx()
107 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx()
112 static int wil6210_netdev_poll_rx_edma(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx_edma() argument
116 int quota = budget; in wil6210_netdev_poll_rx_edma()
120 done = budget - quota; in wil6210_netdev_poll_rx_edma()
122 if (done < budget) { in wil6210_netdev_poll_rx_edma()
128 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx_edma()
[all …]
/linux-6.15/drivers/net/ethernet/intel/idpf/
Didpf_singleq_txrx.c433 u32 budget = tx_q->clean_budget; in idpf_tx_singleq_clean() local
493 /* update budget only if we did something */ in idpf_tx_singleq_clean()
494 budget--; in idpf_tx_singleq_clean()
505 } while (likely(budget)); in idpf_tx_singleq_clean()
526 return !!budget; in idpf_tx_singleq_clean()
532 * @budget: Used to determine if we are in netpoll
537 static bool idpf_tx_singleq_clean_all(struct idpf_q_vector *q_vec, int budget, in idpf_tx_singleq_clean_all() argument
544 budget_per_q = num_txq ? max(budget / num_txq, 1) : 0; in idpf_tx_singleq_clean_all()
958 * @budget: Total limit on number of packets to process
960 * Returns true if there's any budget left (e.g. the clean is finished)
[all …]
/linux-6.15/drivers/net/ethernet/ti/
Dcpsw_priv.c130 int cpsw_tx_mq_poll(struct napi_struct *napi_tx, int budget) in cpsw_tx_mq_poll() argument
144 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll()
145 cur_budget = budget - num_tx; in cpsw_tx_mq_poll()
147 cur_budget = txv->budget; in cpsw_tx_mq_poll()
150 if (num_tx >= budget) in cpsw_tx_mq_poll()
154 if (num_tx < budget) { in cpsw_tx_mq_poll()
162 int cpsw_tx_poll(struct napi_struct *napi_tx, int budget) in cpsw_tx_poll() argument
167 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll()
168 if (num_tx < budget) { in cpsw_tx_poll()
180 int cpsw_rx_mq_poll(struct napi_struct *napi_rx, int budget) in cpsw_rx_mq_poll() argument
[all …]
/linux-6.15/fs/ubifs/
Dfile.c18 * the budget for this page. The @PG_checked flag is set if full budgeting is
21 * it is OK to fail in this function, and the budget is released in
24 * the budget properly.
178 * release_new_page_budget - release budget of a new page.
181 * This is a helper function which releases budget corresponding to the budget
192 * release_existing_page_budget - release budget of an existing page.
195 * This is a helper function which releases budget corresponding to the budget
219 * At the slow path we have to budget before locking the folio, because in write_begin_slow()
223 * written to a hole. This corresponds to largest budget. Later the in write_begin_slow()
224 * budget will be amended if this is not true. in write_begin_slow()
[all …]
/linux-6.15/drivers/net/wireless/ath/ath11k/
Ddp_rx.h68 int ath11k_dp_process_rxdma_err(struct ath11k_base *ab, int mac_id, int budget);
70 struct napi_struct *napi, int budget);
72 int budget);
75 int budget);
85 struct napi_struct *napi, int budget);
87 struct napi_struct *napi, int budget);
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dktls_txrx.h44 bool mlx5e_ktls_rx_handle_resync_list(struct mlx5e_channel *c, int budget);
47 mlx5e_ktls_rx_pending_resync_list(struct mlx5e_channel *c, int budget) in mlx5e_ktls_rx_pending_resync_list() argument
49 return budget && test_bit(MLX5E_SQ_STATE_PENDING_TLS_RX_RESYNC, &c->async_icosq.state); in mlx5e_ktls_rx_pending_resync_list()
68 mlx5e_ktls_rx_handle_resync_list(struct mlx5e_channel *c, int budget) in mlx5e_ktls_rx_handle_resync_list() argument
74 mlx5e_ktls_rx_pending_resync_list(struct mlx5e_channel *c, int budget) in mlx5e_ktls_rx_pending_resync_list() argument
/linux-6.15/Documentation/networking/
Dnapi.rst63 called to process the events/packets. The method takes a ``budget``
65 packets but should only process up to ``budget`` number of
68 In other words for Rx processing the ``budget`` argument limits how many
70 pool or XDP cannot be used at all when ``budget`` is 0.
71 skb Tx processing should happen regardless of the ``budget``, but if
76 The ``budget`` argument may be 0 if core tries to only process
80 has outstanding work to do (e.g. ``budget`` was exhausted)
81 the poll method should return exactly ``budget``. In that case,
92 The case of finishing all events and using exactly ``budget``
96 or return ``budget - 1``.
[all …]
/linux-6.15/drivers/infiniband/core/
Dcq.c92 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()
[all …]
/linux-6.15/drivers/net/ethernet/intel/i40e/
Di40e_trace.h62 TP_PROTO(struct napi_struct *napi, struct i40e_q_vector *q, int budget,
66 TP_ARGS(napi, q, budget, budget_per_ring, rx_cleaned, tx_cleaned,
70 __field(int, budget)
84 __entry->budget = budget;
99 "budget %d bpr %d rx_cleaned %u tx_cleaned %u "
102 __get_bitmask(irq_affinity), __entry->curr_cpu, __entry->budget,
Di40e_txrx_common.h64 * @budget: the NAPI budget left
68 int budget) in i40e_arm_wb() argument
78 if (budget && in i40e_arm_wb()
/linux-6.15/drivers/net/wireless/intel/iwlwifi/fw/api/
Dphy.h201 * @CTDP_CMD_OPERATION_START: update the current budget
203 * @CTDP_CMD_OPERATION_REPORT: get the average budget
212 * struct iwl_ctdp_cmd - track and manage the FW power consumption budget
215 * @budget: the budget in milliwatt
220 __le32 budget; member
/linux-6.15/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.h14 int ionic_rx_napi(struct napi_struct *napi, int budget);
15 int ionic_tx_napi(struct napi_struct *napi, int budget);
16 int ionic_txrx_napi(struct napi_struct *napi, int budget);
/linux-6.15/drivers/net/wwan/
Dmhi_wwan_ctrl.c30 /* Protect RX budget and rx_refill scheduling */
34 /* RX budget is initially set to the size of the MHI RX queue and is
41 /* Increment RX budget and schedule RX refill if necessary */
54 /* Decrement RX budget if non-zero and return true on success */
74 /* RX buffer has been consumed, increase the allowed budget */ in __mhi_skb_destructor()
94 * to not allocate more than allowed budget. in mhi_wwan_ctrl_refill_work()
209 /* Do not increment rx budget nor refill RX buffers now, wait for the in mhi_dl_xfer_cb()
/linux-6.15/drivers/staging/media/av7110/
Dav7110.c87 MODULE_PARM_DESC(budgetpatch, "use budget-patch hardware modification: default 0 (0 no, 1 autodetec…
1162 /* simplified code from budget-core.c */
1163 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument
1165 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
1167 if (--budget->feeding1) in stop_ts_capture()
1168 return budget->feeding1; in stop_ts_capture()
1169 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture()
1170 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
1171 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture()
1175 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument
[all …]
/linux-6.15/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c243 int budget = nq->budget; in clean_nq() local
249 while (budget--) { in clean_nq()
306 int budget = nq->budget; in bnxt_qplib_service_nq() local
314 while (budget--) { in bnxt_qplib_service_nq()
410 int budget = nq->budget; in bnxt_re_synchronize_nq() local
412 nq->budget = nq->hwq.max_elements; in bnxt_re_synchronize_nq()
414 nq->budget = budget; in bnxt_re_synchronize_nq()
613 nq->budget = 8; in bnxt_qplib_alloc_nq()
2382 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_sq() argument
2391 while (*budget) { in __flush_sq()
[all …]

12345678910>>...22