Lines Matching refs:ptr
98 static int filter_usb_device(int fd, char *ptr, int len, int writable,
115 if(check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
117 dev = (void*) ptr;
119 ptr += dev->bLength;
121 if(check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
123 cfg = (void*) ptr;
125 ptr += cfg->bLength;
201 if(check(ptr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE))
203 ifc = (void*) ptr;
205 ptr += ifc->bLength;
214 if(check(ptr, len, USB_DT_ENDPOINT, USB_DT_ENDPOINT_SIZE))
216 ept = (void*) ptr;
218 ptr += ept->bLength;