Lines Matching refs:vdev_enc
1766 struct video_device *vdev_enc; in wave5_vpu_enc_register_device() local
1769 vdev_enc = devm_kzalloc(dev->v4l2_dev.dev, sizeof(*vdev_enc), GFP_KERNEL); in wave5_vpu_enc_register_device()
1770 if (!vdev_enc) in wave5_vpu_enc_register_device()
1780 dev->video_dev_enc = vdev_enc; in wave5_vpu_enc_register_device()
1782 strscpy(vdev_enc->name, VPU_ENC_DEV_NAME, sizeof(vdev_enc->name)); in wave5_vpu_enc_register_device()
1783 vdev_enc->fops = &wave5_vpu_enc_fops; in wave5_vpu_enc_register_device()
1784 vdev_enc->ioctl_ops = &wave5_vpu_enc_ioctl_ops; in wave5_vpu_enc_register_device()
1785 vdev_enc->release = video_device_release_empty; in wave5_vpu_enc_register_device()
1786 vdev_enc->v4l2_dev = &dev->v4l2_dev; in wave5_vpu_enc_register_device()
1787 vdev_enc->vfl_dir = VFL_DIR_M2M; in wave5_vpu_enc_register_device()
1788 vdev_enc->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in wave5_vpu_enc_register_device()
1789 vdev_enc->lock = &dev->dev_lock; in wave5_vpu_enc_register_device()
1791 ret = video_register_device(vdev_enc, VFL_TYPE_VIDEO, -1); in wave5_vpu_enc_register_device()
1795 video_set_drvdata(vdev_enc, dev); in wave5_vpu_enc_register_device()