Home
last modified time | relevance | path

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

/third_party/libusb/libusb/
Dcore.c1250 struct libusb_device_handle *_dev_handle; in libusb_wrap_sys_device() local
1261 _dev_handle = calloc(1, PTR_ALIGN(sizeof(*_dev_handle)) + priv_size); in libusb_wrap_sys_device()
1262 if (!_dev_handle) in libusb_wrap_sys_device()
1265 usbi_mutex_init(&_dev_handle->lock); in libusb_wrap_sys_device()
1267 r = usbi_backend.wrap_sys_device(ctx, _dev_handle, sys_dev); in libusb_wrap_sys_device()
1270 usbi_mutex_destroy(&_dev_handle->lock); in libusb_wrap_sys_device()
1271 free(_dev_handle); in libusb_wrap_sys_device()
1276 list_add(&_dev_handle->list, &ctx->open_devs); in libusb_wrap_sys_device()
1278 *dev_handle = _dev_handle; in libusb_wrap_sys_device()
1306 struct libusb_device_handle *_dev_handle; in libusb_open() local
[all …]