Home
last modified time | relevance | path

Searched refs:DEVICE_DESC_LENGTH (Results 1 – 12 of 12) sorted by relevance

/external/libusb/libusb/os/
Dlinux_usbfs.c275 memcpy(buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH); in usbfs_get_device_descriptor()
310 r = read(fd, buffer, DEVICE_DESC_LENGTH);; in sysfs_get_device_descriptor()
315 } else if (r < DEVICE_DESC_LENGTH) { in sysfs_get_device_descriptor()
316 usbi_err(DEVICE_CTX(dev), "short read %d/%d", r, DEVICE_DESC_LENGTH); in sysfs_get_device_descriptor()
453 } else if (off == DEVICE_DESC_LENGTH) { in sysfs_get_active_config_descriptor()
458 off = lseek(fd, DEVICE_DESC_LENGTH, SEEK_SET); in sysfs_get_active_config_descriptor()
533 off = lseek(fd, DEVICE_DESC_LENGTH, SEEK_SET); in get_config_descriptor()
748 dev_buf = malloc(DEVICE_DESC_LENGTH); in initialize_device()
754 r = read(fd, dev_buf, DEVICE_DESC_LENGTH); in initialize_device()
761 } else if (r < DEVICE_DESC_LENGTH) { in initialize_device()
[all …]
Ddarwin_usb.c353 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor()
/external/libusb_aah/libusb/os/
Dlinux_usbfs.c427 memcpy(buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH); in usbfs_get_device_descriptor()
497 r = read(fd, buffer, DEVICE_DESC_LENGTH);; in sysfs_get_device_descriptor()
502 } else if (r < DEVICE_DESC_LENGTH) { in sysfs_get_device_descriptor()
503 usbi_err(DEVICE_CTX(dev), "short read %d/%d", r, DEVICE_DESC_LENGTH); in sysfs_get_device_descriptor()
640 } else if (off == DEVICE_DESC_LENGTH) { in sysfs_get_active_config_descriptor()
645 off = lseek(fd, DEVICE_DESC_LENGTH, SEEK_SET); in sysfs_get_active_config_descriptor()
720 off = lseek(fd, DEVICE_DESC_LENGTH, SEEK_SET); in get_config_descriptor()
949 dev_buf = malloc(DEVICE_DESC_LENGTH); in initialize_device()
955 r = read(fd, dev_buf, DEVICE_DESC_LENGTH); in initialize_device()
962 } else if (r < DEVICE_DESC_LENGTH) { in initialize_device()
[all …]
Dopenbsd_usb.c248 memcpy(buf, &dpriv->ddesc, DEVICE_DESC_LENGTH); in obsd_get_device_descriptor()
Ddarwin_usb.c423 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor()
Dwindows_usb.c1571 memcpy(buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in windows_get_device_descriptor()
/external/libusb/libusb/
Ddescriptor.c28 #define DEVICE_DESC_LENGTH 18 macro
435 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in libusb_get_device_descriptor()
Dcore.c530 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in usbi_sanitize_device()
538 num_configurations = raw_desc[DEVICE_DESC_LENGTH - 1]; in usbi_sanitize_device()
Dlibusbi.h33 #define DEVICE_DESC_LENGTH 18 macro
/external/libusb_aah/libusb/
Ddescriptor.c29 #define DEVICE_DESC_LENGTH 18 macro
438 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in libusb_get_device_descriptor()
Dcore.c560 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in usbi_sanitize_device()
568 num_configurations = raw_desc[DEVICE_DESC_LENGTH - 1]; in usbi_sanitize_device()
Dlibusbi.h46 #define DEVICE_DESC_LENGTH 18 macro