Home
last modified time | relevance | path

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

/drivers/peripheral/usb/hdi_service/src/
Dusbd_function.cpp185 uint32_t ddkFuns = currentFuncs_ & USB_DDK_FUNCTION_SUPPORT; in SetFunctionToNone() local
186 if (ddkFuns > 0) { in SetFunctionToNone()
187 if ((ddkFuns & USB_FUNCTION_ACM) != 0) { in SetFunctionToNone()
191 if ((ddkFuns & USB_FUNCTION_ECM) != 0) { in SetFunctionToNone()
195 if ((ddkFuns & USB_FUNCTION_MTP) != 0 || (ddkFuns & USB_FUNCTION_PTP) != 0) { in SetFunctionToNone()
215 uint32_t ddkFuns = static_cast<uint32_t>(funcs) & USB_DDK_FUNCTION_SUPPORT; in SetDDKFunction() local
216 if (ddkFuns == 0) { in SetDDKFunction()
225 if (UsbdFunction::SendCmdToService(DEV_SERVICE_NAME, FUNCTION_ADD, ddkFuns)) { in SetDDKFunction()
226 HDF_LOGE("%{public}s: create dev error: %{public}d", __func__, ddkFuns); in SetDDKFunction()