Home
last modified time | relevance | path

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

/third_party/libusb/libusb/
Dcore.c650 static void discovered_devs_free(struct discovered_devs *discdevs) in discovered_devs_free() argument
654 for (i = 0; i < discdevs->len; i++) in discovered_devs_free()
655 libusb_unref_device(discdevs->devices[i]); in discovered_devs_free()
657 free(discdevs); in discovered_devs_free()
663 struct discovered_devs *discdevs, struct libusb_device *dev) in discovered_devs_append() argument
665 size_t len = discdevs->len; in discovered_devs_append()
670 if (len < discdevs->capacity) { in discovered_devs_append()
671 discdevs->devices[len] = libusb_ref_device(dev); in discovered_devs_append()
672 discdevs->len++; in discovered_devs_append()
673 return discdevs; in discovered_devs_append()
[all …]
Dlibusbi.h778 struct discovered_devs *discdevs, struct libusb_device *dev);
871 struct discovered_devs **discdevs);
/third_party/libusb/libusb/os/
Dsunos_usb.h56 struct discovered_devs **discdevs; member
Dnull_usb.c23 struct discovered_devs **discdevs) in null_get_device_list() argument
Dsunos_usb.c635 if (discovered_devs_append(*(nargs->discdevs), dev) == NULL) { in sunos_add_devices()
648 (*nargs->discdevs)->len, bdf); in sunos_add_devices()
683 struct discovered_devs **discdevs) in sunos_get_device_list() argument
690 args.discdevs = discdevs; in sunos_get_device_list()
717 usbi_dbg("%zu devices", (*discdevs)->len); in sunos_get_device_list()
719 return ((*discdevs)->len); in sunos_get_device_list()
Dwindows_usbdk.c318 struct discovered_devs *discdevs = NULL; in usbdk_get_device_list() local
347 discdevs = discovered_devs_append(*_discdevs, dev); in usbdk_get_device_list()
349 if (!discdevs) { in usbdk_get_device_list()
355 *_discdevs = discdevs; in usbdk_get_device_list()
Dopenbsd_usb.c119 struct discovered_devs **discdevs) in obsd_get_device_list() argument
205 ddd = discovered_devs_append(*discdevs, dev); in obsd_get_device_list()
212 *discdevs = ddd; in obsd_get_device_list()
Dnetbsd_usb.c115 struct discovered_devs **discdevs) in netbsd_get_device_list() argument
177 if (discovered_devs_append(*discdevs, dev) == NULL) in netbsd_get_device_list()
Dwindows_common.c636 static int windows_get_device_list(struct libusb_context *ctx, struct discovered_devs **discdevs) in windows_get_device_list() argument
639 return priv->backend->get_device_list(ctx, discdevs); in windows_get_device_list()
Dwindows_common.h303 struct discovered_devs **discdevs);
Dwindows_winusb.c1371 struct discovered_devs *discdevs; in winusb_get_device_list() local
1735 discdevs = discovered_devs_append(*_discdevs, dev); in winusb_get_device_list()
1736 if (!discdevs) in winusb_get_device_list()
1739 *_discdevs = discdevs; in winusb_get_device_list()