Lines Matching refs:bufptr
149 unsigned char* bufptr = devdesc; in find_usb_device() local
171 bufend = bufptr + desclength; in find_usb_device()
180 device = (struct usb_device_descriptor*)bufptr; in find_usb_device()
181 bufptr += USB_DT_DEVICE_SIZE; in find_usb_device()
192 config = (struct usb_config_descriptor *)bufptr; in find_usb_device()
193 bufptr += USB_DT_CONFIG_SIZE; in find_usb_device()
201 while (bufptr < bufend) { in find_usb_device()
202 unsigned char length = bufptr[0]; in find_usb_device()
203 unsigned char type = bufptr[1]; in find_usb_device()
206 interface = (struct usb_interface_descriptor *)bufptr; in find_usb_device()
207 bufptr += length; in find_usb_device()
229 ep1 = (struct usb_endpoint_descriptor *)bufptr; in find_usb_device()
230 bufptr += USB_DT_ENDPOINT_SIZE; in find_usb_device()
233 if (bufptr+2 <= devdesc + desclength && in find_usb_device()
234 bufptr[0] == USB_DT_SS_EP_COMP_SIZE && in find_usb_device()
235 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) { in find_usb_device()
236 bufptr += USB_DT_SS_EP_COMP_SIZE; in find_usb_device()
238 ep2 = (struct usb_endpoint_descriptor *)bufptr; in find_usb_device()
239 bufptr += USB_DT_ENDPOINT_SIZE; in find_usb_device()
240 if (bufptr+2 <= devdesc + desclength && in find_usb_device()
241 bufptr[0] == USB_DT_SS_EP_COMP_SIZE && in find_usb_device()
242 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) { in find_usb_device()
243 bufptr += USB_DT_SS_EP_COMP_SIZE; in find_usb_device()
246 if (bufptr > devdesc + desclength || in find_usb_device()
306 bufptr += length; in find_usb_device()