Home
last modified time | relevance | path

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

12345678910>>...13

/Linux-v5.4/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-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 …]
Dbudget-ci.c93 struct budget budget; member
106 u32 command = ttpci_budget_debiread(&budget_ci->budget, DEBINOSWAP, DEBIADDR_IR, 2, 1, 0) >> 8; in msp430_ir_interrupt()
160 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_init()
195 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,
DMakefile14 obj-$(CONFIG_DVB_BUDGET_CORE) += budget-core.o
15 obj-$(CONFIG_DVB_BUDGET) += budget.o
16 obj-$(CONFIG_DVB_BUDGET_AV) += budget-av.o
17 obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o
18 obj-$(CONFIG_DVB_BUDGET_PATCH) += budget-patch.o
Dav7110.c1174 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument
1176 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
1178 if (--budget->feeding1) in stop_ts_capture()
1179 return budget->feeding1; in stop_ts_capture()
1180 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture()
1181 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
1182 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture()
1186 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument
1190 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
1192 if (budget->feeding1) in start_ts_capture()
[all …]
/Linux-v5.4/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.4/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.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c108 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument
126 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll()
133 if (likely(budget)) { /* budget=0 means: don't poll rx rings */ in mlx5e_napi_poll()
135 work_done = mlx5e_poll_rx_cq(&xskrq->cq, budget); in mlx5e_napi_poll()
137 if (likely(budget - work_done)) in mlx5e_napi_poll()
138 work_done += mlx5e_poll_rx_cq(&rq->cq, budget - work_done); in mlx5e_napi_poll()
140 busy |= work_done == budget; in mlx5e_napi_poll()
156 return budget; in mlx5e_napi_poll()
159 if (budget && work_done == budget) in mlx5e_napi_poll()
/Linux-v5.4/drivers/net/wireless/ath/wil6210/
Dnetdev.c102 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument
106 int quota = budget; in wil6210_netdev_poll_rx()
110 done = budget - quota; in wil6210_netdev_poll_rx()
112 if (done < budget) { in wil6210_netdev_poll_rx()
118 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx()
123 static int wil6210_netdev_poll_rx_edma(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx_edma() argument
127 int quota = budget; in wil6210_netdev_poll_rx_edma()
131 done = budget - quota; in wil6210_netdev_poll_rx_edma()
133 if (done < budget) { in wil6210_netdev_poll_rx_edma()
139 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx_edma()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Dcq.c68 static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc *wcs, in __ib_process_cq() argument
79 budget - completed), wcs)) > 0) { in __ib_process_cq()
91 if (n != batch || (budget != -1 && completed >= budget)) in __ib_process_cq()
112 int ib_process_cq_direct(struct ib_cq *cq, int budget) in ib_process_cq_direct() argument
116 return __ib_process_cq(cq, budget, wcs, IB_POLL_BATCH_DIRECT); in ib_process_cq_direct()
125 static int ib_poll_handler(struct irq_poll *iop, int budget) in ib_poll_handler() argument
131 completed = __ib_process_cq(cq, budget, cq->wc, IB_POLL_BATCH); in ib_poll_handler()
132 if (completed < budget) { in ib_poll_handler()
/Linux-v5.4/drivers/lightnvm/
Dpblk-rl.c210 void pblk_rl_init(struct pblk_rl *rl, int budget, int threshold) in pblk_rl_init() argument
230 rb_windows = budget / NVM_MAX_VLBA; in pblk_rl_init()
234 rl->rb_budget = budget; in pblk_rl_init()
235 rl->rb_user_max = budget; in pblk_rl_init()
241 rl->rb_max_io = budget - pblk->min_write_pgs_data - threshold; in pblk_rl_init()
243 rl->rb_max_io = budget - pblk->min_write_pgs_data - 1; in pblk_rl_init()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
Dtx.c64 bool mlx5e_xsk_tx(struct mlx5e_xdpsq *sq, unsigned int budget) in mlx5e_xsk_tx() argument
74 for (; budget; budget--) { in mlx5e_xsk_tx()
117 return !(budget && work_done); in mlx5e_xsk_tx()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c223 unsigned int budget; in aq_ring_tx_clean() local
225 for (budget = AQ_CFG_TX_CLEAN_BUDGET; in aq_ring_tx_clean()
226 budget && self->sw_head != self->hw_head; budget--) { in aq_ring_tx_clean()
254 return !!budget; in aq_ring_tx_clean()
283 int budget) in aq_ring_rx_clean() argument
289 for (; (self->sw_head != self->hw_head) && budget; in aq_ring_rx_clean()
291 --budget, ++(*work_done)) { in aq_ring_rx_clean()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c530 int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq_zc() argument
541 while (likely(total_rx_packets < (unsigned int)budget)) { in i40e_clean_rx_irq_zc()
637 return failure ? budget : (int)total_rx_packets; in i40e_clean_rx_irq_zc()
647 static bool i40e_xmit_zc(struct i40e_ring *xdp_ring, unsigned int budget) in i40e_xmit_zc() argument
655 while (budget-- > 0) { in i40e_xmit_zc()
694 return !!budget && work_done; in i40e_xmit_zc()
722 unsigned int ntc, total_bytes = 0, budget = vsi->work_limit; in i40e_clean_xdp_tx_irq() local
735 } else if (frames_ready > budget) { in i40e_clean_xdp_tx_irq()
736 completed_frames = budget; in i40e_clean_xdp_tx_irq()
766 i40e_arm_wb(tx_ring, vsi, budget); in i40e_clean_xdp_tx_irq()
[all …]
/Linux-v5.4/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.4/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.4/drivers/infiniband/hw/bnxt_re/
Dqplib_fp.c246 int budget = nq->budget; in bnxt_qplib_service_nq() local
252 while (budget--) { in bnxt_qplib_service_nq()
487 nq->budget = 8; in bnxt_qplib_alloc_nq()
2016 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_sq() argument
2025 while (*budget) { in __flush_sq()
2043 (*budget)--; in __flush_sq()
2048 if (!(*budget) && HWQ_CMP(sq->hwq.cons, &sq->hwq) != sw_prod) in __flush_sq()
2056 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_rq() argument
2079 while (*budget) { in __flush_rq()
2090 (*budget)--; in __flush_rq()
[all …]
/Linux-v5.4/drivers/net/ethernet/ti/
Dcpsw.c793 int budget, bigest_rate_ch = 0; in cpsw_split_res() local
832 budget = CPSW_POLL_WEIGHT; in cpsw_split_res()
836 txv[i].budget = (ch_rate * CPSW_POLL_WEIGHT) / max_rate; in cpsw_split_res()
837 if (!txv[i].budget) in cpsw_split_res()
838 txv[i].budget++; in cpsw_split_res()
849 txv[i].budget = ch_budget; in cpsw_split_res()
855 budget -= txv[i].budget; in cpsw_split_res()
858 if (budget) in cpsw_split_res()
859 txv[bigest_rate_ch].budget += budget; in cpsw_split_res()
862 budget = CPSW_POLL_WEIGHT; in cpsw_split_res()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
Dbase.c220 struct nvbios_power_budget budget; in nvkm_iccsense_oneinit() local
227 ret = nvbios_power_budget_header(bios, &budget); in nvkm_iccsense_oneinit()
228 if (!ret && budget.cap_entry != 0xff) { in nvkm_iccsense_oneinit()
230 ret = nvbios_power_budget_entry(bios, &budget, in nvkm_iccsense_oneinit()
231 budget.cap_entry, &entry); in nvkm_iccsense_oneinit()
/Linux-v5.4/drivers/staging/octeon/
Dethernet-rx.c178 static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) in cvm_oct_poll() argument
214 while (rx_count < budget) { in cvm_oct_poll()
249 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_poll()
408 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument
414 rx_count = cvm_oct_poll(rx_group, budget); in cvm_oct_napi_poll()
416 if (rx_count < budget) { in cvm_oct_napi_poll()
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c888 int budget) in qlcnic_process_cmd_ring() argument
922 if (++count >= budget) in qlcnic_process_cmd_ring()
960 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument
972 budget); in qlcnic_poll()
973 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
977 work_done = budget; in qlcnic_poll()
979 if (work_done < budget) { in qlcnic_poll()
990 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument
999 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll()
1006 work_done = budget; in qlcnic_tx_poll()
[all …]
/Linux-v5.4/drivers/net/ethernet/google/gve/
Dgve_rx.c381 bool gve_clean_rx_done(struct gve_rx_ring *rx, int budget, in gve_clean_rx_done() argument
393 work_done < budget) { in gve_clean_rx_done()
427 bool gve_rx_poll(struct gve_notify_block *block, int budget) in gve_rx_poll() argument
436 if (budget == 0) in gve_rx_poll()
437 budget = INT_MAX; in gve_rx_poll()
439 if (budget > 0) in gve_rx_poll()
440 repoll |= gve_clean_rx_done(rx, budget, feat); in gve_rx_poll()

12345678910>>...13