Lines Matching refs:val
163 uint8_t val; in mec_hal_uart_parity_set() local
169 val = uart_parity_tbl[parity]; in mec_hal_uart_parity_set()
172 | val; in mec_hal_uart_parity_set()
201 uint8_t val; in mec_hal_uart_word_len_set() local
207 val = uart_word_len_tbl[word_len]; in mec_hal_uart_word_len_set()
209 base->LCR = (base->LCR & (uint8_t)~MEC_UART_LCR_WORD_LEN_Msk) | val; in mec_hal_uart_word_len_set()
341 uint32_t val = ((config & MEC5_UART_CFG_WORD_LEN_MSK) >> MEC5_UART_CFG_WORD_LEN_POS); in prog_word_len() local
343 val = (val << MEC_UART_LCR_WORD_LEN_Pos) & MEC_UART_LCR_WORD_LEN_Msk; in prog_word_len()
344 regs->LCR = (regs->LCR & (uint8_t)~MEC_UART_LCR_WORD_LEN_Msk) | (uint8_t)(val & 0xffu); in prog_word_len()
349 uint32_t val = ((config & MEC5_UART_CFG_PARITY_MSK) >> MEC5_UART_CFG_PARITY_POS); in prog_parity() local
351 val <<= MEC_UART_LCR_PARITY_Pos; in prog_parity()
352 regs->LCR = (regs->LCR & 0xc7u) | (uint8_t)(val & 0xffu); in prog_parity()
567 int mec_hal_uart_intr_mask(struct mec_uart_regs *base, uint8_t msk, uint8_t val) in mec_hal_uart_intr_mask() argument
575 base->IER = (base->IER & ~msk) | val; in mec_hal_uart_intr_mask()