/Zephyr-Core-3.7.0/drivers/serial/ |
D | uart_cdns.h | 101 #define CDNS_PARTITY_MAP(parity) \ argument 102 (parity == UART_CFG_PARITY_NONE) ? NO_PARITY_VAL \ 103 : (parity == UART_CFG_PARITY_ODD) ? ODD_PARITY_VAL \ 104 : (parity == UART_CFG_PARITY_MARK) ? MARK_PARITY_VAL \ 105 : (parity == UART_CFG_PARITY_SPACE) ? SPACE_PARITY_VAL \ 134 uint8_t parity; member
|
D | uart_numicro.c | 82 static inline uint32_t uart_numicro_convert_parity(enum uart_config_parity parity) in uart_numicro_convert_parity() argument 84 switch (parity) { in uart_numicro_convert_parity() 106 uint32_t parity; in uart_numicro_configure() local 126 parity = uart_numicro_convert_parity(cfg->parity); in uart_numicro_configure() 128 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, in uart_numicro_configure()
|
D | usart_gd32.c | 29 uint32_t parity; member 59 uint32_t parity; in usart_gd32_init() local 71 switch (cfg->parity) { in usart_gd32_init() 73 parity = USART_PM_NONE; in usart_gd32_init() 77 parity = USART_PM_ODD; in usart_gd32_init() 81 parity = USART_PM_EVEN; in usart_gd32_init() 94 usart_parity_config(cfg->reg, parity); in usart_gd32_init() 331 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
|
D | uart_b91.c | 202 uint8_t bwpc, uint8_t parity, uint8_t stop_bit) in uart_b91_init() argument 210 if (parity) { in uart_b91_init() 214 if (parity == UART_PARITY_EVEN) { in uart_b91_init() 217 } else if (parity == UART_PARITY_ODD) { in uart_b91_init() 252 uint8_t parity; in uart_b91_configure() local 258 if (cfg->parity == UART_CFG_PARITY_NONE) { in uart_b91_configure() 259 parity = UART_PARITY_NONE; in uart_b91_configure() 260 } else if (cfg->parity == UART_CFG_PARITY_ODD) { in uart_b91_configure() 261 parity = UART_PARITY_ODD; in uart_b91_configure() 262 } else if (cfg->parity == UART_CFG_PARITY_EVEN) { in uart_b91_configure() [all …]
|
D | uart_max32.c | 99 if (data->conf.parity != uart_cfg->parity) { in api_configure() 102 switch (uart_cfg->parity) { in api_configure() 135 data->conf.parity = uart_cfg->parity; in api_configure() 442 .uart_conf.parity = DT_INST_ENUM_IDX_OR(_num, parity, UART_CFG_PARITY_NONE), \
|
D | uart_ifx_cat1.c | 55 .parity = CY_SCB_UART_PARITY_NONE, 85 static cyhal_uart_parity_t _convert_uart_parity_z_to_cyhal(enum uart_config_parity parity) in _convert_uart_parity_z_to_cyhal() argument 89 switch (parity) { in _convert_uart_parity_z_to_cyhal() 216 .parity = _convert_uart_parity_z_to_cyhal(cfg->parity) in ifx_cat1_uart_configure() 519 .dt_cfg.parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
|
D | uart_native_tty.c | 79 switch (cfg->parity) { in native_tty_conv_to_bottom_cfg() 81 bottom_cfg->parity = NTB_PARITY_NONE; in native_tty_conv_to_bottom_cfg() 84 bottom_cfg->parity = NTB_PARITY_ODD; in native_tty_conv_to_bottom_cfg() 87 bottom_cfg->parity = NTB_PARITY_EVEN; in native_tty_conv_to_bottom_cfg() 397 .parity = UART_CFG_PARITY_NONE, \
|
D | uart_native_tty_bottom.c | 100 enum native_tty_bottom_parity parity) in native_tty_baud_parity_set() argument 102 switch (parity) { in native_tty_baud_parity_set() 212 native_tty_baud_parity_set(&ter, cfg->parity); in native_tty_configure_bottom()
|
D | uart_native_tty_bottom.h | 47 enum native_tty_bottom_parity parity; member
|
D | uart_numaker.c | 125 static inline uint32_t uart_numaker_convert_parity(enum uart_config_parity parity) in uart_numaker_convert_parity() argument 127 switch (parity) { in uart_numaker_convert_parity() 148 uint32_t parity; in uart_numaker_configure() local 168 parity = uart_numaker_convert_parity(cfg->parity); in uart_numaker_configure() 170 UART_SetLineConfig(config->uart, cfg->baudrate, databits, parity, stopbits); in uart_numaker_configure()
|
D | uart_lpc11u6x.c | 113 switch (cfg->parity) { in lpc11u6x_uart0_configure() 177 data->parity = cfg->parity; in lpc11u6x_uart0_configure() 188 cfg->parity = data->parity; in lpc11u6x_uart0_config_get() 363 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uart0_init() 521 switch (cfg->parity) { in lpc11u6x_uartx_configure() 593 data->parity = cfg->parity; in lpc11u6x_uartx_configure() 607 cfg->parity = data->parity; in lpc11u6x_uartx_config_get() 796 data->parity = UART_CFG_PARITY_NONE; in lpc11u6x_uartx_init()
|
D | uart_stm32.c | 218 uint32_t parity) in uart_stm32_set_parity() argument 222 LL_USART_SetParity(config->usart, parity); in uart_stm32_set_parity() 298 static inline uint32_t uart_stm32_cfg2ll_parity(enum uart_config_parity parity) in uart_stm32_cfg2ll_parity() argument 300 switch (parity) { in uart_stm32_cfg2ll_parity() 311 static inline enum uart_config_parity uart_stm32_ll2cfg_parity(uint32_t parity) in uart_stm32_ll2cfg_parity() argument 313 switch (parity) { in uart_stm32_ll2cfg_parity() 481 const uint32_t parity = uart_stm32_cfg2ll_parity(cfg->parity); in uart_stm32_parameters_set() local 484 cfg->parity); in uart_stm32_parameters_set() 497 parity, in uart_stm32_parameters_set() 503 if (parity != uart_stm32_get_parity(dev)) { in uart_stm32_parameters_set() [all …]
|
D | uart_sam.c | 126 static uint32_t uart_sam_cfg2sam_parity(uint8_t parity) in uart_sam_cfg2sam_parity() argument 128 switch (parity) { in uart_sam_cfg2sam_parity() 189 | uart_sam_cfg2sam_parity(cfg->parity); in uart_sam_configure() 209 cfg->parity = uart_sam_get_parity(dev); in uart_sam_config_get() 412 .parity = UART_CFG_PARITY_NONE, in uart_sam_init()
|
D | uart_mcux_iuart.c | 23 uint8_t parity; member 247 switch (config->parity) { in mcux_iuart_init() 332 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
|
D | uart_mcux_flexcomm.c | 41 uint8_t parity; member 307 if (cfg->parity == UART_CFG_PARITY_ODD) { in mcux_flexcomm_uart_configure() 309 } else if (cfg->parity == UART_CFG_PARITY_EVEN) { in mcux_flexcomm_uart_configure() 311 } else if (cfg->parity == UART_CFG_PARITY_NONE) { in mcux_flexcomm_uart_configure() 369 uart_config->parity = cfg->parity; in mcux_flexcomm_uart_configure() 1031 if (config->parity == UART_CFG_PARITY_ODD) { in mcux_flexcomm_init() 1033 } else if (config->parity == UART_CFG_PARITY_EVEN) { in mcux_flexcomm_init() 1047 cfg->parity = config->parity; in mcux_flexcomm_init() 1191 .parity = DT_INST_ENUM_IDX_OR(n, parity, UART_CFG_PARITY_NONE), \
|
D | uart_lpc11u6x.h | 145 uint8_t parity; member 183 uint8_t parity; member
|
D | usart_sam.c | 125 static uint32_t usart_sam_cfg2sam_parity(uint8_t parity) in usart_sam_cfg2sam_parity() argument 127 switch (parity) { in usart_sam_cfg2sam_parity() 279 | usart_sam_cfg2sam_parity(cfg->parity) in usart_sam_configure() 302 cfg->parity = usart_sam_get_parity(dev); in usart_sam_config_get() 504 .parity = UART_CFG_PARITY_NONE, in usart_sam_init()
|
D | uart_cdns.c | 258 SET_VAL32(MODE_PAR, dev_cfg->parity)); in uart_cdns_init() 304 .parity = CDNS_PARTITY_MAP(DT_ENUM_IDX(DT_DRV_INST(n), parity)), \
|
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_elementary/src/ |
D | main.c | 138 .parity = UART_CFG_PARITY_NONE, in ZTEST() 153 zassert_equal(test_uart_config.parity, test_expected_uart_config.parity, in ZTEST() 155 test_uart_config.parity, test_expected_uart_config.parity); in ZTEST() 179 .parity = 7, in ZTEST() 199 .parity = UART_CFG_PARITY_ODD, in ZTEST() 236 .parity = UART_CFG_PARITY_EVEN, in ZTEST() 243 .parity = UART_CFG_PARITY_EVEN, in ZTEST()
|
/Zephyr-Core-3.7.0/tests/subsys/modbus/src/ |
D | test_modbus_server.c | 182 .parity = UART_CFG_PARITY_ODD, 206 server_param.serial.parity = UART_CFG_PARITY_ODD; in test_server_setup_low_odd() 223 server_param.serial.parity = UART_CFG_PARITY_NONE; in test_server_setup_low_none() 240 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_high_even() 257 server_param.serial.parity = UART_CFG_PARITY_EVEN; in test_server_setup_ascii()
|
D | test_modbus_client.c | 210 .parity = UART_CFG_PARITY_ODD, 235 client_param.serial.parity = UART_CFG_PARITY_NONE; in test_client_setup_low_none() 249 client_param.serial.parity = UART_CFG_PARITY_ODD; in test_client_setup_low_odd() 263 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_high_even() 277 client_param.serial.parity = UART_CFG_PARITY_EVEN; in test_client_setup_ascii()
|
/Zephyr-Core-3.7.0/tests/drivers/build_all/uart/boards/ |
D | qemu_cortex_m3.overlay | 16 parity = "none";
|
/Zephyr-Core-3.7.0/drivers/mfd/ |
D | mfd_tle9104.c | 128 int parity = 1 + POPCOUNT(value); in tle9104_calculate_parity() local 131 parity--; in tle9104_calculate_parity() 134 return parity % 2; in tle9104_calculate_parity() 139 int parity = tle9104_calculate_parity(*value); in tle9104_apply_parity() local 141 WRITE_BIT(*value, TLE9104_FRAME_PARITY_POS, parity); in tle9104_apply_parity() 146 int parity = tle9104_calculate_parity(value); in tle9104_check_parity() local 148 return ((value & BIT(TLE9104_FRAME_PARITY_POS)) >> TLE9104_FRAME_PARITY_POS) == parity; in tle9104_check_parity()
|
/Zephyr-Core-3.7.0/subsys/debug/gdbstub/ |
D | gdbstub_backend_serial.c | 18 .parity = UART_CFG_PARITY_NONE, in z_gdb_backend_init()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/host/classic/ |
D | rfcomm_internal.h | 121 #define BT_RFCOMM_SET_LINE_SETTINGS(data, stop, parity) ((data & 0x3) | \ argument 123 ((parity & 0x7) << 3))
|