Home
last modified time | relevance | path

Searched refs:nbuffers (Results 1 – 25 of 48) sorted by relevance

12

/drivers/media/usb/em28xx/
Dem28xx-vbi.c35 unsigned int *nbuffers, unsigned int *nplanes, in vbi_queue_setup() argument
48 if (0 == *nbuffers) in vbi_queue_setup()
49 *nbuffers = 32; in vbi_queue_setup()
50 if (*nbuffers < 2) in vbi_queue_setup()
51 *nbuffers = 2; in vbi_queue_setup()
52 if (*nbuffers > 32) in vbi_queue_setup()
53 *nbuffers = 32; in vbi_queue_setup()
/drivers/media/pci/saa7134/
Dsaa7134-ts.c120 unsigned int *nbuffers, unsigned int *nplanes, in saa7134_ts_queue_setup() argument
127 if (0 == *nbuffers) in saa7134_ts_queue_setup()
128 *nbuffers = dev->ts.nr_bufs; in saa7134_ts_queue_setup()
129 *nbuffers = saa7134_buffer_count(size, *nbuffers); in saa7134_ts_queue_setup()
130 if (*nbuffers < 3) in saa7134_ts_queue_setup()
131 *nbuffers = 3; in saa7134_ts_queue_setup()
Dsaa7134-vbi.c142 unsigned int *nbuffers, unsigned int *nplanes, in queue_setup() argument
155 *nbuffers = saa7134_buffer_count(size, *nbuffers); in queue_setup()
/drivers/media/platform/vivid/
Dvivid-vbi-out.c31 unsigned *nbuffers, unsigned *nplanes, in vbi_out_queue_setup() argument
45 if (vq->num_buffers + *nbuffers < 2) in vbi_out_queue_setup()
46 *nbuffers = 2 - vq->num_buffers; in vbi_out_queue_setup()
Dvivid-vbi-cap.c141 unsigned *nbuffers, unsigned *nplanes, in vbi_cap_queue_setup() argument
155 if (vq->num_buffers + *nbuffers < 2) in vbi_cap_queue_setup()
156 *nbuffers = 2 - vq->num_buffers; in vbi_cap_queue_setup()
Dvivid-vid-out.c35 unsigned *nbuffers, unsigned *nplanes, in vid_out_queue_setup() argument
95 if (vq->num_buffers + *nbuffers < 2) in vid_out_queue_setup()
96 *nbuffers = 2 - vq->num_buffers; in vid_out_queue_setup()
105 dprintk(dev, 1, "%s: count=%d\n", __func__, *nbuffers); in vid_out_queue_setup()
/drivers/usb/gadget/function/
Duvc_queue.c45 unsigned int *nbuffers, unsigned int *nplanes, in uvc_queue_setup() argument
51 if (*nbuffers > UVC_MAX_VIDEO_BUFFERS) in uvc_queue_setup()
52 *nbuffers = UVC_MAX_VIDEO_BUFFERS; in uvc_queue_setup()
/drivers/media/platform/soc_camera/
Datmel-isi.c249 unsigned int *nbuffers, unsigned int *nplanes, in queue_setup() argument
259 if (!*nbuffers || *nbuffers > MAX_BUFFER_NUM) in queue_setup()
260 *nbuffers = MAX_BUFFER_NUM; in queue_setup()
262 if (size * *nbuffers > VID_LIMIT_BYTES) in queue_setup()
263 *nbuffers = VID_LIMIT_BYTES / size; in queue_setup()
273 *nbuffers, size); in queue_setup()
/drivers/media/usb/pwc/
Dpwc-if.c576 unsigned int *nbuffers, unsigned int *nplanes, in queue_setup() argument
582 if (*nbuffers < MIN_FRAMES) in queue_setup()
583 *nbuffers = MIN_FRAMES; in queue_setup()
584 else if (*nbuffers > MAX_FRAMES) in queue_setup()
585 *nbuffers = MAX_FRAMES; in queue_setup()
/drivers/media/usb/stk1160/
Dstk1160-v4l.c668 unsigned int *nbuffers, unsigned int *nplanes, in queue_setup() argument
680 *nbuffers = clamp_t(unsigned int, *nbuffers, in queue_setup()
689 __func__, *nbuffers, size); in queue_setup()
/drivers/media/usb/airspy/
Dairspy.c491 const void *parg, unsigned int *nbuffers, in airspy_queue_setup() argument
496 dev_dbg(s->dev, "nbuffers=%d\n", *nbuffers); in airspy_queue_setup()
499 if (vq->num_buffers + *nbuffers < 8) in airspy_queue_setup()
500 *nbuffers = 8 - vq->num_buffers; in airspy_queue_setup()
504 dev_dbg(s->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]); in airspy_queue_setup()
/drivers/media/usb/au0828/
Dau0828-vbi.c34 unsigned int *nbuffers, unsigned int *nplanes, in vbi_queue_setup() argument
/drivers/media/usb/msi2500/
Dmsi2500.c620 unsigned int *nbuffers, in msi2500_queue_setup() argument
626 dev_dbg(dev->dev, "nbuffers=%d\n", *nbuffers); in msi2500_queue_setup()
629 *nbuffers = clamp_t(unsigned int, *nbuffers, 8, 32); in msi2500_queue_setup()
632 dev_dbg(dev->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]); in msi2500_queue_setup()
/drivers/media/pci/dt3155/
Ddt3155.c135 unsigned int *nbuffers, unsigned int *num_planes, in dt3155_queue_setup() argument
143 if (vq->num_buffers + *nbuffers < 2) in dt3155_queue_setup()
144 *nbuffers = 2 - vq->num_buffers; in dt3155_queue_setup()
/drivers/media/usb/usbtv/
Dusbtv-video.c602 const void *parg, unsigned int *nbuffers, in usbtv_queue_setup() argument
609 if (vq->num_buffers + *nbuffers < 2) in usbtv_queue_setup()
610 *nbuffers = 2 - vq->num_buffers; in usbtv_queue_setup()
/drivers/media/pci/sta2x11/
Dsta2x11_vip.c269 unsigned int *nbuffers, unsigned int *nplanes, in queue_setup() argument
274 if (!(*nbuffers) || *nbuffers < MAX_FRAMES) in queue_setup()
275 *nbuffers = MAX_FRAMES; in queue_setup()
/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c286 unsigned int *nbuffers, in netup_unidvb_queue_setup() argument
296 if (vq->num_buffers + *nbuffers < VIDEO_MAX_FRAME) in netup_unidvb_queue_setup()
297 *nbuffers = VIDEO_MAX_FRAME - vq->num_buffers; in netup_unidvb_queue_setup()
300 __func__, *nbuffers, sizes[0]); in netup_unidvb_queue_setup()
/drivers/input/touchscreen/
Dsur40.c651 unsigned int *nbuffers, unsigned int *nplanes, in sur40_queue_setup() argument
657 if (q->num_buffers + *nbuffers < 3) in sur40_queue_setup()
658 *nbuffers = 3 - q->num_buffers; in sur40_queue_setup()
/drivers/media/platform/
Dsh_veu.c869 unsigned int *nbuffers, unsigned int *nplanes, in sh_veu_queue_setup() argument
875 unsigned int size, count = *nbuffers; in sh_veu_queue_setup()
896 *nbuffers = count = 2; in sh_veu_queue_setup()
900 *nbuffers = count; in sh_veu_queue_setup()
Dmx2_emmaprp.c693 unsigned int *nbuffers, unsigned int *nplanes, in emmaprp_queue_setup() argument
698 unsigned int size, count = *nbuffers; in emmaprp_queue_setup()
711 *nbuffers = count; in emmaprp_queue_setup()
/drivers/staging/lustre/lnet/lnet/
Drouter.c1269 int nbuffers = 0; in lnet_rtrpool_free_bufs() local
1285 nbuffers++; in lnet_rtrpool_free_bufs()
1288 LASSERT(rbp->rbp_nbuffers == nbuffers); in lnet_rtrpool_free_bufs()
1289 LASSERT(rbp->rbp_credits == nbuffers); in lnet_rtrpool_free_bufs()
/drivers/media/platform/s5p-g2d/
Dg2d.c105 unsigned int *nbuffers, unsigned int *nplanes, in g2d_queue_setup() argument
118 if (*nbuffers == 0) in g2d_queue_setup()
119 *nbuffers = 1; in g2d_queue_setup()
/drivers/media/usb/hackrf/
Dhackrf.c762 const void *parg, unsigned int *nbuffers, in hackrf_queue_setup() argument
767 dev_dbg(dev->dev, "nbuffers=%d\n", *nbuffers); in hackrf_queue_setup()
770 if (vq->num_buffers + *nbuffers < 8) in hackrf_queue_setup()
771 *nbuffers = 8 - vq->num_buffers; in hackrf_queue_setup()
775 dev_dbg(dev->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]); in hackrf_queue_setup()
/drivers/media/dvb-frontends/
Drtl2832_sdr.c493 const void *parg, unsigned int *nbuffers, in rtl2832_sdr_queue_setup() argument
499 dev_dbg(&pdev->dev, "nbuffers=%d\n", *nbuffers); in rtl2832_sdr_queue_setup()
502 if (vq->num_buffers + *nbuffers < 8) in rtl2832_sdr_queue_setup()
503 *nbuffers = 8 - vq->num_buffers; in rtl2832_sdr_queue_setup()
506 dev_dbg(&pdev->dev, "nbuffers=%d sizes[0]=%d\n", *nbuffers, sizes[0]); in rtl2832_sdr_queue_setup()
/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c1085 unsigned int *nbuffers, unsigned int *nplanes, in vpfe_buffer_queue_setup() argument
1096 if (vq->num_buffers + *nbuffers < 3) in vpfe_buffer_queue_setup()
1097 *nbuffers = 3 - vq->num_buffers; in vpfe_buffer_queue_setup()
1103 "nbuffers=%d, size=%lu\n", *nbuffers, size); in vpfe_buffer_queue_setup()

12