Lines Matching refs:vfd
1104 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local
1108 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node()
1109 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node()
1112 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node()
1113 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node()
1114 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1115 vfd->minor = -1; in s3c_camif_register_video_node()
1116 vfd->release = video_device_release_empty; in s3c_camif_register_video_node()
1117 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1139 ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); in s3c_camif_register_video_node()
1143 video_set_drvdata(vfd, vp); in s3c_camif_register_video_node()
1159 vfd->ctrl_handler = &vp->ctrl_handler; in s3c_camif_register_video_node()
1160 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE; in s3c_camif_register_video_node()
1162 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in s3c_camif_register_video_node()
1167 vfd->name, video_device_node_name(vfd)); in s3c_camif_register_video_node()
1173 media_entity_cleanup(&vfd->entity); in s3c_camif_register_video_node()
1179 struct video_device *vfd = &camif->vp[idx].vdev; in s3c_camif_unregister_video_node() local
1181 if (video_is_registered(vfd)) { in s3c_camif_unregister_video_node()
1182 video_unregister_device(vfd); in s3c_camif_unregister_video_node()
1183 media_entity_cleanup(&vfd->entity); in s3c_camif_unregister_video_node()
1184 v4l2_ctrl_handler_free(vfd->ctrl_handler); in s3c_camif_unregister_video_node()