Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.1.9/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_video.c175 struct video_device *video_dev = &video->video_dev; in sun6i_video_start_streaming() local
184 ret = video_device_pipeline_alloc_start(video_dev); in sun6i_video_start_streaming()
241 video_device_pipeline_stop(video_dev); in sun6i_video_start_streaming()
268 video_device_pipeline_stop(&video->video_dev); in sun6i_video_stop_streaming()
341 struct video_device *video_dev = &csi_dev->video.video_dev; in sun6i_video_querycap() local
344 strscpy(capability->card, video_dev->name, sizeof(capability->card)); in sun6i_video_querycap()
508 ret = v4l2_pipeline_pm_get(&video->video_dev.entity); in sun6i_video_open()
543 v4l2_pipeline_pm_put(&video->video_dev.entity); in sun6i_video_close()
635 struct video_device *video_dev = &video->video_dev; in sun6i_video_setup() local
644 video_dev->entity.ops = &sun6i_video_media_ops; in sun6i_video_setup()
[all …]
Dsun6i_video.h17 struct video_device video_dev; member
/linux-6.1.9/tools/testing/selftests/media_tests/
Dvideo_device_test.c43 char video_dev[256]; in main() local
59 strncpy(video_dev, optarg, sizeof(video_dev) - 1); in main()
60 video_dev[sizeof(video_dev)-1] = '\0'; in main()
73 fd = open(video_dev, O_RDWR); in main()
/linux-6.1.9/drivers/media/pci/cx18/
Dcx18-streams.c310 s->video_dev.v4l2_dev = NULL; in cx18_prep_dev()
354 snprintf(s->video_dev.name, sizeof(s->video_dev.name), "%s %s", in cx18_prep_dev()
357 s->video_dev.num = num; in cx18_prep_dev()
358 s->video_dev.v4l2_dev = &cx->v4l2_dev; in cx18_prep_dev()
359 s->video_dev.fops = &cx18_v4l2_enc_fops; in cx18_prep_dev()
360 s->video_dev.release = video_device_release_empty; in cx18_prep_dev()
362 s->video_dev.tvnorms = cx->tuner_std; in cx18_prep_dev()
364 s->video_dev.tvnorms = V4L2_STD_ALL; in cx18_prep_dev()
365 s->video_dev.lock = &cx->serialize_lock; in cx18_prep_dev()
366 cx18_set_funcs(&s->video_dev); in cx18_prep_dev()
[all …]
Dcx18-streams.h22 return s->video_dev.v4l2_dev || in cx18_stream_enabled()
Dcx18-fileops.c793 v4l2_fh_init(&item->fh, &s->video_dev); in cx18_serialized_open()
832 struct video_device *video_dev = video_devdata(filp); in cx18_v4l2_open() local
833 struct cx18_stream *s = video_get_drvdata(video_dev); in cx18_v4l2_open()
839 video_device_node_name(video_dev)); in cx18_v4l2_open()
/linux-6.1.9/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.1.9/drivers/media/pci/saa7134/
Dsaa7134-core.c860 ret = media_entity_pads_init(&dev->video_dev->entity, 1, in saa7134_create_entities()
965 if (dev->video_dev) { in saa7134_unregister_video()
966 if (video_is_registered(dev->video_dev)) in saa7134_unregister_video()
967 vb2_video_unregister_device(dev->video_dev); in saa7134_unregister_video()
969 video_device_release(dev->video_dev); in saa7134_unregister_video()
970 dev->video_dev = NULL; in saa7134_unregister_video()
1204 dev->video_dev = vdev_init(dev,&saa7134_video_template,"video"); in saa7134_initdev()
1205 dev->video_dev->ctrl_handler = &dev->ctrl_handler; in saa7134_initdev()
1206 dev->video_dev->lock = &dev->lock; in saa7134_initdev()
1207 dev->video_dev->queue = &dev->video_vbq; in saa7134_initdev()
[all …]
/linux-6.1.9/drivers/media/pci/sta2x11/
Dsta2x11_vip.c114 struct video_device video_dev; member
1062 vip->video_dev = video_dev_template; in sta2x11_vip_init_one()
1063 vip->video_dev.v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one()
1064 vip->video_dev.queue = &vip->vb_vidq; in sta2x11_vip_init_one()
1065 vip->video_dev.lock = &vip->v4l_lock; in sta2x11_vip_init_one()
1066 video_set_drvdata(&vip->video_dev, vip); in sta2x11_vip_init_one()
1068 ret = video_register_device(&vip->video_dev, VFL_TYPE_VIDEO, -1); in sta2x11_vip_init_one()
1098 video_set_drvdata(&vip->video_dev, NULL); in sta2x11_vip_init_one()
1100 vb2_video_unregister_device(&vip->video_dev); in sta2x11_vip_init_one()
1143 video_set_drvdata(&vip->video_dev, NULL); in sta2x11_vip_remove_one()
[all …]
/linux-6.1.9/drivers/media/pci/cx23885/
Dcx23885-video.c1224 if (dev->video_dev) { in cx23885_video_unregister()
1225 if (video_is_registered(dev->video_dev)) in cx23885_video_unregister()
1226 video_unregister_device(dev->video_dev); in cx23885_video_unregister()
1228 video_device_release(dev->video_dev); in cx23885_video_unregister()
1229 dev->video_dev = NULL; in cx23885_video_unregister()
1354 dev->video_dev = cx23885_vdev_init(dev, dev->pci, in cx23885_video_register()
1356 dev->video_dev->queue = &dev->vb2_vidq; in cx23885_video_register()
1357 dev->video_dev->device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | in cx23885_video_register()
1364 dev->video_dev->device_caps |= V4L2_CAP_TUNER; in cx23885_video_register()
1368 dev->video_dev->device_caps |= V4L2_CAP_TUNER; in cx23885_video_register()
[all …]
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/saa7146/
Dhexium_orion.c55 struct video_device video_dev; member
371 if (0 != saa7146_register_device(&hexium->video_dev, dev, "hexium orion", VFL_TYPE_VIDEO)) { in hexium_attach()
392 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
Dhexium_gemini.c58 struct video_device video_dev; member
297 ret = saa7146_register_device(&hexium->video_dev, dev, "hexium gemini", VFL_TYPE_VIDEO); in hexium_attach()
318 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
/linux-6.1.9/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()
Dhdpvr.h65 struct video_device video_dev; member
/linux-6.1.9/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
Dvpbe_display.c1294 vbd = &vpbe_display_layer->video_dev; in init_vpbe_layer()
1335 &vpbe_display_layer->video_dev); in register_device()
1337 vpbe_display_layer->video_dev.queue = &vpbe_display_layer->buffer_queue; in register_device()
1338 err = video_register_device(&vpbe_display_layer->video_dev, in register_device()
1347 video_set_drvdata(&vpbe_display_layer->video_dev, in register_device()
1458 video_unregister_device(&disp_dev->dev[k]->video_dev); in vpbe_display_probe()
1486 video_unregister_device(&vpbe_display_layer->video_dev); in vpbe_display_remove()
Dvpif_display.c832 ch->video_dev.tvnorms = chan_cfg->outputs[index].output.std; in vpif_set_output()
1184 ch, &ch->video_dev); in vpif_probe_complete()
1187 vdev = &ch->video_dev; in vpif_probe_complete()
1197 video_set_drvdata(&ch->video_dev, ch); in vpif_probe_complete()
1209 video_unregister_device(&ch->video_dev); in vpif_probe_complete()
1321 video_unregister_device(&ch->video_dev); in vpif_remove()
/linux-6.1.9/include/media/davinci/
Dvpbe_display.h82 struct video_device video_dev; member
Dvpfe_capture.h92 struct video_device video_dev; member
/linux-6.1.9/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()
/linux-6.1.9/drivers/media/platform/ti/am437x/
Dam437x-vpfe.h228 struct video_device video_dev; member
/linux-6.1.9/drivers/media/platform/allegro-dvt/
Dallegro-core.c147 struct video_device video_dev; member
3596 struct video_device *video_dev = &dev->video_dev; in allegro_register_device() local
3598 strscpy(video_dev->name, "allegro", sizeof(video_dev->name)); in allegro_register_device()
3599 video_dev->fops = &allegro_fops; in allegro_register_device()
3600 video_dev->ioctl_ops = &allegro_ioctl_ops; in allegro_register_device()
3601 video_dev->release = video_device_release_empty; in allegro_register_device()
3602 video_dev->lock = &dev->lock; in allegro_register_device()
3603 video_dev->v4l2_dev = &dev->v4l2_dev; in allegro_register_device()
3604 video_dev->vfl_dir = VFL_DIR_M2M; in allegro_register_device()
3605 video_dev->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in allegro_register_device()
[all …]

12