Lines Matching refs:vfd

98 	struct video_device     vfd;  member
1819 struct video_device *vfd = video_devdata(file); in vicodec_open() local
1827 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open()
1835 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1837 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1923 mutex_unlock(vfd->lock); in vicodec_open()
1929 struct video_device *vfd = video_devdata(file); in vicodec_release() local
1932 mutex_lock(vfd->lock); in vicodec_release()
1934 mutex_unlock(vfd->lock); in vicodec_release()
2030 struct video_device *vfd; in register_instance() local
2041 dev_instance->vfd = vicodec_videodev; in register_instance()
2042 vfd = &dev_instance->vfd; in register_instance()
2043 vfd->lock = &dev_instance->mutex; in register_instance()
2044 vfd->v4l2_dev = &dev->v4l2_dev; in register_instance()
2045 strscpy(vfd->name, name, sizeof(vfd->name)); in register_instance()
2046 vfd->device_caps = V4L2_CAP_STREAMING | in register_instance()
2049 v4l2_disable_ioctl(vfd, VIDIOC_DECODER_CMD); in register_instance()
2050 v4l2_disable_ioctl(vfd, VIDIOC_TRY_DECODER_CMD); in register_instance()
2052 v4l2_disable_ioctl(vfd, VIDIOC_ENCODER_CMD); in register_instance()
2053 v4l2_disable_ioctl(vfd, VIDIOC_TRY_ENCODER_CMD); in register_instance()
2055 video_set_drvdata(vfd, dev); in register_instance()
2057 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in register_instance()
2064 name, vfd->num); in register_instance()
2126 &dev->stateful_enc.vfd, in vicodec_probe()
2134 &dev->stateful_dec.vfd, in vicodec_probe()
2142 &dev->stateless_dec.vfd, in vicodec_probe()
2165 video_unregister_device(&dev->stateless_dec.vfd); in vicodec_probe()
2169 video_unregister_device(&dev->stateful_dec.vfd); in vicodec_probe()
2172 video_unregister_device(&dev->stateful_enc.vfd); in vicodec_probe()
2195 video_unregister_device(&dev->stateful_enc.vfd); in vicodec_remove()
2196 video_unregister_device(&dev->stateful_dec.vfd); in vicodec_remove()
2197 video_unregister_device(&dev->stateless_dec.vfd); in vicodec_remove()