Searched refs:DEVICE_DESC_LENGTH (Results 1 – 12 of 12) sorted by relevance
/external/libusb/libusb/os/ |
D | linux_usbfs.c | 275 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 …]
|
D | darwin_usb.c | 353 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor()
|
/external/libusb_aah/libusb/os/ |
D | linux_usbfs.c | 427 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 …]
|
D | openbsd_usb.c | 248 memcpy(buf, &dpriv->ddesc, DEVICE_DESC_LENGTH); in obsd_get_device_descriptor()
|
D | darwin_usb.c | 423 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor()
|
D | windows_usb.c | 1571 memcpy(buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in windows_get_device_descriptor()
|
/external/libusb/libusb/ |
D | descriptor.c | 28 #define DEVICE_DESC_LENGTH 18 macro 435 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in libusb_get_device_descriptor()
|
D | core.c | 530 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in usbi_sanitize_device() 538 num_configurations = raw_desc[DEVICE_DESC_LENGTH - 1]; in usbi_sanitize_device()
|
D | libusbi.h | 33 #define DEVICE_DESC_LENGTH 18 macro
|
/external/libusb_aah/libusb/ |
D | descriptor.c | 29 #define DEVICE_DESC_LENGTH 18 macro 438 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in libusb_get_device_descriptor()
|
D | core.c | 560 unsigned char raw_desc[DEVICE_DESC_LENGTH]; in usbi_sanitize_device() 568 num_configurations = raw_desc[DEVICE_DESC_LENGTH - 1]; in usbi_sanitize_device()
|
D | libusbi.h | 46 #define DEVICE_DESC_LENGTH 18 macro
|