Lines Matching refs:subdev_fh
48 struct v4l2_subdev_fh *subdev_fh; in subdev_open() local
51 subdev_fh = kzalloc(sizeof(*subdev_fh), GFP_KERNEL); in subdev_open()
52 if (subdev_fh == NULL) in subdev_open()
55 ret = subdev_fh_init(subdev_fh, sd); in subdev_open()
57 kfree(subdev_fh); in subdev_open()
61 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
62 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
63 file->private_data = &subdev_fh->vfh; in subdev_open()
73 subdev_fh->owner = owner; in subdev_open()
78 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open()
86 module_put(subdev_fh->owner); in subdev_open()
87 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
88 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
89 subdev_fh_free(subdev_fh); in subdev_open()
90 kfree(subdev_fh); in subdev_open()
100 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close() local
103 sd->internal_ops->close(sd, subdev_fh); in subdev_close()
104 module_put(subdev_fh->owner); in subdev_close()
107 subdev_fh_free(subdev_fh); in subdev_close()
108 kfree(subdev_fh); in subdev_close()
359 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl() local
509 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
520 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
534 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
556 sd, pad, set_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
567 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->pad, in subdev_do_ioctl()
575 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->pad, in subdev_do_ioctl()
600 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->pad, in subdev_do_ioctl()
609 sd, pad, get_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
620 sd, pad, set_selection, subdev_fh->pad, sel); in subdev_do_ioctl()