Lines Matching refs:ptr
139 char *ptr, int len, int writable,
153 if (check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
155 dev = (struct usb_device_descriptor *)ptr;
157 ptr += dev->bLength;
159 if (check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
161 cfg = (struct usb_config_descriptor *)ptr;
163 ptr += cfg->bLength;
207 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
211 ptr += hdr->bLength;
217 ifc = (struct usb_interface_descriptor *)ptr;
219 ptr += ifc->bLength;
229 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
233 ptr += hdr->bLength;
239 ept = (struct usb_endpoint_descriptor *)ptr;
241 ptr += ept->bLength;
253 if (check((struct usb_descriptor_hdr *)ptr, len,
256 ptr += USB_DT_SS_EP_COMP_SIZE;