Lines Matching refs:UsbdFunction

42 uint32_t UsbdFunction::currentFuncs_ = USB_FUNCTION_HDC;

106 int32_t UsbdFunction::SendCmdToService(const char *name, int32_t cmd, unsigned char funcMask)
142 int32_t UsbdFunction::InitMtp()
163 int32_t UsbdFunction::ReleaseMtp()
181 int32_t UsbdFunction::RemoveHdc()
191 int32_t UsbdFunction::AddHdc()
207 int32_t UsbdFunction::SetFunctionToRndis()
217 int32_t UsbdFunction::SetFunctionToStorage()
233 int32_t UsbdFunction::SetFunctionToRndisHdc()
243 int32_t UsbdFunction::SetFunctionToManufactureHdc()
253 int32_t UsbdFunction::SetFunctionToStorageHdc()
263 int32_t UsbdFunction::SetFunctionToNone()
268 UsbdFunction::SendCmdToService(ACM_SERVICE_NAME, ACM_RELEASE, USB_FUNCTION_ACM);
272 UsbdFunction::SendCmdToService(ECM_SERVICE_NAME, ECM_RELEASE, USB_FUNCTION_ECM);
281 UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_DEL, USB_DDK_FUNCTION_SUPPORT);
298 int32_t UsbdFunction::SetDDKFunction(uint32_t funcs)
311 if (UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_ADD, ddkFuns)) {
318 int32_t UsbdFunction::UsbdWriteUdc(char* udcName, size_t len)
342 int32_t UsbdFunction::UsbdReadUdc(char* udcName, size_t len)
369 int32_t UsbdFunction::UsbdEnableDevice(int32_t funcs)
384 UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_DEL, USB_DDK_FUNCTION_SUPPORT);
392 UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_DEL, USB_DDK_FUNCTION_SUPPORT);
401 UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_DEL, USB_DDK_FUNCTION_SUPPORT);
421 int32_t UsbdFunction::UsbdWaitUdc()
455 int32_t UsbdFunction::UsbdWaitToNone()
479 int32_t UsbdFunction::UsbdInitDDKFunction(uint32_t funcs)
518 int32_t UsbdFunction::UsbdSetKernelFunction(int32_t kfuns, int32_t funcs)
523 return UsbdFunction::AddHdc();
526 return UsbdFunction::SetFunctionToRndis();
529 return UsbdFunction::SetFunctionToStorage();
532 return UsbdFunction::SetFunctionToRndisHdc();
535 return UsbdFunction::SetFunctionToStorageHdc();
538 return UsbdFunction::SetFunctionToManufactureHdc();
545 int32_t UsbdFunction::UsbdSetFunction(uint32_t funcs)
554 if (UsbdFunction::SetFunctionToNone()) {
563 if (UsbdFunction::SetDDKFunction(funcs)) {
585 UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_DEL, USB_DDK_FUNCTION_SUPPORT);
593 int32_t UsbdFunction::UsbdGetFunction(void)
598 int32_t UsbdFunction::UsbdUpdateFunction(uint32_t funcs)
609 int32_t UsbdFunction::UsbdRegisterDevice(const std::string &serviceName)
625 void UsbdFunction::UsbdUnregisterDevice(const std::string &serviceName)