Lines Matching refs:ptr
92 static int filter_usb_device(int fd, char *ptr, int len, int writable, in filter_usb_device() argument
106 if(check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE)) in filter_usb_device()
108 dev = (void*) ptr; in filter_usb_device()
110 ptr += dev->bLength; in filter_usb_device()
112 if(check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE)) in filter_usb_device()
114 cfg = (void*) ptr; in filter_usb_device()
116 ptr += cfg->bLength; in filter_usb_device()
154 if(check(ptr, len, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE)) in filter_usb_device()
156 ifc = (void*) ptr; in filter_usb_device()
158 ptr += ifc->bLength; in filter_usb_device()
167 if(check(ptr, len, USB_DT_ENDPOINT, USB_DT_ENDPOINT_SIZE)) in filter_usb_device()
169 ept = (void*) ptr; in filter_usb_device()
171 ptr += ept->bLength; in filter_usb_device()