Lines Matching refs:subdev_fh
51 struct v4l2_subdev_fh *subdev_fh; in subdev_open() local
54 subdev_fh = kzalloc(sizeof(*subdev_fh), GFP_KERNEL); in subdev_open()
55 if (subdev_fh == NULL) in subdev_open()
58 ret = subdev_fh_init(subdev_fh, sd); in subdev_open()
60 kfree(subdev_fh); in subdev_open()
64 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
65 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
66 file->private_data = &subdev_fh->vfh; in subdev_open()
76 subdev_fh->owner = owner; in subdev_open()
80 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open()
88 module_put(subdev_fh->owner); in subdev_open()
89 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
90 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
91 subdev_fh_free(subdev_fh); in subdev_open()
92 kfree(subdev_fh); in subdev_open()
102 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close() local
105 sd->internal_ops->close(sd, subdev_fh); in subdev_close()
106 module_put(subdev_fh->owner); in subdev_close()
109 subdev_fh_free(subdev_fh); in subdev_close()
110 kfree(subdev_fh); in subdev_close()
391 subdev_ioctl_get_state(struct v4l2_subdev *sd, struct v4l2_subdev_fh *subdev_fh, in subdev_ioctl_get_state() argument
423 subdev_fh->state : in subdev_ioctl_get_state()
752 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl_lock() local
755 state = subdev_ioctl_get_state(sd, subdev_fh, cmd, arg); in subdev_do_ioctl_lock()