Home | History | Annotate | Download | only in adb

Lines Matching refs:bufptr

136             unsigned char* bufptr = devdesc;
158 bufend = bufptr + desclength;
167 device = (struct usb_device_descriptor*)bufptr;
168 bufptr += USB_DT_DEVICE_SIZE;
180 config = (struct usb_config_descriptor *)bufptr;
181 bufptr += USB_DT_CONFIG_SIZE;
189 while (bufptr < bufend) {
190 unsigned char length = bufptr[0];
191 unsigned char type = bufptr[1];
194 interface = (struct usb_interface_descriptor *)bufptr;
195 bufptr += length;
218 ep1 = (struct usb_endpoint_descriptor *)bufptr;
219 bufptr += USB_DT_ENDPOINT_SIZE;
222 if (bufptr+2 <= devdesc + desclength &&
223 bufptr[0] == USB_DT_SS_EP_COMP_SIZE &&
224 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) {
225 bufptr += USB_DT_SS_EP_COMP_SIZE;
227 ep2 = (struct usb_endpoint_descriptor *)bufptr;
228 bufptr += USB_DT_ENDPOINT_SIZE;
229 if (bufptr+2 <= devdesc + desclength &&
230 bufptr[0] == USB_DT_SS_EP_COMP_SIZE &&
231 bufptr[1] == USB_DT_SS_ENDPOINT_COMP) {
232 bufptr += USB_DT_SS_EP_COMP_SIZE;
235 if (bufptr > devdesc + desclength ||
287 bufptr += length;