Home
last modified time | relevance | path

Searched refs:g_uartCtx (Results 1 - 3 of 3) sorted by relevance

/drivers/hdf_core/adapter/platform/uart/
H A Duart_bes.c46 static struct UART_CTX_OBJ g_uartCtx[MAX_UART_NUMBER] = {0}; variable
97 hal_uart_dma_recv_mask(uartId, g_uartCtx[uartId].buffer, UART_DMA_RING_BUFFER_SIZE, &dmaDescRx, &descCnt, &mask); in HalUartStartDmaRx()
107 if (OsalSemPost(&g_uartCtx[uartId].txSem) != HDF_SUCCESS) { in UartRxHandler()
114 if (OsalSemPost(&g_uartCtx[uartId].rxSem) != HDF_SUCCESS) { in UartRxHandler()
127 len = kfifo_put(&g_uartCtx[HAL_UART_ID_0].fifo, g_uartCtx[HAL_UART_ID_0].buffer, xferSize); in UartDmaRxHandler()
133 (void)memset_s(g_uartCtx[HAL_UART_ID_0].buffer, UART_DMA_RING_BUFFER_SIZE, 0, UART_DMA_RING_BUFFER_SIZE); in UartDmaRxHandler()
134 OsalSemPost(&g_uartCtx[HAL_UART_ID_0].rxSem); in UartDmaRxHandler()
142 OsalSemPost(&g_uartCtx[HAL_UART_ID_0].txSem); in UartDmaTxHandler()
151 len = kfifo_put(&g_uartCtx[HAL_UART_ID_ in Uart1DmaRxHandler()
[all...]
H A Duart_stm32f4xx.c197 static UsartContextObj g_uartCtx[USART_NUM_6] = {0}; variable
347 InitContextTransMode(&g_uartCtx[uartDevice->uartId - 1], resource->transMode); in InitUartDevice()
361 g_exitIrqnMap[uartDevice->uartId - 1], g_uartCtx[uartDevice->uartId - 1].isBlock); in InitUartDevice()
463 g_uartCtx[device->uartId - 1].dePin = resource->dePin; in GetUartDeviceResource()
464 g_uartCtx[device->uartId - 1].deGroup = resource->deGroup; in GetUartDeviceResource()
465 g_uartCtx[device->uartId - 1].uartType = resource->uartType; in GetUartDeviceResource()
503 g_uartCtx[device->uartId - 1].dePin = resource->dePin; in GetUartDeviceResource()
504 g_uartCtx[device->uartId - 1].deGroup = resource->deGroup; in GetUartDeviceResource()
505 g_uartCtx[device->uartId - 1].uartType = resource->uartType; in GetUartDeviceResource()
661 if (g_uartCtx[portI
[all...]
H A Duart_wm.c63 static struct UART_CTX_OBJ g_uartCtx[4] = {0}; variable
98 OsalSemPost(&g_uartCtx[uartId].txSem); in dma_tx_cmpl_callback()
111 ret = OsalSemWait(&g_uartCtx[uartId].txSem, timeOut); in HalUartSend()
166 OsalSemInit(&g_uartCtx[uartId].rxSem, 0); in HalUartHandlerInit()
167 OsalSemInit(&g_uartCtx[uartId].txSem, 0); in HalUartHandlerInit()
369 OsalSemDestroy(&g_uartCtx[uartId].rxSem); in UartDriverRelease()
370 OsalSemDestroy(&g_uartCtx[uartId].txSem); in UartDriverRelease()
443 if (g_uartCtx[portId].txDMA) { in UartHostDevWrite()
467 if (g_uartCtx[uartId].rxDMA) { in UartHostDevRead()
475 if (g_uartCtx[uartI in UartHostDevRead()
[all...]

Completed in 3 milliseconds