Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 6 of 6) sorted by relevance

/system/core/toolbox/
Dlsusb.c44 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/adb/
Dusb_libusb.c250 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 …]
Dusb_linux.c56 int desc; member
308 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write()
359 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_read()
371 res = ioctl(h->desc, USBDEVFS_REAPURB, &out); in usb_bulk_read()
458 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); in usb_read()
462 if((errno == ETIMEDOUT) && (h->desc != -1)) { in usb_read()
485 D("[ kicking %p (fd = %d) ]\n", h, h->desc); in usb_kick()
504 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_in); in usb_kick()
505 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_out); in usb_kick()
527 adb_close(h->desc); in usb_close()
[all …]
/system/core/fastboot/
Dusb_linux.c72 int desc; member
87 unsigned char *desc = _desc; in check() local
90 if(desc[0] < size) return -1; in check()
91 if(desc[0] > len) return -1; in check()
92 if(desc[1] != type) return -1; in check()
209 char desc[1024]; in find_usb_device() local
244 n = read(fd, desc, sizeof(desc)); in find_usb_device()
246 if(filter_usb_device(fd, desc, n, writable, callback, in find_usb_device()
252 usb->desc = fd; in find_usb_device()
289 n = ioctl(h->desc, USBDEVFS_BULK, &bulk); in usb_write()
[all …]
/system/core/libusbhost/
Dusbhost.c66 unsigned char desc[4096]; member
252 length = read(fd, device->desc, sizeof(device->desc)); in usb_device_new()
323 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_vendor_id() local
324 return __le16_to_cpu(desc->idVendor); in usb_device_get_vendor_id()
329 struct usb_device_descriptor* desc = (struct usb_device_descriptor*)device->desc; in usb_device_get_product_id() local
330 return __le16_to_cpu(desc->idProduct); in usb_device_get_product_id()
335 return (struct usb_device_descriptor*)device->desc; in usb_device_get_device_descriptor()
378 struct usb_device_descriptor *desc = (struct usb_device_descriptor *)device->desc; in usb_device_get_manufacturer_name() local
380 if (desc->iManufacturer) in usb_device_get_manufacturer_name()
381 return usb_device_get_string(device, desc->iManufacturer); in usb_device_get_manufacturer_name()
[all …]
/system/core/libpixelflinger/
Dscanline.cpp129 const char* desc; member