Home
last modified time | relevance | path

Searched refs:video_dev (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.12.1/drivers/staging/media/sunxi/sun6i-isp/
Dsun6i_isp_capture.c320 struct video_device *video_dev = &isp_dev->capture.video_dev; in sun6i_isp_capture_start_streaming() local
326 ret = video_device_pipeline_alloc_start(video_dev); in sun6i_isp_capture_start_streaming()
341 video_device_pipeline_stop(video_dev); in sun6i_isp_capture_start_streaming()
353 struct video_device *video_dev = &isp_dev->capture.video_dev; in sun6i_isp_capture_stop_streaming() local
360 video_device_pipeline_stop(video_dev); in sun6i_isp_capture_stop_streaming()
428 struct video_device *video_dev = &isp_dev->capture.video_dev; in sun6i_isp_capture_querycap() local
431 strscpy(capability->card, video_dev->name, sizeof(capability->card)); in sun6i_isp_capture_querycap()
539 struct video_device *video_dev = &isp_dev->capture.video_dev; in sun6i_isp_capture_open() local
546 ret = v4l2_pipeline_pm_get(&video_dev->entity); in sun6i_isp_capture_open()
559 v4l2_pipeline_pm_put(&video_dev->entity); in sun6i_isp_capture_open()
[all …]
Dsun6i_isp_params.c392 struct video_device *video_dev = &isp_dev->params.video_dev; in sun6i_isp_params_querycap() local
395 strscpy(capability->card, video_dev->name, sizeof(capability->card)); in sun6i_isp_params_querycap()
463 struct video_device *video_dev = &params->video_dev; in sun6i_isp_params_setup() local
479 ret = media_entity_pads_init(&video_dev->entity, 1, pad); in sun6i_isp_params_setup()
512 strscpy(video_dev->name, SUN6I_ISP_PARAMS_NAME, in sun6i_isp_params_setup()
513 sizeof(video_dev->name)); in sun6i_isp_params_setup()
514 video_dev->device_caps = V4L2_CAP_META_OUTPUT | V4L2_CAP_STREAMING; in sun6i_isp_params_setup()
515 video_dev->vfl_dir = VFL_DIR_TX; in sun6i_isp_params_setup()
516 video_dev->release = video_device_release_empty; in sun6i_isp_params_setup()
517 video_dev->fops = &sun6i_isp_params_fops; in sun6i_isp_params_setup()
[all …]
Dsun6i_isp_params.h29 struct video_device video_dev; member
Dsun6i_isp_capture.h42 struct video_device video_dev; member
/linux-6.12.1/drivers/media/radio/
Dradio-timb.c25 struct video_device video_dev; member
108 strscpy(tr->video_dev.name, "Timberdale Radio", in timbradio_probe()
109 sizeof(tr->video_dev.name)); in timbradio_probe()
110 tr->video_dev.fops = &timbradio_fops; in timbradio_probe()
111 tr->video_dev.ioctl_ops = &timbradio_ioctl_ops; in timbradio_probe()
112 tr->video_dev.release = video_device_release_empty; in timbradio_probe()
113 tr->video_dev.minor = -1; in timbradio_probe()
114 tr->video_dev.lock = &tr->lock; in timbradio_probe()
115 tr->video_dev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in timbradio_probe()
122 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe()
[all …]
/linux-6.12.1/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_csi_capture.c609 struct video_device *video_dev = &csi_dev->capture.video_dev; in sun6i_csi_capture_start_streaming() local
615 ret = video_device_pipeline_alloc_start(video_dev); in sun6i_csi_capture_start_streaming()
630 video_device_pipeline_stop(video_dev); in sun6i_csi_capture_start_streaming()
642 struct video_device *video_dev = &csi_dev->capture.video_dev; in sun6i_csi_capture_stop_streaming() local
649 video_device_pipeline_stop(video_dev); in sun6i_csi_capture_stop_streaming()
720 struct video_device *video_dev = &csi_dev->capture.video_dev; in sun6i_csi_capture_querycap() local
723 strscpy(capability->card, video_dev->name, sizeof(capability->card)); in sun6i_csi_capture_querycap()
840 ret = v4l2_pipeline_pm_get(&capture->video_dev.entity); in sun6i_csi_capture_open()
853 v4l2_pipeline_pm_put(&capture->video_dev.entity); in sun6i_csi_capture_open()
869 v4l2_pipeline_pm_put(&capture->video_dev.entity); in sun6i_csi_capture_close()
[all …]
Dsun6i_csi_capture.h54 struct video_device video_dev; member
/linux-6.12.1/tools/testing/selftests/media_tests/
Dvideo_device_test.c120 char video_dev[256]; in main() local
133 strncpy(video_dev, optarg, sizeof(video_dev) - 1); in main()
134 video_dev[sizeof(video_dev)-1] = '\0'; in main()
143 fd = open(video_dev, O_RDWR); in main()
/linux-6.12.1/drivers/media/pci/cx18/
Dcx18-streams.c298 s->video_dev.queue = &s->vidq; in cx18_stream_init()
318 s->video_dev.v4l2_dev = NULL; in cx18_prep_dev()
364 snprintf(s->video_dev.name, sizeof(s->video_dev.name), "%s %s", in cx18_prep_dev()
367 s->video_dev.num = num; in cx18_prep_dev()
368 s->video_dev.v4l2_dev = &cx->v4l2_dev; in cx18_prep_dev()
370 s->video_dev.fops = &cx18_v4l2_enc_yuv_fops; in cx18_prep_dev()
372 s->video_dev.fops = &cx18_v4l2_enc_fops; in cx18_prep_dev()
373 s->video_dev.release = video_device_release_empty; in cx18_prep_dev()
375 s->video_dev.tvnorms = cx->tuner_std; in cx18_prep_dev()
377 s->video_dev.tvnorms = V4L2_STD_ALL; in cx18_prep_dev()
[all …]
Dcx18-fileops.c685 struct video_device *vdev = &s->video_dev; in cx18_v4l2_close()
740 v4l2_fh_init(&item->fh, &s->video_dev); in cx18_serialized_open()
779 struct video_device *video_dev = video_devdata(filp); in cx18_v4l2_open() local
780 struct cx18_stream *s = video_get_drvdata(video_dev); in cx18_v4l2_open()
786 video_device_node_name(video_dev)); in cx18_v4l2_open()
Dcx18-streams.h22 return s->video_dev.v4l2_dev || in cx18_stream_enabled()
/linux-6.12.1/drivers/media/pci/zoran/
Dzoran_card.c868 static int zoran_init_video_device(struct zoran *zr, struct video_device *video_dev, int dir) in zoran_init_video_device() argument
873 *video_dev = zoran_template; in zoran_init_video_device()
874 video_dev->v4l2_dev = &zr->v4l2_dev; in zoran_init_video_device()
875 video_dev->lock = &zr->lock; in zoran_init_video_device()
876 video_dev->device_caps = V4L2_CAP_STREAMING | dir; in zoran_init_video_device()
878 strscpy(video_dev->name, ZR_DEVNAME(zr), sizeof(video_dev->name)); in zoran_init_video_device()
879 video_dev->vfl_dir = VFL_DIR_RX; in zoran_init_video_device()
882 err = video_register_device(video_dev, VFL_TYPE_VIDEO, video_nr[zr->id]); in zoran_init_video_device()
885 video_set_drvdata(video_dev, zr); in zoran_init_video_device()
891 video_unregister_device(zr->video_dev); in zoran_exit_video_devices()
[all …]
/linux-6.12.1/drivers/media/pci/sta2x11/
Dsta2x11_vip.c115 struct video_device video_dev; member
1065 vip->video_dev = video_dev_template; in sta2x11_vip_init_one()
1066 vip->video_dev.v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one()
1067 vip->video_dev.queue = &vip->vb_vidq; in sta2x11_vip_init_one()
1068 vip->video_dev.lock = &vip->v4l_lock; in sta2x11_vip_init_one()
1069 video_set_drvdata(&vip->video_dev, vip); in sta2x11_vip_init_one()
1071 ret = video_register_device(&vip->video_dev, VFL_TYPE_VIDEO, -1); in sta2x11_vip_init_one()
1101 video_set_drvdata(&vip->video_dev, NULL); in sta2x11_vip_init_one()
1103 vb2_video_unregister_device(&vip->video_dev); in sta2x11_vip_init_one()
1146 video_set_drvdata(&vip->video_dev, NULL); in sta2x11_vip_remove_one()
[all …]
/linux-6.12.1/drivers/media/pci/saa7134/
Dsaa7134-core.c849 ret = media_entity_pads_init(&dev->video_dev->entity, 1, in saa7134_create_entities()
954 if (dev->video_dev) { in saa7134_unregister_video()
955 if (video_is_registered(dev->video_dev)) in saa7134_unregister_video()
956 vb2_video_unregister_device(dev->video_dev); in saa7134_unregister_video()
958 video_device_release(dev->video_dev); in saa7134_unregister_video()
959 dev->video_dev = NULL; in saa7134_unregister_video()
1178 dev->video_dev = vdev_init(dev,&saa7134_video_template,"video"); in saa7134_initdev()
1179 dev->video_dev->ctrl_handler = &dev->ctrl_handler; in saa7134_initdev()
1180 dev->video_dev->lock = &dev->lock; in saa7134_initdev()
1181 dev->video_dev->queue = &dev->video_vbq; in saa7134_initdev()
[all …]
/linux-6.12.1/drivers/media/pci/cx23885/
Dcx23885-video.c1225 if (dev->video_dev) { in cx23885_video_unregister()
1226 if (video_is_registered(dev->video_dev)) in cx23885_video_unregister()
1227 video_unregister_device(dev->video_dev); in cx23885_video_unregister()
1229 video_device_release(dev->video_dev); in cx23885_video_unregister()
1230 dev->video_dev = NULL; in cx23885_video_unregister()
1355 dev->video_dev = cx23885_vdev_init(dev, dev->pci, in cx23885_video_register()
1357 if (!dev->video_dev) { in cx23885_video_register()
1361 dev->video_dev->queue = &dev->vb2_vidq; in cx23885_video_register()
1362 dev->video_dev->device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | in cx23885_video_register()
1369 dev->video_dev->device_caps |= V4L2_CAP_TUNER; in cx23885_video_register()
[all …]
/linux-6.12.1/drivers/media/pci/saa7146/
Dhexium_orion.c56 struct video_device video_dev; member
372 if (0 != saa7146_register_device(&hexium->video_dev, dev, "hexium orion", VFL_TYPE_VIDEO)) { in hexium_attach()
394 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
Dhexium_gemini.c59 struct video_device video_dev; member
298 ret = saa7146_register_device(&hexium->video_dev, dev, "hexium gemini", VFL_TYPE_VIDEO); in hexium_attach()
319 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
Dmxb.c144 struct video_device video_dev; member
516 mxb->video_dev.tvnorms = mxb_inputs[input].std; in vidioc_s_input()
721 if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_VIDEO)) { in mxb_attach()
750 saa7146_unregister_device(&mxb->video_dev,dev); in mxb_detach()
/linux-6.12.1/drivers/media/usb/hdpvr/
Dhdpvr-core.c391 video_device_node_name(&dev->video_dev)); in hdpvr_probe()
416 video_device_node_name(&dev->video_dev)); in hdpvr_disconnect()
432 video_unregister_device(&dev->video_dev); in hdpvr_disconnect()
Dhdpvr-video.c1237 dev->video_dev = hdpvr_video_template; in hdpvr_register_videodev()
1238 strscpy(dev->video_dev.name, "Hauppauge HD PVR", in hdpvr_register_videodev()
1239 sizeof(dev->video_dev.name)); in hdpvr_register_videodev()
1240 dev->video_dev.v4l2_dev = &dev->v4l2_dev; in hdpvr_register_videodev()
1241 video_set_drvdata(&dev->video_dev, dev); in hdpvr_register_videodev()
1243 res = video_register_device(&dev->video_dev, VFL_TYPE_VIDEO, devnum); in hdpvr_register_videodev()
/linux-6.12.1/drivers/media/platform/ti/davinci/
Dvpif_capture.h80 struct video_device video_dev; member
Dvpif_display.h93 struct video_device video_dev; /* Identifies video device for member
/linux-6.12.1/drivers/media/platform/microchip/
Dmicrochip-isc-scaler.c254 &isc->video_dev.entity, ISC_PAD_SINK, in isc_scaler_link()
261 isc->video_dev.entity.name); in isc_scaler_link()
Dmicrochip-isc-base.c331 return media_pipeline_start(isc->video_dev.entity.pads, &isc->mpipe); in isc_prepare_streaming()
404 media_pipeline_stop(isc->video_dev.entity.pads); in isc_unprepare_streaming()
1683 if (video_is_registered(&isc->video_dev)) { in isc_async_bound()
1710 video_unregister_device(&isc->video_dev); in isc_async_unbind()
1758 struct video_device *vdev = &isc->video_dev; in isc_async_complete()
1921 isc->video_dev.entity.function = MEDIA_ENT_F_IO_V4L; in isc_mc_init()
1922 isc->video_dev.entity.flags = MEDIA_ENT_FL_DEFAULT; in isc_mc_init()
1923 isc->video_dev.entity.ops = &isc_entity_operations; in isc_mc_init()
1927 ret = media_entity_pads_init(&isc->video_dev.entity, ISC_PADS_NUM, in isc_mc_init()
1954 media_entity_cleanup(&isc->video_dev.entity); in isc_mc_cleanup()
/linux-6.12.1/drivers/media/pci/cx88/
Dcx88-video.c1254 video_unregister_device(&dev->video_dev); in cx8800_unregister_video()
1445 cx88_vdev_init(core, dev->pci, &dev->video_dev, in cx8800_initdev()
1447 video_set_drvdata(&dev->video_dev, dev); in cx8800_initdev()
1448 dev->video_dev.ctrl_handler = &core->video_hdl; in cx8800_initdev()
1449 dev->video_dev.queue = &dev->vb2_vidq; in cx8800_initdev()
1450 dev->video_dev.device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | in cx8800_initdev()
1453 dev->video_dev.device_caps |= V4L2_CAP_TUNER; in cx8800_initdev()
1454 err = video_register_device(&dev->video_dev, VFL_TYPE_VIDEO, in cx8800_initdev()
1461 video_device_node_name(&dev->video_dev)); in cx8800_initdev()

123