Home
last modified time | relevance | path

Searched refs:uartDevice (Results 1 - 5 of 5) sorted by relevance

/drivers/hdf_core/adapter/platform/uart/
H A Duart_wm.c235 struct UartDevice *uartDevice = NULL; in InitUartDevice() local
242 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() local
311 uartDevice = (struct UartDevice *)OsalMemAlloc(sizeof(struct UartDevice)); in AttachUartDevice()
312 if (uartDevice in AttachUartDevice()
352 struct UartDevice *uartDevice = NULL; UartDriverRelease() local
419 struct UartDevice *uartDevice = NULL; UartHostDevDeinit() local
458 struct UartDevice *uartDevice = NULL; UartHostDevRead() local
489 struct UartDevice *uartDevice = NULL; UartHostDevSetBaud() local
515 struct UartDevice *uartDevice = NULL; UartHostDevGetBaud() local
536 struct UartDevice *uartDevice = NULL; UartHostDevSetAttribute() local
581 struct UartDevice *uartDevice = NULL; UartHostDevGetAttribute() local
627 struct UartDevice *uartDevice = NULL; UartHostDevSetTransMode() local
[all...]
H A Duart_stm32f4xx.c327 UartDevice *uartDevice = NULL; in InitUartDevice() local
336 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 in InitUartDevice()
522 UartDevice *uartDevice = NULL; global() local
568 UartDevice *uartDevice = NULL; global() local
632 UartDevice *uartDevice = NULL; global() local
681 UartDevice *uartDevice = NULL; global() local
708 UartDevice *uartDevice = NULL; global() local
735 UartDevice *uartDevice = NULL; global() local
960 UartDevice *uartDevice = NULL; global() local
992 UartDevice *uartDevice = NULL; global() local
1019 UartDevice *uartDevice = NULL; global() local
[all...]
H A Duart_bes.c427 struct UartDevice *uartDevice = NULL; in InitUartDevice() local
436 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 local
623 struct UartDevice *uartDevice = NULL; global() local
690 struct UartDevice *uartDevice = NULL; global() local
743 struct UartDevice *uartDevice = NULL; global() local
776 struct UartDevice *uartDevice = NULL; global() local
806 struct UartDevice *uartDevice = NULL; global() local
833 SetUartDevConfig(const struct UartAttribute *attribute, struct UartDevice *uartDevice) global() argument
894 struct UartDevice *uartDevice = NULL; global() local
966 struct UartDevice *uartDevice = NULL; global() local
987 struct UartDevice *uartDevice = NULL; global() local
[all...]
/drivers/hdf_core/framework/sample/platform/uart/src/
H A Duart_sample.c236 struct UartDevice *uartDevice = NULL; in AttachUartDevice() local
241 uartDevice = (struct UartDevice *)OsalMemCalloc(sizeof(struct UartDevice)); in AttachUartDevice()
242 if (uartDevice == NULL) { in AttachUartDevice()
243 HDF_LOGE("%s: OsalMemCalloc uartDevice error", __func__); 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 in DetachUartDevice() local
[all...]
H A Duart_dispatch_sample.c53 struct UartDevice *uartDevice = (struct UartDevice *)uartHost->priv; in SampleDispatch() local
54 if (uartDevice == NULL) { in SampleDispatch()
55 HDF_LOGE("%s: uartDevice is NULL", __func__); in SampleDispatch()
60 result = SampleDispatchWrite(uartDevice, data); in SampleDispatch()

Completed in 5 milliseconds