Home
last modified time | relevance | path

Searched refs:LIBUSB_SUCCESS (Results 1 – 25 of 30) sorted by relevance

12

/third_party/libusb/tests/
Dstress.c36 if (r != LIBUSB_SUCCESS) { in test_init_and_exit()
55 if (r != LIBUSB_SUCCESS) { in test_get_device_list()
87 if (r != LIBUSB_SUCCESS) { in test_many_device_lists()
128 if (r != LIBUSB_SUCCESS) { in test_default_context_change()
139 if (r != LIBUSB_SUCCESS) { in test_default_context_change()
/third_party/libusb/libusb/os/
Dwindows_usbdk.c142 return LIBUSB_SUCCESS; in load_usbdk_helper_dll()
229 return LIBUSB_SUCCESS; in usbdk_get_session_id_for_device()
267 return LIBUSB_SUCCESS; in usbdk_cache_config_descriptors()
316 int r = LIBUSB_SUCCESS; in usbdk_get_device_list()
341 if (usbdk_device_priv_init(ctx, dev, &devices[i]) != LIBUSB_SUCCESS) { in usbdk_get_device_list()
425 return LIBUSB_SUCCESS; in usbdk_open()
445 return LIBUSB_SUCCESS; in usbdk_get_configuration()
452 return LIBUSB_SUCCESS; in usbdk_set_configuration()
459 return LIBUSB_SUCCESS; in usbdk_claim_interface()
471 return LIBUSB_SUCCESS; in usbdk_set_interface_altsetting()
[all …]
Dhaiku_usb_backend.cpp208 return LIBUSB_SUCCESS; in SubmitTransfer()
220 return LIBUSB_SUCCESS; in CancelTransfer()
258 if (status == LIBUSB_SUCCESS) in ClaimInterface()
268 return LIBUSB_SUCCESS; in ReleaseInterface()
284 return LIBUSB_SUCCESS; in SetConfiguration()
300 return LIBUSB_SUCCESS; in SetAltSetting()
309 return LIBUSB_SUCCESS; in SetAltSetting()
326 return LIBUSB_SUCCESS; in ClearHalt()
411 return LIBUSB_SUCCESS; in ClaimInterface()
417 return LIBUSB_SUCCESS; in ReleaseInterface()
Dwindows_winusb.c254 return LIBUSB_SUCCESS; in get_interface_details()
310 return LIBUSB_SUCCESS; in get_interface_details()
342 return LIBUSB_SUCCESS; in get_interface_details_filter()
408 return LIBUSB_SUCCESS; in get_interface_details_filter()
498 if (r != LIBUSB_SUCCESS) { in windows_assign_endpoints()
510 return LIBUSB_SUCCESS; in windows_assign_endpoints()
530 if (r == LIBUSB_SUCCESS) in windows_assign_endpoints()
576 int r = LIBUSB_SUCCESS; in auto_claim()
591 && (libusb_claim_interface(transfer->dev_handle, current_interface) == LIBUSB_SUCCESS)) { in auto_claim()
628 if (r == LIBUSB_SUCCESS) in auto_release()
[all …]
Dopenbsd_usb.c219 return (LIBUSB_SUCCESS); in obsd_get_device_list()
244 return (LIBUSB_SUCCESS); in obsd_open()
312 return (LIBUSB_SUCCESS); in obsd_get_configuration()
342 return (LIBUSB_SUCCESS); in obsd_claim_interface()
357 return (LIBUSB_SUCCESS); in obsd_release_interface()
380 return (LIBUSB_SUCCESS); in obsd_set_interface_altsetting()
408 return (LIBUSB_SUCCESS); in obsd_clear_halt()
463 return (LIBUSB_SUCCESS); in obsd_submit_transfer()
553 return (LIBUSB_SUCCESS); in _cache_active_config_descriptor()
Dnetbsd_usb.c183 return (LIBUSB_SUCCESS); in netbsd_get_device_list()
210 return (LIBUSB_SUCCESS); in netbsd_open()
289 return (LIBUSB_SUCCESS); in netbsd_get_configuration()
316 return (LIBUSB_SUCCESS); in netbsd_claim_interface()
331 return (LIBUSB_SUCCESS); in netbsd_release_interface()
351 return (LIBUSB_SUCCESS); in netbsd_set_interface_altsetting()
371 return (LIBUSB_SUCCESS); in netbsd_clear_halt()
425 return (LIBUSB_SUCCESS); in netbsd_submit_transfer()
Dlinux_udev.c115 return LIBUSB_SUCCESS; in linux_udev_start_event_monitor()
158 return LIBUSB_SUCCESS; in linux_udev_stop_event_monitor()
245 if (LIBUSB_SUCCESS != r) { in udev_hotplug_event()
305 return LIBUSB_SUCCESS; in linux_udev_scan_devices()
Ddarwin_usb.c137 return LIBUSB_SUCCESS; in darwin_to_libusb()
203 return LIBUSB_SUCCESS; in ep_to_pipeRef()
599 if (LIBUSB_SUCCESS != rc) in darwin_init()
624 if (LIBUSB_SUCCESS != rc) { in darwin_init()
722 if (ret != LIBUSB_SUCCESS) in darwin_get_config_descriptor()
749 return LIBUSB_SUCCESS; in darwin_check_configuration()
792 return LIBUSB_SUCCESS; in darwin_check_configuration()
942 return LIBUSB_SUCCESS; in darwin_cache_device_descriptor()
987 enum libusb_error ret = LIBUSB_SUCCESS; in darwin_get_cached_device()
1087 enum libusb_error ret = LIBUSB_SUCCESS; in process_new_device()
[all …]
Dsunos_usb.c537 return (LIBUSB_SUCCESS); in sunos_fill_in_dev_info()
620 if (sunos_fill_in_dev_info(dn, dev) != LIBUSB_SUCCESS) { in sunos_add_devices()
728 return (LIBUSB_SUCCESS); in sunos_usb_open_ep0()
747 return (LIBUSB_SUCCESS); in sunos_usb_open_ep0()
818 return (LIBUSB_SUCCESS); in sunos_find_interface()
980 return (LIBUSB_SUCCESS); in sunos_open()
983 if ((ret = sunos_usb_open_ep0(hpriv, dpriv)) != LIBUSB_SUCCESS) { in sunos_open()
988 return (LIBUSB_SUCCESS); in sunos_open()
1066 return (LIBUSB_SUCCESS); in sunos_get_configuration()
1087 return (LIBUSB_SUCCESS); in sunos_set_configuration()
[all …]
Dlinux_usbfs.c391 return LIBUSB_SUCCESS; in op_init()
396 r = LIBUSB_SUCCESS; in op_init()
401 if (r == LIBUSB_SUCCESS) { in op_init()
403 if (r == LIBUSB_SUCCESS) in op_init()
436 return LIBUSB_SUCCESS; in op_set_option()
561 if (ret != LIBUSB_SUCCESS) in sysfs_scan_device()
619 return LIBUSB_SUCCESS; in linux_get_device_address()
636 return LIBUSB_SUCCESS; in linux_get_device_address()
762 return LIBUSB_SUCCESS; in parse_config_descriptors()
864 return LIBUSB_SUCCESS; in usbfs_get_active_config()
[all …]
Dwindows_common.c521 if (r != LIBUSB_SUCCESS) in windows_init()
526 if (r == LIBUSB_SUCCESS) { in windows_init()
555 r = LIBUSB_SUCCESS; in windows_init()
558 if ((init_count == 1) && (r != LIBUSB_SUCCESS)) { // First init failed? in windows_init()
630 return LIBUSB_SUCCESS; in windows_set_option()
764 if (r != LIBUSB_SUCCESS) { in windows_submit_transfer()
793 return LIBUSB_SUCCESS; in windows_cancel_transfer()
Dhaiku_usb_raw.cpp41 return LIBUSB_SUCCESS; in haiku_init()
64 return LIBUSB_SUCCESS; in haiku_open()
Dnull_usb.c25 return LIBUSB_SUCCESS; in null_get_device_list()
Dlinux_netlink.c140 return LIBUSB_SUCCESS; in linux_netlink_start_event_monitor()
171 return LIBUSB_SUCCESS; in linux_netlink_stop_event_monitor()
Dlinux_usbfs.h180 return LIBUSB_SUCCESS; in linux_start_event_monitor()
Devents_windows.c213 return LIBUSB_SUCCESS; in usbi_wait_for_events()
Devents_posix.c299 return LIBUSB_SUCCESS; in usbi_wait_for_events()
/third_party/libusb/examples/
Dhotplugtest.c40 if (LIBUSB_SUCCESS != rc) { in hotplug_callback()
52 if (LIBUSB_SUCCESS != rc) { in hotplug_callback()
105 if (LIBUSB_SUCCESS != rc) { in main()
113 if (LIBUSB_SUCCESS != rc) { in main()
Dtestlibusb.c51 if (LIBUSB_SUCCESS != ret) in print_endpoint()
218 if (LIBUSB_SUCCESS != ret) { in print_device()
Dxusb.c363 if (r != LIBUSB_SUCCESS) { in send_mass_storage_command()
387 if (r != LIBUSB_SUCCESS) { in get_mass_storage_status()
855 if (libusb_get_bos_descriptor(handle, &bos_desc) == LIBUSB_SUCCESS) { in test_device()
919 if (r != LIBUSB_SUCCESS) { in test_device()
Dsam3u_benchmark.c214 if (rc != LIBUSB_SUCCESS) in main()
/third_party/libusb/libusb/
Ddescriptor.c477 return LIBUSB_SUCCESS; in raw_desc_to_config()
741 return LIBUSB_SUCCESS; in libusb_get_ss_endpoint_companion_descriptor()
832 return LIBUSB_SUCCESS; in parse_bos()
946 return LIBUSB_SUCCESS; in libusb_get_usb_2_0_extension_descriptor()
1001 return LIBUSB_SUCCESS; in libusb_get_ss_usb_device_capability_descriptor()
1056 return LIBUSB_SUCCESS; in libusb_get_container_id_descriptor()
Dstrerror.c197 return LIBUSB_SUCCESS; in libusb_setlocale()
Dio.c1554 if (r == LIBUSB_SUCCESS) { in libusb_submit_transfer()
1561 if (r != LIBUSB_SUCCESS) in libusb_submit_transfer()
2025 if (r == LIBUSB_SUCCESS) in handle_timeout()
2225 if (r != LIBUSB_SUCCESS) { in handle_events()
2228 r = LIBUSB_SUCCESS; in handle_events()
Dhotplug.c316 return LIBUSB_SUCCESS; in libusb_hotplug_register_callback()

12