Searched refs:v4l2 (Results 1 - 200 of 545) sorted by relevance

123

/linux-4.1.27/drivers/media/v4l2-core/
H A DMakefile7 videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \
8 v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \
9 v4l2-async.o
11 videodev-objs += v4l2-compat-ioctl32.o
14 videodev-objs += v4l2-of.o
18 obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
19 obj-$(CONFIG_VIDEO_V4L2) += v4l2-dv-timings.o
23 obj-$(CONFIG_V4L2_MEM2MEM_DEV) += v4l2-mem2mem.o
H A Dv4l2-fh.c2 * v4l2-fh.c
28 #include <media/v4l2-dev.h>
29 #include <media/v4l2-fh.h>
30 #include <media/v4l2-event.h>
31 #include <media/v4l2-ioctl.h>
H A Dv4l2-event.c2 * v4l2-event.c
25 #include <media/v4l2-dev.h>
26 #include <media/v4l2-fh.h>
27 #include <media/v4l2-event.h>
H A Dv4l2-async.c21 #include <media/v4l2-async.h>
22 #include <media/v4l2-device.h>
23 #include <media/v4l2-subdev.h>
H A Dv4l2-subdev.c29 #include <media/v4l2-ctrls.h>
30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/v4l2-fh.h>
33 #include <media/v4l2-event.h>
H A Dv4l2-common.c61 #include <media/v4l2-common.h>
62 #include <media/v4l2-device.h>
63 #include <media/v4l2-ctrls.h>
68 MODULE_DESCRIPTION("misc helper functions for v4l2 device drivers");
H A Dv4l2-clk.c21 #include <media/v4l2-clk.h>
22 #include <media/v4l2-subdev.h>
H A Dv4l2-device.c30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ctrls.h>
H A Dv4l2-mem2mem.c21 #include <media/v4l2-mem2mem.h>
22 #include <media/v4l2-dev.h>
23 #include <media/v4l2-fh.h>
24 #include <media/v4l2-event.h>
202 * to be drained before doing streamoff), allow scheduling without v4l2 buffers
/linux-4.1.27/drivers/media/pci/solo6x10/
H A DMakefile1 solo6x10-y := solo6x10-core.o solo6x10-i2c.o solo6x10-p2m.o solo6x10-v4l2.o \
3 solo6x10-v4l2-enc.o solo6x10-g723.o solo6x10-eeprom.o
H A Dsolo6x10.h35 #include <media/v4l2-dev.h>
36 #include <media/v4l2-device.h>
37 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/usb/em28xx/
H A Dem28xx-video.c42 #include <media/v4l2-common.h>
43 #include <media/v4l2-ioctl.h>
44 #include <media/v4l2-event.h>
45 #include <media/v4l2-clk.h>
80 MODULE_DESCRIPTION(DRIVER_DESC " - v4l2 interface");
145 struct em28xx_v4l2 *v4l2 = dev->v4l2; norm_maxw() local
148 return v4l2->sensor_xres; norm_maxw()
158 struct em28xx_v4l2 *v4l2 = dev->v4l2; norm_maxh() local
161 return v4l2->sensor_yres; norm_maxh()
166 return (v4l2->norm & V4L2_STD_625_50) ? 576 : 480; norm_maxh()
194 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; em28xx_wake_i2c()
224 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_set_outfmt() local
226 fmt = v4l2->format->reg; em28xx_set_outfmt()
242 ret = em28xx_write_reg(dev, EM28XX_R10_VINMODE, v4l2->vinmode); em28xx_set_outfmt()
246 vinctrl = v4l2->vinctl; em28xx_set_outfmt()
250 em28xx_write_reg(dev, EM28XX_R36_VBI_WIDTH, v4l2->vbi_width/4); em28xx_set_outfmt()
251 em28xx_write_reg(dev, EM28XX_R37_VBI_HEIGHT, v4l2->vbi_height); em28xx_set_outfmt()
252 if (v4l2->norm & V4L2_STD_525_60) { em28xx_set_outfmt()
255 } else if (v4l2->norm & V4L2_STD_625_50) { em28xx_set_outfmt()
330 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_resolution_set() local
335 v4l2->vbi_width = 720; em28xx_resolution_set()
336 if (v4l2->norm & V4L2_STD_525_60) em28xx_resolution_set()
337 v4l2->vbi_height = 12; em28xx_resolution_set()
339 v4l2->vbi_height = 18; em28xx_resolution_set()
357 return em28xx_scaler_set(dev, v4l2->hscale, v4l2->vscale); em28xx_resolution_set()
363 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_set_alternate() local
366 unsigned int min_pkt_size = v4l2->width * 2 + 4; em28xx_set_alternate()
383 if (v4l2->width * 2 * v4l2->height > 720 * 240 * 2) em28xx_set_alternate()
436 buf->vb.v4l2_buf.sequence = dev->v4l2->field_count++; finish_buffer()
437 if (dev->v4l2->progressive) finish_buffer()
454 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_copy_video() local
457 int bytesperline = v4l2->width << 1; em28xx_copy_video()
465 if (v4l2->progressive || buf->top_field) em28xx_copy_video()
473 if (v4l2->progressive) em28xx_copy_video()
497 if (v4l2->progressive) em28xx_copy_video()
543 offset += dev->v4l2->vbi_width * dev->v4l2->vbi_height; em28xx_copy_vbi()
619 struct em28xx_v4l2 *v4l2 = dev->v4l2; finish_field_prepare_next() local
621 if (v4l2->progressive || v4l2->top_field) { /* Brand new frame */ finish_field_prepare_next()
627 buf->top_field = v4l2->top_field; finish_field_prepare_next()
641 struct em28xx_v4l2 *v4l2 = dev->v4l2; process_frame_data_em28xx() local
661 v4l2->capture_type = 0; process_frame_data_em28xx()
662 v4l2->vbi_read = 0; process_frame_data_em28xx()
664 v4l2->top_field = !(data_pkt[2] & 1); process_frame_data_em28xx()
669 v4l2->capture_type = 2; process_frame_data_em28xx()
671 v4l2->top_field = !(data_pkt[2] & 1); process_frame_data_em28xx()
679 if (v4l2->capture_type == 0) { process_frame_data_em28xx()
682 v4l2->capture_type = 1; process_frame_data_em28xx()
685 if (v4l2->capture_type == 1) { process_frame_data_em28xx()
686 int vbi_size = v4l2->vbi_width * v4l2->vbi_height; process_frame_data_em28xx()
687 int vbi_data_len = ((v4l2->vbi_read + data_len) > vbi_size) ? process_frame_data_em28xx()
688 (vbi_size - v4l2->vbi_read) : data_len; process_frame_data_em28xx()
693 v4l2->vbi_read += vbi_data_len; process_frame_data_em28xx()
697 v4l2->capture_type = 2; process_frame_data_em28xx()
703 if (v4l2->capture_type == 2) { process_frame_data_em28xx()
706 v4l2->capture_type = 3; process_frame_data_em28xx()
709 if (v4l2->capture_type == 3 && buf != NULL && data_len > 0) process_frame_data_em28xx()
722 struct em28xx_v4l2 *v4l2 = dev->v4l2; process_frame_data_em25xx() local
731 v4l2->top_field = !(data_pkt[1] & process_frame_data_em25xx()
880 struct em28xx_v4l2 *v4l2 = dev->v4l2; queue_setup() local
887 (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3; queue_setup()
905 struct em28xx_v4l2 *v4l2 = dev->v4l2; buffer_prepare() local
911 size = (v4l2->width * v4l2->height * v4l2->format->depth + 7) >> 3; buffer_prepare()
926 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_start_analog_streaming() local
938 if (v4l2->streaming_users == 0) { em28xx_start_analog_streaming()
949 v4l2->capture_type = -1; em28xx_start_analog_streaming()
967 f.frequency = v4l2->frequency; em28xx_start_analog_streaming()
972 v4l2_device_call_all(&v4l2->v4l2_dev, em28xx_start_analog_streaming()
976 v4l2->streaming_users++; em28xx_start_analog_streaming()
984 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_stop_streaming() local
992 if (v4l2->streaming_users-- == 1) { em28xx_stop_streaming()
1015 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_stop_vbi_streaming() local
1023 if (v4l2->streaming_users-- == 1) { em28xx_stop_vbi_streaming()
1074 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_vb2_setup() local
1077 q = &v4l2->vb_vidq; em28xx_vb2_setup()
1091 q = &v4l2->vb_vbiq; em28xx_vb2_setup()
1107 /********************* v4l2 interface **************************************/
1111 struct v4l2_device *v4l2_dev = &dev->v4l2->v4l2_dev; video_mux()
1166 struct em28xx_v4l2 *v4l2 = em28xx_s_ctrl() local
1168 struct em28xx *dev = v4l2->dev; em28xx_s_ctrl()
1242 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_g_fmt_vid_cap() local
1244 f->fmt.pix.width = v4l2->width; vidioc_g_fmt_vid_cap()
1245 f->fmt.pix.height = v4l2->height; vidioc_g_fmt_vid_cap()
1246 f->fmt.pix.pixelformat = v4l2->format->fourcc; vidioc_g_fmt_vid_cap()
1247 f->fmt.pix.bytesperline = (v4l2->width * v4l2->format->depth + 7) >> 3; vidioc_g_fmt_vid_cap()
1248 f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * v4l2->height; vidioc_g_fmt_vid_cap()
1252 if (v4l2->progressive) vidioc_g_fmt_vid_cap()
1255 f->fmt.pix.field = v4l2->interlaced_fieldmode ? vidioc_g_fmt_vid_cap()
1275 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_try_fmt_vid_cap() local
1317 if (v4l2->progressive) vidioc_try_fmt_vid_cap()
1320 f->fmt.pix.field = v4l2->interlaced_fieldmode ? vidioc_try_fmt_vid_cap()
1331 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_set_video_format() local
1337 v4l2->format = fmt; em28xx_set_video_format()
1338 v4l2->width = width; em28xx_set_video_format()
1339 v4l2->height = height; em28xx_set_video_format()
1342 size_to_scale(dev, v4l2->width, v4l2->height, em28xx_set_video_format()
1343 &v4l2->hscale, &v4l2->vscale); em28xx_set_video_format()
1354 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_s_fmt_vid_cap() local
1356 if (vb2_is_busy(&v4l2->vb_vidq)) vidioc_s_fmt_vid_cap()
1369 *norm = dev->v4l2->norm; vidioc_g_std()
1378 v4l2_device_call_all(&dev->v4l2->v4l2_dev, 0, video, querystd, norm); vidioc_querystd()
1386 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_s_std() local
1389 if (norm == v4l2->norm) vidioc_s_std()
1392 if (v4l2->streaming_users > 0) vidioc_s_std()
1395 v4l2->norm = norm; vidioc_s_std()
1403 v4l2->width = f.fmt.pix.width; vidioc_s_std()
1404 v4l2->height = f.fmt.pix.height; vidioc_s_std()
1405 size_to_scale(dev, v4l2->width, v4l2->height, vidioc_s_std()
1406 &v4l2->hscale, &v4l2->vscale); vidioc_s_std()
1409 v4l2_device_call_all(&v4l2->v4l2_dev, 0, video, s_std, v4l2->norm); vidioc_s_std()
1418 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_g_parm() local
1423 rc = v4l2_device_call_until_err(&v4l2->v4l2_dev, 0, vidioc_g_parm()
1426 v4l2_video_std_frame_period(v4l2->norm, vidioc_g_parm()
1438 return v4l2_device_call_until_err(&dev->v4l2->v4l2_dev, vidioc_s_parm()
1475 i->std = dev->v4l2->vdev.tvnorms; vidioc_enum_input()
1572 v4l2_device_call_all(&dev->v4l2->v4l2_dev, 0, tuner, g_tuner, t); vidioc_g_tuner()
1584 v4l2_device_call_all(&dev->v4l2->v4l2_dev, 0, tuner, s_tuner, t); vidioc_s_tuner()
1592 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_g_frequency() local
1597 f->frequency = v4l2->frequency; vidioc_g_frequency()
1606 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_s_frequency() local
1611 v4l2_device_call_all(&v4l2->v4l2_dev, 0, tuner, s_frequency, f); vidioc_s_frequency()
1612 v4l2_device_call_all(&v4l2->v4l2_dev, 0, tuner, g_frequency, &new_freq); vidioc_s_frequency()
1613 v4l2->frequency = new_freq.frequency; vidioc_s_frequency()
1630 dev->v4l2->v4l2_dev.name, sizeof(chip->name)); vidioc_g_chip_info()
1711 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_querycap() local
1733 if (video_is_registered(&v4l2->vbi_dev)) vidioc_querycap()
1735 if (video_is_registered(&v4l2->radio_dev)) vidioc_querycap()
1800 struct em28xx_v4l2 *v4l2 = dev->v4l2; vidioc_g_fmt_vbi_cap() local
1802 format->fmt.vbi.samples_per_line = v4l2->vbi_width; vidioc_g_fmt_vbi_cap()
1807 format->fmt.vbi.count[0] = v4l2->vbi_height; vidioc_g_fmt_vbi_cap()
1808 format->fmt.vbi.count[1] = v4l2->vbi_height; vidioc_g_fmt_vbi_cap()
1812 if (v4l2->norm & V4L2_STD_525_60) { vidioc_g_fmt_vbi_cap()
1816 } else if (v4l2->norm & V4L2_STD_625_50) { vidioc_g_fmt_vbi_cap()
1839 v4l2_device_call_all(&dev->v4l2->v4l2_dev, 0, tuner, g_tuner, t); radio_g_tuner()
1852 v4l2_device_call_all(&dev->v4l2->v4l2_dev, 0, tuner, s_tuner, t); radio_s_tuner()
1866 struct em28xx_v4l2 *v4l2 = container_of(ref, struct em28xx_v4l2, ref); em28xx_free_v4l2() local
1868 v4l2->dev->v4l2 = NULL; em28xx_free_v4l2()
1869 kfree(v4l2); em28xx_free_v4l2()
1880 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_v4l2_open() local
1899 v4l2->users); em28xx_v4l2_open()
1912 if (v4l2->users == 0) { em28xx_v4l2_open()
1927 v4l2_device_call_all(&v4l2->v4l2_dev, 0, tuner, s_radio); em28xx_v4l2_open()
1931 kref_get(&v4l2->ref); em28xx_v4l2_open()
1932 v4l2->users++; em28xx_v4l2_open()
1941 * unregisters the v4l2,i2c and usb devices
1946 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_v4l2_fini() local
1954 /* This device does not support the v4l2 extension */ em28xx_v4l2_fini()
1958 if (v4l2 == NULL) em28xx_v4l2_fini()
1965 v4l2_device_disconnect(&v4l2->v4l2_dev); em28xx_v4l2_fini()
1969 if (video_is_registered(&v4l2->radio_dev)) { em28xx_v4l2_fini()
1971 video_device_node_name(&v4l2->radio_dev)); em28xx_v4l2_fini()
1972 video_unregister_device(&v4l2->radio_dev); em28xx_v4l2_fini()
1974 if (video_is_registered(&v4l2->vbi_dev)) { em28xx_v4l2_fini()
1976 video_device_node_name(&v4l2->vbi_dev)); em28xx_v4l2_fini()
1977 video_unregister_device(&v4l2->vbi_dev); em28xx_v4l2_fini()
1979 if (video_is_registered(&v4l2->vdev)) { em28xx_v4l2_fini()
1981 video_device_node_name(&v4l2->vdev)); em28xx_v4l2_fini()
1982 video_unregister_device(&v4l2->vdev); em28xx_v4l2_fini()
1985 v4l2_ctrl_handler_free(&v4l2->ctrl_handler); em28xx_v4l2_fini()
1986 v4l2_device_unregister(&v4l2->v4l2_dev); em28xx_v4l2_fini()
1988 if (v4l2->clk) { em28xx_v4l2_fini()
1989 v4l2_clk_unregister_fixed(v4l2->clk); em28xx_v4l2_fini()
1990 v4l2->clk = NULL; em28xx_v4l2_fini()
1993 kref_put(&v4l2->ref, em28xx_free_v4l2); em28xx_v4l2_fini()
2030 * stops streaming and deallocates all resources allocated by the v4l2
2036 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_v4l2_close() local
2039 em28xx_videodbg("users=%d\n", v4l2->users); em28xx_v4l2_close()
2044 if (v4l2->users == 1) { em28xx_v4l2_close()
2050 v4l2_device_call_all(&v4l2->v4l2_dev, 0, core, s_power, 0); em28xx_v4l2_close()
2066 v4l2->users--; em28xx_v4l2_close()
2067 kref_put(&v4l2->ref, em28xx_free_v4l2); em28xx_v4l2_close()
2188 vfd->v4l2_dev = &dev->v4l2->v4l2_dev; em28xx_vdev_init()
2201 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_tuner_setup() local
2202 struct v4l2_device *v4l2_dev = &v4l2->v4l2_dev; em28xx_tuner_setup()
2256 v4l2->frequency = f.frequency; em28xx_tuner_setup()
2266 struct em28xx_v4l2 *v4l2; em28xx_v4l2_init() local
2274 /* This device does not support the v4l2 extension */ em28xx_v4l2_init()
2282 v4l2 = kzalloc(sizeof(struct em28xx_v4l2), GFP_KERNEL); em28xx_v4l2_init()
2283 if (v4l2 == NULL) { em28xx_v4l2_init()
2288 kref_init(&v4l2->ref); em28xx_v4l2_init()
2289 v4l2->dev = dev; em28xx_v4l2_init()
2290 dev->v4l2 = v4l2; em28xx_v4l2_init()
2292 ret = v4l2_device_register(&dev->udev->dev, &v4l2->v4l2_dev); em28xx_v4l2_init()
2298 hdl = &v4l2->ctrl_handler; em28xx_v4l2_init()
2300 v4l2->v4l2_dev.ctrl_handler = hdl; em28xx_v4l2_init()
2303 v4l2->progressive = true; em28xx_v4l2_init()
2308 v4l2->vinmode = 0x10; em28xx_v4l2_init()
2309 v4l2->vinctl = EM28XX_VINCTRL_INTERLACED | em28xx_v4l2_init()
2315 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2320 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2325 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2330 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2341 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2347 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2356 sd = v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2364 v4l2_i2c_new_subdev(&v4l2->v4l2_dev, em28xx_v4l2_init()
2422 v4l2->norm = V4L2_STD_PAL; em28xx_v4l2_init()
2423 v4l2_device_call_all(&v4l2->v4l2_dev, 0, video, s_std, v4l2->norm); em28xx_v4l2_init()
2424 v4l2->interlaced_fieldmode = EM28XX_INTERLACED_DEFAULT; em28xx_v4l2_init()
2427 v4l2->format = &format[0]; em28xx_v4l2_init()
2487 em28xx_vdev_init(dev, &v4l2->vdev, &em28xx_video_template, "video"); em28xx_v4l2_init()
2488 mutex_init(&v4l2->vb_queue_lock); em28xx_v4l2_init()
2489 mutex_init(&v4l2->vb_vbi_queue_lock); em28xx_v4l2_init()
2490 v4l2->vdev.queue = &v4l2->vb_vidq; em28xx_v4l2_init()
2491 v4l2->vdev.queue->lock = &v4l2->vb_queue_lock; em28xx_v4l2_init()
2495 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_QUERYSTD); em28xx_v4l2_init()
2496 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_STD); em28xx_v4l2_init()
2497 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_STD); em28xx_v4l2_init()
2499 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_PARM); em28xx_v4l2_init()
2502 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_TUNER); em28xx_v4l2_init()
2503 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_TUNER); em28xx_v4l2_init()
2504 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_FREQUENCY); em28xx_v4l2_init()
2505 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_FREQUENCY); em28xx_v4l2_init()
2508 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_AUDIO); em28xx_v4l2_init()
2509 v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_AUDIO); em28xx_v4l2_init()
2512 /* register v4l2 video video_device */ em28xx_v4l2_init()
2513 ret = video_register_device(&v4l2->vdev, VFL_TYPE_GRABBER, em28xx_v4l2_init()
2523 em28xx_vdev_init(dev, &v4l2->vbi_dev, &em28xx_video_template, em28xx_v4l2_init()
2526 v4l2->vbi_dev.queue = &v4l2->vb_vbiq; em28xx_v4l2_init()
2527 v4l2->vbi_dev.queue->lock = &v4l2->vb_vbi_queue_lock; em28xx_v4l2_init()
2530 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_S_PARM); em28xx_v4l2_init()
2532 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_G_TUNER); em28xx_v4l2_init()
2533 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_S_TUNER); em28xx_v4l2_init()
2534 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_G_FREQUENCY); em28xx_v4l2_init()
2535 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_S_FREQUENCY); em28xx_v4l2_init()
2538 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_G_AUDIO); em28xx_v4l2_init()
2539 v4l2_disable_ioctl(&v4l2->vbi_dev, VIDIOC_S_AUDIO); em28xx_v4l2_init()
2542 /* register v4l2 vbi video_device */ em28xx_v4l2_init()
2543 ret = video_register_device(&v4l2->vbi_dev, VFL_TYPE_VBI, em28xx_v4l2_init()
2552 em28xx_vdev_init(dev, &v4l2->radio_dev, &em28xx_radio_template, em28xx_v4l2_init()
2554 ret = video_register_device(&v4l2->radio_dev, VFL_TYPE_RADIO, em28xx_v4l2_init()
2561 video_device_node_name(&v4l2->radio_dev)); em28xx_v4l2_init()
2565 video_device_node_name(&v4l2->vdev)); em28xx_v4l2_init()
2567 if (video_is_registered(&v4l2->vbi_dev)) em28xx_v4l2_init()
2569 video_device_node_name(&v4l2->vbi_dev)); em28xx_v4l2_init()
2572 v4l2_device_call_all(&v4l2->v4l2_dev, 0, core, s_power, 0); em28xx_v4l2_init()
2585 v4l2_ctrl_handler_free(&v4l2->ctrl_handler); em28xx_v4l2_init()
2586 v4l2_device_unregister(&v4l2->v4l2_dev); em28xx_v4l2_init()
2588 dev->v4l2 = NULL; em28xx_v4l2_init()
2589 kref_put(&v4l2->ref, em28xx_free_v4l2); em28xx_v4l2_init()
2596 .name = "Em28xx v4l2 Extension",
H A Dem28xx-vbi.c39 struct em28xx_v4l2 *v4l2 = dev->v4l2; vbi_queue_setup() local
45 size = v4l2->vbi_width * v4l2->vbi_height * 2; vbi_queue_setup()
63 struct em28xx_v4l2 *v4l2 = dev->v4l2; vbi_buffer_prepare() local
67 size = v4l2->vbi_width * v4l2->vbi_height * 2; vbi_buffer_prepare()
H A Dem28xx-camera.c25 #include <media/v4l2-clk.h>
26 #include <media/v4l2-common.h>
328 struct em28xx_v4l2 *v4l2 = dev->v4l2; em28xx_init_camera() local
333 v4l2->clk = v4l2_clk_register_fixed(clk_name, -EINVAL); em28xx_init_camera()
334 if (IS_ERR(v4l2->clk)) em28xx_init_camera()
335 return PTR_ERR(v4l2->clk); em28xx_init_camera()
347 v4l2->sensor_xres = 640; em28xx_init_camera()
348 v4l2->sensor_yres = 480; em28xx_init_camera()
361 v4l2->sensor_xtal = 4300000; em28xx_init_camera()
362 pdata.xtal = v4l2->sensor_xtal; em28xx_init_camera()
364 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, em28xx_init_camera()
370 v4l2->vinmode = 0x0d; em28xx_init_camera()
371 v4l2->vinctl = 0x00; em28xx_init_camera()
376 v4l2->sensor_xres = 1280; em28xx_init_camera()
377 v4l2->sensor_yres = 1024; em28xx_init_camera()
382 v4l2->vinmode = 0x0c; em28xx_init_camera()
383 v4l2->vinctl = 0x00; em28xx_init_camera()
387 v4l2->sensor_xres = 640; em28xx_init_camera()
388 v4l2->sensor_yres = 512; em28xx_init_camera()
394 v4l2->vinmode = 0x0a; em28xx_init_camera()
395 v4l2->vinctl = 0x00; em28xx_init_camera()
417 v4l2->sensor_xres = 640; em28xx_init_camera()
418 v4l2->sensor_yres = 480; em28xx_init_camera()
421 v4l2_i2c_new_subdev_board(&v4l2->v4l2_dev, adap, em28xx_init_camera()
436 v4l2->vinmode = 0x08; em28xx_init_camera()
437 v4l2->vinctl = 0x00; em28xx_init_camera()
447 v4l2_clk_unregister_fixed(v4l2->clk); em28xx_init_camera()
448 v4l2->clk = NULL; em28xx_init_camera()
H A Dem28xx.h39 #include <media/v4l2-device.h>
40 #include <media/v4l2-ctrls.h>
41 #include <media/v4l2-fh.h>
259 u32 fourcc; /* v4l2 format id */
604 struct em28xx_v4l2 *v4l2; member in struct:em28xx
/linux-4.1.27/drivers/media/usb/go7007/
H A DMakefile6 go7007-y := go7007-v4l2.o go7007-driver.o go7007-i2c.o go7007-fw.o \
H A Dgo7007-priv.h20 #include <media/v4l2-device.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fh.h>
299 /* go7007-v4l2.c */
H A Ds2250-board.c19 #include <media/v4l2-device.h>
20 #include <media/v4l2-common.h>
21 #include <media/v4l2-subdev.h>
24 MODULE_DESCRIPTION("Sensoray 2250/2251 i2c v4l2 subdev driver");
/linux-4.1.27/drivers/media/radio/wl128x/
H A Dfmdrv_v4l2.h26 #include <media/v4l2-ioctl.h>
27 #include <media/v4l2-common.h>
28 #include <media/v4l2-ctrls.h>
H A Dfmdrv.h31 #include <media/v4l2-ioctl.h>
32 #include <media/v4l2-common.h>
33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/platform/vsp1/
H A Dvsp1_sru.h17 #include <media/v4l2-ctrls.h>
18 #include <media/v4l2-subdev.h>
H A Dvsp1_bru.h17 #include <media/v4l2-ctrls.h>
18 #include <media/v4l2-subdev.h>
H A Dvsp1_hsit.h17 #include <media/v4l2-subdev.h>
H A Dvsp1_lif.h17 #include <media/v4l2-subdev.h>
H A Dvsp1_lut.h17 #include <media/v4l2-subdev.h>
H A Dvsp1.h21 #include <media/v4l2-device.h>
22 #include <media/v4l2-subdev.h>
H A Dvsp1_rwpf.h17 #include <media/v4l2-ctrls.h>
18 #include <media/v4l2-subdev.h>
H A Dvsp1_uds.h17 #include <media/v4l2-subdev.h>
H A Dvsp1_entity.c18 #include <media/v4l2-ctrls.h>
19 #include <media/v4l2-subdev.h>
H A Dvsp1_entity.h19 #include <media/v4l2-subdev.h>
/linux-4.1.27/Documentation/DocBook/media/
H A DMakefile13 v4l2.xml \
67 $(shell perl -ne 'print "$$1 " if /\#define\s+([^\s]+)\s+_IO/' $(srctree)/include/uapi/linux/v4l2-subdev.h) \
89 $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-mediabus.h) \
90 $(shell perl -ne 'print "$$1 " if /^enum\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-subdev.h)
101 $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-subdev.h) \
102 $(shell perl -ne 'print "$$1 " if /^struct\s+([^\s]+)\s+/' $(srctree)/include/uapi/linux/v4l2-mediabus.h)
179 -e "s/v4l2\-mpeg\-vbi\-ITV0/v4l2-mpeg-vbi-itv0-1/g"
203 $(MEDIA_OBJ_DIR)/v4l2.xml: $(OBJIMGFILES)
208 $(MEDIA_OBJ_DIR)/videodev2.h.xml: $(srctree)/include/uapi/linux/videodev2.h $(MEDIA_OBJ_DIR)/v4l2.xml
219 $(MEDIA_OBJ_DIR)/audio.h.xml: $(srctree)/include/uapi/linux/dvb/audio.h $(MEDIA_OBJ_DIR)/v4l2.xml
230 $(MEDIA_OBJ_DIR)/ca.h.xml: $(srctree)/include/uapi/linux/dvb/ca.h $(MEDIA_OBJ_DIR)/v4l2.xml
241 $(MEDIA_OBJ_DIR)/dmx.h.xml: $(srctree)/include/uapi/linux/dvb/dmx.h $(MEDIA_OBJ_DIR)/v4l2.xml
252 $(MEDIA_OBJ_DIR)/frontend.h.xml: $(srctree)/include/uapi/linux/dvb/frontend.h $(MEDIA_OBJ_DIR)/v4l2.xml
263 $(MEDIA_OBJ_DIR)/net.h.xml: $(srctree)/include/uapi/linux/dvb/net.h $(MEDIA_OBJ_DIR)/v4l2.xml
274 $(MEDIA_OBJ_DIR)/video.h.xml: $(srctree)/include/uapi/linux/dvb/video.h $(MEDIA_OBJ_DIR)/v4l2.xml
285 $(MEDIA_OBJ_DIR)/media-entities.tmpl: $(MEDIA_OBJ_DIR)/v4l2.xml
328 entity=`echo $$ident | tr _ - | sed s/v4l2-mpeg-vbi-ITV0/v4l2-mpeg-vbi-itv0-1/g` ; \
362 $(MEDIA_OBJ_DIR)/media-indices.tmpl: $(MEDIA_OBJ_DIR)/v4l2.xml
382 id=`echo $$ident | tr _ - | sed s/v4l2-mpeg-vbi-ITV0/v4l2-mpeg-vbi-itv0-1/g` ; \
/linux-4.1.27/drivers/media/platform/xilinx/
H A Dxilinx-vipp.h21 #include <media/v4l2-async.h>
22 #include <media/v4l2-ctrls.h>
23 #include <media/v4l2-device.h>
H A Dxilinx-dma.h24 #include <media/v4l2-dev.h>
H A Dxilinx-vipp.c22 #include <media/v4l2-async.h>
23 #include <media/v4l2-common.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-of.h>
/linux-4.1.27/drivers/media/pci/cx25821/
H A Dcx25821-video.h40 #include <media/v4l2-common.h>
41 #include <media/v4l2-ioctl.h>
42 #include <media/v4l2-event.h>
H A Dcx25821.h34 #include <media/v4l2-common.h>
35 #include <media/v4l2-device.h>
36 #include <media/v4l2-ctrls.h>
102 u32 fourcc; /* v4l2 format id */
/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-cs53l32a.c35 #include <media/v4l2-common.h>
67 pvr2_trace(PVR2_TRACE_CHIPS, "subdev v4l2 set_input(%d)", pvr2_cs53l32a_subdev_update()
75 "*** WARNING *** subdev v4l2 set_input:" pvr2_cs53l32a_subdev_update()
H A Dpvrusb2-video-v4l.c37 #include <media/v4l2-common.h>
85 pvr2_trace(PVR2_TRACE_CHIPS, "subdev v4l2 set_input(%d)", pvr2_saa7115_subdev_update()
94 "*** WARNING *** subdev v4l2 set_input:" pvr2_saa7115_subdev_update()
H A DMakefile9 pvrusb2-main.o pvrusb2-hdw.o pvrusb2-v4l2.o \
H A Dpvrusb2-audio.c27 #include <media/v4l2-common.h>
67 pvr2_trace(PVR2_TRACE_CHIPS, "subdev msp3400 v4l2 set_stereo"); pvr2_msp3400_subdev_update()
H A Dpvrusb2-wm8775.c35 #include <media/v4l2-common.h>
H A Dpvrusb2-cx2584x-v4l.c37 #include <media/v4l2-common.h>
H A Dpvrusb2-main.c32 #include "pvrusb2-v4l2.h"
/linux-4.1.27/drivers/media/radio/
H A Dradio-aztech.c15 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
25 #include <media/v4l2-device.h>
26 #include <media/v4l2-ioctl.h>
27 #include <media/v4l2-ctrls.h>
H A Dradio-tea5777.h5 * v4l2 driver for TEA5777 Philips AM/FM radio tuner chips
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-dev.h>
33 #include <media/v4l2-device.h>
H A Dradio-maxiradio.c46 #include <media/v4l2-device.h>
47 #include <media/v4l2-ioctl.h>
48 #include <media/v4l2-fh.h>
49 #include <media/v4l2-ctrls.h>
50 #include <media/v4l2-event.h>
H A Dradio-rtrack2.c12 * Fully tested with actual hardware and the v4l2-compliance tool.
23 #include <media/v4l2-device.h>
24 #include <media/v4l2-ioctl.h>
H A Dradio-aimslab.c26 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
36 #include <media/v4l2-device.h>
37 #include <media/v4l2-ioctl.h>
38 #include <media/v4l2-ctrls.h>
H A Dradio-timb.c20 #include <media/v4l2-ioctl.h>
21 #include <media/v4l2-device.h>
22 #include <media/v4l2-ctrls.h>
23 #include <media/v4l2-event.h>
H A Dradio-sf16fmi.c28 #include <media/v4l2-device.h>
29 #include <media/v4l2-ioctl.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-event.h>
H A Ddsbr100.c18 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
44 #include <media/v4l2-device.h>
45 #include <media/v4l2-ioctl.h>
46 #include <media/v4l2-ctrls.h>
47 #include <media/v4l2-event.h>
H A Dradio-isa.c30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/v4l2-fh.h>
33 #include <media/v4l2-ctrls.h>
34 #include <media/v4l2-event.h>
H A Dradio-miropcm20.c34 #include <media/v4l2-device.h>
35 #include <media/v4l2-ioctl.h>
36 #include <media/v4l2-ctrls.h>
37 #include <media/v4l2-fh.h>
38 #include <media/v4l2-event.h>
H A Dradio-tea5777.c2 * v4l2 driver for TEA5777 Philips AM/FM radio tuner chips
31 #include <media/v4l2-device.h>
32 #include <media/v4l2-dev.h>
33 #include <media/v4l2-fh.h>
34 #include <media/v4l2-ioctl.h>
35 #include <media/v4l2-event.h>
H A Dradio-isa.h29 #include <media/v4l2-device.h>
30 #include <media/v4l2-ctrls.h>
H A Dradio-terratec.c30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ioctl.h>
H A Dradio-trust.c25 #include <media/v4l2-device.h>
26 #include <media/v4l2-ioctl.h>
H A Dradio-typhoon.c37 #include <media/v4l2-device.h>
38 #include <media/v4l2-ioctl.h>
H A Dtef6862.c26 #include <media/v4l2-ioctl.h>
27 #include <media/v4l2-device.h>
H A Dradio-keene.c26 #include <media/v4l2-device.h>
27 #include <media/v4l2-ioctl.h>
28 #include <media/v4l2-ctrls.h>
29 #include <media/v4l2-event.h>
H A Dradio-raremono.c28 #include <media/v4l2-device.h>
29 #include <media/v4l2-ioctl.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-event.h>
H A Dradio-zoltrix.c38 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
49 #include <media/v4l2-device.h>
50 #include <media/v4l2-ioctl.h>
H A Dradio-cadet.c42 #include <media/v4l2-device.h>
43 #include <media/v4l2-ioctl.h>
44 #include <media/v4l2-ctrls.h>
45 #include <media/v4l2-fh.h>
46 #include <media/v4l2-event.h>
H A Dradio-tea5764.c40 #include <media/v4l2-common.h>
41 #include <media/v4l2-ioctl.h>
42 #include <media/v4l2-device.h>
43 #include <media/v4l2-ctrls.h>
44 #include <media/v4l2-event.h>
H A Dtea575x.c29 #include <media/v4l2-device.h>
30 #include <media/v4l2-dev.h>
31 #include <media/v4l2-fh.h>
32 #include <media/v4l2-ioctl.h>
33 #include <media/v4l2-event.h>
H A Dradio-gemtek.c22 * Fully tested with the Keene USB FM Transmitter and the v4l2-compliance tool.
34 #include <media/v4l2-ioctl.h>
35 #include <media/v4l2-device.h>
H A Dradio-ma901.c29 #include <media/v4l2-device.h>
30 #include <media/v4l2-ioctl.h>
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-event.h>
/linux-4.1.27/drivers/media/radio/si4713/
H A Dradio-platform-si4713.c31 #include <media/v4l2-device.h>
32 #include <media/v4l2-common.h>
33 #include <media/v4l2-ioctl.h>
34 #include <media/v4l2-fh.h>
35 #include <media/v4l2-ctrls.h>
36 #include <media/v4l2-event.h>
86 * v4l2 ioctl call backs.
175 dev_err(&pdev->dev, "Failed to register v4l2 device.\n"); radio_si4713_pdriver_probe()
182 dev_err(&pdev->dev, "Cannot get v4l2 subdevice\n"); radio_si4713_pdriver_probe()
H A Dsi4713.h21 #include <media/v4l2-subdev.h>
22 #include <media/v4l2-ctrls.h>
H A Dradio-usb-si4713.c30 #include <media/v4l2-common.h>
31 #include <media/v4l2-device.h>
32 #include <media/v4l2-ioctl.h>
33 #include <media/v4l2-event.h>
478 dev_err(&intf->dev, "cannot get v4l2 subdevice\n"); usb_si4713_probe()
/linux-4.1.27/drivers/media/
H A DMakefile21 obj-$(CONFIG_VIDEO_DEV) += v4l2-core/
/linux-4.1.27/drivers/media/i2c/
H A Dmsp3400-driver.h8 #include <media/v4l2-device.h>
9 #include <media/v4l2-ctrls.h>
88 /* v4l2 */
H A Dcs5345.c26 #include <media/v4l2-device.h>
27 #include <media/v4l2-ctrls.h>
H A Dtlv320aic23b.c33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ctrls.h>
H A Dtw9906.c24 #include <media/v4l2-device.h>
25 #include <media/v4l2-ctrls.h>
H A Dml86v7667.c19 #include <media/v4l2-subdev.h>
20 #include <media/v4l2-device.h>
21 #include <media/v4l2-ioctl.h>
22 #include <media/v4l2-ctrls.h>
H A Dov7640.c22 #include <media/v4l2-device.h>
H A Duda1342.c22 #include <media/v4l2-device.h>
H A Ds5k6a3.c25 #include <media/v4l2-async.h>
26 #include <media/v4l2-subdev.h>
50 * @subdev: the image sensor's v4l2 subdev
H A Dsony-btf-mpx.c23 #include <media/v4l2-common.h>
24 #include <media/v4l2-ioctl.h>
25 #include <media/v4l2-device.h>
H A Dlm3560.c28 #include <media/v4l2-ctrls.h>
29 #include <media/v4l2-device.h>
166 /* v4l2 controls */ lm3560_get_ctrl()
H A Dsaa6588.c35 #include <media/v4l2-device.h>
56 MODULE_DESCRIPTION("v4l2 driver module for SAA6588 RDS decoder");
289 Byte order according to v4l2 specification: saa6588_i2c_poll()
H A Dtda7432.c36 #include <media/v4l2-device.h>
37 #include <media/v4l2-ioctl.h>
38 #include <media/v4l2-ctrls.h>
H A Dtw2804.c24 #include <media/v4l2-subdev.h>
25 #include <media/v4l2-device.h>
26 #include <media/v4l2-ctrls.h>
H A Dadv7343.c32 #include <media/v4l2-async.h>
33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ctrls.h>
H A Dtea6415c.c35 #include <media/v4l2-device.h>
H A Dtea6420.c35 #include <media/v4l2-device.h>
H A Dths8200.c23 #include <linux/v4l2-dv-timings.h>
25 #include <media/v4l2-dv-timings.h>
26 #include <media/v4l2-async.h>
27 #include <media/v4l2-device.h>
H A Dak881x.c19 #include <media/v4l2-common.h>
20 #include <media/v4l2-device.h>
H A Dcs53l32a.c30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ctrls.h>
H A Dlm3646.c22 #include <media/v4l2-ctrls.h>
23 #include <media/v4l2-device.h>
H A Dov2659.c41 #include <media/v4l2-common.h>
42 #include <media/v4l2-ctrls.h>
43 #include <media/v4l2-device.h>
44 #include <media/v4l2-event.h>
45 #include <media/v4l2-image-sizes.h>
46 #include <media/v4l2-mediabus.h>
47 #include <media/v4l2-of.h>
48 #include <media/v4l2-subdev.h>
H A Dtvp514x.c37 #include <linux/v4l2-mediabus.h>
41 #include <media/v4l2-async.h>
42 #include <media/v4l2-device.h>
43 #include <media/v4l2-common.h>
44 #include <media/v4l2-mediabus.h>
45 #include <media/v4l2-of.h>
46 #include <media/v4l2-ctrls.h>
78 * @standard: v4l2 standard structure information
H A Dtw9903.c23 #include <media/v4l2-device.h>
24 #include <media/v4l2-ctrls.h>
H A Dwm8739.c31 #include <media/v4l2-device.h>
32 #include <media/v4l2-ctrls.h>
H A Dwm8775.c35 #include <media/v4l2-device.h>
36 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/usb/stkwebcam/
H A Dstk-webcam.h26 #include <media/v4l2-device.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-common.h>
/linux-4.1.27/include/media/davinci/
H A Dvpbe_display.h18 #include <media/v4l2-common.h>
19 #include <media/v4l2-fh.h>
107 /* facilitation of ioctl ops lock by v4l2*/
H A Dvpbe.h23 #include <media/v4l2-dev.h>
24 #include <media/v4l2-ioctl.h>
25 #include <media/v4l2-device.h>
169 /* external encoder v4l2 sub devices */
173 /* external amplifier v4l2 subdevice */
H A Dvpfe_capture.h25 #include <media/v4l2-dev.h>
29 #include <media/v4l2-fh.h>
30 #include <media/v4l2-ioctl.h>
31 #include <media/v4l2-device.h>
196 * possibility of extending the v4l2 api to include this
H A Dvpbe_venc.h20 #include <media/v4l2-subdev.h>
/linux-4.1.27/include/media/
H A Dtea575x.h26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-dev.h>
28 #include <media/v4l2-device.h>
H A Ds3c_camif.h15 #include <media/v4l2-mediabus.h>
H A Dadp1653.h34 #include <media/v4l2-ctrls.h>
35 #include <media/v4l2-subdev.h>
H A Dv4l2-device.h25 #include <media/v4l2-subdev.h>
26 #include <media/v4l2-dev.h>
31 It allows easy access to sub-devices (see v4l2-subdev.h) and provides
106 /* Register a subdev with a v4l2 device. While registered the subdev module
111 /* Unregister a subdev with a v4l2 device. Can also be called if the subdev
115 /* Register device nodes for all subdev of the v4l2 device that are marked with
H A Dexynos-fimc.h16 #include <media/v4l2-dev.h>
17 #include <media/v4l2-mediabus.h>
98 * @colorspace: v4l2 colorspace (V4L2_COLORSPACE_*)
H A Das3645a.h27 #include <media/v4l2-subdev.h>
H A Dlm3560.h28 #include <media/v4l2-subdev.h>
H A Dlm3646.h17 #include <media/v4l2-subdev.h>
H A Ds5c73m3.h21 #include <media/v4l2-mediabus.h>
H A Ds5k6aa.h15 #include <media/v4l2-mediabus.h>
H A Dsoc_camera_platform.h16 #include <media/v4l2-mediabus.h>
H A Dv4l2-common.h2 v4l2 common internal API header
5 internal low-level v4l2 drivers.
29 #include <media/v4l2-dev.h>
154 v4l2-int-device.h (v4l2_routing). To remove these ioctls some more cleanup
H A Dsmiapp.h28 #include <media/v4l2-subdev.h>
H A Dv4l2-async.h60 /* v4l2-async core private: not to be used by drivers */
H A Dsaa7146_vv.h4 #include <media/v4l2-common.h>
5 #include <media/v4l2-ioctl.h>
6 #include <media/v4l2-fh.h>
H A Dsoc_camera.h22 #include <media/v4l2-async.h>
23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
377 /* This is only temporary here - until v4l2-subdev begins to link to video_device */
H A Dsoc_mediabus.h15 #include <linux/v4l2-mediabus.h>
H A Dv4l2-mediabus.h14 #include <linux/v4l2-mediabus.h>
H A Dv4l2-of.h22 #include <media/v4l2-mediabus.h>
H A Dv4l2-subdev.h25 #include <linux/v4l2-subdev.h>
27 #include <media/v4l2-async.h>
28 #include <media/v4l2-common.h>
29 #include <media/v4l2-dev.h>
30 #include <media/v4l2-fh.h>
31 #include <media/v4l2-mediabus.h>
397 * struct v4l2_subdev_sensor_ops - v4l2-subdev sensor operations
496 * struct v4l2_subdev_pad_ops - v4l2-subdev pad level operations
552 * Internal ops. Never call this from drivers, only the v4l2 framework can call
H A Dv4l2-event.h2 * v4l2-event.h
39 * The v4l2-fh struct has a list of subscribed events. The v4l2_subscribed_event
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-radio-tx.c24 #include <linux/v4l2-dv-timings.h>
25 #include <media/v4l2-common.h>
26 #include <media/v4l2-event.h>
27 #include <media/v4l2-dv-timings.h>
H A Dvivid-kthread-out.c32 #include <linux/v4l2-dv-timings.h>
35 #include <media/v4l2-dv-timings.h>
36 #include <media/v4l2-ioctl.h>
37 #include <media/v4l2-fh.h>
38 #include <media/v4l2-event.h>
H A Dvivid-osd.c33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ioctl.h>
35 #include <media/v4l2-ctrls.h>
36 #include <media/v4l2-fh.h>
37 #include <media/v4l2-event.h>
38 #include <media/v4l2-common.h>
H A Dvivid-radio-rx.c24 #include <linux/v4l2-dv-timings.h>
25 #include <media/v4l2-common.h>
26 #include <media/v4l2-event.h>
27 #include <media/v4l2-dv-timings.h>
H A Dvivid-core.h25 #include <media/v4l2-device.h>
26 #include <media/v4l2-dev.h>
27 #include <media/v4l2-ctrls.h>
81 u32 fourcc; /* v4l2 format id */
H A Dvivid-sdr-cap.c26 #include <linux/v4l2-dv-timings.h>
27 #include <media/v4l2-common.h>
28 #include <media/v4l2-event.h>
29 #include <media/v4l2-dv-timings.h>
/linux-4.1.27/drivers/staging/media/davinci_vpfe/
H A Ddm365_isif.h30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-device.h>
68 /* v4l2 pixel format */
115 /* v4l2 pixel format */
H A Dvpfe.h26 #include <linux/v4l2-subdev.h>
47 /* v4l2 subdev */
H A Dvpfe_mc_capture.c330 * register_i2c_devices() - register all i2c v4l2 subdevs
333 * register all i2c v4l2 subdevs
380 "v4l2 sub device %s registered\n", register_i2c_devices()
390 "v4l2 sub device %s is not registered\n", register_i2c_devices()
405 * vpfe_register_entities() - register all v4l2 subdevs and media entities
408 * register all v4l2 subdevs, media entities, and creates links
498 * vpfe_unregister_entities() - unregister all v4l2 subdevs and media entities
501 * unregister all v4l2 subdevs and media entities
512 * vpfe_cleanup_modules() - cleanup all non-i2c v4l2 subdevs
516 * cleanup all v4l2 subdevs
528 * vpfe_initialize_modules() - initialize all non-i2c v4l2 subdevs
532 * intialize all v4l2 subdevs and media entities
652 v4l2_err(pdev->dev.driver, "Unable to register v4l2 device.\n"); vpfe_probe()
656 v4l2_info(&vpfe_dev->v4l2_dev, "v4l2 device registered\n"); vpfe_probe()
H A Ddm365_ipipe.h27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-subdev.h>
H A Ddm365_ipipeif.h28 #include <media/v4l2-ctrls.h>
29 #include <media/v4l2-subdev.h>
H A Ddm365_ipipe.c1347 * @sd: pointer to v4l2 subdev structure
1394 * @sd: pointer to v4l2 subdev structure
1437 * @fmt: pointer to v4l2 format structure.
1477 * @sd: pointer to v4l2 subdev structure
1479 * @fmt: pointer to v4l2 subdev format structure
1514 * @sd: pointer to v4l2 subdev structure.
1516 * @fmt: pointer to v4l2 subdev format structure.
1534 * @sd: pointer to v4l2 subdev structure.
1570 * @sd: pointer to v4l2 subdev structure.
1600 * @ctrl: pointer to v4l2 control structure
1628 * @sd: pointer to v4l2 subdev structure.
1685 /* v4l2 subdev operation */
1762 * @vdev: pointer to v4l2 device structure.
1773 pr_err("Failed to register ipipe as v4l2 subdevice\n"); vpfe_ipipe_register_entities()
H A Ddm365_ipipeif.c184 * @sd: pointer to v4l2 subdev structure
458 * @sd: pointer to v4l2 subdev structure
482 * @ctrl: pointer to v4l2 control structure
525 * @sd: pointer to v4l2 subdev structure
546 * @sd: pointer to v4l2 subdev structure
579 * @sd: pointer to v4l2 subdev structure
581 * @fmt: pointer to v4l2 subdev format structure
605 * @fmt: pointer to v4l2 format structure.
694 * @sd: pointer to v4l2 subdev structure
696 * @fmt: pointer to v4l2 subdev format structure
/linux-4.1.27/include/uapi/linux/
H A Dv4l2-subdev.h28 #include <linux/v4l2-common.h>
29 #include <linux/v4l2-mediabus.h>
139 * defined in v4l2-common.h; V4L2_SEL_TGT_* .
140 * @flags: constraint flags, defined in v4l2-common.h; V4L2_SEL_FLAG_*.
H A Dv4l2-common.h2 * include/linux/v4l2-common.h
7 * (V4L2) or through v4l2-subdev.h (V4L2 subdev) rather than to refer
H A Dxilinx-v4l2-controls.h23 #include <linux/v4l2-controls.h>
/linux-4.1.27/drivers/media/platform/s5p-g2d/
H A Dg2d.h14 #include <media/v4l2-device.h>
15 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/dvb-frontends/
H A Drtl2832_sdr.h29 #include <media/v4l2-subdev.h>
41 * @v4l2_subdev: Tuner v4l2 controls.
/linux-4.1.27/drivers/media/platform/exynos-gsc/
H A Dgsc-core.h23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-mem2mem.h>
26 #include <media/v4l2-mediabus.h>
212 * struct gsc_m2m_device - v4l2 memory-to-memory device data
213 * @vfd: the video device node for v4l2 m2m mode
214 * @m2m_dev: v4l2 memory-to-memory device data
361 * @fh: v4l2 file handle
362 * @ctrl_handler: v4l2 controls handler
/linux-4.1.27/drivers/media/pci/tw68/
H A Dtw68.h35 #include <media/v4l2-common.h>
36 #include <media/v4l2-ioctl.h>
37 #include <media/v4l2-ctrls.h>
38 #include <media/v4l2-device.h>
148 u32 fourcc; /* v4l2 format id */
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-lite.h23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-device.h>
25 #include <media/v4l2-mediabus.h>
115 * @fh: v4l2 file handle
121 * @ctrl_handler: v4l2 control handler
H A Dfimc-isp.h25 #include <media/v4l2-device.h>
26 #include <media/v4l2-mediabus.h>
155 * @ctrls: v4l2 controls structure
H A Dmedia-dev.h20 #include <media/v4l2-device.h>
21 #include <media/v4l2-subdev.h>
84 * @subdev: image sensor v4l2 subdev
H A Dfimc-core.h26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-device.h>
28 #include <media/v4l2-mem2mem.h>
29 #include <media/v4l2-mediabus.h>
267 * struct fimc_m2m_device - v4l2 memory-to-memory device data
268 * @vfd: the video device node for v4l2 m2m mode
269 * @m2m_dev: v4l2 memory-to-memory device data
305 * @inh_sensor_ctrls: a flag indicating v4l2 controls are inherited from
443 * struct fimc_ctrls - v4l2 controls structure
484 * @fh: v4l2 file handle
485 * @ctrls: v4l2 controls structure
/linux-4.1.27/drivers/media/platform/s5p-jpeg/
H A Djpeg-core.h17 #include <media/v4l2-device.h>
18 #include <media/v4l2-fh.h>
19 #include <media/v4l2-ctrls.h>
97 * @v4l2_dev: v4l2 device for mem2mem mode
100 * @m2m_dev: v4l2 mem2mem device data
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Dsh_mobile_csi2.c25 #include <media/v4l2-common.h>
26 #include <media/v4l2-dev.h>
27 #include <media/v4l2-device.h>
28 #include <media/v4l2-mediabus.h>
29 #include <media/v4l2-subdev.h>
H A Dsoc_camera_platform.c19 #include <media/v4l2-subdev.h>
H A Dsoc_mediabus.c14 #include <media/v4l2-device.h>
15 #include <media/v4l2-mediabus.h>
/linux-4.1.27/drivers/media/radio/si470x/
H A Dradio-si470x.h37 #include <media/v4l2-common.h>
38 #include <media/v4l2-ioctl.h>
39 #include <media/v4l2-ctrls.h>
40 #include <media/v4l2-event.h>
41 #include <media/v4l2-device.h>
/linux-4.1.27/drivers/media/usb/hdpvr/
H A Dhdpvr.h18 #include <media/v4l2-device.h>
19 #include <media/v4l2-ctrls.h>
74 /* v4l2-device unused */
81 /* v4l2 format */
315 /* v4l2 registration */
/linux-4.1.27/drivers/media/i2c/m5mols/
H A Dm5mols_capture.c25 #include <media/v4l2-ctrls.h>
26 #include <media/v4l2-device.h>
27 #include <media/v4l2-subdev.h>
/linux-4.1.27/drivers/media/usb/stk1160/
H A Dstk1160.h27 #include <media/v4l2-device.h>
28 #include <media/v4l2-ctrls.h>
115 u32 fourcc; /* v4l2 format id */
H A Dstk1160-v4l.c29 #include <media/v4l2-device.h>
30 #include <media/v4l2-common.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/v4l2-fh.h>
33 #include <media/v4l2-event.h>
674 * Provide mutexes for v4l2 core and for videobuf2 queue. stk1160_video_register()
675 * It will be used to protect *only* v4l2 ioctls. stk1160_video_register()
/linux-4.1.27/drivers/media/tuners/
H A De4000_priv.h25 #include <media/v4l2-ctrls.h>
26 #include <media/v4l2-subdev.h>
/linux-4.1.27/drivers/usb/gadget/function/
H A Duvc.h60 #include <media/v4l2-fh.h>
61 #include <media/v4l2-device.h>
H A Duvc_v4l2.c21 #include <media/v4l2-dev.h>
22 #include <media/v4l2-event.h>
23 #include <media/v4l2-ioctl.h>
/linux-4.1.27/drivers/input/touchscreen/
H A Dsur40.c15 * and from the v4l2-pci-skeleton driver,
38 #include <media/v4l2-device.h>
39 #include <media/v4l2-dev.h>
40 #include <media/v4l2-ioctl.h>
148 struct v4l2_device v4l2; member in struct:sur40_state
552 snprintf(sur40->v4l2.name, sizeof(sur40->v4l2.name), "%s", DRIVER_LONG); sur40_probe()
553 error = v4l2_device_register(sur40->dev, &sur40->v4l2); sur40_probe()
577 sur40->vdev.v4l2_dev = &sur40->v4l2; sur40_probe()
598 v4l2_device_unregister(&sur40->v4l2); sur40_probe()
615 v4l2_device_unregister(&sur40->v4l2); sur40_disconnect()
/linux-4.1.27/drivers/media/usb/gspca/m5602/
H A Dm5602_sensor.h10 * v4l2 interface modeled after the V4L2 driver
/linux-4.1.27/drivers/media/platform/s3c-camif/
H A Dcamif-core.h24 #include <media/v4l2-ctrls.h>
25 #include <media/v4l2-dev.h>
26 #include <media/v4l2-device.h>
27 #include <media/v4l2-mediabus.h>
254 * @ctrl_handler: v4l2 control handler (owned by @subdev)
/linux-4.1.27/drivers/media/usb/tm6000/
H A Dtm6000.h24 #include <media/v4l2-common.h>
29 #include <media/v4l2-device.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-fh.h>
80 u32 fourcc; /* v4l2 format id */
/linux-4.1.27/drivers/media/platform/davinci/
H A Dvpbe.c31 #include <media/v4l2-device.h>
586 * display controller. This will then registers v4l2 device and the sub
587 * devices and sets a current encoder sub device for display. v4l2 display
605 * v4l2 abd FBDev frame buffer devices will get the vpbe_dev pointer vpbe_initialize()
636 /* First register a v4l2 device */ vpbe_initialize()
640 "Unable to register v4l2 device.\n"); vpbe_initialize()
643 v4l2_info(&vpbe_dev->v4l2_dev, "vpbe v4l2 device registered\n"); vpbe_initialize()
705 "v4l2 sub device %s registered\n", vpbe_initialize()
734 "v4l2 sub device %s registered\n", vpbe_initialize()
H A Dvpif_capture.h24 #include <media/v4l2-device.h>
H A Dvpif_display.h21 #include <media/v4l2-device.h>
/linux-4.1.27/drivers/media/usb/pwc/
H A Dpwc.h37 #include <media/v4l2-common.h>
38 #include <media/v4l2-device.h>
39 #include <media/v4l2-ioctl.h>
40 #include <media/v4l2-ctrls.h>
41 #include <media/v4l2-fh.h>
42 #include <media/v4l2-event.h>
/linux-4.1.27/drivers/media/pci/ivtv/
H A Divtv-streams.c26 * and external (v4l2, etc)
46 #include <media/v4l2-event.h>
76 #define IVTV_V4L2_DEC_MPG_OFFSET 16 /* offset from 0 to register decoder mpg v4l2 minors on */
77 #define IVTV_V4L2_ENC_PCM_OFFSET 24 /* offset from 0 to register pcm v4l2 minors on */
78 #define IVTV_V4L2_ENC_YUV_OFFSET 32 /* offset from 0 to register yuv v4l2 minors on */
79 #define IVTV_V4L2_DEC_YUV_OFFSET 48 /* offset from 0 to register decoder yuv v4l2 minors on */
80 #define IVTV_V4L2_DEC_VBI_OFFSET 8 /* offset from 0 to register decoder vbi input v4l2 minors on */
81 #define IVTV_V4L2_DEC_VOUT_OFFSET 16 /* offset from 0 to register vbi output v4l2 minors on */
251 /* Initialize v4l2 variables and prepare v4l2 devices */ ivtv_streams_setup()
299 IVTV_ERR("Couldn't register v4l2 device for %s (device node number %d)\n", ivtv_reg_dev()
326 /* Register v4l2 devices */ ivtv_streams_register()
344 /* Unregister v4l2 devices */ ivtv_streams_cleanup()
H A Divtv-alsa.h38 * need to be serialized. Use the same lock we use for v4l2 file ops.
/linux-4.1.27/drivers/media/i2c/cx25840/
H A Dcx25840-core.h25 #include <media/v4l2-device.h>
26 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/i2c/smiapp/
H A Dsmiapp.h23 #include <media/v4l2-ctrls.h>
24 #include <media/v4l2-subdev.h>
/linux-4.1.27/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-ctrls.c31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-subdev.h>
34 #include <media/v4l2-mediabus.h>
H A Ds5c73m3.h23 #include <media/v4l2-common.h>
24 #include <media/v4l2-ctrls.h>
25 #include <media/v4l2-subdev.h>
/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dimx074.c15 #include <linux/v4l2-mediabus.h>
21 #include <media/v4l2-async.h>
22 #include <media/v4l2-clk.h>
23 #include <media/v4l2-subdev.h>
H A Dov9640.c27 #include <linux/v4l2-mediabus.h>
31 #include <media/v4l2-clk.h>
32 #include <media/v4l2-common.h>
33 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/pci/cx18/
H A Dcx18-alsa.h37 * need to be serialized. Use the same lock we use for v4l2 file ops.
H A Dcx18-streams.c49 /* offset from 0 to register ts v4l2 minors on */
51 /* offset from 0 to register pcm v4l2 minors on */
53 /* offset from 0 to register yuv v4l2 minors on */
369 /* initialize the v4l2 video device structure */ cx18_prep_dev()
386 /* Initialize v4l2 variables and register v4l2 devices */ cx18_streams_setup()
443 CX18_ERR("Couldn't register v4l2 device for %s (device node number %d)\n", cx18_reg_dev()
478 /* Register v4l2 devices */ cx18_streams_register()
500 /* Unregister v4l2 devices */ cx18_streams_cleanup()
/linux-4.1.27/drivers/media/usb/uvc/
H A Duvc_entity.c18 #include <media/v4l2-common.h>
/linux-4.1.27/drivers/media/platform/am437x/
H A Dam437x-vpfe.h31 #include <media/v4l2-dev.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-ioctl.h>
/linux-4.1.27/drivers/media/platform/coda/
H A Dcoda.h24 #include <media/v4l2-ctrls.h>
25 #include <media/v4l2-device.h>
26 #include <media/v4l2-fh.h>
/linux-4.1.27/drivers/media/platform/omap3isp/
H A Dispvideo.h19 #include <linux/v4l2-mediabus.h>
21 #include <media/v4l2-dev.h>
22 #include <media/v4l2-fh.h>
/linux-4.1.27/drivers/media/usb/au0828/
H A Dau0828.h33 #include <media/v4l2-device.h>
34 #include <media/v4l2-ctrls.h>
35 #include <media/v4l2-fh.h>
/linux-4.1.27/drivers/media/usb/gspca/
H A Dgspca.h8 #include <media/v4l2-common.h>
9 #include <media/v4l2-ctrls.h>
10 #include <media/v4l2-device.h>
/linux-4.1.27/drivers/staging/media/omap4iss/
H A Diss_video.h17 #include <linux/v4l2-mediabus.h>
19 #include <media/v4l2-dev.h>
20 #include <media/v4l2-fh.h>
/linux-4.1.27/drivers/media/pci/saa7134/
H A Dsaa7134.h3 * v4l2 device driver for philips saa7134 based TV cards
36 #include <media/v4l2-common.h>
37 #include <media/v4l2-ioctl.h>
38 #include <media/v4l2-device.h>
39 #include <media/v4l2-fh.h>
40 #include <media/v4l2-ctrls.h>
H A Dsaa7134-go7007.c26 #include <media/v4l2-common.h>
27 #include <media/v4l2-device.h>
28 #include <media/v4l2-subdev.h>
H A Dsaa7134-empress.c26 #include <media/v4l2-common.h>
27 #include <media/v4l2-event.h>
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_common.h21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-device.h>
23 #include <media/v4l2-ioctl.h>
531 * @sequence: counter for the sequence number for v4l2
560 * v4l2 control framework
561 * @ctrl_handler: handler for v4l2 framework
/linux-4.1.27/drivers/media/platform/
H A Dvim2m.c2 * A virtual v4l2-mem2mem example device.
27 #include <media/v4l2-mem2mem.h>
28 #include <media/v4l2-device.h>
29 #include <media/v4l2-ioctl.h>
30 #include <media/v4l2-ctrls.h>
31 #include <media/v4l2-event.h>
/linux-4.1.27/drivers/media/platform/marvell-ccic/
H A Dmcam-core.h10 #include <media/v4l2-common.h>
11 #include <media/v4l2-ctrls.h>
12 #include <media/v4l2-dev.h>
/linux-4.1.27/drivers/media/usb/cpia2/
H A Dcpia2.h37 #include <media/v4l2-common.h>
38 #include <media/v4l2-device.h>
39 #include <media/v4l2-ctrls.h>
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dcx23885-ir.c19 #include <media/v4l2-device.h>
H A Dcx23885.h23 #include <media/v4l2-device.h>
24 #include <media/v4l2-fh.h>
25 #include <media/v4l2-ctrls.h>
131 u32 fourcc; /* v4l2 format id */
/linux-4.1.27/drivers/media/usb/usbtv/
H A Dusbtv-core.c123 /* the usbtv structure will be deallocated when v4l2 will be usbtv_disconnect()
H A Dusbtv.h26 #include <media/v4l2-device.h>
/linux-4.1.27/include/trace/events/
H A Dv4l2.h2 #define TRACE_SYSTEM v4l2
/linux-4.1.27/include/linux/
H A Dvideodev2.h46 * All kernel-specific stuff were moved to media/v4l2-dev.h, so
/linux-4.1.27/drivers/media/platform/blackfin/
H A Dbfin_capture.c35 #include <media/v4l2-common.h>
36 #include <media/v4l2-ctrls.h>
37 #include <media/v4l2-device.h>
38 #include <media/v4l2-ioctl.h>
64 /* v4l2 control handler */
824 "Unable to register v4l2 device\n"); bcap_probe()
827 v4l2_info(&bcap_dev->v4l2_dev, "v4l2 device registered\n"); bcap_probe()
900 v4l2_info(&bcap_dev->v4l2_dev, "v4l2 sub device registered\n"); bcap_probe()
/linux-4.1.27/drivers/media/platform/s5p-tv/
H A Dhdmi_drv.c25 #include <media/v4l2-subdev.h>
34 #include <linux/v4l2-dv-timings.h>
37 #include <media/v4l2-common.h>
38 #include <media/v4l2-dev.h>
39 #include <media/v4l2-device.h>
40 #include <media/v4l2-dv-timings.h>
938 /* setting v4l2 name to prevent WARN_ON in v4l2_device_register */ hdmi_probe()
944 dev_err(dev, "could not register v4l2 device.\n"); hdmi_probe()
/linux-4.1.27/Documentation/video4linux/
H A Dv4l2-pci-skeleton.c33 #include <linux/v4l2-dv-timings.h>
34 #include <media/v4l2-device.h>
35 #include <media/v4l2-dev.h>
36 #include <media/v4l2-ioctl.h>
37 #include <media/v4l2-dv-timings.h>
38 #include <media/v4l2-ctrls.h>
39 #include <media/v4l2-event.h>
49 * @v4l2_dev: top-level v4l2 device struct
/linux-4.1.27/drivers/media/usb/airspy/
H A Dairspy.c20 #include <media/v4l2-device.h>
21 #include <media/v4l2-ioctl.h>
22 #include <media/v4l2-ctrls.h>
23 #include <media/v4l2-event.h>
1041 dev_err(s->dev, "Failed to register v4l2-device (%d)\n", ret); airspy_probe()

Completed in 3311 milliseconds

123