Lines Matching refs:MEC_BIT
55 (MEC_BIT(MEC_UART_LCR_PARITY_Pos) | MEC5_UART_ODD_PARITY_REG_VAL),
56 (MEC_BIT(MEC_UART_LCR_PARITY_Pos) | MEC5_UART_EVEN_PARITY_REG_VAL),
57 (MEC_BIT(MEC_UART_LCR_PARITY_Pos) | MEC5_UART_MARK_PARITY_REG_VAL),
58 (MEC_BIT(MEC_UART_LCR_PARITY_Pos) | MEC5_UART_SPACE_PARITY_REG_VAL),
63 (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | (MEC_UART_FCR_RXF_TLVL_1BYTE << MEC_UART_FCR_RXF_TLVL_Pos)),
64 (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | (MEC_UART_FCR_RXF_TLVL_4BYTES << MEC_UART_FCR_RXF_TLVL_Pos)),
65 (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | (MEC_UART_FCR_RXF_TLVL_8BYTES << MEC_UART_FCR_RXF_TLVL_Pos)),
66 (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | (MEC_UART_FCR_RXF_TLVL_14BYTES << MEC_UART_FCR_RXF_TLVL_Pos)),
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()
97 uint8_t temp = (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | MEC_BIT(MEC_UART_FCR_CLR_RX_FIFO_Pos) in uart_prog_fifos()
98 | MEC_BIT(MEC_UART_FCR_CLR_TX_FIFO_Pos)); in uart_prog_fifos()
118 if (base->SCR & MEC_BIT(MEC_UART_FCR_EXRF_Pos)) { in mec_hal_uart_tx_fifo_size()
145 if (base->CFGS & MEC_BIT(MEC_UART_CFGS_CLK_SRC_EXT_Pos)) { in mec_hal_uart_clock_freq_get()
151 if (brdiv & MEC_BIT(15)) { in mec_hal_uart_clock_freq_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()
290 temp = MEC_BIT(MEC_UART_CFGS_CLK_SRC_EXT_Pos); in prog_cfg1()
293 if (config & MEC_BIT(MEC5_UART_CFG_RESET_HOST_POS)) { in prog_cfg1()
294 temp |= MEC_BIT(MEC_UART_CFGS_RESET_SRC_Pos); in prog_cfg1()
297 if (config & MEC_BIT(MEC5_UART_CFG_INVERT_LINES_POS)) { in prog_cfg1()
298 temp |= MEC_BIT(MEC_UART_CFGS_POLARITY_Pos); in prog_cfg1()
321 brg |= MEC_BIT(15); in prog_baud_rate()
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()
357 if (config & MEC_BIT(MEC5_UART_CFG_STOP_BITS_POS)) { in prog_stop_bits()
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()
370 fcr = (uint8_t)MEC_BIT(MEC_UART_FCR_EXRF_Pos); /* enable FIFO */ in prog_fifo()
372 regs->FCR = fcr | MEC_BIT(MEC_UART_FCR_CLR_RX_FIFO_Pos) | MEC_BIT(MEC_UART_FCR_CLR_TX_FIFO_Pos); in prog_fifo()
373 if (config & MEC_BIT(MEC5_UART_CFG_FIFO_EN_POS)) { in prog_fifo()
387 regs->ACTV |= (uint8_t)MEC_BIT(MEC_UART_ACTV_CLKS_Pos); in uart_activate()
389 regs->ACTV &= (uint8_t)~MEC_BIT(MEC_UART_ACTV_CLKS_Pos); in uart_activate()
396 regs->MCR |= (uint8_t)MEC_BIT(MEC_UART_MCR_OUT2_Pos); in uart_intr_out_enable()
398 regs->MCR &= (uint8_t)~MEC_BIT(MEC_UART_MCR_OUT2_Pos); in uart_intr_out_enable()
469 if (config & MEC_BIT(MEC5_UART_CFG_GIRQ_EN_POS)) { in mec_hal_uart_init()
618 if (iir & MEC_BIT(MEC_UART_FCR_EXRF_Pos)) { in mec_hal_uart_pending_status()
654 if (base->LSR & MEC_BIT(MEC_UART_LSR_DRDY_Pos)) { in mec_hal_uart_is_rx_data()
670 if (base->LSR & MEC_BIT(MEC_UART_LSR_THRE_Pos)) { in mec_hal_uart_is_tx_fifo_empty()
686 if (base->LSR & MEC_BIT(MEC_UART_LSR_THSE_Pos)) { in mec_hal_uart_is_tx_empty()
708 base->MCR |= MEC_BIT(bitpos); in mec_hal_uart_dtr_rts_set()
710 base->MCR &= (uint8_t)~MEC_BIT(bitpos); in mec_hal_uart_dtr_rts_set()
747 if (!(base->LSRB & MEC_BIT(MEC_UART_LSRB_TXF_FULL_STS_Pos))) { /* if not full */ in mec_hal_uart_tx_byte()
757 if (base->LSR & MEC_BIT(MEC_UART_LSR_THRE_Pos)) { in mec_hal_uart_tx_byte()
781 if (!(base->LSRB & MEC_BIT(MEC_UART_LSRB_TXF_FULL_STS_Pos))) { in mec_hal_uart_tx()
791 if (base->LSR & MEC_BIT(MEC_UART_LSR_THRE_Pos)) { in mec_hal_uart_tx()
818 if (base->LSR & MEC_BIT(MEC_UART_LSR_DRDY_Pos)) { in mec_hal_uart_rx_byte()
823 if (lsr & (MEC_BIT(MEC_UART_LSR_OVR_ERR_Pos) | MEC_BIT(MEC_UART_LSR_PAR_ERR_Pos) in mec_hal_uart_rx_byte()
824 | MEC_BIT(MEC_UART_LSR_FR_ERR_Pos))) { in mec_hal_uart_rx_byte()