Lines Matching refs:controlEp
53 int ConfigEpPoint(int& controlEp, const std::string& path)
58 if (controlEp <= 0) {
63 if ((controlEp = open(path.c_str(), O_RDWR)) < 0) {
67 if (write(controlEp, &descUsbFfs, sizeof(descUsbFfs)) < 0) {
71 if (write(controlEp, &Hdc::USB_FFS_VALUE, sizeof(Hdc::USB_FFS_VALUE)) < 0) {
77 fcntl(controlEp, F_SETFD, FD_CLOEXEC);
120 void CloseEndpoint(int &bulkInFd, int &bulkOutFd, int &controlEp, bool closeCtrlEp)
124 if (controlEp > 0 && closeCtrlEp) {
125 CloseUsbFd(controlEp);
126 controlEp = 0;