Lines Matching refs:LCR
86 base->LCR |= MEC_BIT(MEC_UART_LCR_DLAB_Pos); in uart_baud_divider_get()
90 base->LCR &= (uint8_t)~MEC_BIT(MEC_UART_LCR_DLAB_Pos); in uart_baud_divider_get()
186 reg_val = base->LCR & (MEC_UART_LCR_PARITY_Msk | MEC_UART_LCR_PARITY_SEL_Msk); in mec_hal_uart_parity_get()
209 base->LCR = (base->LCR & (uint8_t)~MEC_UART_LCR_WORD_LEN_Msk) | val; in mec_hal_uart_word_len_set()
223 temp = base->LCR & MEC_UART_LCR_WORD_LEN_Msk; in mec_hal_uart_word_len_get()
247 base->LCR |= MEC_BIT(MEC_UART_LCR_STOP_BITS_Pos); in mec_hal_uart_stop_bits_set()
249 base->LCR &= (uint8_t)~MEC_BIT(MEC_UART_LCR_STOP_BITS_Pos); in mec_hal_uart_stop_bits_set()
263 if (base->LCR & MEC_BIT(MEC_UART_LCR_STOP_BITS_Pos)) { in mec_hal_uart_stop_bits_get()
331 regs->LCR |= (uint8_t)MEC_BIT(MEC_UART_LCR_DLAB_Pos); in prog_baud_rate()
334 regs->LCR &= (uint8_t)~MEC_BIT(MEC_UART_LCR_DLAB_Pos); in prog_baud_rate()
344 regs->LCR = (regs->LCR & (uint8_t)~MEC_UART_LCR_WORD_LEN_Msk) | (uint8_t)(val & 0xffu); in prog_word_len()
352 regs->LCR = (regs->LCR & 0xc7u) | (uint8_t)(val & 0xffu); in prog_parity()
358 regs->LCR |= (uint8_t)MEC_BIT(MEC_UART_LCR_STOP_BITS_Pos); in prog_stop_bits()
360 regs->LCR &= (uint8_t)~MEC_BIT(MEC_UART_LCR_STOP_BITS_Pos); in prog_stop_bits()