/Linux-v4.19/drivers/media/pci/ttpci/ |
D | budget-core.c | 61 static int stop_ts_capture(struct budget *budget) in stop_ts_capture() argument 63 dprintk(2, "budget: %p\n", budget); in stop_ts_capture() 65 saa7146_write(budget->dev, MC1, MASK_20); // DMA3 off in stop_ts_capture() 66 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture() 70 static int start_ts_capture(struct budget *budget) in start_ts_capture() argument 72 struct saa7146_dev *dev = budget->dev; in start_ts_capture() 74 dprintk(2, "budget: %p\n", budget); in start_ts_capture() 76 if (!budget->feeding || !budget->fe_synced) in start_ts_capture() 81 memset(budget->grabbing, 0x00, budget->buffer_size); in start_ts_capture() 85 budget->ttbp = 0; in start_ts_capture() [all …]
|
D | budget.c | 59 static void Set22K (struct budget *budget, int state) in Set22K() argument 61 struct saa7146_dev *dev=budget->dev; in Set22K() 62 dprintk(2, "budget: %p\n", budget); in Set22K() 70 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument 72 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit() 73 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit() 81 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument 85 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte() 90 DiseqcSendBit(budget, d); in DiseqcSendByte() 93 DiseqcSendBit(budget, par); in DiseqcSendByte() [all …]
|
D | budget-patch.c | 41 #define budget_patch budget 61 static void gpio_Set22K (struct budget *budget, int state) in gpio_Set22K() argument 63 struct saa7146_dev *dev=budget->dev; in gpio_Set22K() 64 dprintk(2, "budget: %p\n", budget); in gpio_Set22K() 72 static void DiseqcSendBit (struct budget *budget, int data) in DiseqcSendBit() argument 74 struct saa7146_dev *dev=budget->dev; in DiseqcSendBit() 75 dprintk(2, "budget: %p\n", budget); in DiseqcSendBit() 83 static void DiseqcSendByte (struct budget *budget, int data) in DiseqcSendByte() argument 87 dprintk(2, "budget: %p\n", budget); in DiseqcSendByte() 92 DiseqcSendBit(budget, d); in DiseqcSendByte() [all …]
|
D | budget-ci.c | 107 struct budget budget; member 120 u32 command = ttpci_budget_debiread(&budget_ci->budget, DEBINOSWAP, DEBIADDR_IR, 2, 1, 0) >> 8; in msp430_ir_interrupt() 174 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_init() 209 switch (budget_ci->budget.dev->pci->subsystem_device) { in msp430_ir_init() 257 struct saa7146_dev *saa = budget_ci->budget.dev; in msp430_ir_deinit() 273 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_attribute_mem() 284 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_attribute_mem() 295 return ttpci_budget_debiread(&budget_ci->budget, DEBICICAM, in ciintf_read_cam_control() 306 return ttpci_budget_debiwrite(&budget_ci->budget, DEBICICAM, in ciintf_write_cam_control() 313 struct saa7146_dev *saa = budget_ci->budget.dev; in ciintf_slot_reset() [all …]
|
D | budget-av.c | 67 struct budget budget; member 145 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem() 148 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem() 164 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem() 167 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem() 183 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control() 186 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control() 203 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control() 206 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 3, 1, value, 0, 0); in ciintf_write_cam_control() 217 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_reset() [all …]
|
D | budget.h | 38 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,
|
D | Makefile | 14 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
|
D | av7110.c | 1190 static int stop_ts_capture(struct av7110 *budget) in stop_ts_capture() argument 1192 dprintk(2, "budget: %p\n", budget); in stop_ts_capture() 1194 if (--budget->feeding1) in stop_ts_capture() 1195 return budget->feeding1; in stop_ts_capture() 1196 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture() 1197 SAA7146_IER_DISABLE(budget->dev, MASK_10); in stop_ts_capture() 1198 SAA7146_ISR_CLEAR(budget->dev, MASK_10); in stop_ts_capture() 1202 static int start_ts_capture(struct av7110 *budget) in start_ts_capture() argument 1206 dprintk(2, "budget: %p\n", budget); in start_ts_capture() 1208 if (budget->feeding1) in start_ts_capture() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | power_budget.c | 60 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-v4.19/include/trace/events/ |
D | napi.h | 16 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-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_txrx.c | 74 int mlx5e_napi_poll(struct napi_struct *napi, int budget) in mlx5e_napi_poll() argument 86 busy |= mlx5e_poll_tx_cq(&c->sq[i].cq, budget); in mlx5e_napi_poll() 93 if (likely(budget)) { /* budget=0 means: don't poll rx rings */ in mlx5e_napi_poll() 94 work_done = mlx5e_poll_rx_cq(&c->rq.cq, budget); in mlx5e_napi_poll() 95 busy |= work_done == budget; in mlx5e_napi_poll() 102 return budget; in mlx5e_napi_poll() 104 if (budget && work_done == budget) in mlx5e_napi_poll()
|
/Linux-v4.19/drivers/infiniband/core/ |
D | cq.c | 29 static int __ib_process_cq(struct ib_cq *cq, int budget, struct ib_wc *wcs, in __ib_process_cq() argument 40 budget - completed), wcs)) > 0) { in __ib_process_cq() 52 if (n != batch || (budget != -1 && completed >= budget)) in __ib_process_cq() 73 int ib_process_cq_direct(struct ib_cq *cq, int budget) in ib_process_cq_direct() argument 77 return __ib_process_cq(cq, budget, wcs, IB_POLL_BATCH_DIRECT); in ib_process_cq_direct() 86 static int ib_poll_handler(struct irq_poll *iop, int budget) in ib_poll_handler() argument 91 completed = __ib_process_cq(cq, budget, cq->wc, IB_POLL_BATCH); in ib_poll_handler() 92 if (completed < budget) { in ib_poll_handler()
|
/Linux-v4.19/drivers/net/wireless/ath/wil6210/ |
D | netdev.c | 102 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-v4.19/drivers/lightnvm/ |
D | pblk-rl.c | 209 void pblk_rl_init(struct pblk_rl *rl, int budget) in pblk_rl_init() argument 231 rb_windows = budget / PBLK_MAX_REQ_ADDRS; in pblk_rl_init() 235 rl->rb_budget = budget; in pblk_rl_init() 236 rl->rb_user_max = budget; in pblk_rl_init() 237 rl->rb_max_io = budget >> 1; in pblk_rl_init()
|
/Linux-v4.19/net/core/ |
D | gro_cells.c | 36 static int gro_cell_poll(struct napi_struct *napi, int budget) in gro_cell_poll() argument 42 while (work_done < budget) { in gro_cell_poll() 50 if (work_done < budget) in gro_cell_poll()
|
/Linux-v4.19/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_ring.c | 142 unsigned int budget = AQ_CFG_TX_CLEAN_BUDGET; in aq_ring_tx_clean() local 144 for (; self->sw_head != self->hw_head && budget--; in aq_ring_tx_clean() 172 return !!budget; in aq_ring_tx_clean() 179 int budget) in aq_ring_rx_clean() argument 185 for (; (self->sw_head != self->hw_head) && budget; in aq_ring_rx_clean() 187 --budget, ++(*work_done)) { in aq_ring_rx_clean()
|
/Linux-v4.19/lib/ |
D | irq_poll.c | 81 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-v4.19/drivers/infiniband/hw/bnxt_re/ |
D | qplib_fp.c | 245 int budget = nq->budget; in bnxt_qplib_service_nq() local 250 while (budget--) { in bnxt_qplib_service_nq() 477 nq->budget = 8; in bnxt_qplib_alloc_nq() 2002 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_sq() argument 2011 while (*budget) { in __flush_sq() 2029 (*budget)--; in __flush_sq() 2034 if (!(*budget) && HWQ_CMP(sq->hwq.cons, &sq->hwq) != sw_prod) in __flush_sq() 2042 struct bnxt_qplib_cqe **pcqe, int *budget) in __flush_rq() argument 2064 while (*budget) { in __flush_rq() 2075 (*budget)--; in __flush_rq() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
D | base.c | 220 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-v4.19/drivers/staging/octeon/ |
D | ethernet-rx.c | 189 static int cvm_oct_poll(struct oct_rx_group *rx_group, int budget) in cvm_oct_poll() argument 225 while (rx_count < budget) { in cvm_oct_poll() 260 if (USE_ASYNC_IOBDMA && rx_count < (budget - 1)) { in cvm_oct_poll() 419 static int cvm_oct_napi_poll(struct napi_struct *napi, int budget) in cvm_oct_napi_poll() argument 425 rx_count = cvm_oct_poll(rx_group, budget); in cvm_oct_napi_poll() 427 if (rx_count < budget) { in cvm_oct_napi_poll()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 886 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 …]
|
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/ |
D | hinic_rx.c | 309 static int rxq_recv(struct hinic_rxq *rxq, int budget) in rxq_recv() argument 319 while (pkts < budget) { in rxq_recv() 366 static int rx_poll(struct napi_struct *napi, int budget) in rx_poll() argument 372 pkts = rxq_recv(rxq, budget); in rx_poll() 373 if (pkts >= budget) in rx_poll() 374 return budget; in rx_poll()
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpsw.c | 428 int budget; member 856 int budget, bigest_rate_ch = 0; in cpsw_split_res() local 895 budget = CPSW_POLL_WEIGHT; in cpsw_split_res() 899 txv[i].budget = (ch_rate * CPSW_POLL_WEIGHT) / max_rate; in cpsw_split_res() 900 if (!txv[i].budget) in cpsw_split_res() 901 txv[i].budget++; in cpsw_split_res() 912 txv[i].budget = ch_budget; in cpsw_split_res() 918 budget -= txv[i].budget; in cpsw_split_res() 921 if (budget) in cpsw_split_res() 922 txv[bigest_rate_ch].budget += budget; in cpsw_split_res() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_txrx.c | 109 unsigned int budget = vsi->work_lmt; in ice_clean_tx_irq() local 186 budget--; in ice_clean_tx_irq() 187 } while (likely(budget)); in ice_clean_tx_irq() 217 return !!budget; in ice_clean_tx_irq() 958 static int ice_clean_rx_irq(struct ice_ring *rx_ring, int budget) in ice_clean_rx_irq() argument 965 while (likely(total_rx_pkts < (unsigned int)budget)) { in ice_clean_rx_irq() 1051 return failure ? budget : (int)total_rx_pkts; in ice_clean_rx_irq() 1063 int ice_napi_poll(struct napi_struct *napi, int budget) in ice_napi_poll() argument 1078 if (!ice_clean_tx_irq(vsi, ring, budget)) in ice_napi_poll() 1082 if (budget <= 0) in ice_napi_poll() [all …]
|
/Linux-v4.19/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-net.c | 1107 static int xlgmac_rx_poll(struct xlgmac_channel *channel, int budget) in xlgmac_rx_poll() argument 1136 while (packet_count < budget) { in xlgmac_rx_poll() 1280 static int xlgmac_one_poll(struct napi_struct *napi, int budget) in xlgmac_one_poll() argument 1287 XLGMAC_PR("budget=%d\n", budget); in xlgmac_one_poll() 1293 processed = xlgmac_rx_poll(channel, budget); in xlgmac_one_poll() 1296 if (processed < budget) { in xlgmac_one_poll() 1309 static int xlgmac_all_poll(struct napi_struct *napi, int budget) in xlgmac_all_poll() argument 1319 XLGMAC_PR("budget=%d\n", budget); in xlgmac_all_poll() 1322 ring_budget = budget / pdata->rx_ring_count; in xlgmac_all_poll() 1332 if (ring_budget > (budget - processed)) in xlgmac_all_poll() [all …]
|