/linux/drivers/staging/media/meson/vdec/ |
H A D | vdec.c | 170 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 D | v4l2-pci-skeleton.c | 158 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 D | imx-media-capture.c | 610 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 D | usbtv-video.c | 729 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 D | video-i2c.c | 408 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 D | tw68-video.c | 363 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 D | cx18-streams.c | 107 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 D | sur40.c | 850 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 D | netup_unidvb_core.c | 296 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 D | cal-video.c | 606 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 D | airspy.c | 485 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 D | rcar_drif.c | 427 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 D | imx7-media-csi.c | 1263 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 D | vpif_display.c | 118 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 D | vpif_capture.c | 116 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 D | tw686x-video.c | 426 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 D | cx231xx-417.c | 1221 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 D | cx231xx-video.c | 717 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 D | hackrf.c | 756 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 D | rtl2832_sdr.c | 442 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 D | omap_vout.c | 947 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 D | am437x-vpfe.c | 1774 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()
|