Home
last modified time | relevance | path

Searched refs:vfd (Results 1 – 25 of 56) sorted by relevance

123

/linux/drivers/media/test-drivers/vivid/
H A Dvivid-core.c1428 struct video_device *vfd; in vivid_create_devnodes() local
1432 vfd = &dev->vid_cap_dev; in vivid_create_devnodes()
1433 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1435 vfd->fops = &vivid_fops; in vivid_create_devnodes()
1436 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes()
1437 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes()
1438 vfd->release = video_device_release_empty; in vivid_create_devnodes()
1439 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1440 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_devnodes()
1441 vfd->tvnorms = tvnorms_cap; in vivid_create_devnodes()
[all …]
/linux/drivers/media/common/saa7146/
H A Dsaa7146_fops.c343 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument
352 vfd->fops = &video_fops; in saa7146_register_device()
354 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device()
357 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device()
360 vfd->release = video_device_release_empty; in saa7146_register_device()
361 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
362 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
363 vfd->tvnorms = 0; in saa7146_register_device()
365 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device()
366 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
[all …]
/linux/drivers/staging/media/imx/
H A Dimx-media-dev-common.c86 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
158 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists()
197 struct video_device *vfd, in imx_media_inherit_controls() argument
207 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls()
209 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls()
227 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls()
243 struct video_device *vfd; in imx_media_link_notify() local
274 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify()
275 if (!vfd->ctrl_handler) in imx_media_link_notify()
279 vfd->entity.name); in imx_media_link_notify()
[all …]
H A Dimx-media-csc-scaler.c137 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, in device_run()
253 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", in ipu_csc_scaler_s_fmt()
523 v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); in ipu_csc_scaler_start_streaming()
541 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", in ipu_csc_scaler_start_streaming()
851 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local
854 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register()
856 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_csc_scaler_device_register()
858 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register()
862 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register()
863 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register()
[all …]
H A Dimx-media-utils.c660 struct video_device *vfd; in imx_media_pipeline_pad() local
686 vfd = media_entity_to_video_device(pad->entity); in imx_media_pipeline_pad()
687 if (buftype == vfd->queue->type) in imx_media_pipeline_pad()
711 struct video_device *vfd; in find_pipeline_entity() local
719 vfd = media_entity_to_video_device(start); in find_pipeline_entity()
720 if (buftype == vfd->queue->type) in find_pipeline_entity()
721 return &vfd->entity; in find_pipeline_entity()
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-m2m.c354 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
435 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
510 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection()
624 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
715 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
720 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
721 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
722 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
723 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
724 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
H A Dfimc-capture.c1714 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local
1732 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device()
1733 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device()
1735 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device()
1736 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device()
1737 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device()
1738 vfd->minor = -1; in fimc_register_capture_device()
1739 vfd->release = video_device_release_empty; in fimc_register_capture_device()
1740 vfd->queue = q; in fimc_register_capture_device()
1741 vfd->lock = &fimc->lock; in fimc_register_capture_device()
[all …]
/linux/drivers/media/test-drivers/visl/
H A Dvisl-core.c283 struct visl_dev *dev = container_of(vdev, struct visl_dev, vfd); in visl_device_release()
436 struct video_device *vfd; in visl_probe() local
450 dev->vfd = visl_videodev; in visl_probe()
451 vfd = &dev->vfd; in visl_probe()
452 vfd->lock = &dev->dev_mutex; in visl_probe()
453 vfd->v4l2_dev = &dev->v4l2_dev; in visl_probe()
455 video_set_drvdata(vfd, dev); in visl_probe()
475 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in visl_probe()
482 "Device registered as /dev/video%d\n", vfd->num); in visl_probe()
484 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in visl_probe()
[all …]
/linux/drivers/staging/media/sunxi/cedrus/
H A Dcedrus.c453 struct video_device *vfd; in cedrus_probe() local
462 dev->vfd = cedrus_video_device; in cedrus_probe()
482 vfd = &dev->vfd; in cedrus_probe()
483 vfd->lock = &dev->dev_mutex; in cedrus_probe()
484 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe()
486 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe()
487 video_set_drvdata(vfd, dev); in cedrus_probe()
507 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe()
514 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe()
516 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe()
[all …]
/linux/drivers/media/platform/ti/omap/
H A Domap_vout.c577 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1309 struct video_device *vfd; in omap_vout_setup_video_data() local
1372 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1374 if (!vfd) { in omap_vout_setup_video_data()
1380 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1381 vfd->release = video_device_release; in omap_vout_setup_video_data()
1382 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1384 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1386 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1387 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
[all …]
/linux/drivers/media/platform/verisilicon/
H A Dhantro_drv.c887 struct video_device *vfd; in hantro_add_func() local
899 vfd = &func->vdev; in hantro_add_func()
900 vfd->fops = &hantro_fops; in hantro_add_func()
901 vfd->release = video_device_release_empty; in hantro_add_func()
902 vfd->lock = &vpu->vpu_mutex; in hantro_add_func()
903 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func()
904 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func()
905 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func()
906 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
907 strscpy(vfd->name, match->compatible, sizeof(vfd->name)); in hantro_add_func()
[all …]
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc.c1304 struct video_device *vfd; in s5p_mfc_probe() local
1371 vfd = video_device_alloc(); in s5p_mfc_probe()
1372 if (!vfd) { in s5p_mfc_probe()
1377 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1378 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1379 vfd->release = video_device_release; in s5p_mfc_probe()
1380 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1381 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1382 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1383 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe()
[all …]
/linux/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d.c601 struct video_device *vfd; in dma2d_probe() local
646 vfd = video_device_alloc(); in dma2d_probe()
647 if (!vfd) { in dma2d_probe()
653 *vfd = dma2d_videodev; in dma2d_probe()
654 vfd->lock = &dev->mutex; in dma2d_probe()
655 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe()
656 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in dma2d_probe()
666 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in dma2d_probe()
672 video_set_drvdata(vfd, dev); in dma2d_probe()
673 dev->vfd = vfd; in dma2d_probe()
[all …]
/linux/drivers/media/platform/samsung/s5p-g2d/
H A Dg2d.c621 struct video_device *vfd; in g2d_probe() local
680 vfd = video_device_alloc(); in g2d_probe()
681 if (!vfd) { in g2d_probe()
686 *vfd = g2d_videodev; in g2d_probe()
687 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe()
688 vfd->lock = &dev->mutex; in g2d_probe()
689 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
690 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe()
709 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe()
714 video_set_drvdata(vfd, dev); in g2d_probe()
[all …]
/linux/drivers/media/platform/nxp/
H A Dmx2_emmaprp.c198 struct video_device *vfd; member
801 struct video_device *vfd; in emmaprp_probe() local
829 vfd = video_device_alloc(); in emmaprp_probe()
830 if (!vfd) { in emmaprp_probe()
836 *vfd = emmaprp_videodev; in emmaprp_probe()
837 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
838 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
840 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
841 pcdev->vfd = vfd; in emmaprp_probe()
843 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe()
[all …]
/linux/drivers/media/test-drivers/vicodec/
H A Dvicodec-core.c100 struct video_device vfd; member
1829 struct video_device *vfd = video_devdata(file); in vicodec_open() local
1837 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open()
1845 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1847 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1937 mutex_unlock(vfd->lock); in vicodec_open()
1943 struct video_device *vfd = video_devdata(file); in vicodec_release() local
1946 mutex_lock(vfd->lock); in vicodec_release()
1948 mutex_unlock(vfd->lock); in vicodec_release()
2050 struct video_device *vfd; in register_instance() local
[all …]
/linux/drivers/media/platform/nxp/dw100/
H A Ddw100.c69 struct video_device vfd; member
1472 struct video_device *vfd = &dw_dev->vfd; in dw100_init_video_device() local
1474 vfd->vfl_dir = VFL_DIR_M2M; in dw100_init_video_device()
1475 vfd->fops = &dw100_fops; in dw100_init_video_device()
1476 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in dw100_init_video_device()
1477 vfd->ioctl_ops = &dw100_ioctl_ops; in dw100_init_video_device()
1478 vfd->minor = -1; in dw100_init_video_device()
1479 vfd->release = video_device_release_empty; in dw100_init_video_device()
1480 vfd->v4l2_dev = &dw_dev->v4l2_dev; in dw100_init_video_device()
1481 vfd->lock = &dw_dev->vfd_mutex; in dw100_init_video_device()
[all …]
/linux/drivers/media/platform/rockchip/rga/
H A Drga.c798 struct video_device *vfd; in rga_probe() local
847 vfd = video_device_alloc(); in rga_probe()
848 if (!vfd) { in rga_probe()
853 *vfd = rga_videodev; in rga_probe()
854 vfd->lock = &rga->mutex; in rga_probe()
855 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe()
857 video_set_drvdata(vfd, rga); in rga_probe()
858 rga->vfd = vfd; in rga_probe()
892 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in rga_probe()
899 vfd->name, video_device_node_name(vfd)); in rga_probe()
[all …]
/linux/drivers/media/pci/solo6x10/
H A Dsolo6x10-v4l2-enc.c539 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf()
784 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input()
1293 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1294 if (!solo_enc->vfd) in solo_enc_alloc()
1297 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1298 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc()
1299 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1300 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc()
1301 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1302 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
[all …]
/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_rotate.c735 struct video_device *vfd; in rotate_probe() local
742 dev->vfd = rotate_video_device; in rotate_probe()
791 vfd = &dev->vfd; in rotate_probe()
792 vfd->lock = &dev->dev_mutex; in rotate_probe()
793 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe()
795 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe()
797 video_set_drvdata(vfd, dev); in rotate_probe()
799 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe()
807 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe()
825 video_unregister_device(&dev->vfd); in rotate_probe()
[all …]
/linux/drivers/media/platform/amlogic/meson-ge2d/
H A Dge2d.c93 struct video_device *vfd; member
919 struct video_device *vfd; in ge2d_probe() local
978 vfd = video_device_alloc(); in ge2d_probe()
979 if (!vfd) { in ge2d_probe()
985 *vfd = ge2d_videodev; in ge2d_probe()
986 vfd->lock = &ge2d->mutex; in ge2d_probe()
987 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe()
989 video_set_drvdata(vfd, ge2d); in ge2d_probe()
990 ge2d->vfd = vfd; in ge2d_probe()
1000 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in ge2d_probe()
[all …]
/linux/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c801 struct video_device *vfd; in deinterlace_probe() local
808 dev->vfd = deinterlace_video_device; in deinterlace_probe()
864 vfd = &dev->vfd; in deinterlace_probe()
865 vfd->lock = &dev->dev_mutex; in deinterlace_probe()
866 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe()
868 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe()
870 video_set_drvdata(vfd, dev); in deinterlace_probe()
872 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe()
880 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
898 video_unregister_device(&dev->vfd); in deinterlace_probe()
[all …]
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-vbi.c677 struct video_device *vfd; in saa7164_vbi_alloc() local
682 vfd = video_device_alloc(); in saa7164_vbi_alloc()
683 if (NULL == vfd) in saa7164_vbi_alloc()
686 *vfd = *template; in saa7164_vbi_alloc()
687 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc()
690 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc()
691 vfd->release = video_device_release; in saa7164_vbi_alloc()
692 return vfd; in saa7164_vbi_alloc()
/linux/drivers/media/platform/
H A Dm2m-deinterlace.c123 struct video_device vfd; member
913 struct video_device *vfd; in deinterlace_probe() local
942 vfd = &pcdev->vfd; in deinterlace_probe()
943 *vfd = deinterlace_videodev; in deinterlace_probe()
944 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
945 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe()
947 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe()
953 video_set_drvdata(vfd, pcdev); in deinterlace_probe()
955 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
969 video_unregister_device(&pcdev->vfd); in deinterlace_probe()
[all …]
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-common.c372 unsigned int i = vdev - dev->vfd; in to_coda_video_device()
2883 struct video_device *vfd = &dev->vfd[i]; in coda_register_device() local
2891 strscpy(vfd->name, dev->devtype->vdevs[i]->name, sizeof(vfd->name)); in coda_register_device()
2892 vfd->fops = &coda_fops; in coda_register_device()
2893 vfd->ioctl_ops = &coda_ioctl_ops; in coda_register_device()
2894 vfd->release = video_device_release_empty; in coda_register_device()
2895 vfd->lock = &dev->dev_mutex; in coda_register_device()
2896 vfd->v4l2_dev = &dev->v4l2_dev; in coda_register_device()
2897 vfd->vfl_dir = VFL_DIR_M2M; in coda_register_device()
2898 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in coda_register_device()
[all …]

123