Searched refs:usbGadget (Results 1 – 3 of 3) sorted by relevance
/device/google/wahoo/usb/ |
D | UsbGadget.cpp | 93 UsbGadget *usbGadget = (UsbGadget *)param; in monitorFfs() local 99 for (int i = 0; i < static_cast<int>(usbGadget->mEndpointList.size()); i++) { in monitorFfs() 100 if (access(usbGadget->mEndpointList.at(i).c_str(), R_OK)) { in monitorFfs() 108 lock_guard<mutex> lock(usbGadget->mLock); in monitorFfs() 109 usbGadget->mCurrentUsbFunctionsApplied = true; in monitorFfs() 111 usbGadget->mCv.notify_all(); in monitorFfs() 115 int nrEvents = epoll_wait(usbGadget->mEpollFd, events, EPOLL_EVENTS, -1); in monitorFfs() 124 if (events[i].data.fd == usbGadget->mInotifyFd) { in monitorFfs() 126 int numRead = read(usbGadget->mInotifyFd, buf, BUFFER_SIZE); in monitorFfs() 134 for (int j = 0; j < static_cast<int>(usbGadget->mEndpointList.size()); in monitorFfs() [all …]
|
/device/google/bonito/usb/ |
D | UsbGadget.cpp | 94 UsbGadget *usbGadget = (UsbGadget *)param; in monitorFfs() local 101 for (int i = 0; i < static_cast<int>(usbGadget->mEndpointList.size()); i++) { in monitorFfs() 102 if (access(usbGadget->mEndpointList.at(i).c_str(), R_OK)) { in monitorFfs() 112 lock_guard<mutex> lock(usbGadget->mLock); in monitorFfs() 113 usbGadget->mCurrentUsbFunctionsApplied = true; in monitorFfs() 117 usbGadget->mCv.notify_all(); in monitorFfs() 122 int nrEvents = epoll_wait(usbGadget->mEpollFd, events, EPOLL_EVENTS, -1); in monitorFfs() 132 if (events[i].data.fd == usbGadget->mInotifyFd) { in monitorFfs() 134 int numRead = read(usbGadget->mInotifyFd, buf, BUFFER_SIZE); in monitorFfs() 142 for (int j = 0; j < static_cast<int>(usbGadget->mEndpointList.size()); in monitorFfs() [all …]
|
/device/google/crosshatch/usb/ |
D | UsbGadget.cpp | 94 UsbGadget *usbGadget = (UsbGadget *)param; in monitorFfs() local 101 for (int i = 0; i < static_cast<int>(usbGadget->mEndpointList.size()); i++) { in monitorFfs() 102 if (access(usbGadget->mEndpointList.at(i).c_str(), R_OK)) { in monitorFfs() 112 lock_guard<mutex> lock(usbGadget->mLock); in monitorFfs() 113 usbGadget->mCurrentUsbFunctionsApplied = true; in monitorFfs() 117 usbGadget->mCv.notify_all(); in monitorFfs() 122 int nrEvents = epoll_wait(usbGadget->mEpollFd, events, EPOLL_EVENTS, -1); in monitorFfs() 132 if (events[i].data.fd == usbGadget->mInotifyFd) { in monitorFfs() 134 int numRead = read(usbGadget->mInotifyFd, buf, BUFFER_SIZE); in monitorFfs() 142 for (int j = 0; j < static_cast<int>(usbGadget->mEndpointList.size()); in monitorFfs() [all …]
|