Lines Matching +full:odd +full:- +full:parity
1 // SPDX-License-Identifier: GPL-2.0-or-later
31 enum mantis_parity parity; member
46 } parity[3] = { variable
48 { "ODD" },
54 struct mantis_hwconfig *config = mantis->hwconfig; in mantis_uart_read()
59 for (i = 0; i < (config->bytes + 1); i++) { in mantis_uart_read()
71 dprintk(MANTIS_ERROR, 1, "UART parity error"); in mantis_uart_read()
92 * config->bytes + 1 bytes are in the FIFO. in mantis_uart_work()
105 /* re-enable UART (RX) interrupt */ in mantis_uart_work()
114 mmwrite((mmread(MANTIS_UART_CTL) | (params->parity & 0x3)), MANTIS_UART_CTL); in mantis_uart_setup()
118 switch (params->baud_rate) { in mantis_uart_setup()
135 return -EINVAL; in mantis_uart_setup()
145 struct mantis_hwconfig *config = mantis->hwconfig; in mantis_uart_init()
148 /* default parity: */ in mantis_uart_init()
149 params.baud_rate = config->baud_rate; in mantis_uart_init()
150 params.parity = config->parity; in mantis_uart_init()
151 dprintk(MANTIS_INFO, 1, "Initializing UART @ %sbps parity:%s", in mantis_uart_init()
153 parity[params.parity].string); in mantis_uart_init()
155 INIT_WORK(&mantis->uart_work, mantis_uart_work); in mantis_uart_init()
163 mmwrite((mmread(MANTIS_UART_BAUD) | (config->bytes << 8)), MANTIS_UART_BAUD); in mantis_uart_init()
172 schedule_work(&mantis->uart_work); in mantis_uart_init()
184 flush_work(&mantis->uart_work); in mantis_uart_exit()