Lines Matching refs:imx_uart_readl

278 static inline u32 imx_uart_readl(struct imx_port *sport, u32 offset)  in imx_uart_readl()  function
301 ucr->ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_ucrs_save()
302 ucr->ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_ucrs_save()
303 ucr->ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_ucrs_save()
355 ubir = imx_uart_readl(sport, UBIR); in imx_uart_soft_reset()
356 ubmr = imx_uart_readl(sport, UBMR); in imx_uart_soft_reset()
357 uts = imx_uart_readl(sport, IMX21_UTS); in imx_uart_soft_reset()
359 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_soft_reset()
362 while (!(imx_uart_readl(sport, UCR2) & UCR2_SRST) && (--i > 0)) in imx_uart_soft_reset()
378 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485()
389 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_rx()
390 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_start_rx()
423 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_tx()
426 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_stop_tx()
427 usr2 = imx_uart_readl(sport, USR2); in imx_uart_stop_tx()
456 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_stop_tx()
478 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_rx_with_loopback_ctrl()
479 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_stop_rx_with_loopback_ctrl()
480 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_stop_rx_with_loopback_ctrl()
496 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_stop_rx_with_loopback_ctrl()
555 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_transmit_buffer()
568 while (!(imx_uart_readl(sport, imx_uart_uts_reg(sport)) & UTS_TXFULL) && in imx_uart_transmit_buffer()
591 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx_callback()
608 u32 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_dma_tx_callback()
630 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_dma_tx()
657 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx()
686 u32 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_start_tx()
724 u32 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_start_tx()
736 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
744 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
764 usr1 = imx_uart_readl(sport, USR1) & USR1_RTSS; in __imx_uart_rtsint()
863 usr2 = imx_uart_readl(sport, USR2); in __imx_uart_rxint()
867 while ((rx = imx_uart_readl(sport, URXD0)) & URXD_CHARRDY) { in __imx_uart_rxint()
937 unsigned usr1 = imx_uart_readl(sport, USR1); in imx_uart_get_hwmctrl()
938 unsigned usr2 = imx_uart_readl(sport, USR2); in imx_uart_get_hwmctrl()
948 if (!(imx_uart_readl(sport, USR2) & USR2_RIIN)) in imx_uart_get_hwmctrl()
989 usr1 = imx_uart_readl(sport, USR1); in imx_uart_int()
990 usr2 = imx_uart_readl(sport, USR2); in imx_uart_int()
991 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_int()
992 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_int()
993 ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_int()
994 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_int()
1070 ret = (imx_uart_readl(sport, USR2) & USR2_TXDC) ? TIOCSER_TEMT : 0; in imx_uart_tx_empty()
1103 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_set_mctrl()
1118 ucr3 = imx_uart_readl(sport, UCR3) & ~UCR3_DSR; in imx_uart_set_mctrl()
1123 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)) & ~UTS_LOOP; in imx_uart_set_mctrl()
1142 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_SNDBRK; in imx_uart_break_ctl()
1226 imx_uart_check_flood(sport, imx_uart_readl(sport, USR2)); in imx_uart_dma_rx_callback()
1300 usr1 = imx_uart_readl(sport, USR1); in imx_uart_clear_rx_errors()
1301 usr2 = imx_uart_readl(sport, USR2); in imx_uart_clear_rx_errors()
1340 val = imx_uart_readl(sport, UFCR) & (UFCR_RFDIV | UFCR_DCEDTE); in imx_uart_setup_ufcr()
1432 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_dma()
1444 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_disable_dma()
1478 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_startup()
1503 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_RRDYEN; in imx_uart_startup()
1510 ucr4 = imx_uart_readl(sport, UCR4) & ~(UCR4_OREN | UCR4_INVR); in imx_uart_startup()
1517 ucr3 = imx_uart_readl(sport, UCR3) & ~UCR3_INVT; in imx_uart_startup()
1533 ucr2 = imx_uart_readl(sport, UCR2) & ~UCR2_ATEN; in imx_uart_startup()
1554 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_startup()
1558 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_startup()
1602 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_shutdown()
1618 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_shutdown()
1625 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_shutdown()
1634 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_shutdown()
1678 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_shutdown()
1710 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_flush_buffer()
1757 old_ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_set_termios()
1850 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_set_termios()
1863 old_ubir = imx_uart_readl(sport, UBIR); in imx_uart_set_termios()
1864 old_ubmr = imx_uart_readl(sport, UBMR); in imx_uart_set_termios()
1950 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_poll_init()
1951 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_poll_init()
1977 if (!(imx_uart_readl(sport, USR2) & USR2_RDR)) in imx_uart_poll_get_char()
1980 return imx_uart_readl(sport, URXD0) & URXD_RX_DATA; in imx_uart_poll_get_char()
1990 status = imx_uart_readl(sport, USR1); in imx_uart_poll_put_char()
1998 status = imx_uart_readl(sport, USR2); in imx_uart_poll_put_char()
2017 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_rs485_config()
2029 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_rs485_config()
2068 while (imx_uart_readl(sport, imx_uart_uts_reg(sport)) & UTS_TXFULL) in imx_uart_console_putchar()
2114 read_poll_timeout_atomic(imx_uart_readl, usr2, usr2 & USR2_TXDC, in imx_uart_console_write()
2131 if (imx_uart_readl(sport, UCR1) & UCR1_UARTEN) { in imx_uart_console_get_options()
2137 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_console_get_options()
2152 ubir = imx_uart_readl(sport, UBIR) & 0xffff; in imx_uart_console_get_options()
2153 ubmr = imx_uart_readl(sport, UBMR) & 0xffff; in imx_uart_console_get_options()
2155 ucfr_rfdiv = (imx_uart_readl(sport, UFCR) & UFCR_RFDIV) >> 7; in imx_uart_console_get_options()
2428 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2433 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_probe()
2449 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)); in imx_uart_probe()
2453 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2457 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_probe()
2469 u32 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_probe()
2484 u32 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_probe()
2584 sport->saved_reg[0] = imx_uart_readl(sport, UCR1); in imx_uart_save_context()
2585 sport->saved_reg[1] = imx_uart_readl(sport, UCR2); in imx_uart_save_context()
2586 sport->saved_reg[2] = imx_uart_readl(sport, UCR3); in imx_uart_save_context()
2587 sport->saved_reg[3] = imx_uart_readl(sport, UCR4); in imx_uart_save_context()
2588 sport->saved_reg[4] = imx_uart_readl(sport, UFCR); in imx_uart_save_context()
2589 sport->saved_reg[5] = imx_uart_readl(sport, UESC); in imx_uart_save_context()
2590 sport->saved_reg[6] = imx_uart_readl(sport, UTIM); in imx_uart_save_context()
2591 sport->saved_reg[7] = imx_uart_readl(sport, UBIR); in imx_uart_save_context()
2592 sport->saved_reg[8] = imx_uart_readl(sport, UBMR); in imx_uart_save_context()
2593 sport->saved_reg[9] = imx_uart_readl(sport, IMX21_UTS); in imx_uart_save_context()
2602 ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_enable_wakeup()
2612 u32 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_wakeup()