Searched defs:ep1 (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c106 struct usb_endpoint_descriptor *ep1 = NULL; local
113 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) {
117 if (ep1)
120 ep1 = (struct usb_endpoint_descriptor *)desc;
128 if (!ep1 || !ep2) {
138 if ((ep1->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) {
139 pthread_create(&th, NULL, read_thread, (void *)(uintptr_t)ep1->bEndpointAddress);
143 pthread_create(&th, NULL, write_thread, (void *)(uintptr_t)ep1->bEndpointAddress);
/frameworks/base/libs/usb/tests/accessorytest/
H A Dusb.c112 struct usb_endpoint_descriptor *ep1 = NULL; local
117 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) {
121 if (ep1)
124 ep1 = (struct usb_endpoint_descriptor *)desc;
132 if (!ep1 || !ep2) {
142 if ((ep1->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_IN) {
143 read_ep = ep1->bEndpointAddress;
147 write_ep = ep1->bEndpointAddress;

Completed in 257 milliseconds