Lines Matching refs:subdev_fh

57 	struct v4l2_subdev_fh *subdev_fh;  in subdev_open()  local
63 subdev_fh = kzalloc(sizeof(*subdev_fh), GFP_KERNEL); in subdev_open()
64 if (subdev_fh == NULL) in subdev_open()
67 ret = subdev_fh_init(subdev_fh, sd); in subdev_open()
69 kfree(subdev_fh); in subdev_open()
73 v4l2_fh_init(&subdev_fh->vfh, vdev); in subdev_open()
74 v4l2_fh_add(&subdev_fh->vfh); in subdev_open()
75 file->private_data = &subdev_fh->vfh; in subdev_open()
87 ret = sd->internal_ops->open(sd, subdev_fh); in subdev_open()
98 v4l2_fh_del(&subdev_fh->vfh); in subdev_open()
99 v4l2_fh_exit(&subdev_fh->vfh); in subdev_open()
100 subdev_fh_free(subdev_fh); in subdev_open()
101 kfree(subdev_fh); in subdev_open()
111 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_close() local
114 sd->internal_ops->close(sd, subdev_fh); in subdev_close()
121 subdev_fh_free(subdev_fh); in subdev_close()
122 kfree(subdev_fh); in subdev_close()
185 struct v4l2_subdev_fh *subdev_fh = to_v4l2_subdev_fh(vfh); in subdev_do_ioctl() local
264 return v4l2_subdev_call(sd, pad, get_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
274 return v4l2_subdev_call(sd, pad, set_fmt, subdev_fh->pad, format); in subdev_do_ioctl()
291 sd, pad, get_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
313 sd, pad, set_selection, subdev_fh->pad, &sel); in subdev_do_ioctl()
330 return v4l2_subdev_call(sd, pad, enum_mbus_code, subdev_fh->pad, in subdev_do_ioctl()
344 return v4l2_subdev_call(sd, pad, enum_frame_size, subdev_fh->pad, in subdev_do_ioctl()
376 return v4l2_subdev_call(sd, pad, enum_frame_interval, subdev_fh->pad, in subdev_do_ioctl()
388 sd, pad, get_selection, subdev_fh->pad, sel); in subdev_do_ioctl()
399 sd, pad, set_selection, subdev_fh->pad, sel); in subdev_do_ioctl()