Home
last modified time | relevance | path

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

/external/libusb/libusb/
Dcore.c632 static void discovered_devs_free(struct discovered_devs *discdevs) in discovered_devs_free() argument
636 for (i = 0; i < discdevs->len; i++) in discovered_devs_free()
637 libusb_unref_device(discdevs->devices[i]); in discovered_devs_free()
639 free(discdevs); in discovered_devs_free()
645 struct discovered_devs *discdevs, struct libusb_device *dev) in discovered_devs_append() argument
647 size_t len = discdevs->len; in discovered_devs_append()
652 if (len < discdevs->capacity) { in discovered_devs_append()
653 discdevs->devices[len] = libusb_ref_device(dev); in discovered_devs_append()
654 discdevs->len++; in discovered_devs_append()
655 return discdevs; in discovered_devs_append()
[all …]
Dlibusbi.h586 struct discovered_devs *discdevs, struct libusb_device *dev);
669 struct discovered_devs **discdevs);
/external/libusb/libusb/os/
Dsunos_usb.c279 if (discovered_devs_append(*(nargs->discdevs), dev) == NULL) { in sunos_add_devices()
292 (*nargs->discdevs)->len, bdf); in sunos_add_devices()
326 struct discovered_devs **discdevs) in sunos_get_device_list() argument
333 args.discdevs = discdevs; in sunos_get_device_list()
360 usbi_dbg("%d devices", (*discdevs)->len); in sunos_get_device_list()
362 return ((*discdevs)->len); in sunos_get_device_list()
Dwince_usb.c276 struct discovered_devs **discdevs) in wince_get_device_list() argument
279 struct discovered_devs *new_devices = *discdevs; in wince_get_device_list()
331 if (!discdevs) { in wince_get_device_list()
339 *discdevs = new_devices; in wince_get_device_list()
342 *discdevs = new_devices; in wince_get_device_list()
Dsunos_usb.h57 struct discovered_devs **discdevs; member
Dwindows_usbdk.c329 struct discovered_devs *discdevs = NULL; in usbdk_get_device_list() local
358 discdevs = discovered_devs_append(*_discdevs, dev); in usbdk_get_device_list()
360 if (!discdevs) { in usbdk_get_device_list()
366 *_discdevs = discdevs; in usbdk_get_device_list()
Dopenbsd_usb.c147 struct discovered_devs **discdevs) in obsd_get_device_list() argument
229 ddd = discovered_devs_append(*discdevs, dev); in obsd_get_device_list()
236 *discdevs = ddd; in obsd_get_device_list()
Dnetbsd_usb.c141 struct discovered_devs **discdevs) in netbsd_get_device_list() argument
198 if (discovered_devs_append(*discdevs, dev) == NULL) in netbsd_get_device_list()
Dwindows_winusb.c1278 struct discovered_devs *discdevs; in windows_get_device_list() local
1602 discdevs = discovered_devs_append(*_discdevs, dev); in windows_get_device_list()
1603 if (!discdevs) in windows_get_device_list()
1606 *_discdevs = discdevs; in windows_get_device_list()
/external/libusb/include/libusb/
Dlibusbi.h586 struct discovered_devs *discdevs, struct libusb_device *dev);
669 struct discovered_devs **discdevs);