/system/core/toolbox/ |
D | lsusb.c | 44 struct usb_device_descriptor *desc) in lsusb_parse_device_descriptor() argument 47 printf("\tbcdUSB: %04x\n", letoh16(desc->bcdUSB)); in lsusb_parse_device_descriptor() 48 printf("\tbDeviceClass: %02x\n", desc->bDeviceClass); in lsusb_parse_device_descriptor() 49 printf("\tbDeviceSubClass: %02x\n", desc->bDeviceSubClass); in lsusb_parse_device_descriptor() 50 printf("\tbDeviceProtocol: %02x\n", desc->bDeviceProtocol); in lsusb_parse_device_descriptor() 51 printf("\tbMaxPacketSize0: %02x\n", desc->bMaxPacketSize0); in lsusb_parse_device_descriptor() 52 printf("\tidVendor: %04x\n", letoh16(desc->idVendor)); in lsusb_parse_device_descriptor() 53 printf("\tidProduct: %04x\n", letoh16(desc->idProduct)); in lsusb_parse_device_descriptor() 54 printf("\tbcdDevice: %04x\n", letoh16(desc->bcdDevice)); in lsusb_parse_device_descriptor() 55 printf("\tiManufacturer: %s\n", get_str(dev, desc->iManufacturer)); in lsusb_parse_device_descriptor() [all …]
|
/system/core/toolbox/upstream-netbsd/lib/libc/stdlib/ |
D | strsuftoll.c | 116 strsuftoll(const char *desc, const char *val, in __weak_alias() 122 result = strsuftollx(desc, val, min, max, errbuf, sizeof(errbuf)); in __weak_alias() 134 __strsuftollx(const char *desc, const char *val, in __strsuftollx() argument 140 _DIAGASSERT(desc != NULL); in __strsuftollx() 145 snprintf(ebuf, ebuflen, "%s: Recursion limit exceeded", desc); in __strsuftollx() 211 num *= __strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen, in __strsuftollx() 218 snprintf(ebuf, ebuflen, "%s: %s", desc, strerror(errno)); in __strsuftollx() 224 snprintf(ebuf, ebuflen, "%s `%s': illegal number", desc, val); in __strsuftollx() 230 desc, (long long)num, (long long)min); in __strsuftollx() 236 desc, (long long)num, (long long)max); in __strsuftollx() [all …]
|
/system/core/adb/ |
D | usb_libusb.c | 250 libusb_device_descriptor *desc, in check_usb_interface() argument 290 desc->idVendor, desc->idProduct, idesc->bInterfaceClass, in check_usb_interface() 294 if (!is_adb_interface(desc->idVendor, desc->idProduct, in check_usb_interface() 308 libusb_device_descriptor *desc, struct usb_handle *uh) in check_usb_interfaces() argument 313 if (check_usb_interface(&config->interface[i], desc, uh) != -1) { in check_usb_interfaces() 316 "matches Android device\n", i, desc->idVendor, in check_usb_interfaces() 317 desc->idProduct); in check_usb_interfaces() 385 libusb_device_descriptor desc; in check_device() local 388 int r = libusb_get_device_descriptor(dev, &desc); in check_device() 395 if ((desc.idVendor == 0) && (desc.idProduct == 0)) in check_device() [all …]
|
D | usb_linux.c | 56 int desc; member 333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write() 384 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_read() 396 res = ioctl(h->desc, USBDEVFS_REAPURB, &out); in usb_bulk_read() 483 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() 487 if((errno == ETIMEDOUT) && (h->desc != -1)) { in usb_read() 510 D("[ kicking %p (fd = %d) ]\n", h, h->desc); in usb_kick() 529 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_in); in usb_kick() 530 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_out); in usb_kick() 552 adb_close(h->desc); in usb_close() [all …]
|
/system/core/fastboot/ |
D | usb_linux.c | 80 int desc; member 305 char desc[1024]; in find_usb_device() local 332 n = read(fd, desc, sizeof(desc)); in find_usb_device() 334 if(filter_usb_device(de->d_name, desc, n, writable, callback, in find_usb_device() 340 usb->desc = fd; in find_usb_device() 366 if(h->ep_out == 0 || h->desc == -1) { in usb_write() 379 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write() 401 if(h->ep_in == 0 || h->desc == -1) { in usb_read() 415 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read() 416 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_read() [all …]
|
/system/core/libusbhost/ |
D | usbhost.c | 77 unsigned char desc[4096]; member 363 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new() 434 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_vendor_id() local 435 return __le16_to_cpu(desc->idVendor); in usb_device_get_vendor_id() 440 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_product_id() local 441 return __le16_to_cpu(desc->idProduct); in usb_device_get_product_id() 446 return (struct usb_device_descriptor*)device->desc; in usb_device_get_device_descriptor() 491 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_manufacturer_name() local 492 return usb_device_get_string(device, desc->iManufacturer); in usb_device_get_manufacturer_name() 497 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_product_name() local [all …]
|
/system/core/libpixelflinger/ |
D | scanline.cpp | 152 const char* desc; member
|