Home
last modified time | relevance | path

Searched refs:v4l2_device (Results 1 – 25 of 266) sorted by relevance

1234567891011

/linux/include/media/
H A Dv4l2-device.h19 * struct v4l2_device - main struct to for V4L2 device drivers
34 * Each instance of a V4L2 device should create the v4l2_device struct,
45 struct v4l2_device { struct
56 void (*release)(struct v4l2_device *v4l2_dev); argument
62 * @v4l2_dev: pointer to struct &v4l2_device
65 * struct &v4l2_device pointed by @v4l2_dev.
67 static inline void v4l2_device_get(struct v4l2_device *v4l2_dev) in v4l2_device_get()
75 * @v4l2_dev: pointer to struct &v4l2_device
78 * struct &v4l2_device pointed by @v4l2_dev.
80 int v4l2_device_put(struct v4l2_device *v4l2_de
[all...]
H A Dv4l2-common.h56 /* These printk constructs can be used with v4l2_device and v4l2_subdev */
100 struct v4l2_device;
143 * @v4l2_dev: pointer to &struct v4l2_device
152 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev,
160 * @v4l2_dev: pointer to &struct v4l2_device
169 struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,
226 v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev()
234 v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev_board()
280 * @v4l2_dev: pointer to &struct v4l2_device.
286 struct v4l2_subdev *v4l2_spi_new_subdev(struct v4l2_device *v4l2_de
[all...]
H A Dv4l2-async.h17 struct v4l2_device;
107 * struct v4l2_async_notifier - v4l2_device notifier data
110 * @v4l2_dev: v4l2_device of the root notifier, NULL otherwise
120 struct v4l2_device *v4l2_dev;
151 * @v4l2_dev: pointer to &struct v4l2_device
160 struct v4l2_device *v4l2_dev);
/linux/Documentation/translations/zh_CN/video4linux/
H A Dv4l2-framework.txt84 该框架非常类似驱动结构:它有一个 v4l2_device 结构用于保存设备
89 V4L2 框架也可与媒体框架整合(可选的)。如果驱动设置了 v4l2_device
93 v4l2_device 结构体
96 每个设备实例都通过 v4l2_device (v4l2-device.h)结构体来表示。
102 v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev);
104 注册操作将会初始化 v4l2_device 结构体。如果 dev->driver_data 域
108 v4l2_device 结构体实例的驱动特定设备结构体。这可以在注册 V4L2 设备
109 实例前通过 dev_set_drvdata() 函数完成。同时必须设置 v4l2_device
131 注销 v4l2_device 使用如下函数:
133 v4l2_device_unregister(struct v4l2_device *v4l2_de
[all...]
/linux/Documentation/driver-api/media/
H A Dv4l2-device.rst6 Each device instance is represented by a struct v4l2_device.
13 (dev, :c:type:`v4l2_dev <v4l2_device>`).
15 Registration will initialize the :c:type:`v4l2_device` struct. If the
17 :c:type:`v4l2_dev <v4l2_device>` argument.
21 that embed the struct v4l2_device instance. This is achieved by a
23 They must also set the struct v4l2_device mdev field to point to a
26 If :c:type:`v4l2_dev <v4l2_device>`\ ->name is empty then it will be set to a
30 :c:type:`v4l2_dev <v4l2_device>`\ ->name before calling
42 :c:type:`v4l2_dev <v4l2_device>` with a particular parent.
52 (:c:type:`v4l2_dev <v4l2_device>`)
[all...]
/linux/drivers/media/v4l2-core/
H A Dv4l2-device.c17 int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev) in v4l2_device_register()
47 struct v4l2_device *v4l2_dev = in v4l2_device_release()
48 container_of(ref, struct v4l2_device, ref); in v4l2_device_release()
54 int v4l2_device_put(struct v4l2_device *v4l2_dev) in v4l2_device_put()
60 int v4l2_device_set_name(struct v4l2_device *v4l2_dev, const char *basename, in v4l2_device_set_name()
76 void v4l2_device_disconnect(struct v4l2_device *v4l2_dev) in v4l2_device_disconnect()
88 void v4l2_device_unregister(struct v4l2_device *v4l2_dev) in v4l2_device_unregister()
111 int __v4l2_device_register_subdev(struct v4l2_device *v4l2_dev, in __v4l2_device_register_subdev()
191 int __v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev, in __v4l2_device_register_subdev_nodes()
265 struct v4l2_device *v4l2_de in v4l2_device_unregister_subdev()
[all...]
H A Dv4l2-i2c.c63 *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev_board()
101 * Register with the v4l2_device which increases the module's in v4l2_i2c_new_subdev_board()
120 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev()
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi.h33 struct v4l2_device v4l2_dev;
39 struct v4l2_device *v4l2_dev;
61 struct v4l2_device *v4l2_dev);
/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-main.c49 struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev) in to_snd_cx18_card()
76 static int snd_cx18_card_create(struct v4l2_device *v4l2_dev, in snd_cx18_card_create()
113 static int snd_cx18_init(struct v4l2_device *v4l2_dev) in snd_cx18_init()
181 struct v4l2_device *v4l2_dev = &cx->v4l2_dev; in cx18_alsa_load()
185 printk(KERN_ERR "cx18-alsa: %s: struct v4l2_device * is NULL\n", in cx18_alsa_load()
238 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in cx18_alsa_exit_callback()
242 printk(KERN_ERR "cx18-alsa: %s: struct v4l2_device * is NULL\n", in cx18_alsa_exit_callback()
H A Dcx18-alsa-pcm.c138 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_open()
185 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_close()
244 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_create()
/linux/drivers/media/pci/ivtv/
H A Divtv-alsa-main.c46 struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) in to_snd_ivtv_card()
73 static int snd_ivtv_card_create(struct v4l2_device *v4l2_dev, in snd_ivtv_card_create()
110 static int snd_ivtv_init(struct v4l2_device *v4l2_dev) in snd_ivtv_init()
183 struct v4l2_device *v4l2_dev = &itv->v4l2_dev; in ivtv_alsa_load()
187 pr_err("ivtv-alsa: %s: struct v4l2_device * is NULL\n", in ivtv_alsa_load()
238 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in ivtv_alsa_exit_callback()
242 pr_err("ivtv-alsa: %s: struct v4l2_device * is NULL\n", in ivtv_alsa_exit_callback()
H A Divtv-alsa-pcm.c135 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_open()
189 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_close()
248 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_create()
/linux/drivers/media/radio/
H A Dradio-maxiradio.c73 struct v4l2_device v4l2_dev;
79 static inline struct maxiradio *to_maxiradio(struct v4l2_device *v4l2_dev) in to_maxiradio()
122 struct v4l2_device *v4l2_dev; in maxiradio_probe()
136 v4l2_err(v4l2_dev, "Could not register v4l2_device\n"); in maxiradio_probe()
177 struct v4l2_device *v4l2_dev = pci_get_drvdata(pdev); in maxiradio_remove()
H A Dradio-shark.c63 struct v4l2_device v4l2_dev;
292 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_disconnect()
305 static void usb_shark_release(struct v4l2_device *v4l2_dev) in usb_shark_release()
347 v4l2_err(&shark->v4l2_dev, "couldn't register v4l2_device\n"); in usb_shark_probe()
391 struct v4l2_device *v4l2_dev = usb_get_intfdata(intf); in usb_shark_resume()
/linux/drivers/media/platform/synopsys/hdmirx/
H A Dsnps_hdmirx.c125 struct v4l2_device v4l2_dev;
265 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_get_timings()
390 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_get_detected_timings()
467 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_query_dv_timings()
498 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_hpd_ctrl()
702 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_get_edid()
776 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in wait_reg_bit_status()
828 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_tmds_clk_ratio_config()
952 struct v4l2_device *v4l2_dev = &hdmirx_dev->v4l2_dev; in hdmirx_get_colordepth()
982 struct v4l2_device *v4l2_de in hdmirx_get_pix_fmt()
[all...]
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-isp-video.h16 struct v4l2_device *v4l2_dev,
29 struct v4l2_device *v4l2_dev, in fimc_isp_video_device_register()
/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2.h22 struct v4l2_device;
45 struct v4l2_device *vdev);
H A Datomisp_v4l2.h14 struct v4l2_device;
/linux/drivers/media/radio/si4713/
H A Dradio-platform-si4713.c40 struct v4l2_device v4l2_dev;
73 static inline struct v4l2_device *get_v4l2_dev(struct file *file) in get_v4l2_dev()
195 struct v4l2_device *v4l2_dev = platform_get_drvdata(pdev); in radio_si4713_pdriver_remove()
/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-core.h293 struct v4l2_device v4l2_dev;
328 struct v4l2_device *v4l2_dev);
344 int mxc_isi_m2m_register(struct mxc_isi_dev *isi, struct v4l2_device *v4l2_dev);
348 struct v4l2_device *v4l2_dev) in mxc_isi_m2m_register()
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-common.h129 struct v4l2_device v4l2_dev;
226 struct v4l2_device *v4l2_dev,
/linux/drivers/staging/media/imx/
H A Dimx-media.h146 struct v4l2_device v4l2_dev;
256 struct v4l2_subdev *imx_media_vdic_register(struct v4l2_device *v4l2_dev,
263 struct v4l2_subdev *imx_media_ic_register(struct v4l2_device *v4l2_dev,
/linux/drivers/media/usb/hdpvr/
H A Dhdpvr.h71 struct v4l2_device v4l2_dev;
126 static inline struct hdpvr_device *to_hdpvr_dev(struct v4l2_device *v4l2_dev) in to_hdpvr_dev()
/linux/drivers/media/platform/xilinx/
H A Dxilinx-vipp.h32 struct v4l2_device v4l2_dev;
/linux/drivers/staging/media/tegra-video/
H A Dvideo.h17 struct v4l2_device v4l2_dev;

1234567891011