Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/media/usb/stk1160/
H A Dstk1160-video.c348 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_cancel_isoc() local
354 if (!num_bufs) in stk1160_cancel_isoc()
359 for (i = 0; i < num_bufs; i++) { in stk1160_cancel_isoc()
394 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_free_isoc() local
398 for (i = 0; i < num_bufs; i++) in stk1160_free_isoc()
401 dev->isoc_ctl.num_bufs = 0; in stk1160_free_isoc()
465 if (dev->isoc_ctl.num_bufs) in stk1160_alloc_isoc()
470 num_bufs = STK1160_NUM_BUFS; in stk1160_alloc_isoc()
522 dev->isoc_ctl.num_bufs = num_bufs; in stk1160_alloc_isoc()
535 dev->isoc_ctl.num_bufs = i; in stk1160_alloc_isoc()
[all …]
H A Dstk1160.h102 int num_bufs; member
/openbmc/linux/drivers/media/pci/pt3/
H A 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()
H A Dpt3.h131 int num_bufs; /* == pt3_board->num_bufs */ member
152 int num_bufs; /* number of DMA buffers allocated/mapped per FE */ member
H A 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.");
732 pt3->num_bufs = clamp_val(num_bufs, MIN_DATA_BUFS, MAX_DATA_BUFS); in pt3_probe()
/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_tx_dqo.c74 if (!pkt->num_bufs) in gve_free_tx_qpl_bufs()
79 for (i = 1; i < pkt->num_bufs; i++) { in gve_free_tx_qpl_bufs()
96 pkt->num_bufs = 0; in gve_free_tx_qpl_bufs()
586 pkt->num_bufs = 0; in gve_tx_add_skb_no_copy_dqo()
598 ++pkt->num_bufs; in gve_tx_add_skb_no_copy_dqo()
617 ++pkt->num_bufs; in gve_tx_add_skb_no_copy_dqo()
625 for (i = 0; i < pkt->num_bufs; i++) { in gve_tx_add_skb_no_copy_dqo()
638 pkt->num_bufs = 0; in gve_tx_add_skb_no_copy_dqo()
671 pkt->num_bufs = 0; in gve_tx_add_skb_copy_dqo()
694 ++pkt->num_bufs; in gve_tx_add_skb_copy_dqo()
[all …]
/openbmc/linux/drivers/media/usb/cx231xx/
H A 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()
426 for (i = 0; i < dev->vbi_mode.bulk_ctl.num_bufs; i++) { in cx231xx_init_vbi_isoc()
H A 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()
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()
1032 kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in cx231xx_init_isoc()
1120 int num_bufs, int max_pkt_size, in cx231xx_init_bulk() argument
1139 dev->video_mode.bulk_ctl.num_bufs = num_bufs; in cx231xx_init_bulk()
1159 kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in cx231xx_init_bulk()
[all …]
H A Dcx231xx-vbi.h31 int num_bufs, int max_pkt_size,
H A Dcx231xx.h153 int num_bufs; member
187 int num_bufs; member
863 int num_bufs, int max_pkt_size,
867 int num_bufs, int max_pkt_size,
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_bl.c28 for (i = 0; i < bl->num_bufs; i++) in qat_bl_free_bufl()
118 bufl->num_bufs = sg_nctr; in __qat_bl_sgl_to_bufl()
178 buflout->num_bufs = sg_nctr; in __qat_bl_sgl_to_bufl()
179 buflout->num_bufs += extra_buff; in __qat_bl_sgl_to_bufl()
257 int n = bl->num_bufs; in qat_bl_sgl_unmap()
301 bufl->num_bufs = sg_nctr; in qat_bl_sgl_map()
381 new_bl_size = struct_size(new_bl, buffers, new_bl->num_bufs); in qat_bl_realloc_map_new_dst()
H A Dqat_bl.h19 u32 num_bufs; member
/openbmc/linux/drivers/media/usb/em28xx/
H A Dem28xx-core.c824 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_uninit_usb_xfer()
842 usb_bufs->num_bufs = 0; in em28xx_uninit_usb_xfer()
859 for (i = 0; i < isoc_bufs->num_bufs; i++) { in em28xx_stop_urbs()
877 int num_bufs, int max_pkt_size, int packet_multiplier) in em28xx_alloc_urbs() argument
918 usb_bufs->num_bufs = num_bufs; in em28xx_alloc_urbs()
920 usb_bufs->urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in em28xx_alloc_urbs()
924 usb_bufs->buf = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in em28xx_alloc_urbs()
941 for (i = 0; i < usb_bufs->num_bufs; i++) { in em28xx_alloc_urbs()
995 int xfer_bulk, int num_bufs, int max_pkt_size, in em28xx_init_usb_xfer() argument
1021 rc = em28xx_alloc_urbs(dev, mode, xfer_bulk, num_bufs, in em28xx_init_usb_xfer()
[all …]
H A Dem28xx.h223 int num_bufs; member
817 int num_bufs, int max_pkt_size, int packet_multiplier);
820 int num_bufs, int max_pkt_size, int packet_multiplier,
/openbmc/linux/drivers/rpmsg/
H A Dvirtio_rpmsg_bus.c60 unsigned int num_bufs; member
452 if (vrp->last_sbuf < vrp->num_bufs / 2) in get_a_tx_buf()
907 vrp->num_bufs = virtqueue_get_vring_size(vrp->rvq) * 2; in rpmsg_probe()
909 vrp->num_bufs = MAX_RPMSG_NUM_BUFS; in rpmsg_probe()
913 total_buf_space = vrp->num_bufs * vrp->buf_size; in rpmsg_probe()
934 for (i = 0; i < vrp->num_bufs / 2; i++) { in rpmsg_probe()
1024 size_t total_buf_space = vrp->num_bufs * vrp->buf_size; in rpmsg_remove()
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_eth_com.c383 u16 num_bufs = ena_tx_ctx->num_bufs; in ena_com_prepare_tx() local
392 if (unlikely(!ena_com_sq_have_enough_space(io_sq, num_bufs + 1))) { in ena_com_prepare_tx()
423 if (unlikely(!num_bufs && !header_len)) { in ena_com_prepare_tx()
483 for (i = 0; i < num_bufs; i++) { in ena_com_prepare_tx()
H A Dena_eth_com.h26 u16 num_bufs; member
135 num_descs = ena_tx_ctx->num_bufs; in ena_com_is_doorbell_needed()
/openbmc/linux/drivers/media/usb/au0828/
H A 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()
269 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()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_base.c550 u32 num_bufs = ICE_RX_DESC_UNUSED(ring); in ice_vsi_cfg_rxq() local
616 if (!xsk_buff_can_alloc(ring->xsk_pool, num_bufs)) { in ice_vsi_cfg_rxq()
618 num_bufs, ring->q_index); in ice_vsi_cfg_rxq()
624 ok = ice_alloc_rx_bufs_zc(ring, num_bufs); in ice_vsi_cfg_rxq()
635 ice_alloc_rx_bufs(ring, num_bufs); in ice_vsi_cfg_rxq()
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Drx_common.h70 unsigned int num_bufs);
/openbmc/linux/drivers/net/ethernet/sfc/
H A Drx_common.h77 unsigned int num_bufs);
/openbmc/linux/drivers/gpu/drm/tegra/
H A Dsubmit.c266 bufs = alloc_copy_user_array(u64_to_user_ptr(args->bufs_ptr), args->num_bufs, in submit_process_bufs()
273 mappings = kcalloc(args->num_bufs, sizeof(*mappings), GFP_KERNEL); in submit_process_bufs()
280 for (i = 0; i < args->num_bufs; i++) { in submit_process_bufs()
/openbmc/linux/include/uapi/drm/
H A Dtegra_drm.h932 __u32 num_bufs; member
/openbmc/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c2466 unsigned int max, desc_len, num_bufs, indirect = 0; in vu_queue_get_avail_bytes() local
2473 num_bufs = total_bufs; in vu_queue_get_avail_bytes()
2486 if (num_bufs >= max) { in vu_queue_get_avail_bytes()
2511 num_bufs = i = 0; in vu_queue_get_avail_bytes()
2516 if (++num_bufs > max) { in vu_queue_get_avail_bytes()
2537 total_bufs = num_bufs; in vu_queue_get_avail_bytes()
3040 unsigned num_bufs = 0; in vu_log_queue_fill() local
3074 if (++num_bufs > max) { in vu_log_queue_fill()
/openbmc/qemu/hw/virtio/
H A Dvirtio.c1266 unsigned int num_bufs; in virtqueue_split_get_avail_bytes() local
1271 num_bufs = total_bufs; in virtqueue_split_get_avail_bytes()
1286 if (num_bufs >= max) { in virtqueue_split_get_avail_bytes()
1302 num_bufs = i = 0; in virtqueue_split_get_avail_bytes()
1308 if (++num_bufs > max) { in virtqueue_split_get_avail_bytes()
1333 total_bufs = num_bufs; in virtqueue_split_get_avail_bytes()
1425 if (num_bufs >= max) { in virtqueue_packed_get_avail_bytes()
1441 num_bufs = i = 0; in virtqueue_packed_get_avail_bytes()
1447 if (++num_bufs > max) { in virtqueue_packed_get_avail_bytes()
1471 idx += num_bufs - total_bufs; in virtqueue_packed_get_avail_bytes()
[all …]

12