Home
last modified time | relevance | path

Searched refs:os_handle (Results 1 – 21 of 21) sorted by relevance

/external/libusb/libusb/
Dio.c2672 int usbi_add_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle, short poll_events) in usbi_add_event_source() argument
2679 usbi_dbg(ctx, "add " USBI_OS_HANDLE_FORMAT_STRING " events %d", os_handle, poll_events); in usbi_add_event_source()
2680 ievent_source->data.os_handle = os_handle; in usbi_add_event_source()
2689 ctx->fd_added_cb(os_handle, poll_events, ctx->fd_cb_user_data); in usbi_add_event_source()
2696 void usbi_remove_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle) in usbi_remove_event_source() argument
2701 usbi_dbg(ctx, "remove " USBI_OS_HANDLE_FORMAT_STRING, os_handle); in usbi_remove_event_source()
2704 if (ievent_source->data.os_handle == os_handle) { in usbi_remove_event_source()
2711 usbi_dbg(ctx, "couldn't find " USBI_OS_HANDLE_FORMAT_STRING " to remove", os_handle); in usbi_remove_event_source()
2723 ctx->fd_removed_cb(os_handle, ctx->fd_cb_user_data); in usbi_remove_event_source()
Dlibusbi.h802 usbi_os_handle_t os_handle; member
808 int usbi_add_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle,
810 void usbi_remove_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle);
/external/crosvm/rutabaga_gfx/ffi/src/
Dlib.rs74 pub os_handle: i32, field
407 os_handle: RutabagaDescriptor::from_raw_descriptor((*hnd).os_handle), in rutabaga_resource_create_blob()
442 (*handle).os_handle = hnd.os_handle.into_raw_descriptor(); in rutabaga_resource_export_blob()
/external/crosvm/rutabaga_gfx/src/
Dgfxstream.rs73 pub os_handle: i64, field
351 let raw_descriptor = stream_handle.os_handle as RawDescriptor; in export_blob()
355 os_handle: handle, in export_blob()
592 stream_handle.os_handle = handle.os_handle.into_raw_descriptor() as i64; in create_blob()
Drutabaga_utils.rs633 pub os_handle: SafeDescriptor, field
641 .os_handle in try_clone()
645 os_handle: clone, in try_clone()
Dvirgl_renderer.rs57 let dmabuf_fd = handle.os_handle.try_clone()?.into_raw_descriptor(); in import_resource()
353 os_handle: handle, in export_blob()
676 os_handle: fence, in export_fence()
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dminigbm.rs156 os_handle: dmabuf, in allocate_memory()
178 os_handle: dmabuf, in allocate_memory()
Dsystem_gralloc.rs50 os_handle: shm.into(), in allocate_memory()
Dvulkano_gralloc.rs453 os_handle: descriptor, in allocate_memory()
/external/crosvm/devices/src/virtio/gpu/
Dvirtio_gpu.rs262 let dmabuf = to_safe_descriptor(rutabaga.export_blob(resource.resource_id).ok()?.os_handle); in import_resource_to_display()
635 Ok(handle) => to_safe_descriptor(handle.os_handle), in export_resource()
672 handle: to_safe_descriptor(handle.os_handle), in export_fence()
832 os_handle: to_rutabaga_descriptor(descriptor), in resource_create_blob()
862 descriptor: to_safe_descriptor(export.os_handle), in resource_map_blob()
870 descriptor: to_safe_descriptor(export.os_handle), in resource_map_blob()
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/vulkano_gralloc/sys/
Dwindows.rs48 handle: handle.os_handle.as_raw_descriptor(), in import_memory()
Dunix.rs54 file: File::from_raw_descriptor(handle.os_handle.into_raw_descriptor()), in import_memory()
/external/libusb/libusb/os/
Devents_posix.c209 fds[i].fd = ievent_source->data.os_handle; in usbi_alloc_event_data()
276 if (ievent_source->data.os_handle != fds[n].fd) in usbi_wait_for_events()
Devents_windows.c159 handles[i] = ievent_source->data.os_handle; in usbi_alloc_event_data()
/external/crosvm/rutabaga_gfx/ffi/src/tests/
Drutabaga_test.c244 CHECK(handle.os_handle >= 0); in test_command_submission()
246 result = close(handle.os_handle); in test_command_submission()
/external/libusb/include/libusb/
Dlibusbi.h802 usbi_os_handle_t os_handle; member
808 int usbi_add_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle,
810 void usbi_remove_event_source(struct libusb_context *ctx, usbi_os_handle_t os_handle);
/external/crosvm/rutabaga_gfx/ffi/src/include/
Drutabaga_gfx_ffi.h134 int64_t os_handle; member
/external/crosvm/rutabaga_gfx/src/cross_domain/sys/
Dunix.rs211 *descriptor = handle.os_handle.as_raw_descriptor(); in send()
/external/crosvm/rutabaga_gfx/src/cross_domain/
Dcross_domain.rs683 os_handle: descriptor, in context_create_blob()
/external/crosvm/vm_control/src/
Dlib.rs413 os_handle: to_rutabaga_desciptor(descriptor), in map()
/external/crosvm/devices/src/virtio/
Dwl.rs521 let safe_descriptor = to_safe_descriptor(handle.os_handle); in allocate_and_register_gpu_memory()