Home
last modified time | relevance | path

Searched refs:budget (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/Linux-v5.15/drivers/media/pci/ttpci/
Dbudget-core.c47 static int stop_ts_capture(struct budget *budget) in stop_ts_capture() argument
49 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
51 saa7146_write(budget->dev, MC1, MASK_20); // DMA3 off in stop_ts_capture()
52 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
56 static int start_ts_capture(struct budget *budget) in start_ts_capture() argument
58 struct saa7146_dev *dev = budget->dev; in start_ts_capture()
60 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
62 if (!budget->feeding || !budget->fe_synced) in start_ts_capture()
67 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture()
71 budget->ttbp = 0; in start_ts_capture()
[all …]
Dbudget.c45 static void Set22K (struct budget *budget, int state) in Set22K() argument
47 struct saa7146_dev *dev=budget->dev; in Set22K()
48 dprintk(2, "budget: %p\n", budget); in Set22K()
56 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument
58 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit()
59 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit()
67 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument
71 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte()
76 DiseqcSendBit(budget, d); in DiseqcSendByte()
79 DiseqcSendBit(budget, par); in DiseqcSendByte()
[all …]
Dbudget-ci.c93 struct budget budget; member
107 u32 command = ttpci_budget_debiread(&budget_ci->budget, DEBINOSWAP, DEBIADDR_IR, 2, 1, 0) >> 8; in msp430_ir_interrupt()
161 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_init()
196 switch (budget_ci->budget.dev->pci->subsystem_device) { in msp430_ir_init()
243 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_deinit()
259 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_attribute_mem()
270 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_attribute_mem()
281 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_cam_control()
292 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_cam_control()
299 struct saa7146_dev *saa = budget_ci->budget.dev; in ciintf_slot_reset()
[all …]
Dbudget-av.c53 struct budget budget; member
131 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem()
134 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem()
150 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem()
153 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem()
169 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control()
172 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control()
189 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control()
192 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 3, 1, value, 0, 0); in ciintf_write_cam_control()
203 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_reset()
[all …]
Dbudget.h38 struct budget { struct
117 extern int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev,
120 extern void ttpci_budget_init_hooks(struct budget *budget);
121 extern int ttpci_budget_deinit(struct budget *budget);
124 extern int ttpci_budget_debiread(struct budget *budget, u32 config, int addr, int count,
126 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-v5.15/drivers/staging/media/av7110/
Dbudget-patch.c27 #define budget_patch budget
47 static void gpio_Set22K (struct budget *budget, int state) in gpio_Set22K() argument
49 struct saa7146_dev *dev=budget->dev; in gpio_Set22K()
50 dprintk(2, "budget: %p\n", budget); in gpio_Set22K()
58 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument
60 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit()
61 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit()
69 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument
73 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte()
78 DiseqcSendBit(budget, d); in DiseqcSendByte()
[all …]
Dav7110.c1175 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument
1177 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
1179 if (--budget->feeding1) in stop_ts_capture()
1180 return budget->feeding1; in stop_ts_capture()
1181 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture()
1182 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
1183 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture()
1187 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument
1191 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
1193 if (budget->feeding1) in start_ts_capture()
[all …]
/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpower_budget.c60 struct nvbios_power_budget *budget) in nvbios_power_budget_header() argument
66 if (!bios || !budget) in nvbios_power_budget_header()
87 budget->cap_entry = 0xff; in nvbios_power_budget_header()
91 budget->offset = header; in nvbios_power_budget_header()
92 budget->ver = ver; in nvbios_power_budget_header()
93 budget->hlen = hdr; in nvbios_power_budget_header()
94 budget->elen = len; in nvbios_power_budget_header()
95 budget->ecount = cnt; in nvbios_power_budget_header()
97 budget->cap_entry = cap_entry; in nvbios_power_budget_header()
104 struct nvbios_power_budget *budget, in nvbios_power_budget_entry() argument
[all …]
/Linux-v5.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;
36 __entry->work, __entry->budget)
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c113 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument
139 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll()
149 busy |= mlx5e_poll_tx_cq(&sq->cq, budget); in mlx5e_napi_poll()
158 if (likely(budget)) { /* budget=0 means: don't poll rx rings */ in mlx5e_napi_poll()
160 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
162 if (likely(budget - work_done)) in mlx5e_napi_poll()
163 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
165 busy |= work_done == budget; in mlx5e_napi_poll()
176 if (unlikely(mlx5e_ktls_rx_pending_resync_list(c, budget))) in mlx5e_napi_poll()
177 busy |= mlx5e_ktls_rx_handle_resync_list(c, budget); in mlx5e_napi_poll()
[all …]
/Linux-v5.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-v5.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()
61 mlx5e_ktls_rx_handle_resync_list(struct mlx5e_channel *c, int budget) in mlx5e_ktls_rx_handle_resync_list() argument
67 mlx5e_ktls_rx_pending_resync_list(struct mlx5e_channel *c, int budget) in mlx5e_ktls_rx_pending_resync_list() argument
/Linux-v5.15/drivers/net/ethernet/ti/
Dcpsw_priv.c129 int cpsw_tx_mq_poll(struct napi_struct *napi_tx, int budget) in cpsw_tx_mq_poll() argument
143 if (unlikely(txv->budget > budget - num_tx)) in cpsw_tx_mq_poll()
144 cur_budget = budget - num_tx; in cpsw_tx_mq_poll()
146 cur_budget = txv->budget; in cpsw_tx_mq_poll()
149 if (num_tx >= budget) in cpsw_tx_mq_poll()
153 if (num_tx < budget) { in cpsw_tx_mq_poll()
161 int cpsw_tx_poll(struct napi_struct *napi_tx, int budget) in cpsw_tx_poll() argument
166 num_tx = cpdma_chan_process(cpsw->txv[0].ch, budget); in cpsw_tx_poll()
167 if (num_tx < budget) { in cpsw_tx_poll()
179 int cpsw_rx_mq_poll(struct napi_struct *napi_rx, int budget) in cpsw_rx_mq_poll() argument
[all …]
/Linux-v5.15/drivers/net/wireless/ath/ath11k/
Ddp_rx.h67 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);
84 struct napi_struct *napi, int budget);
86 struct napi_struct *napi, int budget);
Ddp.c739 int budget) in ath11k_dp_service_srng() argument
754 work_done = ath11k_dp_process_rx_err(ab, napi, budget); in ath11k_dp_service_srng()
755 budget -= work_done; in ath11k_dp_service_srng()
757 if (budget <= 0) in ath11k_dp_service_srng()
764 budget); in ath11k_dp_service_srng()
765 budget -= work_done; in ath11k_dp_service_srng()
768 if (budget <= 0) in ath11k_dp_service_srng()
775 budget); in ath11k_dp_service_srng()
776 budget -= work_done; in ath11k_dp_service_srng()
778 if (budget <= 0) in ath11k_dp_service_srng()
[all …]
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_xsk.h14 int ice_clean_rx_irq_zc(struct ice_ring *rx_ring, int budget);
15 bool ice_clean_tx_irq_zc(struct ice_ring *xdp_ring, int budget);
32 int __always_unused budget) in ice_clean_rx_irq_zc() argument
39 int __always_unused budget) in ice_clean_tx_irq_zc() argument
/Linux-v5.15/drivers/net/ethernet/pensando/ionic/
Dionic_txrx.h12 int ionic_rx_napi(struct napi_struct *napi, int budget);
13 int ionic_tx_napi(struct napi_struct *napi, int budget);
14 int ionic_txrx_napi(struct napi_struct *napi, int budget);
/Linux-v5.15/drivers/infiniband/core/
Dcq.c93 static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc *wcs, in __ib_process_cq() argument
106 budget - completed), wcs)) > 0) { in __ib_process_cq()
118 if (n != batch || (budget != -1 && completed >= budget)) in __ib_process_cq()
139 int ib_process_cq_direct(struct ib_cq *cq, int budget) in ib_process_cq_direct() argument
143 return __ib_process_cq(cq, budget, wcs, IB_POLL_BATCH_DIRECT); in ib_process_cq_direct()
152 static int ib_poll_handler(struct irq_poll *iop, int budget) in ib_poll_handler() argument
158 completed = __ib_process_cq(cq, budget, cq->wc, IB_POLL_BATCH); in ib_poll_handler()
159 if (completed < budget) { in ib_poll_handler()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c67 bool mlx5e_xsk_tx(struct mlx5e_xdpsq *sq, unsigned int budget) in mlx5e_xsk_tx() argument
77 for (; budget; budget--) { in mlx5e_xsk_tx()
125 return !(budget && work_done); in mlx5e_xsk_tx()
/Linux-v5.15/net/core/
Dgro_cells.c50 static int gro_cell_poll(struct napi_struct *napi, int budget) in gro_cell_poll() argument
56 while (work_done < budget) { in gro_cell_poll()
64 if (work_done < budget) in gro_cell_poll()
/Linux-v5.15/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c238 int budget = nq->budget; in clean_nq() local
246 while (budget--) { in clean_nq()
305 int budget = nq->budget; in bnxt_qplib_service_nq() local
314 while (budget--) { in bnxt_qplib_service_nq()
574 nq->budget = 8; in bnxt_qplib_alloc_nq()
2123 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_sq() argument
2132 while (*budget) { in __flush_sq()
2149 (*budget)--; in __flush_sq()
2155 if (!(*budget) && sq->swq_last != start) in __flush_sq()
2163 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_rq() argument
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Dptp.c84 int budget) in mlx5e_ptp_handle_ts_cqe() argument
101 napi_consume_skb(skb, budget); in mlx5e_ptp_handle_ts_cqe()
104 static bool mlx5e_ptp_poll_ts_cq(struct mlx5e_cq *cq, int budget) in mlx5e_ptp_poll_ts_cq() argument
121 mlx5e_ptp_handle_ts_cqe(ptpsq, cqe, budget); in mlx5e_ptp_poll_ts_cq()
122 } while ((++work_done < budget) && (cqe = mlx5_cqwq_get_cqe(cqwq))); in mlx5e_ptp_poll_ts_cq()
129 return work_done == budget; in mlx5e_ptp_poll_ts_cq()
132 static int mlx5e_ptp_napi_poll(struct napi_struct *napi, int budget) in mlx5e_ptp_napi_poll() argument
147 busy |= mlx5e_poll_tx_cq(&c->ptpsq[i].txqsq.cq, budget); in mlx5e_ptp_napi_poll()
148 busy |= mlx5e_ptp_poll_ts_cq(&c->ptpsq[i].ts_cq, budget); in mlx5e_ptp_napi_poll()
151 if (test_bit(MLX5E_PTP_STATE_RX, c->state) && likely(budget)) { in mlx5e_ptp_napi_poll()
[all …]
/Linux-v5.15/lib/
Dirq_poll.c81 int rearm = 0, budget = irq_poll_budget; in irq_poll_softirq() local
93 if (budget <= 0 || time_after(jiffies, start_time)) { in irq_poll_softirq()
112 budget -= work; in irq_poll_softirq()
/Linux-v5.15/drivers/staging/octeon/
Dethernet-rx.c182 static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) in cvm_oct_poll() argument
218 while (rx_count < budget) { in cvm_oct_poll()
253 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_poll()
412 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument
418 rx_count = cvm_oct_poll(rx_group, budget); in cvm_oct_napi_poll()
420 if (rx_count < budget) { in cvm_oct_napi_poll()

12345678910>>...15