Home
last modified time | relevance | path

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

123456789

/drivers/media/pci/ttpci/
Dbudget-core.c64 static int stop_ts_capture(struct budget *budget) in stop_ts_capture() argument
66 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
68 saa7146_write(budget->dev, MC1, MASK_20); // DMA3 off in stop_ts_capture()
69 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
73 static int start_ts_capture(struct budget *budget) in start_ts_capture() argument
75 struct saa7146_dev *dev = budget->dev; in start_ts_capture()
77 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
79 if (!budget->feeding || !budget->fe_synced) in start_ts_capture()
84 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture()
88 budget->ttbp = 0; in start_ts_capture()
[all …]
Dbudget.c62 static void Set22K (struct budget *budget, int state) in Set22K() argument
64 struct saa7146_dev *dev=budget->dev; in Set22K()
65 dprintk(2, "budget: %p\n", budget); in Set22K()
73 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument
75 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit()
76 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit()
84 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument
88 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte()
93 DiseqcSendBit(budget, d); in DiseqcSendByte()
96 DiseqcSendBit(budget, par); in DiseqcSendByte()
[all …]
Dbudget-patch.c44 #define budget_patch budget
64 static void gpio_Set22K (struct budget *budget, int state) in gpio_Set22K() argument
66 struct saa7146_dev *dev=budget->dev; in gpio_Set22K()
67 dprintk(2, "budget: %p\n", budget); in gpio_Set22K()
75 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument
77 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit()
78 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit()
86 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument
90 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte()
95 DiseqcSendBit(budget, d); in DiseqcSendByte()
[all …]
Dbudget-ci.c110 struct budget budget; member
123 u32 command = ttpci_budget_debiread(&budget_ci->budget, DEBINOSWAP, DEBIADDR_IR, 2, 1, 0) >> 8; in msp430_ir_interrupt()
176 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_init()
211 switch (budget_ci->budget.dev->pci->subsystem_device) { in msp430_ir_init()
259 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_deinit()
275 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_attribute_mem()
286 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_attribute_mem()
297 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_cam_control()
308 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_cam_control()
315 struct saa7146_dev *saa = budget_ci->budget.dev; in ciintf_slot_reset()
[all …]
Dbudget-av.c70 struct budget budget; member
148 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem()
151 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem()
167 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem()
170 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem()
186 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control()
189 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control()
206 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control()
209 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 3, 1, value, 0, 0); in ciintf_write_cam_control()
220 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_reset()
[all …]
Dbudget.h33 struct budget { struct
112 extern int ttpci_budget_init(struct budget *budget, struct saa7146_dev *dev,
115 extern void ttpci_budget_init_hooks(struct budget *budget);
116 extern int ttpci_budget_deinit(struct budget *budget);
119 extern int ttpci_budget_debiread(struct budget *budget, u32 config, int addr, int count,
121 extern int ttpci_budget_debiwrite(struct budget *budget, u32 config, int addr, int count, u32 value,
DMakefile13 obj-$(CONFIG_DVB_BUDGET_CORE) += budget-core.o
14 obj-$(CONFIG_DVB_BUDGET) += budget.o
15 obj-$(CONFIG_DVB_BUDGET_AV) += budget-av.o
16 obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o
17 obj-$(CONFIG_DVB_BUDGET_PATCH) += budget-patch.o
Dav7110.c1205 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument
1207 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
1209 if (--budget->feeding1) in stop_ts_capture()
1210 return budget->feeding1; in stop_ts_capture()
1211 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture()
1212 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
1213 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture()
1217 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument
1221 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
1223 if (budget->feeding1) in start_ts_capture()
[all …]
DKconfig86 module will be called budget.
113 module will be called budget-ci.
136 module will be called budget-av.
158 module will be called budget-patch.
/drivers/infiniband/core/
Dcq.c28 static int __ib_process_cq(struct ib_cq *cq, int budget) in __ib_process_cq() argument
45 (budget != -1 && completed >= budget)) in __ib_process_cq()
64 int ib_process_cq_direct(struct ib_cq *cq, int budget) in ib_process_cq_direct() argument
68 return __ib_process_cq(cq, budget); in ib_process_cq_direct()
77 static int ib_poll_handler(struct irq_poll *iop, int budget) in ib_poll_handler() argument
82 completed = __ib_process_cq(cq, budget); in ib_poll_handler()
83 if (completed < budget) { in ib_poll_handler()
/drivers/net/wireless/ath/wil6210/
Dnetdev.c76 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument
80 int quota = budget; in wil6210_netdev_poll_rx()
84 done = budget - quota; in wil6210_netdev_poll_rx()
86 if (done < budget) { in wil6210_netdev_poll_rx()
92 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx()
97 static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_tx() argument
115 if (tx_done < budget) { in wil6210_netdev_poll_tx()
121 wil_dbg_txrx(wil, "NAPI TX poll(%d) done %d\n", budget, tx_done); in wil6210_netdev_poll_tx()
123 return min(tx_done, budget); in wil6210_netdev_poll_tx()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c168 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument
179 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll()
181 work_done = mlx5e_poll_rx_cq(&c->rq.cq, budget); in mlx5e_napi_poll()
182 busy |= work_done == budget; in mlx5e_napi_poll()
192 return budget; in mlx5e_napi_poll()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c886 int budget) in qlcnic_process_cmd_ring() argument
920 if (++count >= budget) in qlcnic_process_cmd_ring()
958 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument
970 budget); in qlcnic_poll()
971 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
975 work_done = budget; in qlcnic_poll()
977 if (work_done < budget) { in qlcnic_poll()
988 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument
997 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll()
1004 work_done = budget; in qlcnic_tx_poll()
[all …]
/drivers/staging/octeon/
Dethernet-rx.c152 static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) in cvm_oct_poll() argument
188 while (rx_count < budget) { in cvm_oct_poll()
223 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_poll()
422 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument
428 rx_count = cvm_oct_poll(rx_group, budget); in cvm_oct_napi_poll()
430 if (rx_count < budget) { in cvm_oct_napi_poll()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c581 int budget) in fm10k_clean_rx_irq() argument
587 while (likely(total_packets < budget)) { in fm10k_clean_rx_irq()
1210 unsigned int budget = q_vector->tx.work_limit; in fm10k_clean_tx_irq() local
1289 budget--; in fm10k_clean_tx_irq()
1290 } while (likely(budget)); in fm10k_clean_tx_irq()
1350 return !!budget; in fm10k_clean_tx_irq()
1445 static int fm10k_poll(struct napi_struct *napi, int budget) in fm10k_poll() argument
1454 if (!fm10k_clean_tx_irq(q_vector, ring, budget)) in fm10k_poll()
1459 if (budget <= 0) in fm10k_poll()
1460 return budget; in fm10k_poll()
[all …]
/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c171 unsigned int budget = vsi->work_limit; in i40e_clean_tx_irq() local
248 budget--; in i40e_clean_tx_irq()
249 } while (likely(budget)); in i40e_clean_tx_irq()
268 if (budget && in i40e_clean_tx_irq()
295 return !!budget; in i40e_clean_tx_irq()
1203 static int i40e_clean_rx_irq(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq() argument
1209 while (likely(total_rx_packets < budget)) { in i40e_clean_rx_irq()
1296 return failure ? budget : total_rx_packets; in i40e_clean_rx_irq()
1417 int i40evf_napi_poll(struct napi_struct *napi, int budget) in i40evf_napi_poll() argument
1437 if (!i40e_clean_tx_irq(vsi, ring, budget)) { in i40evf_napi_poll()
[all …]
/drivers/gpu/drm/i915/
Dintel_dpll_mgr.c512 unsigned budget; in hsw_wrpll_get_budget_for_freq() local
546 budget = 0; in hsw_wrpll_get_budget_for_freq()
553 budget = 1500; in hsw_wrpll_get_budget_for_freq()
559 budget = 2000; in hsw_wrpll_get_budget_for_freq()
570 budget = 4000; in hsw_wrpll_get_budget_for_freq()
574 budget = 5000; in hsw_wrpll_get_budget_for_freq()
577 budget = 1000; in hsw_wrpll_get_budget_for_freq()
581 return budget; in hsw_wrpll_get_budget_for_freq()
584 static void hsw_wrpll_update_rnp(uint64_t freq2k, unsigned budget, in hsw_wrpll_update_rnp() argument
612 a = freq2k * budget * p * r2; in hsw_wrpll_update_rnp()
[all …]
/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c742 u32 budget) in octeon_droq_process_packets() argument
758 if (pkt_count > budget) in octeon_droq_process_packets()
759 pkt_count = budget; in octeon_droq_process_packets()
793 struct octeon_droq *droq, u32 budget) in octeon_droq_process_poll_pkts() argument
799 if (budget > droq->max_count) in octeon_droq_process_poll_pkts()
800 budget = droq->max_count; in octeon_droq_process_poll_pkts()
804 while (total_pkts_processed < budget) { in octeon_droq_process_poll_pkts()
808 CVM_MIN((budget - total_pkts_processed), in octeon_droq_process_poll_pkts()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c1885 static int xgbe_rx_poll(struct xgbe_channel *channel, int budget) in xgbe_rx_poll() argument
1901 DBGPR("-->xgbe_rx_poll: budget=%d\n", budget); in xgbe_rx_poll()
1914 while (packet_count < budget) { in xgbe_rx_poll()
2066 static int xgbe_one_poll(struct napi_struct *napi, int budget) in xgbe_one_poll() argument
2072 DBGPR("-->xgbe_one_poll: budget=%d\n", budget); in xgbe_one_poll()
2078 processed = xgbe_rx_poll(channel, budget); in xgbe_one_poll()
2081 if (processed < budget) { in xgbe_one_poll()
2094 static int xgbe_all_poll(struct napi_struct *napi, int budget) in xgbe_all_poll() argument
2103 DBGPR("-->xgbe_all_poll: budget=%d\n", budget); in xgbe_all_poll()
2106 ring_budget = budget / pdata->rx_ring_count; in xgbe_all_poll()
[all …]
/drivers/net/can/
Dgrcan.c462 static int grcan_poll(struct napi_struct *napi, int budget);
501 static int catch_up_echo_skb(struct net_device *dev, int budget, bool echo) in catch_up_echo_skb() argument
515 for (work_done = 0; work_done < budget || budget < 0; work_done++) { in catch_up_echo_skb()
1141 static int grcan_transmit_catch_up(struct net_device *dev, int budget) in grcan_transmit_catch_up() argument
1149 work_done = catch_up_echo_skb(dev, budget, true); in grcan_transmit_catch_up()
1167 static int grcan_receive(struct net_device *dev, int budget) in grcan_receive() argument
1182 for (work_done = 0; work_done < budget; work_done++) { in grcan_receive()
1240 static int grcan_poll(struct napi_struct *napi, int budget) in grcan_poll() argument
1247 int rx_budget = budget / 2; in grcan_poll()
1248 int tx_budget = budget - rx_budget; in grcan_poll()
/drivers/net/wan/
Dhd64572.c58 static int sca_poll(struct napi_struct *napi, int budget);
233 static inline int sca_rx_done(port_t *port, int budget) in sca_rx_done() argument
249 while (received < budget) { in sca_rx_done()
328 static int sca_poll(struct napi_struct *napi, int budget) in sca_poll() argument
341 received = sca_rx_done(port, budget); in sca_poll()
343 if (received < budget) { in sca_poll()
/drivers/net/ethernet/ibm/emac/
Dmal.c397 static int mal_poll(struct napi_struct *napi, int budget) in mal_poll() argument
404 MAL_DBG2(mal, "poll(%d)" NL, budget); in mal_poll()
424 n = mc->ops->poll_rx(mc->dev, budget); in mal_poll()
427 budget -= n; in mal_poll()
428 if (budget <= 0) in mal_poll()
459 MAL_DBG2(mal, "poll() %d <- %d" NL, budget, received); in mal_poll()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1753 static int process_responses(struct sge_rspq *rspq, int budget) in process_responses() argument
1758 int budget_left = budget; in process_responses()
1870 return budget - budget_left; in process_responses()
1884 static int napi_rx_handler(struct napi_struct *napi, int budget) in napi_rx_handler() argument
1888 int work_done = process_responses(rspq, budget); in napi_rx_handler()
1891 if (likely(work_done < budget)) { in napi_rx_handler()
2124 unsigned int i, budget; in sge_tx_timer_cb() local
2126 budget = MAX_TIMER_TX_RECLAIM; in sge_tx_timer_cb()
2134 if (avail > budget) in sge_tx_timer_cb()
2135 avail = budget; in sge_tx_timer_cb()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c422 int budget = priv->tx_work_limit; in mlx4_en_process_tx_cq() local
440 cons_index & size) && (done < budget)) { in mlx4_en_process_tx_cq()
481 } while ((++done < budget) && (ring_index != new_index)); in mlx4_en_process_tx_cq()
502 return done < budget; in mlx4_en_process_tx_cq()
513 return done < budget; in mlx4_en_process_tx_cq()
528 int mlx4_en_poll_tx_cq(struct napi_struct *napi, int budget) in mlx4_en_poll_tx_cq() argument
535 clean_complete = mlx4_en_process_tx_cq(dev, cq, budget); in mlx4_en_poll_tx_cq()
537 return budget; in mlx4_en_poll_tx_cq()
/drivers/media/usb/ttusb-budget/
DMakefile1 obj-$(CONFIG_DVB_TTUSB_BUDGET) += dvb-ttusb-budget.o

123456789