Lines Matching refs:hUART
207 if ((hs->connType != CONN_SERIAL) or (hs->hUART == nullptr)) { in EnumUARTDeviceRegister()
379 HUART hUART = new HdcUART(); in MallocSessionByConnectType() local
380 if (!hUART) { in MallocSessionByConnectType()
384 hSession->hUART = hUART; in MallocSessionByConnectType()
514 if (!hSession->hUART) { in FreeSessionByConnectType()
517 HUART hUART = hSession->hUART; in FreeSessionByConnectType() local
518 if (!hUART) { in FreeSessionByConnectType()
526 if (hUART->devUartHandle != INVALID_HANDLE_VALUE) { in FreeSessionByConnectType()
527 CloseHandle(hUART->devUartHandle); in FreeSessionByConnectType()
528 hUART->devUartHandle = INVALID_HANDLE_VALUE; in FreeSessionByConnectType()
531 Base::CloseFd(hUART->devUartHandle); in FreeSessionByConnectType()
534 delete hSession->hUART; in FreeSessionByConnectType()
535 hSession->hUART = nullptr; in FreeSessionByConnectType()