Searched refs:uartDevice (Results 1 – 5 of 5) sorted by relevance
235 struct UartDevice *uartDevice = NULL; in InitUartDevice() local242 uartDevice = (struct UartDevice *)host->priv; in InitUartDevice()243 if (!uartDevice->initFlag) { in InitUartDevice()244 HDF_LOGI("uart %ld device init", uartDevice->uartId); in InitUartDevice()245 HalSetUartIomux(uartDevice->uartId); in InitUartDevice()246 UartStart(uartDevice); in InitUartDevice()247 uartDevice->initFlag = true; in InitUartDevice()304 struct UartDevice *uartDevice = NULL; in AttachUartDevice() local311 uartDevice = (struct UartDevice *)OsalMemAlloc(sizeof(struct UartDevice)); in AttachUartDevice()312 if (uartDevice == NULL) { in AttachUartDevice()[all …]
327 UartDevice *uartDevice = NULL; in InitUartDevice() local336 uartDevice = (UartDevice *)host->priv; in InitUartDevice()337 resource = &uartDevice->resource; in InitUartDevice()342 initTypedef = &uartDevice->initTypedef; in InitUartDevice()347 InitContextTransMode(&g_uartCtx[uartDevice->uartId - 1], resource->transMode); in InitUartDevice()348 LL_USART_Disable(g_usartRegMap[uartDevice->uartId - 1]); in InitUartDevice()349 LL_USART_DeInit(g_usartRegMap[uartDevice->uartId - 1]); in InitUartDevice()350 InitUsartClock(uartDevice->uartId); in InitUartDevice()352 if (!uartDevice->initFlag) { in InitUartDevice()353 initRet = LL_USART_Init(g_usartRegMap[uartDevice->uartId - 1], initTypedef); in InitUartDevice()[all …]
427 struct UartDevice *uartDevice = NULL; in InitUartDevice() local436 uartDevice = (struct UartDevice *)host->priv; in InitUartDevice()437 resource = &uartDevice->resource; in InitUartDevice()442 uartCfg = &uartDevice->config; in InitUartDevice()457 if (!uartDevice->initFlag) { in InitUartDevice()458 HDF_LOGE("uart %ld device init\r\n", uartDevice->uartId); in InitUartDevice()459 HalSetUartIomux(uartDevice->uartId); in InitUartDevice()460 UartStart(uartDevice); in InitUartDevice()461 uartDevice->initFlag = true; in InitUartDevice()569 struct UartDevice *uartDevice = NULL; local[all …]
236 struct UartDevice *uartDevice = NULL; in AttachUartDevice() local241 uartDevice = (struct UartDevice *)OsalMemCalloc(sizeof(struct UartDevice)); in AttachUartDevice()242 if (uartDevice == NULL) { in AttachUartDevice()246 ret = GetUartDeviceResource(uartDevice, device->property); in AttachUartDevice()248 (void)OsalMemFree(uartDevice); in AttachUartDevice()251 host->num = uartDevice->resource.num; in AttachUartDevice()252 host->priv = uartDevice; in AttachUartDevice()254 return InitUartDevice(uartDevice); in AttachUartDevice()270 struct UartDevice *uartDevice = NULL; in DetachUartDevice() local276 uartDevice = host->priv; in DetachUartDevice()[all …]
53 struct UartDevice *uartDevice = (struct UartDevice *)uartHost->priv; in SampleDispatch() local54 if (uartDevice == NULL) { in SampleDispatch()60 result = SampleDispatchWrite(uartDevice, data); in SampleDispatch()