Home
last modified time | relevance | path

Searched refs:parity (Results 1 - 12 of 12) sorted by relevance

/drivers/hdf_core/framework/sample/platform/uart/src/
H A Duart_pl011_sample.c56 void UartPl011SetDataFormat(struct UartRegisterMap *regMap, uint32_t wordLen, uint32_t parity, uint32_t stopBits) in UartPl011SetDataFormat() argument
61 lcr |= parity & UART_PL011_LCR_H_PARITY_MASK; in UartPl011SetDataFormat()
H A Duart_sample.c174 UartPl011SetDataFormat(regMap, resource->wlen, resource->parity, resource->stopBit); in InitUartDevice()
218 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
219 HDF_LOGE("uart config read parity fail"); in GetUartDeviceResource()
/drivers/hdf_core/adapter/platform/uart/
H A Duart_gr5xx.c129 uint32_t parity; in GetUartParity() local
133 parity = UART_PARITY_NONE; in GetUartParity()
136 parity = UART_PARITY_ODD; in GetUartParity()
139 parity = UART_PARITY_EVEN; in GetUartParity()
142 parity = UART_PARITY_NONE; in GetUartParity()
146 return parity; in GetUartParity()
164 params->init.parity = GetUartParity(udd->attr.parity); in Gr5xxUartConfig()
653 udd->attr.parity = DEFAULT_PARITY; in UartDevAttach()
H A Duart_asr.c163 uint32_t parity; in GetUartParity() local
167 parity = PARITY_NO; in GetUartParity()
170 parity = PARITY_ODD; in GetUartParity()
173 parity = PARITY_EVEN; in GetUartParity()
176 parity = PARITY_NO; in GetUartParity()
180 return parity; in GetUartParity()
214 params->config.parity = GetUartParity(udd->attr.parity); in Asr582xUartConfig()
609 udd->attr.parity = DEFAULT_PARITY; in UartDevAttach()
H A Duart_bes.c49 .parity = HAL_UART_PARITY_NONE,
471 resource->parity = HCS_PROP(node, parity); \
502 device->config.parity = resource->parity; in GetUartDeviceResource()
538 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
539 HDF_LOGE("uart config read parity fail"); in GetUartDeviceResource()
558 device->config.parity = resource->parity; in GetUartDeviceResource()
[all...]
H A Duart_stm32f4xx.c112 USART_PARITY_CHECK parity; member
389 if (dri->GetUint8(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartHcs()
433 resource->parity = HCS_PROP(node, parity); \
473 device->initTypedef.Parity = g_parityMap[resource->parity]; in GetUartDeviceResource()
513 device->initTypedef.Parity = g_parityMap[resource->parity]; in GetUartDeviceResource()
794 attribute->parity = UART_ATTR_PARITY_NONE;
797 attribute->parity = UART_ATTR_PARITY_EVEN;
800 attribute->parity
[all...]
H A Duart_bes.h28 uint32_t parity; /* Default parity */ member
H A Duart_wm.c30 uint32_t parity; /* Default parity */ member
280 if (dri->GetUint32(resourceNode, "parity", &resource->parity, 0) != HDF_SUCCESS) { in GetUartDeviceResource()
281 HDF_LOGE("uart config read parity fail"); in GetUartDeviceResource()
289 HDF_LOGI("%d, %d, %d", resource->num, resource->baudRate, resource->parity); in GetUartDeviceResource()
294 device->config.paritytype = (TLS_UART_PMODE_T)resource->parity; in GetUartDeviceResource()
553 uartCfg->paritytype = attribute->parity; in UartHostDevSetAttribute()
596 attribute->parity = uartCfg->paritytype; in UartHostDevGetAttribute()
/drivers/hdf_core/framework/include/platform/
H A Duart_if.h87 * UART_ATTR_PARITY_NONE | No parity bit
88 * UART_ATTR_PARITY_ODD | Odd parity bit
89 * UART_ATTR_PARITY_EVEN | Even parity bit
93 unsigned int parity : 4; member
95 * @brief Indicates that the UART device has no parity bit.
101 * @brief Indicates that the UART device has an odd parity bit.
107 * @brief Indicates that the UART device has an even parity bit.
113 * @brief Indicates that the parity bit is 1.
119 * @brief Indicates that the parity bit is 0.
336 * UART attributes include data bits, stop bits, parity bi
[all...]
/drivers/hdf_core/framework/sample/platform/uart/include/
H A Duart_pl011_sample.h49 uint32_t parity; /* Default parity */ member
93 #define UART_PL011_LCR_H_EPS_MASK (1 << 0x2u) /* Even parity select bit mask . */
95 #define UART_PL011_LCR_H_SPS_MASK (1 << 0x7u) /* Stick parity select bit mask */
218 void UartPl011SetDataFormat(struct UartRegisterMap *regMap, uint32_t wordLen, uint32_t parity, uint32_t stopBits);
/drivers/hdf_core/adapter/khdf/linux/platform/uart/
H A Duart_adapter.c437 attribute->parity = PariTyToAttr(termios.c_cflag); in UartAdapterGetAttribute()
472 if (attribute->parity == UART_ATTR_PARITY_ODD) { in UartAdapterSetAttribute()
474 } else if (attribute->parity == UART_ATTR_PARITY_EVEN) { in UartAdapterSetAttribute()
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Duart_test.c204 attribute.parity = UART_ATTR_PARITY_NONE; in UartSetAttributeTest()
230 HDF_LOGD("UartGetAttributeTest: parity %u", attribute.parity); in UartGetAttributeTest()

Completed in 16 milliseconds