Lines Matching refs:bufptr

143             unsigned char* bufptr = devdesc;  in find_usb_device()  local
166 bufend = bufptr + desclength; in find_usb_device()
175 device = (struct usb_device_descriptor*)bufptr; in find_usb_device()
176 bufptr += USB_DT_DEVICE_SIZE; in find_usb_device()
188 config = (struct usb_config_descriptor *)bufptr; in find_usb_device()
189 bufptr += USB_DT_CONFIG_SIZE; in find_usb_device()
197 while (bufptr < bufend) { in find_usb_device()
198 unsigned char length = bufptr[0]; in find_usb_device()
199 unsigned char type = bufptr[1]; in find_usb_device()
202 interface = (struct usb_interface_descriptor *)bufptr; in find_usb_device()
203 bufptr += length; in find_usb_device()
225 ep1 = (struct usb_endpoint_descriptor *)bufptr; in find_usb_device()
226 bufptr += USB_DT_ENDPOINT_SIZE; in find_usb_device()
229 if (bufptr+2 <= devdesc + desclength && in find_usb_device()
230 bufptr[0] == USB_DT_SS_EP_COMP_SIZE && in find_usb_device()
231 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) { in find_usb_device()
232 bufptr += USB_DT_SS_EP_COMP_SIZE; in find_usb_device()
234 ep2 = (struct usb_endpoint_descriptor *)bufptr; in find_usb_device()
235 bufptr += USB_DT_ENDPOINT_SIZE; in find_usb_device()
236 if (bufptr+2 <= devdesc + desclength && in find_usb_device()
237 bufptr[0] == USB_DT_SS_EP_COMP_SIZE && in find_usb_device()
238 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) { in find_usb_device()
239 bufptr += USB_DT_SS_EP_COMP_SIZE; in find_usb_device()
242 if (bufptr > devdesc + desclength || in find_usb_device()
295 bufptr += length; in find_usb_device()