Searched refs:discdevs (Results 1 – 11 of 11) sorted by relevance
/third_party/libusb/libusb/ |
D | core.c | 650 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 …]
|
D | libusbi.h | 778 struct discovered_devs *discdevs, struct libusb_device *dev); 871 struct discovered_devs **discdevs);
|
/third_party/libusb/libusb/os/ |
D | sunos_usb.h | 56 struct discovered_devs **discdevs; member
|
D | null_usb.c | 23 struct discovered_devs **discdevs) in null_get_device_list() argument
|
D | sunos_usb.c | 635 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()
|
D | windows_usbdk.c | 318 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()
|
D | openbsd_usb.c | 119 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()
|
D | netbsd_usb.c | 115 struct discovered_devs **discdevs) in netbsd_get_device_list() argument 177 if (discovered_devs_append(*discdevs, dev) == NULL) in netbsd_get_device_list()
|
D | windows_common.c | 636 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()
|
D | windows_common.h | 303 struct discovered_devs **discdevs);
|
D | windows_winusb.c | 1371 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()
|