Home | History | Annotate | Download | only in usb

Lines Matching defs:hd

591 	usb_hid_descriptor_t *hd;
602 for (; end - p >= sizeof(*hd); p += hd->bLength) {
603 hd = (usb_hid_descriptor_t *)p;
604 if (hd->bLength < sizeof(*hd) || hd->bLength > end - p)
606 if (hd->bLength >= USB_HID_DESCRIPTOR_SIZE(0) &&
607 hd->bDescriptorType == UDESC_HID)
608 return hd;
609 if (hd->bDescriptorType == UDESC_INTERFACE)