Home
last modified time | relevance | path

Searched refs:v4l2_dev (Results 26 – 50 of 418) sorted by relevance

12345678910>>...17

/openbmc/linux/drivers/media/radio/si4713/
H A Dradio-usb-si4713.c52 struct v4l2_device v4l2_dev; member
62 return container_of(v4l2_dev, struct si4713_usb_device, v4l2_dev); in to_si4713_dev()
130 struct si4713_usb_device *radio = to_si4713_dev(v4l2_dev); in usb_si4713_video_device_release()
134 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_video_device_release()
437 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_si4713_probe()
456 sd = v4l2_i2c_new_subdev_board(&radio->v4l2_dev, adapter, in usb_si4713_probe()
467 strscpy(radio->vdev.name, radio->v4l2_dev.name, in usb_si4713_probe()
469 radio->vdev.v4l2_dev = &radio->v4l2_dev; in usb_si4713_probe()
493 v4l2_device_unregister(&radio->v4l2_dev); in usb_si4713_probe()
509 v4l2_device_disconnect(&radio->v4l2_dev); in usb_si4713_disconnect()
[all …]
/openbmc/linux/drivers/staging/media/imx/
H A Dimx-media-dev-common.c28 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
37 list_for_each_entry(sd, &imxmd->v4l2_dev.subdevs, list) { in imx_media_create_csi2_links()
70 v4l2_warn(&imxmd->v4l2_dev, "%s:%u has no vdev list!\n", in imx_media_add_vdev_to_pad()
350 imxmd->v4l2_dev.mdev = &imxmd->md; in imx_media_dev_init()
351 imxmd->v4l2_dev.notify = imx_media_notify; in imx_media_dev_init()
352 strscpy(imxmd->v4l2_dev.name, "imx-media", in imx_media_dev_init()
353 sizeof(imxmd->v4l2_dev.name)); in imx_media_dev_init()
359 ret = v4l2_device_register(dev, &imxmd->v4l2_dev); in imx_media_dev_init()
361 v4l2_err(&imxmd->v4l2_dev, in imx_media_dev_init()
386 v4l2_err(&imxmd->v4l2_dev, "no subdevs\n"); in imx_media_dev_notifier_register()
[all …]
/openbmc/linux/drivers/media/pci/cx18/
H A Dcx18-alsa-pcm.c138 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_open() local
139 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_open()
185 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_capture_close() local
186 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_capture_close()
244 struct v4l2_device *v4l2_dev = cxsc->v4l2_dev; in snd_cx18_pcm_create() local
245 struct cx18 *cx = to_cx18(v4l2_dev); in snd_cx18_pcm_create()
H A Dcx18-i2c.c105 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
109 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
113 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, in cx18_i2c_register()
128 sd = v4l2_i2c_new_subdev(&cx->v4l2_dev, adap, type, hw_addrs[idx], in cx18_i2c_register()
141 spin_lock(&cx->v4l2_dev.lock); in cx18_find_hw()
142 v4l2_device_for_each_subdev(sd, &cx->v4l2_dev) { in cx18_find_hw()
148 spin_unlock(&cx->v4l2_dev.lock); in cx18_find_hw()
234 i2c_set_adapdata(&cx->i2c_adap[i], &cx->v4l2_dev); in init_cx18_i2c()
/openbmc/linux/drivers/media/test-drivers/vivid/
H A Dvivid-core.c1398 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1449 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1501 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1533 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1564 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1591 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1611 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1630 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1660 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1689 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
[all …]
/openbmc/linux/drivers/media/radio/
H A Dradio-mr800.c120 struct v4l2_device v4l2_dev; member
132 return container_of(v4l2_dev, struct amradio_device, v4l2_dev); in to_amradio_dev()
249 v4l2_device_disconnect(&radio->v4l2_dev); in usb_amradio_disconnect()
251 v4l2_device_put(&radio->v4l2_dev); in usb_amradio_disconnect()
492 v4l2_device_unregister(&radio->v4l2_dev); in usb_amradio_release()
536 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_amradio_probe()
537 radio->v4l2_dev.release = usb_amradio_release; in usb_amradio_probe()
538 strscpy(radio->vdev.name, radio->v4l2_dev.name, in usb_amradio_probe()
540 radio->vdev.v4l2_dev = &radio->v4l2_dev; in usb_amradio_probe()
550 usb_set_intfdata(intf, &radio->v4l2_dev); in usb_amradio_probe()
[all …]
H A Dradio-cadet.c66 struct v4l2_device v4l2_dev; member
592 struct v4l2_device *v4l2_dev = &dev->v4l2_dev; in cadet_init() local
596 strscpy(v4l2_dev->name, "cadet", sizeof(v4l2_dev->name)); in cadet_init()
612 v4l2_err(v4l2_dev, "0x336, 0x338, 0x33a, 0x33c or 0x33e\n"); in cadet_init()
619 res = v4l2_device_register(NULL, v4l2_dev); in cadet_init()
622 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in cadet_init()
630 v4l2_dev->ctrl_handler = hdl; in cadet_init()
633 v4l2_err(v4l2_dev, "Could not register controls\n"); in cadet_init()
641 dev->vdev.v4l2_dev = v4l2_dev; in cadet_init()
657 v4l2_device_unregister(v4l2_dev); in cadet_init()
[all …]
H A Dradio-sf16fmr2.c33 struct v4l2_device v4l2_dev; member
217 strscpy(fmr2->v4l2_dev.name, "radio-sf16fmr2", in fmr2_probe()
218 sizeof(fmr2->v4l2_dev.name)); in fmr2_probe()
221 if (!request_region(fmr2->io, 2, fmr2->v4l2_dev.name)) { in fmr2_probe()
227 err = v4l2_device_register(pdev, &fmr2->v4l2_dev); in fmr2_probe()
229 v4l2_err(&fmr2->v4l2_dev, "Could not register v4l2_device\n"); in fmr2_probe()
233 fmr2->tea.v4l2_dev = &fmr2->v4l2_dev; in fmr2_probe()
292 v4l2_device_unregister(&fmr2->v4l2_dev); in fmr2_remove()
H A Dradio-tea5764.c131 struct v4l2_device v4l2_dev; member
417 struct v4l2_device *v4l2_dev; in tea5764_i2c_probe() local
427 v4l2_dev = &radio->v4l2_dev; in tea5764_i2c_probe()
428 ret = v4l2_device_register(&client->dev, v4l2_dev); in tea5764_i2c_probe()
430 v4l2_err(v4l2_dev, "could not register v4l2_device\n"); in tea5764_i2c_probe()
438 v4l2_dev->ctrl_handler = hdl; in tea5764_i2c_probe()
441 v4l2_err(v4l2_dev, "Could not register controls\n"); in tea5764_i2c_probe()
464 radio->vdev.v4l2_dev = v4l2_dev; in tea5764_i2c_probe()
483 v4l2_device_unregister(v4l2_dev); in tea5764_i2c_probe()
498 v4l2_device_unregister(&radio->v4l2_dev); in tea5764_i2c_remove()
/openbmc/linux/drivers/media/pci/ivtv/
H A Divtv-alsa-pcm.c135 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_open() local
136 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_capture_open()
189 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_capture_close() local
190 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_capture_close()
248 struct v4l2_device *v4l2_dev = itvsc->v4l2_dev; in snd_ivtv_pcm_create() local
249 struct ivtv *itv = to_ivtv(v4l2_dev); in snd_ivtv_pcm_create()
/openbmc/linux/drivers/media/test-drivers/visl/
H A Dvisl-core.c247 v4l2_device_unregister(&dev->v4l2_dev); in visl_device_release()
277 v4l2_err(&dev->v4l2_dev, in visl_init_ctrls()
407 ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev); in visl_probe()
416 vfd->v4l2_dev = &dev->v4l2_dev; in visl_probe()
424 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem device\n"); in visl_probe()
436 dev->v4l2_dev.mdev = &dev->mdev; in visl_probe()
440 v4l2_err(&dev->v4l2_dev, "Failed to register video device\n"); in visl_probe()
444 v4l2_info(&dev->v4l2_dev, in visl_probe()
450 v4l2_err(&dev->v4l2_dev, "Failed to init mem2mem media controller\n"); in visl_probe()
476 v4l2_device_unregister(&dev->v4l2_dev); in visl_probe()
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Dsh_vou.c74 struct v4l2_device v4l2_dev; member
341 v4l2_device_call_until_err(&vou_dev->v4l2_dev, 0, in sh_vou_stop_streaming()
464 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_configure_geometry()
1033 dev_warn(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1042 dev_dbg(vou_dev->v4l2_dev.dev, in sh_vou_isr()
1143 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_open()
1166 pm_runtime_put(vou_dev->v4l2_dev.dev); in sh_vou_release()
1285 vdev->v4l2_dev = &vou_dev->v4l2_dev; in sh_vou_probe()
1342 v4l2_device_unregister(&vou_dev->v4l2_dev); in sh_vou_probe()
1350 struct sh_vou_device, v4l2_dev); in sh_vou_remove()
[all …]
/openbmc/linux/Documentation/translations/zh_CN/video4linux/
H A Dv4l2-framework.txt105 为 NULL,就将其指向 v4l2_dev
112 如果 v4l2_dev->name 为空,则它将被设置为从 dev 中衍生出的值(为了
115 v4l2_device_register 前设置 v4l2_dev->name。
124 当一个设备创建了多个 PCI 设备,使得 v4l2_dev 无法与一个特定的父设备
135 如果 dev->driver_data 域指向 v4l2_dev,将会被重置为 NULL。注销同时
155 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
158 if (v4l2_dev == NULL)
199 void v4l2_device_get(struct v4l2_device *v4l2_dev);
203 int v4l2_device_put(struct v4l2_device *v4l2_dev);
554 - v4l2_dev: 设置为 v4l2_device 父设备。
[all …]
/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-async.c86 if (notifier->v4l2_dev) in notifier_dev()
87 return notifier->v4l2_dev->dev; in notifier_dev()
250 return notifier->v4l2_dev; in v4l2_async_nf_find_v4l2_dev()
298 if (!notifier->v4l2_dev) { in v4l2_async_nf_try_complete()
416 struct v4l2_device *v4l2_dev = in v4l2_async_nf_try_all_subdevs() local
420 if (!v4l2_dev) in v4l2_async_nf_try_all_subdevs()
562 struct v4l2_device *v4l2_dev) in v4l2_async_nf_init() argument
567 notifier->v4l2_dev = v4l2_dev; in v4l2_async_nf_init()
671 notifier->v4l2_dev = NULL; in __v4l2_async_nf_cleanup()
816 if (!v4l2_dev) in v4l2_async_register_subdev()
[all …]
H A Dv4l2-i2c.c62 *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev_board() argument
70 if (!v4l2_dev) in v4l2_i2c_new_subdev_board()
103 if (v4l2_device_register_subdev(v4l2_dev, sd)) in v4l2_i2c_new_subdev_board()
119 struct v4l2_subdev *v4l2_i2c_new_subdev(struct v4l2_device *v4l2_dev, in v4l2_i2c_new_subdev() argument
135 return v4l2_i2c_new_subdev_board(v4l2_dev, adapter, &info, in v4l2_i2c_new_subdev()
/openbmc/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.c191 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_register_sensor() local
206 v4l2_warn(v4l2_dev, "failed to get I2C adapter %d\n", in camif_register_sensor()
211 sd = v4l2_i2c_new_subdev_board(v4l2_dev, adapter, in camif_register_sensor()
215 v4l2_warn(v4l2_dev, "failed to acquire subdev %s\n", in camif_register_sensor()
303 struct v4l2_device *v4l2_dev = &camif->v4l2_dev; in camif_media_dev_init() local
315 strscpy(v4l2_dev->name, "s3c-camif", sizeof(v4l2_dev->name)); in camif_media_dev_init()
316 v4l2_dev->mdev = md; in camif_media_dev_init()
320 ret = v4l2_device_register(camif->dev, v4l2_dev); in camif_media_dev_init()
475 ret = v4l2_device_register_subdev_nodes(&camif->v4l2_dev); in s3c_camif_probe()
495 v4l2_device_unregister(&camif->v4l2_dev); in s3c_camif_probe()
[all …]
/openbmc/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus.c279 v4l2_err(&dev->v4l2_dev, in cedrus_init_ctrls()
299 v4l2_err(&dev->v4l2_dev, in cedrus_init_ctrls()
341 v4l2_info(&ctx->dev->v4l2_dev, in cedrus_request_validate()
345 v4l2_info(&ctx->dev->v4l2_dev, in cedrus_request_validate()
486 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe()
493 v4l2_err(&dev->v4l2_dev, in cedrus_probe()
507 dev->v4l2_dev.mdev = &dev->mdev; in cedrus_probe()
515 v4l2_info(&dev->v4l2_dev, in cedrus_probe()
521 v4l2_err(&dev->v4l2_dev, in cedrus_probe()
541 v4l2_device_unregister(&dev->v4l2_dev); in cedrus_probe()
[all …]
/openbmc/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-core.c85 ret = v4l2_device_register_subdev_nodes(&isi->v4l2_dev); in mxc_isi_async_notifier_complete()
104 ret = v4l2_device_register_subdev(&pipe->isi->v4l2_dev, &pipe->sd); in mxc_isi_pipe_register()
108 return mxc_isi_video_register(pipe, &pipe->isi->v4l2_dev); in mxc_isi_pipe_register()
120 struct v4l2_device *v4l2_dev = &isi->v4l2_dev; in mxc_isi_v4l2_init() local
132 v4l2_dev->mdev = media_dev; in mxc_isi_v4l2_init()
133 strscpy(v4l2_dev->name, "mx8-img-md", sizeof(v4l2_dev->name)); in mxc_isi_v4l2_init()
135 ret = v4l2_device_register(isi->dev, v4l2_dev); in mxc_isi_v4l2_init()
171 ret = mxc_isi_m2m_register(isi, v4l2_dev); in mxc_isi_v4l2_init()
178 v4l2_async_nf_init(&isi->notifier, v4l2_dev); in mxc_isi_v4l2_init()
216 v4l2_device_unregister(v4l2_dev); in mxc_isi_v4l2_init()
[all …]
/openbmc/linux/drivers/media/usb/hdpvr/
H A Dhdpvr-video.c30 v4l2_dbg(MSG_BUFFER, hdpvr_debug, &dev->v4l2_dev, \
140 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_alloc_buffers()
160 v4l2_err(&dev->v4l2_dev, in hdpvr_alloc_buffers()
199 v4l2_err(&dev->v4l2_dev, in hdpvr_submit_buffers()
210 v4l2_err(&dev->v4l2_dev, in hdpvr_submit_buffers()
261 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_transmit_buffers()
265 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, in hdpvr_transmit_buffers()
463 v4l2_info(&dev->v4l2_dev, in hdpvr_read()
1132 v4l2_device_unregister(&dev->v4l2_dev); in hdpvr_device_release()
1223 dev->v4l2_dev.ctrl_handler = hdl; in hdpvr_register_videodev()
[all …]
/openbmc/linux/drivers/media/test-drivers/vimc/
H A Dvimc-core.c267 static void vimc_v4l2_dev_release(struct v4l2_device *v4l2_dev) in vimc_v4l2_dev_release() argument
270 container_of(v4l2_dev, struct vimc_device, v4l2_dev); in vimc_v4l2_dev_release()
283 ret = v4l2_device_register(vimc->mdev.dev, &vimc->v4l2_dev); in vimc_register_devices()
316 ret = v4l2_device_register_subdev_nodes(&vimc->v4l2_dev); in vimc_register_devices()
334 v4l2_device_unregister(&vimc->v4l2_dev); in vimc_register_devices()
364 vimc->v4l2_dev.mdev = &vimc->mdev; in vimc_probe()
385 vimc->v4l2_dev.release = vimc_v4l2_dev_release; in vimc_probe()
398 v4l2_device_unregister(&vimc->v4l2_dev); in vimc_remove()
399 v4l2_device_put(&vimc->v4l2_dev); in vimc_remove()
/openbmc/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi.h33 struct v4l2_device v4l2_dev; member
39 struct v4l2_device *v4l2_dev; member
61 struct v4l2_device *v4l2_dev);
/openbmc/linux/include/trace/events/
H A Dpwc.h20 __string(name, pdev->v4l2_dev.name)
29 __assign_str(name, pdev->v4l2_dev.name);
47 __string(name, pdev->v4l2_dev.name)
53 __assign_str(name, pdev->v4l2_dev.name);
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A Dmedia-dev.c659 v4l2_err(&fmd->v4l2_dev, in register_csis_entity()
679 v4l2_err(&fmd->v4l2_dev, in register_fimc_is_entity()
1009 v4l2_err(&fmd->v4l2_dev, "Wrong bus_type: %x\n", in fimc_md_create_links()
1433 struct v4l2_device *v4l2_dev; in fimc_md_probe() local
1455 v4l2_dev = &fmd->v4l2_dev; in fimc_md_probe()
1456 v4l2_dev->mdev = &fmd->media_dev; in fimc_md_probe()
1457 v4l2_dev->notify = fimc_sensor_notify; in fimc_md_probe()
1458 strscpy(v4l2_dev->name, "s5p-fimc-md", sizeof(v4l2_dev->name)); in fimc_md_probe()
1465 ret = v4l2_device_register(dev, &fmd->v4l2_dev); in fimc_md_probe()
1527 v4l2_device_unregister(&fmd->v4l2_dev); in fimc_md_probe()
[all …]
/openbmc/linux/Documentation/driver-api/media/
H A Dv4l2-device.rst13 (dev, :c:type:`v4l2_dev <v4l2_device>`).
17 :c:type:`v4l2_dev <v4l2_device>` argument.
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>`).
54 If the dev->driver_data field points to :c:type:`v4l2_dev <v4l2_device>`,
64 (:c:type:`v4l2_dev <v4l2_device>`).
81 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
84 if (v4l2_dev == NULL)
131 (:c:type:`v4l2_dev <v4l2_device>`).
[all …]
/openbmc/linux/drivers/media/platform/aspeed/
H A Daspeed-video.c292 struct v4l2_device v4l2_dev; member
1995 struct v4l2_device *v4l2_dev = &video->v4l2_dev; in aspeed_video_setup_video() local
2007 rc = v4l2_device_register(video->dev, v4l2_dev); in aspeed_video_setup_video()
2027 v4l2_device_unregister(v4l2_dev); in aspeed_video_setup_video()
2033 v4l2_dev->ctrl_handler = hdl; in aspeed_video_setup_video()
2037 vbq->dev = v4l2_dev->dev; in aspeed_video_setup_video()
2049 v4l2_device_unregister(v4l2_dev); in aspeed_video_setup_video()
2059 vdev->v4l2_dev = v4l2_dev; in aspeed_video_setup_video()
2071 v4l2_device_unregister(v4l2_dev); in aspeed_video_setup_video()
2211 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev); in aspeed_video_remove() local
[all …]

12345678910>>...17