Home
last modified time | relevance | path

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

12345678

/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.c1206 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument
1208 dprintk(2, "budget: %p\n", budget); in stop_ts_capture()
1210 if (--budget->feeding1) in stop_ts_capture()
1211 return budget->feeding1; in stop_ts_capture()
1212 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture()
1213 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture()
1214 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture()
1218 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument
1222 dprintk(2, "budget: %p\n", budget); in start_ts_capture()
1224 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/net/wireless/ath/wil6210/
Dnetdev.c80 static int wil6210_netdev_poll_rx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_rx() argument
84 int quota = budget; in wil6210_netdev_poll_rx()
88 done = budget - quota; in wil6210_netdev_poll_rx()
90 if (done < budget) { in wil6210_netdev_poll_rx()
96 wil_dbg_txrx(wil, "NAPI RX poll(%d) done %d\n", budget, done); in wil6210_netdev_poll_rx()
101 static int wil6210_netdev_poll_tx(struct napi_struct *napi, int budget) in wil6210_netdev_poll_tx() argument
118 if (tx_done < budget) { in wil6210_netdev_poll_tx()
124 wil_dbg_txrx(wil, "NAPI TX poll(%d) done %d\n", budget, tx_done); in wil6210_netdev_poll_tx()
126 return min(tx_done, budget); in wil6210_netdev_poll_tx()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c52 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument
64 busy |= mlx5e_poll_rx_cq(&c->rq.cq, budget); in mlx5e_napi_poll()
69 return budget; in mlx5e_napi_poll()
Den_rx.c222 bool mlx5e_poll_rx_cq(struct mlx5e_cq *cq, int budget) in mlx5e_poll_rx_cq() argument
231 for (i = 0; i < budget; i++) { in mlx5e_poll_rx_cq()
276 if (i == budget) { in mlx5e_poll_rx_cq()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c885 int budget) in qlcnic_process_cmd_ring() argument
919 if (++count >= budget) in qlcnic_process_cmd_ring()
957 static int qlcnic_poll(struct napi_struct *napi, int budget) in qlcnic_poll() argument
969 budget); in qlcnic_poll()
970 work_done = qlcnic_process_rcv_ring(sds_ring, budget); in qlcnic_poll()
974 work_done = budget; in qlcnic_poll()
976 if (work_done < budget) { in qlcnic_poll()
987 static int qlcnic_tx_poll(struct napi_struct *napi, int budget) in qlcnic_tx_poll() argument
996 work_done = qlcnic_process_cmd_ring(adapter, tx_ring, budget); in qlcnic_tx_poll()
1003 work_done = budget; in qlcnic_tx_poll()
[all …]
/drivers/net/ethernet/cavium/liquidio/
Docteon_droq.c712 u32 budget) in octeon_droq_process_packets() argument
721 if (pkt_count > budget) in octeon_droq_process_packets()
722 pkt_count = budget; in octeon_droq_process_packets()
759 struct octeon_droq *droq, u32 budget) in octeon_droq_process_poll_pkts() argument
765 if (budget > droq->max_count) in octeon_droq_process_poll_pkts()
766 budget = droq->max_count; in octeon_droq_process_poll_pkts()
770 while (total_pkts_processed < budget) { in octeon_droq_process_poll_pkts()
772 CVM_MIN((budget - total_pkts_processed), in octeon_droq_process_poll_pkts()
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c598 int budget) in fm10k_clean_rx_irq() argument
604 while (likely(total_packets < budget)) { in fm10k_clean_rx_irq()
1211 unsigned int budget = q_vector->tx.work_limit; in fm10k_clean_tx_irq() local
1290 budget--; in fm10k_clean_tx_irq()
1291 } while (likely(budget)); in fm10k_clean_tx_irq()
1351 return !!budget; in fm10k_clean_tx_irq()
1420 static int fm10k_poll(struct napi_struct *napi, int budget) in fm10k_poll() argument
1432 if (budget <= 0) in fm10k_poll()
1433 return budget; in fm10k_poll()
1439 per_ring_budget = max(budget/q_vector->rx.count, 1); in fm10k_poll()
[all …]
/drivers/staging/octeon/
Dethernet-rx.c165 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument
200 while (rx_count < budget) { in cvm_oct_napi_poll()
234 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_napi_poll()
436 if (rx_count < budget && napi != NULL) { in cvm_oct_napi_poll()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c1893 static int xgbe_rx_poll(struct xgbe_channel *channel, int budget) in xgbe_rx_poll() argument
1909 DBGPR("-->xgbe_rx_poll: budget=%d\n", budget); in xgbe_rx_poll()
1922 while (packet_count < budget) { in xgbe_rx_poll()
2075 static int xgbe_one_poll(struct napi_struct *napi, int budget) in xgbe_one_poll() argument
2081 DBGPR("-->xgbe_one_poll: budget=%d\n", budget); in xgbe_one_poll()
2087 processed = xgbe_rx_poll(channel, budget); in xgbe_one_poll()
2090 if (processed < budget) { in xgbe_one_poll()
2103 static int xgbe_all_poll(struct napi_struct *napi, int budget) in xgbe_all_poll() argument
2112 DBGPR("-->xgbe_all_poll: budget=%d\n", budget); in xgbe_all_poll()
2115 ring_budget = budget / pdata->rx_ring_count; in xgbe_all_poll()
[all …]
/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c152 static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget) in i40e_clean_tx_irq() argument
236 budget--; in i40e_clean_tx_irq()
237 } while (likely(budget)); in i40e_clean_tx_irq()
268 return !!budget; in i40e_clean_tx_irq()
935 static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq_ps() argument
1093 } while (likely(total_rx_packets < budget)); in i40e_clean_rx_irq_ps()
1112 static int i40e_clean_rx_irq_1buf(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq_1buf() argument
1202 } while (likely(total_rx_packets < budget)); in i40e_clean_rx_irq_1buf()
1311 int i40evf_napi_poll(struct napi_struct *napi, int budget) in i40evf_napi_poll() argument
1337 if (budget <= 0) in i40evf_napi_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/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/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/chelsio/cxgb4vf/
Dsge.c1752 static int process_responses(struct sge_rspq *rspq, int budget) in process_responses() argument
1757 int budget_left = budget; in process_responses()
1869 return budget - budget_left; in process_responses()
1883 static int napi_rx_handler(struct napi_struct *napi, int budget) in napi_rx_handler() argument
1887 int work_done = process_responses(rspq, budget); in napi_rx_handler()
1890 if (likely(work_done < budget)) { in napi_rx_handler()
2123 unsigned int i, budget; in sge_tx_timer_cb() local
2125 budget = MAX_TIMER_TX_RECLAIM; in sge_tx_timer_cb()
2133 if (avail > budget) in sge_tx_timer_cb()
2134 avail = budget; in sge_tx_timer_cb()
[all …]
/drivers/net/ethernet/arc/
Demac_main.c217 static int arc_emac_rx(struct net_device *ndev, int budget) in arc_emac_rx() argument
222 for (work_done = 0; work_done < budget; work_done++) { in arc_emac_rx()
318 static int arc_emac_poll(struct napi_struct *napi, int budget) in arc_emac_poll() argument
326 work_done = arc_emac_rx(ndev, budget); in arc_emac_poll()
327 if (work_done < budget) { in arc_emac_poll()
/drivers/media/usb/ttusb-budget/
DMakefile1 obj-$(CONFIG_DVB_TTUSB_BUDGET) += dvb-ttusb-budget.o
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c643 static bool i40e_clean_tx_irq(struct i40e_ring *tx_ring, int budget) in i40e_clean_tx_irq() argument
727 budget--; in i40e_clean_tx_irq()
728 } while (likely(budget)); in i40e_clean_tx_irq()
749 if (budget && in i40e_clean_tx_irq()
776 return !!budget; in i40e_clean_tx_irq()
1481 static int i40e_clean_rx_irq_ps(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq_ps() argument
1494 if (budget <= 0) in i40e_clean_rx_irq_ps()
1654 } while (likely(total_rx_packets < budget)); in i40e_clean_rx_irq_ps()
1673 static int i40e_clean_rx_irq_1buf(struct i40e_ring *rx_ring, int budget) in i40e_clean_rx_irq_1buf() argument
1781 } while (likely(total_rx_packets < budget)); in i40e_clean_rx_irq_1buf()
[all …]

12345678