Lines Matching refs:subdev_fh
49 struct v4l2_subdev_fh *subdev_fh; in subdev_open() local
52 subdev_fh = kzalloc(sizeof(*subdev_fh), GFP_KERNEL); in subdev_open()
53 if (subdev_fh == NULL) in subdev_open()
56 ret = subdev_fh_init(subdev_fh, sd); in subdev_open()
58 kfree(subdev_fh); in subdev_open()
62 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
63 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
64 file->private_data = &subdev_fh->vfh; in subdev_open()
74 subdev_fh->owner = owner; in subdev_open()
79 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open()
87 module_put(subdev_fh->owner); in subdev_open()
88 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
89 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
90 subdev_fh_free(subdev_fh); in subdev_open()
91 kfree(subdev_fh); in subdev_open()
101 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close() local
104 sd->internal_ops->close(sd, subdev_fh); in subdev_close()
105 module_put(subdev_fh->owner); in subdev_close()
108 subdev_fh_free(subdev_fh); in subdev_close()
109 kfree(subdev_fh); in subdev_close()
333 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl() local
450 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
458 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
472 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
491 sd, pad, set_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
502 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->pad, in subdev_do_ioctl()
510 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->pad, in subdev_do_ioctl()
532 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->pad, in subdev_do_ioctl()
541 sd, pad, get_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
549 sd, pad, set_selection, subdev_fh->pad, sel); in subdev_do_ioctl()