Home | History | Annotate | Download | only in fastboot

Lines Matching refs:hdr

128     struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)_desc;
131 if(hdr->bLength < size) return -1;
132 if(hdr->bLength > len) return -1;
133 if(hdr->bDescriptorType != type) return -1;
207 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
208 if (check(hdr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE) == 0)
210 len -= hdr->bLength;
211 ptr += hdr->bLength;
229 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
230 if (check(hdr, len, USB_DT_ENDPOINT, USB_DT_ENDPOINT_SIZE) == 0)
232 len -= hdr->bLength;
233 ptr += hdr->bLength;