Home
last modified time | relevance | path

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

/external/libusb/libusb/
Dlibusb.h542 struct libusb_context;
563 typedef struct libusb_context libusb_context; typedef
774 int libusb_init(libusb_context **ctx);
775 void libusb_exit(libusb_context *ctx);
776 void libusb_set_debug(libusb_context *ctx, int level);
778 ssize_t libusb_get_device_list(libusb_context *ctx,
807 libusb_device_handle *libusb_open_device_with_vid_pid(libusb_context *ctx,
1180 int libusb_try_lock_events(libusb_context *ctx);
1181 void libusb_lock_events(libusb_context *ctx);
1182 void libusb_unlock_events(libusb_context *ctx);
[all …]
Dio.c1004 int usbi_io_init(struct libusb_context *ctx) in usbi_io_init()
1045 void usbi_io_exit(struct libusb_context *ctx) in usbi_io_exit()
1094 struct libusb_context *ctx = ITRANSFER_CTX(transfer); in add_to_flying_list()
1220 struct libusb_context *ctx = TRANSFER_CTX(transfer); in libusb_submit_transfer()
1291 static int disarm_timerfd(struct libusb_context *ctx) in disarm_timerfd()
1310 static int arm_timerfd_for_next_timeout(struct libusb_context *ctx) in arm_timerfd_for_next_timeout()
1338 static int disarm_timerfd(struct libusb_context *ctx) in disarm_timerfd()
1342 static int arm_timerfd_for_next_timeout(struct libusb_context *ctx) in arm_timerfd_for_next_timeout()
1361 struct libusb_context *ctx = TRANSFER_CTX(transfer); in usbi_handle_transfer_completion()
1446 API_EXPORTED int libusb_try_lock_events(libusb_context *ctx) in libusb_try_lock_events()
[all …]
Dlibusbi.h115 void usbi_log(struct libusb_context *ctx, enum usbi_log_level,
141 extern struct libusb_context *usbi_default_context;
143 struct libusb_context { struct
210 struct libusb_context *ctx; argument
293 int usbi_io_init(struct libusb_context *ctx);
294 void usbi_io_exit(struct libusb_context *ctx);
296 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx,
298 struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx,
321 int usbi_add_pollfd(struct libusb_context *ctx, int fd, short events);
322 void usbi_remove_pollfd(struct libusb_context *ctx, int fd);
[all …]
Dcore.c43 struct libusb_context *usbi_default_context = NULL;
499 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, in usbi_alloc_device()
554 struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx, in usbi_get_device_by_session_id()
591 API_EXPORTED ssize_t libusb_get_device_list(libusb_context *ctx, in libusb_get_device_list()
859 struct libusb_context *ctx = DEVICE_CTX(dev); in libusb_open()
949 libusb_context *ctx, uint16_t vendor_id, uint16_t product_id) in libusb_open_device_with_vid_pid()
983 static void do_close(struct libusb_context *ctx, in do_close()
1008 struct libusb_context *ctx; in libusb_close()
1441 API_EXPORTED void libusb_set_debug(libusb_context *ctx, int level) in libusb_set_debug()
1455 API_EXPORTED int libusb_init(libusb_context **context) in libusb_init()
[all …]
Ddescriptor.c77 static int parse_endpoint(struct libusb_context *ctx, in parse_endpoint()
182 static int parse_interface(libusb_context *ctx, in parse_interface()
329 static int parse_configuration(struct libusb_context *ctx, in parse_configuration()
/external/libusb_aah/libusb/
Dlibusb.h637 struct libusb_context;
681 typedef struct libusb_context libusb_context; typedef
952 int LIBUSB_CALL libusb_init(libusb_context **ctx);
953 void LIBUSB_CALL libusb_exit(libusb_context *ctx);
954 void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
959 ssize_t LIBUSB_CALL libusb_get_device_list(libusb_context *ctx,
998 libusb_context *ctx, uint16_t vendor_id, uint16_t product_id);
1304 int LIBUSB_CALL libusb_try_lock_events(libusb_context *ctx);
1305 void LIBUSB_CALL libusb_lock_events(libusb_context *ctx);
1306 void LIBUSB_CALL libusb_unlock_events(libusb_context *ctx);
[all …]
Dlibusbi.h129 void usbi_log(struct libusb_context *ctx, enum usbi_log_level level,
132 void usbi_log_v(struct libusb_context *ctx, enum usbi_log_level level,
162 static inline void usbi_info(struct libusb_context *ctx, const char *fmt, ...) in usbi_info()
174 static inline void usbi_warn(struct libusb_context *ctx, const char *fmt, ...) in usbi_warn()
186 static inline void usbi_err(struct libusb_context *ctx, const char *fmt, ...) in usbi_err()
250 extern struct libusb_context *usbi_default_context;
252 struct libusb_context { struct
319 struct libusb_context *ctx; argument
415 int usbi_io_init(struct libusb_context *ctx);
416 void usbi_io_exit(struct libusb_context *ctx);
[all …]
Dio.c1132 int usbi_io_init(struct libusb_context *ctx) in usbi_io_init()
1188 void usbi_io_exit(struct libusb_context *ctx) in usbi_io_exit()
1243 struct libusb_context *ctx = ITRANSFER_CTX(transfer); in add_to_flying_list()
1373 struct libusb_context *ctx = TRANSFER_CTX(transfer); in libusb_submit_transfer()
1456 static int disarm_timerfd(struct libusb_context *ctx) in disarm_timerfd()
1475 static int arm_timerfd_for_next_timeout(struct libusb_context *ctx) in arm_timerfd_for_next_timeout()
1503 static int disarm_timerfd(struct libusb_context *ctx) in disarm_timerfd()
1508 static int arm_timerfd_for_next_timeout(struct libusb_context *ctx) in arm_timerfd_for_next_timeout()
1528 struct libusb_context *ctx = TRANSFER_CTX(transfer); in usbi_handle_transfer_completion()
1615 int API_EXPORTED libusb_try_lock_events(libusb_context *ctx) in libusb_try_lock_events()
[all …]
Dcore.c53 struct libusb_context *usbi_default_context = NULL;
526 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, in usbi_alloc_device()
582 struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx, in usbi_get_device_by_session_id()
619 ssize_t API_EXPORTED libusb_get_device_list(libusb_context *ctx, in libusb_get_device_list()
882 void usbi_fd_notification(struct libusb_context *ctx) in usbi_fd_notification()
944 struct libusb_context *ctx = DEVICE_CTX(dev); in libusb_open()
1007 libusb_context *ctx, uint16_t vendor_id, uint16_t product_id) in libusb_open_device_with_vid_pid()
1041 static void do_close(struct libusb_context *ctx, in do_close()
1112 struct libusb_context *ctx; in libusb_close()
1559 void API_EXPORTED libusb_set_debug(libusb_context *ctx, int level) in libusb_set_debug()
[all …]
Ddescriptor.c78 static int parse_endpoint(struct libusb_context *ctx, in parse_endpoint()
183 static int parse_interface(libusb_context *ctx, in parse_interface()
332 static int parse_configuration(struct libusb_context *ctx, in parse_configuration()
/external/libusb_aah/libusb/os/
Dwindows_usb.c49 extern void usbi_fd_notification(struct libusb_context *ctx);
56 static int winusb_init(struct libusb_context *ctx);
72 static int composite_init(struct libusb_context *ctx);
243 static bool get_devinfo_data(struct libusb_context *ctx, in get_devinfo_data()
279 static SP_DEVICE_INTERFACE_DETAIL_DATA_A *get_interface_details(struct libusb_context *ctx, in get_interface_details()
377 static int htab_create(struct libusb_context *ctx, unsigned long nel) in htab_create()
555 struct libusb_context *ctx = DEVICE_CTX(dev_handle->dev); in windows_assign_endpoints()
622 struct libusb_context *ctx = DEVICE_CTX(transfer->dev_handle->dev); in auto_claim()
693 static int windows_init(struct libusb_context *ctx) in windows_init()
834 struct libusb_context *ctx = DEVICE_CTX(dev); in force_hcd_device_descriptor()
[all …]
Dlinux_usbfs.c318 static int op_init(struct libusb_context *ctx) in op_init()
450 static int __read_sysfs_attr(struct libusb_context *ctx, in __read_sysfs_attr()
578 static int seek_to_next_config(struct libusb_context *ctx, int fd, in seek_to_next_config()
714 static int get_config_descriptor(struct libusb_context *ctx, int fd, in get_config_descriptor()
987 static int enumerate_device(struct libusb_context *ctx, in enumerate_device()
1039 static int usbfs_scan_busdir(struct libusb_context *ctx, in usbfs_scan_busdir()
1084 static int usbfs_get_device_list(struct libusb_context *ctx, in usbfs_get_device_list()
1136 static int sysfs_scan_device(struct libusb_context *ctx, in sysfs_scan_device()
1160 static int sysfs_get_device_list(struct libusb_context *ctx, in sysfs_get_device_list()
1195 static int op_get_device_list(struct libusb_context *ctx, in op_get_device_list()
[all …]
Ddarwin_usb.c256 struct libusb_context *ctx = (struct libusb_context *)ptr; in darwin_devices_detached()
312 struct libusb_context *ctx = (struct libusb_context *)arg0; in event_thread_main()
383 static int darwin_init(struct libusb_context *ctx) { in darwin_init()
506 static int darwin_check_configuration (struct libusb_context *ctx, struct libusb_device *dev, usb_d… in darwin_check_configuration()
563 static int darwin_cache_device_descriptor (struct libusb_context *ctx, struct libusb_device *dev, u… in darwin_cache_device_descriptor()
694 static int process_new_device (struct libusb_context *ctx, usb_device_t **device, UInt32 locationID… in process_new_device()
769 static int darwin_get_device_list(struct libusb_context *ctx, struct discovered_devs **_discdevs) { in darwin_get_device_list()
1620 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, in… in op_handle_events()
Dopenbsd_usb.c50 static int obsd_get_device_list(struct libusb_context *,
77 static int obsd_handle_events(struct libusb_context *ctx, struct pollfd *,
132 obsd_get_device_list(struct libusb_context * ctx, in obsd_get_device_list()
484 obsd_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, in obsd_handle_events()
Dwindows_usb.h126 int (*init)(struct libusb_context *ctx);
/external/libusb/libusb/os/
Dlinux_usbfs.c232 static int op_init(struct libusb_context *ctx) in op_init()
391 static int seek_to_next_config(struct libusb_context *ctx, int fd, in seek_to_next_config()
527 static int get_config_descriptor(struct libusb_context *ctx, int fd, in get_config_descriptor()
786 static int enumerate_device(struct libusb_context *ctx, in enumerate_device()
838 static int usbfs_scan_busdir(struct libusb_context *ctx, in usbfs_scan_busdir()
880 static int usbfs_get_device_list(struct libusb_context *ctx, in usbfs_get_device_list()
919 static int sysfs_scan_device(struct libusb_context *ctx, in sysfs_scan_device()
993 static int sysfs_get_device_list(struct libusb_context *ctx, in sysfs_get_device_list()
1026 static int op_get_device_list(struct libusb_context *ctx, in op_get_device_list()
2101 static int op_handle_events(struct libusb_context *ctx, in op_handle_events()
Ddarwin_usb.c215 struct libusb_context *ctx = (struct libusb_context *)ptr; in darwin_devices_detached()
261 struct libusb_context *ctx = (struct libusb_context *)arg0; in event_thread_main()
313 static int darwin_init(struct libusb_context *ctx) { in darwin_init()
438 static int process_new_device (struct libusb_context *ctx, usb_device_t **device, UInt32 locationID… in process_new_device()
553 static int darwin_get_device_list(struct libusb_context *ctx, struct discovered_devs **_discdevs) { in darwin_get_device_list()
1384 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, int num_re… in op_handle_events()
/external/libusb-compat/libusb/
Dcore.c32 static libusb_context *ctx = NULL;