Home
last modified time | relevance | path

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

/external/libusb/libusb/
Ddescriptor.c111 usbi_err(ctx, "short endpoint descriptor read %d/%d", in parse_endpoint()
118 usbi_err(ctx, "unexpected descriptor %x (expected %x)", in parse_endpoint()
132 usbi_err(ctx, "invalid endpoint bLength (%d)", header.bLength); in parse_endpoint()
146 usbi_err(ctx, "invalid extra ep desc len (%d)", in parse_endpoint()
243 usbi_err(ctx, "unexpected descriptor %x (expected %x)", in parse_interface()
248 usbi_err(ctx, "invalid interface bLength (%d)", in parse_interface()
259 usbi_err(ctx, "too many endpoints (%d)", ifp->bNumEndpoints); in parse_interface()
283 usbi_err(ctx, in parse_interface()
381 usbi_err(ctx, "short config descriptor read %d/%d", in parse_configuration()
388 usbi_err(ctx, "unexpected descriptor %x (expected %x)", in parse_configuration()
[all …]
Dio.c1216 usbi_err(ITRANSFER_CTX(transfer), in calculate_timeout()
1577 usbi_err(TRANSFER_CTX(transfer), in libusb_cancel_transfer()
1649 usbi_err(ITRANSFER_CTX(itransfer), "failed to set timer for next timeout, errno=%d", errno); in usbi_handle_transfer_completion()
2162 usbi_err(ctx, "poll failed %d err=%d", r, errno); in handle_events()
2208 usbi_err(ctx, "backend handle_transfer_completion failed with error %d", ret); in handle_events()
2261 usbi_err(ctx, "backend handle_events failed with error %d", r); in handle_events()
2588 usbi_err(ctx, "failed to read monotonic clock, errno=%d", errno); in libusb_get_next_timeout()
2742 usbi_err(ctx, "external polling of libusb's internal descriptors "\ in libusb_get_pollfds()
Dcore.c761 usbi_err(DEVICE_CTX(dev), "too many configurations"); in usbi_sanitize_device()
1056 usbi_err(DEVICE_CTX(dev), in libusb_get_max_packet_size()
1111 usbi_err(DEVICE_CTX(dev), in libusb_get_max_iso_packet_size()
1356usbi_err(ctx, "Device handle closed while transfer was still being processed, but the device is st… in do_close()
1361usbi_err(ctx, "A cancellation hasn't even been scheduled on the transfer for which the device is c… in do_close()
1503 usbi_err(HANDLE_CTX(dev_handle), "zero bytes returned in ctrl transfer?"); in libusb_get_configuration()
Dsync.c55 usbi_err(ctx, "libusb_handle_events failed: %s, cancelling transfer and retrying", in sync_transfer_wait_for_completion()
Dhotplug.c220 usbi_err(ctx, "error allocating hotplug message"); in usbi_hotplug_notification()
Dlibusbi.h196 #define usbi_err(ctx, ...) _usbi_log(ctx, LIBUSB_LOG_LEVEL_ERROR, __VA_ARGS__) macro
219 static inline void usbi_err(struct libusb_context *ctx, const char *format, ...)
/external/libusb/libusb/os/
Dlinux_udev.c62 usbi_err(NULL, "could not create udev context"); in linux_udev_start_event_monitor()
68 usbi_err(NULL, "could not initialize udev monitor"); in linux_udev_start_event_monitor()
74 usbi_err(NULL, "could not initialize udev monitor filter for \"usb\" subsystem"); in linux_udev_start_event_monitor()
79 usbi_err(NULL, "failed to enable the udev monitor"); in linux_udev_start_event_monitor()
89 usbi_err(NULL, "getting udev monitor fd flags (%d)", errno); in linux_udev_start_event_monitor()
94 usbi_err(NULL, "setting udev monitor fd flags (%d)", errno); in linux_udev_start_event_monitor()
100 usbi_err(NULL, "could not create udev control pipe"); in linux_udev_start_event_monitor()
106 usbi_err(NULL, "creating hotplug event thread (%d)", r); in linux_udev_start_event_monitor()
245 usbi_err(NULL, "ignoring udev action %s", udev_action); in udev_hotplug_event()
264 usbi_err(ctx, "error creating udev enumerator"); in linux_udev_scan_devices()
Dwindows_nt_common.c154 usbi_err(ctx, "hash table already allocated"); in htab_create()
173 usbi_err(ctx, "could not allocate space for hash table"); in htab_create()
260 usbi_err(NULL, "hash table is full (%d entries)", htab_size); in htab_hash()
274 usbi_err(NULL, "could not duplicate string for hash table"); in htab_hash()
309 usbi_err(ctx, "could not resolve DLL functions"); in windows_init_clock()
323 usbi_err(ctx, "could not get process affinity: %s", windows_error_str(0)); in windows_init_clock()
336 usbi_err(ctx, "could not create event: %s", windows_error_str(0)); in windows_init_clock()
343 usbi_err(ctx, "unable to create timer thread - aborting"); in windows_init_clock()
353 usbi_err(ctx, "failed to wait for timer thread to become ready - aborting"); in windows_init_clock()
406 usbi_err(NULL, "GetMessage failed for timer thread: %s", windows_error_str(0)); in windows_clock_gettime_threaded()
[all …]
Dlinux_netlink.c61 usbi_err(NULL, "failed to get netlink fd flags (%d)", errno); in set_fd_cloexec_nb()
67 usbi_err(NULL, "failed to set netlink fd flags (%d)", errno); in set_fd_cloexec_nb()
75 usbi_err(NULL, "failed to get netlink fd status flags (%d)", errno); in set_fd_cloexec_nb()
81 usbi_err(NULL, "failed to set netlink fd status flags (%d)", errno); in set_fd_cloexec_nb()
110 usbi_err(NULL, "failed to create netlink socket (%d)", errno); in linux_netlink_start_event_monitor()
120 usbi_err(NULL, "failed to bind netlink socket (%d)", errno); in linux_netlink_start_event_monitor()
126 usbi_err(NULL, "failed to set netlink socket SO_PASSCRED option (%d)", errno); in linux_netlink_start_event_monitor()
132 usbi_err(NULL, "failed to create netlink control pipe"); in linux_netlink_start_event_monitor()
138 usbi_err(NULL, "failed to create netlink event thread (%d)", ret); in linux_netlink_start_event_monitor()
313 usbi_err(NULL, "error receiving message from netlink (%d)", errno); in linux_netlink_read_message()
[all …]
Dlinux_usbfs.c203 usbi_err(ctx, "File doesn't exist, wait %d ms and try again", delay/1000); in _get_usbfs_fd()
214 usbi_err(ctx, "libusb couldn't open USB device %s: %s", in _get_usbfs_fd()
217 usbi_err(ctx, "libusb requires write access to USB " in _get_usbfs_fd()
383 usbi_err(ctx, "could not find usbfs"); in op_init()
394 usbi_err(ctx, "error checking for bulk continuation support"); in op_init()
406 usbi_err(ctx, "error checking for zero length packet support"); in op_init()
418 usbi_err(ctx, "error checking for sysfs descriptors"); in op_init()
427 usbi_err(ctx, "error checking for sysfs busnum"); in op_init()
460 usbi_err(ctx, "error starting hotplug event monitor"); in op_init()
531 usbi_err(DEVICE_CTX(dev), in _open_sysfs_attr()
[all …]
Dhaiku_usb_backend.cpp83 usbi_err(TRANSFER_CTX(fLibusbTransfer), "failed control transfer"); in Do()
103 usbi_err(TRANSFER_CTX(fLibusbTransfer), "failed bulk transfer"); in Do()
111 usbi_err(TRANSFER_CTX(fLibusbTransfer), "failed interrupt transfer"); in Do()
132 usbi_err(TRANSFER_CTX(fLibusbTransfer), "failed isochronous transfer"); in Do()
145 usbi_err(TRANSFER_CTX(fLibusbTransfer), "failed isochronous transfer"); in Do()
165 usbi_err(TRANSFER_CTX(fLibusbTransfer), "Unknown type of transfer"); in Do()
232 usbi_err(NULL,"failed to open device"); in USBDeviceHandle()
295 usbi_err(NULL, "Error retrieving active alternate interface"); in SetAltSetting()
305 usbi_err(NULL, "Error setting alternate interface"); in SetAltSetting()
455 usbi_err(NULL, "failed retrieving configuration descriptor"); in Initialise()
[all …]
Dwindows_usbdk.c118 usbi_err(ctx, "UsbDkHelper API %s not found, error %d", api_name, GetLastError()); in get_usbdk_proc_addr()
135 usbi_err(ctx, "Failed to load UsbDkHelper.dll, error %d", GetLastError()); in load_usbdk_helper_dll()
265 usbi_err(ctx, "failed to allocate configuration descriptors holder"); in usbdk_cache_config_descriptors()
274 usbi_err(ctx, "failed to retrieve configuration descriptors"); in usbdk_cache_config_descriptors()
347 usbi_err(ctx, "failed to allocate a new device structure"); in usbdk_get_device_list()
361 usbi_err(ctx, "cannot append new device to list"); in usbdk_get_device_list()
423 usbi_err(DEVICE_CTX(dev_handle->dev), "Redirector startup failed"); in usbdk_open()
436 usbi_err(ctx, "Redirector shutdown failed"); in usbdk_close()
467 usbi_err(ctx, "SetAltsetting failed: %s", windows_error_str(0)); in usbdk_set_interface_altsetting()
487 usbi_err(ctx, "ResetPipe failed: %s", windows_error_str(0)); in usbdk_clear_halt()
[all …]
Dwindows_winusb.c271 usbi_err(ctx, "Could not obtain device info data for index %u: %s", in get_devinfo_data()
308 usbi_err(ctx, "Could not obtain device info data for index %u: %s", in get_interface_details()
320 usbi_err(ctx, "Could not obtain interface data for index %u: %s", in get_interface_details()
332 usbi_err(ctx, "could not access interface data (dummy) for index %u: %s", in get_interface_details()
337usbi_err(ctx, "program assertion failed - http://msdn.microsoft.com/en-us/library/ms792901.aspx is… in get_interface_details()
343 usbi_err(ctx, "could not allocate interface data for index %u.", _index); in get_interface_details()
350 usbi_err(ctx, "could not access interface data (actual) for index %u: %s", in get_interface_details()
377 usbi_err(ctx, "Could not obtain device info data for index %u: %s", in get_interface_details_filter()
389 usbi_err(ctx, "Could not obtain interface data for index %u: %s", in get_interface_details_filter()
401 usbi_err(ctx, "could not access interface data (dummy) for index %u: %s", in get_interface_details_filter()
[all …]
Ddarwin_usb.c435 usbi_err (ctx, "could not add hotplug event source: %s", darwin_error_str (kresult)); in darwin_event_thread_main()
447 usbi_err (ctx, "could not add hotplug event source: %s", darwin_error_str (kresult)); in darwin_event_thread_main()
649 usbi_err (ctx, "device has no configurations"); in darwin_check_configuration()
1076usbi_err (HANDLE_CTX (dev_handle), "CreateDeviceAsyncEventSource: %s", darwin_error_str(kresult)); in darwin_open()
1109 usbi_err (HANDLE_CTX (dev_handle), "Close called on a device that was not open!"); in darwin_close()
1229usbi_err (HANDLE_CTX (dev_handle), "can't get number of endpoints for interface: %s", darwin_error… in get_endpoints()
1246 usbi_err (HANDLE_CTX (dev_handle), "can't get alternate setting for interface"); in get_endpoints()
1293 usbi_err (HANDLE_CTX (dev_handle), "could not set configuration"); in darwin_claim_interface()
1299 usbi_err (HANDLE_CTX (dev_handle), "darwin_get_interface: %s", darwin_error_str(kresult)); in darwin_claim_interface()
1305 usbi_err (HANDLE_CTX (dev_handle), "interface not found"); in darwin_claim_interface()
[all …]
Dwince_usb.c174 usbi_err(ctx, "could not create semaphore: %s", windows_error_str(0)); in wince_init()
181 usbi_err(ctx, "failure to access semaphore: %s", windows_error_str(0)); in wince_init()
194 usbi_err(ctx, "could not resolve DLL functions"); in wince_init()
202 usbi_err(ctx, "could not connect to driver"); in wince_init()
291 usbi_err(ctx, "could not get devices: %s", windows_error_str(0)); in wince_get_device_list()
300 usbi_err(ctx, "could not get device address for %u: %s", (unsigned int)i, windows_error_str(0)); in wince_get_device_list()
589 usbi_err(ctx, "Failed to create event for async transfer"); in wince_submit_control_or_bulk_transfer()
613 usbi_err(ctx, "UkwIssue%sTransfer failed: error %u", in wince_submit_control_or_bulk_transfer()
642 usbi_err(TRANSFER_CTX(transfer), "unknown endpoint type %d", transfer->type); in wince_submit_transfer()
727 usbi_err(ITRANSFER_CTX(itransfer), "detected I/O error: %s", windows_error_str(io_result)); in wince_transfer_callback()
[all …]
Dhaiku_usb_raw.cpp99 usbi_err(DEVICE_CTX(device), "failed getting configuration descriptor"); in haiku_get_config_descriptor()
178 usbi_err(ITRANSFER_CTX(itransfer), "error in transfer"); in haiku_handle_transfer_completion()
Dhaiku_pollfs.cpp254 usbi_err(NULL, "usb_raw not published"); in RosterLooper()
261 usbi_err(NULL, "error creating BMessenger object"); in RosterLooper()
Dpoll_windows.c661 usbi_err(NULL, "this function should only used for signaling"); in usbi_write()
698 usbi_err(NULL, "this function should only used for signaling"); in usbi_read()
Dnetbsd_usb.c159 usbi_err(ctx, "could not open %s", devnode); in netbsd_get_device_list()
Dopenbsd_usb.c167 usbi_err(ctx, "could not open %s", busnode); in obsd_get_device_list()
/external/libusb-compat/libusb/
Dcore.c56 #define usbi_err(fmt...) _usbi_log(LOG_LEVEL_ERROR, fmt) macro
147 usbi_err("initialization failed!"); in usb_init()
182 usbi_err("get_device_list failed with error %d", r); in find_busses()
255 usbi_err("find_busses failed with error %d", r); in usb_find_busses()
518 usbi_err("error %d getting device descriptor", r); in initialize_device()
630 usbi_err("couldn't initialize device %d.%d (error %d)", in usb_find_devices()
663 usbi_err("could not open device, error %d", r); in usb_open()
/external/libusb/include/libusb/
Dlibusbi.h196 #define usbi_err(ctx, ...) _usbi_log(ctx, LIBUSB_LOG_LEVEL_ERROR, __VA_ARGS__) macro
219 static inline void usbi_err(struct libusb_context *ctx, const char *format, ...)