Lines Matching refs:hUART
203 if ((hs->connType != CONN_SERIAL) or (hs->hUART == nullptr)) { in EnumUARTDeviceRegister()
375 HUART hUART = new HdcUART(); in MallocSessionByConnectType() local
376 if (!hUART) { in MallocSessionByConnectType()
380 hSession->hUART = hUART; in MallocSessionByConnectType()
502 if (!hSession->hUART) { in FreeSessionByConnectType()
505 HUART hUART = hSession->hUART; in FreeSessionByConnectType() local
506 if (!hUART) { in FreeSessionByConnectType()
514 if (hUART->devUartHandle != INVALID_HANDLE_VALUE) { in FreeSessionByConnectType()
515 CloseHandle(hUART->devUartHandle); in FreeSessionByConnectType()
516 hUART->devUartHandle = INVALID_HANDLE_VALUE; in FreeSessionByConnectType()
519 Base::CloseFd(hUART->devUartHandle); in FreeSessionByConnectType()
522 delete hSession->hUART; in FreeSessionByConnectType()
523 hSession->hUART = nullptr; in FreeSessionByConnectType()