Lines Matching refs:handle
289 struct uvc_file_handle *handle; in uvc_v4l2_open() local
291 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in uvc_v4l2_open()
292 if (handle == NULL) in uvc_v4l2_open()
295 v4l2_fh_init(&handle->vfh, vdev); in uvc_v4l2_open()
296 v4l2_fh_add(&handle->vfh); in uvc_v4l2_open()
298 handle->device = &uvc->video; in uvc_v4l2_open()
299 file->private_data = &handle->vfh; in uvc_v4l2_open()
310 struct uvc_file_handle *handle = to_uvc_file_handle(file->private_data); in uvc_v4l2_release() local
311 struct uvc_video *video = handle->device; in uvc_v4l2_release()
321 v4l2_fh_del(&handle->vfh); in uvc_v4l2_release()
322 v4l2_fh_exit(&handle->vfh); in uvc_v4l2_release()
323 kfree(handle); in uvc_v4l2_release()