Lines Matching refs:vfh
88 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
89 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
90 file->private_data = &subdev_fh->vfh; in subdev_open()
113 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
114 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
125 struct v4l2_fh *vfh = file->private_data; in subdev_close() local
126 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close()
131 v4l2_fh_del(vfh); in subdev_close()
132 v4l2_fh_exit(vfh); in subdev_close()
608 struct v4l2_fh *vfh = file->private_data; in subdev_do_ioctl() local
609 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl()
645 if (!vfh->ctrl_handler) in subdev_do_ioctl()
647 return v4l2_queryctrl(vfh->ctrl_handler, arg); in subdev_do_ioctl()
650 if (!vfh->ctrl_handler) in subdev_do_ioctl()
652 return v4l2_query_ext_ctrl(vfh->ctrl_handler, arg); in subdev_do_ioctl()
655 if (!vfh->ctrl_handler) in subdev_do_ioctl()
657 return v4l2_querymenu(vfh->ctrl_handler, arg); in subdev_do_ioctl()
660 if (!vfh->ctrl_handler) in subdev_do_ioctl()
662 return v4l2_g_ctrl(vfh->ctrl_handler, arg); in subdev_do_ioctl()
665 if (!vfh->ctrl_handler) in subdev_do_ioctl()
667 return v4l2_s_ctrl(vfh, vfh->ctrl_handler, arg); in subdev_do_ioctl()
670 if (!vfh->ctrl_handler) in subdev_do_ioctl()
672 return v4l2_g_ext_ctrls(vfh->ctrl_handler, in subdev_do_ioctl()
676 if (!vfh->ctrl_handler) in subdev_do_ioctl()
678 return v4l2_s_ext_ctrls(vfh, vfh->ctrl_handler, in subdev_do_ioctl()
682 if (!vfh->ctrl_handler) in subdev_do_ioctl()
684 return v4l2_try_ext_ctrls(vfh->ctrl_handler, in subdev_do_ioctl()
691 return v4l2_event_dequeue(vfh, arg, file->f_flags & O_NONBLOCK); in subdev_do_ioctl()
694 return v4l2_subdev_call(sd, core, subscribe_event, vfh, arg); in subdev_do_ioctl()
697 return v4l2_subdev_call(sd, core, unsubscribe_event, vfh, arg); in subdev_do_ioctl()
1102 struct v4l2_fh *vfh = file->private_data; in subdev_do_ioctl_lock() local
1103 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl_lock()