Lines Matching refs:subdev_fh
56 struct v4l2_subdev_fh *subdev_fh; in subdev_open() local
62 subdev_fh = kzalloc(sizeof(*subdev_fh), GFP_KERNEL); in subdev_open()
63 if (subdev_fh == NULL) in subdev_open()
66 ret = subdev_fh_init(subdev_fh, sd); in subdev_open()
68 kfree(subdev_fh); in subdev_open()
72 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
73 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
74 file->private_data = &subdev_fh->vfh; in subdev_open()
86 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open()
97 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
98 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
99 subdev_fh_free(subdev_fh); in subdev_open()
100 kfree(subdev_fh); in subdev_open()
110 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close() local
113 sd->internal_ops->close(sd, subdev_fh); in subdev_close()
120 subdev_fh_free(subdev_fh); in subdev_close()
121 kfree(subdev_fh); in subdev_close()
184 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl() local
302 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
314 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
332 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
355 sd, pad, set_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
373 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->pad, in subdev_do_ioctl()
388 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->pad, in subdev_do_ioctl()
423 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->pad, in subdev_do_ioctl()
436 sd, pad, get_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
448 sd, pad, set_selection, subdev_fh->pad, sel); in subdev_do_ioctl()