Lines Matching refs:hdr
103 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)_desc; in check() local
106 if(hdr->bLength < size) return -1; in check()
107 if(hdr->bLength > len) return -1; in check()
108 if(hdr->bDescriptorType != type) return -1; in check()
182 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr; in filter_usb_device() local
183 if (check(hdr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE) == 0) in filter_usb_device()
185 len -= hdr->bLength; in filter_usb_device()
186 ptr += hdr->bLength; in filter_usb_device()
204 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr; in filter_usb_device() local
205 if (check(hdr, len, USB_DT_ENDPOINT, USB_DT_ENDPOINT_SIZE) == 0) in filter_usb_device()
207 len -= hdr->bLength; in filter_usb_device()
208 ptr += hdr->bLength; in filter_usb_device()