Home
last modified time | relevance | path

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

12

/drivers/media/radio/
Dradio-timb.c35 struct video_device video_dev; member
169 strlcpy(tr->video_dev.name, "Timberdale Radio", in timbradio_probe()
170 sizeof(tr->video_dev.name)); in timbradio_probe()
171 tr->video_dev.fops = &timbradio_fops; in timbradio_probe()
172 tr->video_dev.ioctl_ops = &timbradio_ioctl_ops; in timbradio_probe()
173 tr->video_dev.release = video_device_release_empty; in timbradio_probe()
174 tr->video_dev.minor = -1; in timbradio_probe()
175 tr->video_dev.lock = &tr->lock; in timbradio_probe()
182 tr->video_dev.v4l2_dev = &tr->v4l2_dev; in timbradio_probe()
184 err = video_register_device(&tr->video_dev, VFL_TYPE_RADIO, -1); in timbradio_probe()
[all …]
/drivers/media/pci/cx18/
Dcx18-streams.c249 struct video_device *video_dev = s->video_dev; in cx18_stream_init() local
253 s->video_dev = video_dev; in cx18_stream_init()
318 s->video_dev = NULL; in cx18_prep_dev()
362 s->video_dev = video_device_alloc(); in cx18_prep_dev()
363 if (s->video_dev == NULL) { in cx18_prep_dev()
369 snprintf(s->video_dev->name, sizeof(s->video_dev->name), "%s %s", in cx18_prep_dev()
372 s->video_dev->num = num; in cx18_prep_dev()
373 s->video_dev->v4l2_dev = &cx->v4l2_dev; in cx18_prep_dev()
374 s->video_dev->fops = &cx18_v4l2_enc_fops; in cx18_prep_dev()
375 s->video_dev->release = video_device_release; in cx18_prep_dev()
[all …]
Dcx18-streams.h36 return s->video_dev || in cx18_stream_enabled()
Dcx18-fileops.c800 v4l2_fh_init(&item->fh, s->video_dev); in cx18_serialized_open()
839 struct video_device *video_dev = video_devdata(filp); in cx18_v4l2_open() local
840 struct cx18_stream *s = video_get_drvdata(video_dev); in cx18_v4l2_open()
846 video_device_node_name(video_dev)); in cx18_v4l2_open()
/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c135 struct media_entity *entity = &video->video_dev.entity; in vpfe_prepare_pipeline()
152 if (entity == &video->video_dev.entity) in vpfe_prepare_pipeline()
292 entity = &pipe->inputs[0]->video_dev.entity; in vpfe_pipeline_enable()
332 entity = &pipe->inputs[0]->video_dev.entity; in vpfe_pipeline_disable()
405 v4l2_fh_init(&handle->vfh, &video->video_dev); in vpfe_open()
877 video->video_dev.tvnorms |= inps->std; in vpfe_s_input()
1575 video->video_dev.release = video_device_release; in vpfe_video_init()
1576 video->video_dev.fops = &vpfe_fops; in vpfe_video_init()
1577 video->video_dev.ioctl_ops = &vpfe_ioctl_ops; in vpfe_video_init()
1578 video->video_dev.minor = -1; in vpfe_video_init()
[all …]
Dvpfe_video.h72 container_of(vdev, struct vpfe_video_device, video_dev)
83 struct video_device video_dev; member
/drivers/media/pci/sta2x11/
Dsta2x11_vip.c130 struct video_device *video_dev; member
1088 vip->video_dev = video_device_alloc(); in sta2x11_vip_init_one()
1089 if (!vip->video_dev) { in sta2x11_vip_init_one()
1094 vip->video_dev = &video_dev_template; in sta2x11_vip_init_one()
1095 vip->video_dev->v4l2_dev = &vip->v4l2_dev; in sta2x11_vip_init_one()
1096 vip->video_dev->queue = &vip->vb_vidq; in sta2x11_vip_init_one()
1097 set_bit(V4L2_FL_USE_FH_PRIO, &vip->video_dev->flags); in sta2x11_vip_init_one()
1098 video_set_drvdata(vip->video_dev, vip); in sta2x11_vip_init_one()
1100 ret = video_register_device(vip->video_dev, VFL_TYPE_GRABBER, -1); in sta2x11_vip_init_one()
1130 video_set_drvdata(vip->video_dev, NULL); in sta2x11_vip_init_one()
[all …]
/drivers/media/usb/hdpvr/
Dhdpvr-core.c73 if (dev->video_dev) in hdpvr_delete()
74 video_device_release(dev->video_dev); in hdpvr_delete()
421 video_device_node_name(dev->video_dev)); in hdpvr_probe()
444 video_device_node_name(dev->video_dev)); in hdpvr_disconnect()
460 video_unregister_device(dev->video_dev); in hdpvr_disconnect()
Dhdpvr-video.c1225 dev->video_dev = video_device_alloc(); in hdpvr_register_videodev()
1226 if (!dev->video_dev) { in hdpvr_register_videodev()
1232 *dev->video_dev = hdpvr_video_template; in hdpvr_register_videodev()
1233 strcpy(dev->video_dev->name, "Hauppauge HD PVR"); in hdpvr_register_videodev()
1234 dev->video_dev->v4l2_dev = &dev->v4l2_dev; in hdpvr_register_videodev()
1235 video_set_drvdata(dev->video_dev, dev); in hdpvr_register_videodev()
1236 set_bit(V4L2_FL_USE_FH_PRIO, &dev->video_dev->flags); in hdpvr_register_videodev()
1238 res = video_register_device(dev->video_dev, VFL_TYPE_GRABBER, devnum); in hdpvr_register_videodev()
Dhdpvr.h69 struct video_device *video_dev; member
/drivers/media/platform/blackfin/
Dbfin_capture.c69 struct video_device *video_dev; member
208 struct video_device *vfd = bcap_dev->video_dev; in bcap_open()
1005 bcap_dev->video_dev = vfd; in bcap_probe()
1045 ret = video_register_device(bcap_dev->video_dev, VFL_TYPE_GRABBER, -1); in bcap_probe()
1051 video_set_drvdata(bcap_dev->video_dev, bcap_dev); in bcap_probe()
1133 video_unregister_device(bcap_dev->video_dev); in bcap_probe()
1134 bcap_dev->video_dev = NULL; in bcap_probe()
1140 if (bcap_dev->video_dev) in bcap_probe()
1141 video_device_release(bcap_dev->video_dev); in bcap_probe()
1158 video_unregister_device(bcap_dev->video_dev); in bcap_remove()
/drivers/media/pci/zoran/
Dzoran_card.c1036 zr->video_dev = video_device_alloc(); in zr36057_init()
1037 if (!zr->stat_com || !zr->video_dev) { in zr36057_init()
1052 memcpy(zr->video_dev, &zoran_template, sizeof(zoran_template)); in zr36057_init()
1053 zr->video_dev->parent = &zr->pci_dev->dev; in zr36057_init()
1054 strcpy(zr->video_dev->name, ZR_DEVNAME(zr)); in zr36057_init()
1058 zr->video_dev->vfl_dir = VFL_DIR_M2M; in zr36057_init()
1059 err = video_register_device(zr->video_dev, VFL_TYPE_GRABBER, video_nr[zr->id]); in zr36057_init()
1062 video_set_drvdata(zr->video_dev, zr); in zr36057_init()
1079 kfree(zr->video_dev); in zr36057_init()
1117 video_unregister_device(zr->video_dev); in zoran_remove()
/drivers/media/pci/saa7146/
Dhexium_gemini.c69 struct video_device *video_dev; member
305 ret = saa7146_register_device(&hexium->video_dev, dev, "hexium gemini", VFL_TYPE_GRABBER); in hexium_attach()
323 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
Dhexium_orion.c66 struct video_device *video_dev; member
377 if (0 != saa7146_register_device(&hexium->video_dev, dev, "hexium orion", VFL_TYPE_GRABBER)) { in hexium_attach()
398 saa7146_unregister_device(&hexium->video_dev, dev); in hexium_detach()
Dmxb.c154 struct video_device *video_dev; member
728 if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_GRABBER)) { in mxb_attach()
757 saa7146_unregister_device(&mxb->video_dev,dev); in mxb_detach()
/drivers/media/pci/saa7134/
Dsaa7134-core.c815 if (dev->video_dev) { in saa7134_unregister_video()
816 if (video_is_registered(dev->video_dev)) in saa7134_unregister_video()
817 video_unregister_device(dev->video_dev); in saa7134_unregister_video()
819 video_device_release(dev->video_dev); in saa7134_unregister_video()
820 dev->video_dev = NULL; in saa7134_unregister_video()
1048 dev->video_dev = vdev_init(dev,&saa7134_video_template,"video"); in saa7134_initdev()
1049 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER, in saa7134_initdev()
1057 dev->name, video_device_node_name(dev->video_dev)); in saa7134_initdev()
/drivers/media/platform/davinci/
Dvpif_display.c1334 ch->video_dev->tvnorms = chan_cfg->outputs[index].output.std; in vpif_set_output()
1760 video_device_release(ch->video_dev); in vpif_probe()
1776 ch->video_dev = vfd; in vpif_probe()
1859 ch->video_dev->lock = &common->lock; in vpif_probe()
1860 video_set_drvdata(ch->video_dev, ch); in vpif_probe()
1869 (int)ch, (int)&ch->video_dev); in vpif_probe()
1871 err = video_register_device(ch->video_dev, in vpif_probe()
1884 video_unregister_device(ch->video_dev); in vpif_probe()
1885 video_device_release(ch->video_dev); in vpif_probe()
1886 ch->video_dev = NULL; in vpif_probe()
[all …]
Dvpif_capture.c1342 ch->video_dev->tvnorms = chan_cfg->inputs[index].input.std; in vpif_set_input()
2117 video_device_release(ch->video_dev); in vpif_probe()
2131 ch->video_dev = vfd; in vpif_probe()
2185 ch->video_dev->lock = &common->lock; in vpif_probe()
2188 video_set_drvdata(ch->video_dev, ch); in vpif_probe()
2195 err = video_register_device(ch->video_dev, in vpif_probe()
2208 video_unregister_device(ch->video_dev); in vpif_probe()
2218 video_device_release(ch->video_dev); in vpif_probe()
2248 video_unregister_device(ch->video_dev); in vpif_remove()
Dvpif_capture.h109 struct video_device *video_dev; member
Dvpfe_capture.c1895 vpfe_dev->video_dev = vfd; in vpfe_probe()
1917 "video_dev=%x\n", (int)&vpfe_dev->video_dev); in vpfe_probe()
1919 ret = video_register_device(vpfe_dev->video_dev, in vpfe_probe()
1932 video_set_drvdata(vpfe_dev->video_dev, vpfe_dev); in vpfe_probe()
1984 video_unregister_device(vpfe_dev->video_dev); in vpfe_probe()
1988 if (!video_is_registered(vpfe_dev->video_dev)) in vpfe_probe()
1989 video_device_release(vpfe_dev->video_dev); in vpfe_probe()
2012 video_unregister_device(vpfe_dev->video_dev); in vpfe_remove()
Dvpif_display.h117 struct video_device *video_dev; /* Identifies video device for member
Dvpbe_display.c1697 vbd = &vpbe_display_layer->video_dev; in init_vpbe_layer()
1739 (int)&vpbe_display_layer->video_dev); in register_device()
1741 err = video_register_device(&vpbe_display_layer->video_dev, in register_device()
1750 video_set_drvdata(&vpbe_display_layer->video_dev, in register_device()
1845 &vpbe_display_layer->video_dev); in vpbe_display_probe()
1879 video_unregister_device(&vpbe_display_layer->video_dev); in vpbe_display_remove()
/drivers/media/platform/
Dtimblogiw.c48 struct video_device video_dev; member
819 lw->video_dev = timblogiw_template; in timblogiw_probe()
826 lw->video_dev.v4l2_dev = &lw->v4l2_dev; in timblogiw_probe()
829 video_set_drvdata(&lw->video_dev, lw); in timblogiw_probe()
831 err = video_register_device(&lw->video_dev, VFL_TYPE_GRABBER, 0); in timblogiw_probe()
855 video_unregister_device(&lw->video_dev); in timblogiw_remove()
/drivers/media/pci/cx88/
Dcx88-video.c1685 if (dev->video_dev) { in cx8800_unregister_video()
1686 if (video_is_registered(dev->video_dev)) in cx8800_unregister_video()
1687 video_unregister_device(dev->video_dev); in cx8800_unregister_video()
1689 video_device_release(dev->video_dev); in cx8800_unregister_video()
1690 dev->video_dev = NULL; in cx8800_unregister_video()
1855 dev->video_dev = cx88_vdev_init(core,dev->pci, in cx8800_initdev()
1857 video_set_drvdata(dev->video_dev, dev); in cx8800_initdev()
1858 dev->video_dev->ctrl_handler = &core->video_hdl; in cx8800_initdev()
1859 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER, in cx8800_initdev()
1867 core->name, video_device_node_name(dev->video_dev)); in cx8800_initdev()
/drivers/media/pci/cx23885/
Dcx23885-video.c1800 if (dev->video_dev) { in cx23885_video_unregister()
1801 if (video_is_registered(dev->video_dev)) in cx23885_video_unregister()
1802 video_unregister_device(dev->video_dev); in cx23885_video_unregister()
1804 video_device_release(dev->video_dev); in cx23885_video_unregister()
1805 dev->video_dev = NULL; in cx23885_video_unregister()
1897 dev->video_dev = cx23885_vdev_init(dev, dev->pci, in cx23885_video_register()
1899 err = video_register_device(dev->video_dev, VFL_TYPE_GRABBER, in cx23885_video_register()
1907 dev->name, video_device_node_name(dev->video_dev)); in cx23885_video_register()

12