Lines Matching defs:vdev
658 struct video_device *vdev = video_devdata(file);
670 v4l2_fh_init(&ctx->fh, vdev);
742 struct video_device *vdev = &m2m->vdev;
752 snprintf(vdev->name, sizeof(vdev->name), "mxc_isi.m2m");
754 vdev->fops = &mxc_isi_m2m_fops;
755 vdev->ioctl_ops = &mxc_isi_m2m_ioctl_ops;
756 vdev->v4l2_dev = v4l2_dev;
757 vdev->minor = -1;
758 vdev->release = video_device_release_empty;
759 vdev->vfl_dir = VFL_DIR_M2M;
761 vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE;
762 video_set_drvdata(vdev, m2m);
773 ret = video_register_device(vdev, VFL_TYPE_VIDEO, -1);
796 vdev->entity.name = "mxc_isi.output";
797 vdev->entity.function = MEDIA_ENT_F_IO_V4L;
798 ret = media_entity_pads_init(&vdev->entity, 1, &m2m->pad);
802 ret = media_device_register_entity(v4l2_dev->mdev, &vdev->entity);
806 ret = media_create_pad_link(&vdev->entity, 0,
815 0, VIDEO_MAJOR, vdev->minor);
821 link = media_create_intf_link(&vdev->entity, &m2m->intf->intf,
829 link = media_create_intf_link(&m2m->pipe->video.vdev.entity,
843 media_device_unregister_entity(&vdev->entity);
845 media_entity_cleanup(&vdev->entity);
847 video_unregister_device(vdev);
858 struct video_device *vdev = &m2m->vdev;
860 video_unregister_device(vdev);
864 media_entity_cleanup(&vdev->entity);