Lines Matching refs:dec_vdev
2821 jpeg->dec_vdev = video_device_alloc(); in mxc_jpeg_probe()
2822 if (!jpeg->dec_vdev) { in mxc_jpeg_probe()
2828 snprintf(jpeg->dec_vdev->name, in mxc_jpeg_probe()
2829 sizeof(jpeg->dec_vdev->name), in mxc_jpeg_probe()
2832 snprintf(jpeg->dec_vdev->name, in mxc_jpeg_probe()
2833 sizeof(jpeg->dec_vdev->name), in mxc_jpeg_probe()
2836 jpeg->dec_vdev->fops = &mxc_jpeg_fops; in mxc_jpeg_probe()
2837 jpeg->dec_vdev->ioctl_ops = &mxc_jpeg_ioctl_ops; in mxc_jpeg_probe()
2838 jpeg->dec_vdev->minor = -1; in mxc_jpeg_probe()
2839 jpeg->dec_vdev->release = video_device_release; in mxc_jpeg_probe()
2840 jpeg->dec_vdev->lock = &jpeg->lock; /* lock for ioctl serialization */ in mxc_jpeg_probe()
2841 jpeg->dec_vdev->v4l2_dev = &jpeg->v4l2_dev; in mxc_jpeg_probe()
2842 jpeg->dec_vdev->vfl_dir = VFL_DIR_M2M; in mxc_jpeg_probe()
2843 jpeg->dec_vdev->device_caps = V4L2_CAP_STREAMING | in mxc_jpeg_probe()
2846 v4l2_disable_ioctl(jpeg->dec_vdev, VIDIOC_DECODER_CMD); in mxc_jpeg_probe()
2847 v4l2_disable_ioctl(jpeg->dec_vdev, VIDIOC_TRY_DECODER_CMD); in mxc_jpeg_probe()
2849 v4l2_disable_ioctl(jpeg->dec_vdev, VIDIOC_ENCODER_CMD); in mxc_jpeg_probe()
2850 v4l2_disable_ioctl(jpeg->dec_vdev, VIDIOC_TRY_ENCODER_CMD); in mxc_jpeg_probe()
2852 ret = video_register_device(jpeg->dec_vdev, VFL_TYPE_VIDEO, -1); in mxc_jpeg_probe()
2857 video_set_drvdata(jpeg->dec_vdev, jpeg); in mxc_jpeg_probe()
2861 jpeg->dec_vdev->num, VIDEO_MAJOR, in mxc_jpeg_probe()
2862 jpeg->dec_vdev->minor); in mxc_jpeg_probe()
2866 jpeg->dec_vdev->num, VIDEO_MAJOR, in mxc_jpeg_probe()
2867 jpeg->dec_vdev->minor); in mxc_jpeg_probe()
2875 video_device_release(jpeg->dec_vdev); in mxc_jpeg_probe()
2952 video_unregister_device(jpeg->dec_vdev); in mxc_jpeg_remove()