Home
last modified time | relevance | path

Searched refs:q_num_bufs (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/staging/media/meson/vdec/
H A Dvdec.c170 unsigned int q_num_bufs = vb2_get_num_buffers(q); in process_num_buffers() local
171 unsigned int buffers_total = q_num_bufs + *num_buffers; in process_num_buffers()
174 if (q_num_bufs + *num_buffers < min_buf_capture) in process_num_buffers()
175 *num_buffers = min_buf_capture - q_num_bufs; in process_num_buffers()
177 *num_buffers = fmt_out->min_buffers - q_num_bufs; in process_num_buffers()
179 *num_buffers = fmt_out->max_buffers - q_num_bufs; in process_num_buffers()
186 sess->num_dst_bufs = q_num_bufs + *num_buffers; in process_num_buffers()
/linux/samples/v4l/
H A Dv4l2-pci-skeleton.c158 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in queue_setup() local
171 if (q_num_bufs + *nbuffers < 3) in queue_setup()
172 *nbuffers = 3 - q_num_bufs; in queue_setup()
/linux/drivers/staging/media/imx/
H A Dimx-media-capture.c610 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in capture_queue_setup() local
619 count += q_num_bufs; in capture_queue_setup()
625 *nbuffers = (count < q_num_bufs) ? 0 : in capture_queue_setup()
626 count - q_num_bufs; in capture_queue_setup()
/linux/drivers/media/usb/usbtv/
H A Dusbtv-video.c729 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in usbtv_queue_setup() local
731 if (q_num_bufs + *nbuffers < 2) in usbtv_queue_setup()
732 *nbuffers = 2 - q_num_bufs; in usbtv_queue_setup()
/linux/drivers/media/i2c/
H A Dvideo-i2c.c408 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in queue_setup() local
410 if (q_num_bufs + *nbuffers < 2) in queue_setup()
411 *nbuffers = 2 - q_num_bufs; in queue_setup()
/linux/drivers/media/pci/tw68/
H A Dtw68-video.c363 unsigned int q_num_bufs = vb2_get_num_buffers(q); in tw68_queue_setup() local
364 unsigned int tot_bufs = q_num_bufs + *num_buffers; in tw68_queue_setup()
370 *num_buffers = tot_bufs - q_num_bufs; in tw68_queue_setup()
/linux/drivers/media/pci/cx18/
H A Dcx18-streams.c107 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in cx18_queue_setup() local
125 if (q_num_bufs + *nbuffers < 3) in cx18_queue_setup()
126 *nbuffers = 3 - q_num_bufs; in cx18_queue_setup()
/linux/drivers/input/touchscreen/
H A Dsur40.c850 unsigned int q_num_bufs = vb2_get_num_buffers(q); in sur40_queue_setup() local
852 if (q_num_bufs + *nbuffers < 3) in sur40_queue_setup()
853 *nbuffers = 3 - q_num_bufs; in sur40_queue_setup()
/linux/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb_core.c296 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in netup_unidvb_queue_setup() local
301 if (q_num_bufs + *nbuffers < VIDEO_MAX_FRAME) in netup_unidvb_queue_setup()
302 *nbuffers = VIDEO_MAX_FRAME - q_num_bufs; in netup_unidvb_queue_setup()
/linux/drivers/media/platform/ti/cal/
H A Dcal-video.c606 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in cal_queue_setup() local
608 if (q_num_bufs + *nbuffers < 3) in cal_queue_setup()
609 *nbuffers = 3 - q_num_bufs; in cal_queue_setup()
/linux/drivers/media/usb/airspy/
H A Dairspy.c485 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in airspy_queue_setup() local
490 if (q_num_bufs + *nbuffers < 8) in airspy_queue_setup()
491 *nbuffers = 8 - q_num_bufs; in airspy_queue_setup()
/linux/drivers/media/platform/renesas/
H A Drcar_drif.c427 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in rcar_drif_queue_setup() local
430 if (q_num_bufs + *num_buffers < 16) in rcar_drif_queue_setup()
431 *num_buffers = 16 - q_num_bufs; in rcar_drif_queue_setup()
/linux/drivers/media/platform/nxp/
H A Dimx7-media-csi.c1263 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in imx7_csi_video_queue_setup() local
1273 count += q_num_bufs; in imx7_csi_video_queue_setup()
1279 *nbuffers = (count < q_num_bufs) ? 0 : in imx7_csi_video_queue_setup()
1280 count - q_num_bufs; in imx7_csi_video_queue_setup()
/linux/drivers/media/platform/ti/davinci/
H A Dvpif_display.c118 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in vpif_buffer_queue_setup() local
126 if (q_num_bufs + *nbuffers < 3) in vpif_buffer_queue_setup()
127 *nbuffers = 3 - q_num_bufs; in vpif_buffer_queue_setup()
H A Dvpif_capture.c116 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in vpif_buffer_queue_setup() local
126 if (q_num_bufs + *nbuffers < 3) in vpif_buffer_queue_setup()
127 *nbuffers = 3 - q_num_bufs; in vpif_buffer_queue_setup()
/linux/drivers/media/pci/tw686x/
H A Dtw686x-video.c426 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in tw686x_queue_setup() local
434 if (q_num_bufs + *nbuffers < 3) in tw686x_queue_setup()
435 *nbuffers = 3 - q_num_bufs; in tw686x_queue_setup()
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-417.c1221 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in queue_setup() local
1226 if (q_num_bufs + *nbuffers < CX231XX_MIN_BUF) in queue_setup()
1227 *nbuffers = CX231XX_MIN_BUF - q_num_bufs; in queue_setup()
H A Dcx231xx-video.c717 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in queue_setup() local
721 if (q_num_bufs + *nbuffers < CX231XX_MIN_BUF) in queue_setup()
722 *nbuffers = CX231XX_MIN_BUF - q_num_bufs; in queue_setup()
/linux/drivers/media/usb/hackrf/
H A Dhackrf.c756 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in hackrf_queue_setup() local
761 if (q_num_bufs + *nbuffers < 8) in hackrf_queue_setup()
762 *nbuffers = 8 - q_num_bufs; in hackrf_queue_setup()
/linux/drivers/media/dvb-frontends/
H A Drtl2832_sdr.c442 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in rtl2832_sdr_queue_setup() local
447 if (q_num_bufs + *nbuffers < 8) in rtl2832_sdr_queue_setup()
448 *nbuffers = 8 - q_num_bufs; in rtl2832_sdr_queue_setup()
/linux/drivers/media/platform/ti/omap/
H A Domap_vout.c947 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in omap_vout_vb2_queue_setup() local
950 if (is_rotation_enabled(vout) && q_num_bufs + *nbufs > VRFB_NUM_BUFS) { in omap_vout_vb2_queue_setup()
951 *nbufs = VRFB_NUM_BUFS - q_num_bufs; in omap_vout_vb2_queue_setup()
/linux/drivers/media/platform/ti/am437x/
H A Dam437x-vpfe.c1774 unsigned int q_num_bufs = vb2_get_num_buffers(vq); in vpfe_queue_setup() local
1776 if (q_num_bufs + *nbuffers < 3) in vpfe_queue_setup()
1777 *nbuffers = 3 - q_num_bufs; in vpfe_queue_setup()