Lines Matching refs:ptr
114 char *ptr, int len, int writable,
128 if (check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
130 dev = (struct usb_device_descriptor *)ptr;
132 ptr += dev->bLength;
134 if (check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
136 cfg = (struct usb_config_descriptor *)ptr;
138 ptr += cfg->bLength;
182 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
186 ptr += hdr->bLength;
192 ifc = (struct usb_interface_descriptor *)ptr;
194 ptr += ifc->bLength;
204 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
208 ptr += hdr->bLength;
214 ept = (struct usb_endpoint_descriptor *)ptr;
216 ptr += ept->bLength;