Home
last modified time | relevance | path

Searched refs:num_bufs (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/media/usb/stk1160/
Dstk1160-video.c332 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_cancel_isoc() local
338 if (!num_bufs) in stk1160_cancel_isoc()
341 stk1160_dbg("killing %d urbs...\n", num_bufs); in stk1160_cancel_isoc()
343 for (i = 0; i < num_bufs; i++) { in stk1160_cancel_isoc()
363 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_free_isoc() local
365 stk1160_dbg("freeing %d urb buffers...\n", num_bufs); in stk1160_free_isoc()
367 for (i = 0; i < num_bufs; i++) { in stk1160_free_isoc()
393 dev->isoc_ctl.num_bufs = 0; in stk1160_free_isoc()
414 int i, j, k, sb_size, max_packets, num_bufs; in stk1160_alloc_isoc() local
421 if (dev->isoc_ctl.num_bufs) in stk1160_alloc_isoc()
[all …]
Dstk1160.h92 int num_bufs; member
Dstk1160-v4l.c227 if (!dev->isoc_ctl.num_bufs || new_pkt_size) { in stk1160_start_streaming()
234 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in stk1160_start_streaming()
/kernel/linux/linux-5.10/drivers/media/pci/pt3/
Dpt3_dma.c67 if (*idx == adap->num_bufs) in next_unit()
114 while (idx < adap->num_bufs) { in pt3_init_dmabuf()
133 for (i = 0; i < adap->num_bufs; i++) in pt3_free_dmabuf()
136 adap->num_bufs = 0; in pt3_free_dmabuf()
156 adap->num_bufs = 0; in pt3_alloc_dmabuf()
158 for (i = 0; i < pt3->num_bufs; i++) { in pt3_alloc_dmabuf()
164 adap->num_bufs++; in pt3_alloc_dmabuf()
172 DIV_ROUND_UP(adap->num_bufs * DATA_BUF_XFERS, DESCS_IN_PAGE); in pt3_alloc_dmabuf()
202 if (idx >= adap->num_bufs) { in pt3_alloc_dmabuf()
Dpt3.h131 int num_bufs; /* == pt3_board->num_bufs */ member
152 int num_bufs; /* number of DMA buffers allocated/mapped per FE */ member
Dpt3.c30 static int num_bufs = 4; variable
31 module_param(num_bufs, int, 0444);
32 MODULE_PARM_DESC(num_bufs, "Number of DMA buffer (188KiB) per FE.");
754 pt3->num_bufs = clamp_val(num_bufs, MIN_DATA_BUFS, MAX_DATA_BUFS); in pt3_probe()
/kernel/linux/linux-5.10/drivers/media/usb/cx231xx/
Dcx231xx-vbi.c305 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_uninit_vbi_isoc()
331 dev->vbi_mode.bulk_ctl.num_bufs = 0; in cx231xx_uninit_vbi_isoc()
341 int num_bufs, int max_pkt_size, in cx231xx_init_vbi_isoc() argument
362 dev->vbi_mode.bulk_ctl.num_bufs = num_bufs; in cx231xx_init_vbi_isoc()
374 dev->vbi_mode.bulk_ctl.urb = kcalloc(num_bufs, sizeof(void *), in cx231xx_init_vbi_isoc()
383 kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in cx231xx_init_vbi_isoc()
397 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_init_vbi_isoc()
427 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_init_vbi_isoc()
Dcx231xx-core.c875 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_uninit_isoc()
909 dev->video_mode.isoc_ctl.num_bufs = 0; in cx231xx_uninit_isoc()
934 for (i = 0; i < dev->video_mode.bulk_ctl.num_bufs; i++) { in cx231xx_uninit_bulk()
968 dev->video_mode.bulk_ctl.num_bufs = 0; in cx231xx_uninit_bulk()
984 int num_bufs, int max_pkt_size, in cx231xx_init_isoc() argument
1002 dev->video_mode.isoc_ctl.num_bufs = num_bufs; in cx231xx_init_isoc()
1023 kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in cx231xx_init_isoc()
1031 kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in cx231xx_init_isoc()
1051 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_init_isoc()
1094 for (i = 0; i < dev->video_mode.isoc_ctl.num_bufs; i++) { in cx231xx_init_isoc()
[all …]
Dcx231xx-vbi.h31 int num_bufs, int max_pkt_size,
Dcx231xx.h153 int num_bufs; member
187 int num_bufs; member
865 int num_bufs, int max_pkt_size,
869 int num_bufs, int max_pkt_size,
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-core.c832 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_uninit_usb_xfer()
850 usb_bufs->num_bufs = 0; in em28xx_uninit_usb_xfer()
867 for (i = 0; i < isoc_bufs->num_bufs; i++) { in em28xx_stop_urbs()
885 int num_bufs, int max_pkt_size, int packet_multiplier) in em28xx_alloc_urbs() argument
926 usb_bufs->num_bufs = num_bufs; in em28xx_alloc_urbs()
928 usb_bufs->urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in em28xx_alloc_urbs()
932 usb_bufs->buf = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in em28xx_alloc_urbs()
949 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_alloc_urbs()
1003 int xfer_bulk, int num_bufs, int max_pkt_size, in em28xx_init_usb_xfer() argument
1029 rc = em28xx_alloc_urbs(dev, mode, xfer_bulk, num_bufs, in em28xx_init_usb_xfer()
[all …]
Dem28xx.h232 int num_bufs; member
828 int num_bufs, int max_pkt_size, int packet_multiplier);
831 int num_bufs, int max_pkt_size, int packet_multiplier,
/kernel/linux/linux-5.10/drivers/media/usb/tm6000/
Dtm6000-video.c458 int num_bufs = TM6000_NUM_URB_BUF; in tm6000_alloc_urb_buffers() local
464 dev->urb_buffer = kmalloc_array(num_bufs, sizeof(*dev->urb_buffer), in tm6000_alloc_urb_buffers()
469 dev->urb_dma = kmalloc_array(num_bufs, sizeof(*dev->urb_dma), in tm6000_alloc_urb_buffers()
474 for (i = 0; i < num_bufs; i++) { in tm6000_alloc_urb_buffers()
525 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in tm6000_uninit_isoc()
544 dev->isoc_ctl.num_bufs = 0; in tm6000_uninit_isoc()
554 int num_bufs = TM6000_NUM_URB_BUF; in tm6000_prepare_isoc() local
584 dev->isoc_ctl.num_bufs = num_bufs; in tm6000_prepare_isoc()
586 dev->isoc_ctl.urb = kmalloc_array(num_bufs, sizeof(void *), in tm6000_prepare_isoc()
591 dev->isoc_ctl.transfer_buffer = kmalloc_array(num_bufs, in tm6000_prepare_isoc()
[all …]
Dtm6000-usb-isoc.h17 int num_bufs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/
Dena_eth_com.c378 u16 num_bufs = ena_tx_ctx->num_bufs; in ena_com_prepare_tx() local
387 if (unlikely(!ena_com_sq_have_enough_space(io_sq, num_bufs + 1))) { in ena_com_prepare_tx()
413 if (unlikely(!num_bufs && !header_len)) { in ena_com_prepare_tx()
470 for (i = 0; i < num_bufs; i++) { in ena_com_prepare_tx()
Dena_eth_com.h22 u16 num_bufs; member
131 num_descs = ena_tx_ctx->num_bufs; in ena_com_is_doorbell_needed()
/kernel/linux/linux-5.10/drivers/rpmsg/
Dvirtio_rpmsg_bus.c61 unsigned int num_bufs; member
459 if (vrp->last_sbuf < vrp->num_bufs / 2) in get_a_tx_buf()
916 vrp->num_bufs = virtqueue_get_vring_size(vrp->rvq) * 2; in rpmsg_probe()
918 vrp->num_bufs = MAX_RPMSG_NUM_BUFS; in rpmsg_probe()
922 total_buf_space = vrp->num_bufs * vrp->buf_size; in rpmsg_probe()
943 for (i = 0; i < vrp->num_bufs / 2; i++) { in rpmsg_probe()
1012 size_t total_buf_space = vrp->num_bufs * vrp->buf_size; in rpmsg_remove()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_base.c287 u16 num_bufs = ICE_DESC_UNUSED(ring); in ice_setup_rx_ctx() local
422 if (!xsk_buff_can_alloc(ring->xsk_pool, num_bufs)) { in ice_setup_rx_ctx()
424 num_bufs, ring->q_index); in ice_setup_rx_ctx()
430 err = ice_alloc_rx_bufs_zc(ring, num_bufs); in ice_setup_rx_ctx()
437 ice_alloc_rx_bufs(ring, num_bufs); in ice_setup_rx_ctx()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_crypto.h33 u32 num_bufs; member
Dqat_algs.c632 for (i = 0; i < bl->num_bufs; i++) in qat_alg_free_bufl()
643 int bufless = blout->num_bufs - blout->num_mapped_bufs; in qat_alg_free_bufl()
645 for (i = bufless; i < blout->num_bufs; i++) { in qat_alg_free_bufl()
709 bufl->num_bufs = sg_nctr; in qat_alg_sgl_to_bufl()
752 buflout->num_bufs = sg_nctr; in qat_alg_sgl_to_bufl()
/kernel/linux/linux-5.10/drivers/media/usb/au0828/
Dau0828-video.c162 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_uninit_isoc()
187 dev->isoc_ctl.num_bufs = 0; in au0828_uninit_isoc()
196 int num_bufs, int max_pkt_size, in au0828_init_isoc() argument
209 dev->isoc_ctl.num_bufs = num_bufs; in au0828_init_isoc()
211 dev->isoc_ctl.urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in au0828_init_isoc()
217 dev->isoc_ctl.transfer_buffer = kcalloc(num_bufs, sizeof(void *), in au0828_init_isoc()
231 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_init_isoc()
270 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_init_isoc()
1690 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_v4l2_suspend()
1731 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in au0828_v4l2_resume()
Dau0828.h123 int num_bufs; member
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Drx_common.h71 unsigned int num_bufs);
Drx_common.c351 unsigned int num_bufs) in efx_free_rx_buffers() argument
359 } while (--num_bufs); in efx_free_rx_buffers()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Drx.c229 unsigned int num_bufs) in ef4_free_rx_buffers() argument
237 } while (--num_bufs); in ef4_free_rx_buffers()

12