Home
last modified time | relevance | path

Searched refs:ep2 (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c107 struct usb_endpoint_descriptor *ep2 = NULL; in usb_device_added() local
113 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
118 ep2 = (struct usb_endpoint_descriptor *)desc; in usb_device_added()
128 if (!ep1 || !ep2) { in usb_device_added()
140 pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep2->bEndpointAddress); in usb_device_added()
142 pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep2->bEndpointAddress); in usb_device_added()
/frameworks/base/libs/usb/tests/accessorytest/
Dusb.c113 struct usb_endpoint_descriptor *ep2 = NULL; in usb_device_added() local
117 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
122 ep2 = (struct usb_endpoint_descriptor *)desc; in usb_device_added()
132 if (!ep1 || !ep2) { in usb_device_added()
144 write_ep = ep2->bEndpointAddress; in usb_device_added()
146 read_ep = ep2->bEndpointAddress; in usb_device_added()