Lines Matching refs:temp
97 uint8_t temp = (MEC_BIT(MEC_UART_FCR_EXRF_Pos) | MEC_BIT(MEC_UART_FCR_CLR_RX_FIFO_Pos) in uart_prog_fifos() local
101 base->FCR = temp; in uart_prog_fifos()
102 base->SCR = temp; in uart_prog_fifos()
104 temp = uart_fcr_tbl[fifo_mode]; in uart_prog_fifos()
106 base->FCR = temp; in uart_prog_fifos()
107 base->SCR = temp; in uart_prog_fifos()
217 uint8_t temp = 0u; in mec_hal_uart_word_len_get() local
223 temp = base->LCR & MEC_UART_LCR_WORD_LEN_Msk; in mec_hal_uart_word_len_get()
225 if (uart_word_len_tbl[i] == temp) { in mec_hal_uart_word_len_get()
287 uint32_t temp = 0; in prog_cfg1() local
290 temp = MEC_BIT(MEC_UART_CFGS_CLK_SRC_EXT_Pos); in prog_cfg1()
294 temp |= MEC_BIT(MEC_UART_CFGS_RESET_SRC_Pos); in prog_cfg1()
298 temp |= MEC_BIT(MEC_UART_CFGS_POLARITY_Pos); in prog_cfg1()
301 regs->CFGS = (uint8_t)(temp & 0xffu); in prog_cfg1()
367 uint32_t temp = 0; in prog_fifo() local
374 temp = (config & MEC5_UART_CFG_RX_FIFO_TRIG_LVL_MSK) >> MEC5_UART_CFG_RX_FIFO_TRIG_LVL_POS; in prog_fifo()
375 temp = (temp << MEC_UART_FCR_RXF_TLVL_Pos) & MEC_UART_FCR_RXF_TLVL_Msk; in prog_fifo()
376 fcr |= (uint8_t)(temp & 0xffu); in prog_fifo()
422 uint8_t temp = 0; in mec_hal_uart_init() local
460 temp = regs->SCR; /* preserve FCR value saved in SCR */ in mec_hal_uart_init()
464 regs->SCR = temp; in mec_hal_uart_init()
811 uint8_t temp = 0; in mec_hal_uart_rx_byte() local
819 temp = base->RXB; in mec_hal_uart_rx_byte()
821 *data = temp; in mec_hal_uart_rx_byte()