Lines Matching refs:mec_uart_regs

69 static struct mec_uart_info const *get_uart_info(struct mec_uart_regs *regs)  in get_uart_info()
82 static uint32_t uart_baud_divider_get(struct mec_uart_regs *base) in uart_baud_divider_get()
95 static void uart_prog_fifos(struct mec_uart_regs *base, uint8_t fifo_mode) in uart_prog_fifos()
110 int mec_hal_uart_tx_fifo_size(struct mec_uart_regs *base) in mec_hal_uart_tx_fifo_size()
125 int mec_hal_uart_rx_fifo_size(struct mec_uart_regs *base) in mec_hal_uart_rx_fifo_size()
136 int mec_hal_uart_clock_freq_get(struct mec_uart_regs *base, uint32_t *clock_freq) in mec_hal_uart_clock_freq_get()
160 int mec_hal_uart_parity_set(struct mec_uart_regs *base, uint8_t parity) in mec_hal_uart_parity_set()
177 int mec_hal_uart_parity_get(struct mec_uart_regs *base, uint8_t *parity) in mec_hal_uart_parity_get()
198 int mec_hal_uart_word_len_set(struct mec_uart_regs *base, uint8_t word_len) in mec_hal_uart_word_len_set()
214 int mec_hal_uart_word_len_get(struct mec_uart_regs *base, uint8_t *word_len) in mec_hal_uart_word_len_get()
238 int mec_hal_uart_stop_bits_set(struct mec_uart_regs *base, uint8_t stop_bits) in mec_hal_uart_stop_bits_set()
255 int mec_hal_uart_stop_bits_get(struct mec_uart_regs *base, uint8_t *stop_bits) in mec_hal_uart_stop_bits_get()
272 int mec_hal_uart_fifo_control(struct mec_uart_regs *base, uint8_t fifo_mode) in mec_hal_uart_fifo_control()
285 static void prog_cfg1(struct mec_uart_regs *regs, uint32_t config, uint32_t extclk_hz) in prog_cfg1()
307 static int prog_baud_rate(struct mec_uart_regs *regs, uint32_t baud_rate, uint32_t extclk_hz) in prog_baud_rate()
339 static void prog_word_len(struct mec_uart_regs *regs, uint32_t config) in prog_word_len()
347 static void prog_parity(struct mec_uart_regs *regs, uint32_t config) in prog_parity()
355 static void prog_stop_bits(struct mec_uart_regs *regs, uint32_t config) in prog_stop_bits()
365 static void prog_fifo(struct mec_uart_regs *regs, uint32_t config) in prog_fifo()
384 static void uart_activate(struct mec_uart_regs *regs, uint8_t enable) in uart_activate()
393 static void uart_intr_out_enable(struct mec_uart_regs *regs, uint8_t enable) in uart_intr_out_enable()
402 int mec_hal_uart_power_on(struct mec_uart_regs *regs, uint32_t cfg_flags) in mec_hal_uart_power_on()
418 int mec_hal_uart_init(struct mec_uart_regs *regs, uint32_t baud_rate, in mec_hal_uart_init()
476 int mec_hal_uart_activate(struct mec_uart_regs *regs, uint8_t enable) in mec_hal_uart_activate()
487 int mec_hal_uart_girq_ctrl(struct mec_uart_regs *regs, uint8_t enable) in mec_hal_uart_girq_ctrl()
500 int mec_hal_uart_girq_clear(struct mec_uart_regs *regs) in mec_hal_uart_girq_clear()
513 bool mec_hal_uart_is_girq_status(struct mec_uart_regs *regs) in mec_hal_uart_is_girq_status()
524 bool mec_hal_uart_is_girq_result(struct mec_uart_regs *regs) in mec_hal_uart_is_girq_result()
535 int mec_hal_uart_baud_rate_set(struct mec_uart_regs *base, uint32_t baud, uint32_t extclk_hz) in mec_hal_uart_baud_rate_set()
549 int mec_hal_uart_intr_control(struct mec_uart_regs *base, uint8_t enmask) in mec_hal_uart_intr_control()
567 int mec_hal_uart_intr_mask(struct mec_uart_regs *base, uint8_t msk, uint8_t val) in mec_hal_uart_intr_mask()
580 int mec_hal_uart_raw_status(struct mec_uart_regs *base, enum mec_uart_sts_reg regid, in mec_hal_uart_raw_status()
607 int mec_hal_uart_pending_status(struct mec_uart_regs *base, enum mec_uart_ipend *ipend) in mec_hal_uart_pending_status()
646 int mec_hal_uart_is_rx_data(struct mec_uart_regs *base) in mec_hal_uart_is_rx_data()
662 int mec_hal_uart_is_tx_fifo_empty(struct mec_uart_regs *base) in mec_hal_uart_is_tx_fifo_empty()
678 int mec_hal_uart_is_tx_empty(struct mec_uart_regs *base) in mec_hal_uart_is_tx_empty()
693 int mec_hal_uart_dtr_rts_set(struct mec_uart_regs *base, uint8_t sel_rts, in mec_hal_uart_dtr_rts_set()
737 int mec_hal_uart_tx_byte(struct mec_uart_regs *base, uint8_t data) in mec_hal_uart_tx_byte()
765 int mec_hal_uart_tx(struct mec_uart_regs * base, const uint8_t *data, size_t datasz) in mec_hal_uart_tx()
807 int mec_hal_uart_rx_byte(struct mec_uart_regs *base, uint8_t *data) in mec_hal_uart_rx_byte()
845 struct mec_uart_regs *regs = (struct mec_uart_regs *)uart_instances[i].base_addr; in mec_hal_uart_pm_save_disable()
855 struct mec_uart_regs *regs = (struct mec_uart_regs *)uart_instances[i].base_addr; in mec_hal_uart_pm_restore()