Lines Matching refs:ser
18 struct serial_regs *ser; member
34 if (config->ser->SERSTS & SERSTS_RX_OVERRUN) { in kb1200_uart_err_check()
37 if (config->ser->SERSTS & SERSTS_PARITY_ERROR) { in kb1200_uart_err_check()
40 if (config->ser->SERSTS & SERSTS_FRAME_ERROR) { in kb1200_uart_err_check()
107 config->ser->SERCFG = in kb1200_uart_configure()
109 config->ser->SERCTRL = SERCTRL_MODE1; in kb1200_uart_configure()
131 while (config->ser->SERSTS & SERSTS_TX_FULL) in kb1200_uart_fifo_fill()
134 config->ser->SERTBUF = tx_data[tx_bytes]; in kb1200_uart_fifo_fill()
146 while ((size - rx_bytes > 0) && (!(config->ser->SERSTS & SERSTS_RX_EMPTY))) { in kb1200_uart_fifo_read()
148 rx_data[rx_bytes] = config->ser->SERRBUF; in kb1200_uart_fifo_read()
158 config->ser->SERPF = SERPF_TX_EMPTY; in kb1200_uart_irq_tx_enable()
159 config->ser->SERIE |= SERIE_TX_ENABLE; in kb1200_uart_irq_tx_enable()
166 config->ser->SERIE &= ~SERIE_TX_ENABLE; in kb1200_uart_irq_tx_disable()
167 config->ser->SERPF = SERPF_TX_EMPTY; in kb1200_uart_irq_tx_disable()
181 config->ser->SERPF = SERPF_RX_CNT_FULL; in kb1200_uart_irq_rx_enable()
182 config->ser->SERIE |= SERIE_RX_ENABLE; in kb1200_uart_irq_rx_enable()
189 config->ser->SERIE &= (~SERIE_RX_ENABLE); in kb1200_uart_irq_rx_disable()
190 config->ser->SERPF = SERPF_RX_CNT_FULL; in kb1200_uart_irq_rx_disable()
204 config->ser->SERPF = SERPF_RX_ERROR; in kb1200_uart_irq_err_enable()
205 config->ser->SERIE |= SERIE_RX_ERROR; in kb1200_uart_irq_err_enable()
212 config->ser->SERIE &= (~SERIE_RX_ERROR); in kb1200_uart_irq_err_disable()
213 config->ser->SERPF = SERPF_RX_ERROR; in kb1200_uart_irq_err_disable()
228 data->pending_flag_data = (config->ser->SERPF) & (config->ser->SERIE); in kb1200_uart_irq_update()
230 config->ser->SERPF = data->pending_flag_data; in kb1200_uart_irq_update()
261 if (config->ser->SERSTS & SERSTS_RX_EMPTY) { in kb1200_uart_poll_in()
265 *c = config->ser->SERRBUF; in kb1200_uart_poll_in()
278 while (config->ser->SERSTS & SER_TxFull) { in kb1200_uart_poll_out()
282 config->ser->SERTBUF = c; in kb1200_uart_poll_out()
322 if (config->ser->SERIE & config->ser->SERPF) { in kb1200_uart_isr_wrap()
374 .ser = (struct serial_regs *)DT_INST_REG_ADDR(n), \