Lines Matching refs:imx_uart_readl
300 static u32 imx_uart_readl(struct imx_port *sport, u32 offset) in imx_uart_readl() function
363 ucr->ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_ucrs_save()
364 ucr->ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_ucrs_save()
365 ucr->ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_ucrs_save()
406 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_rx()
407 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_start_rx()
439 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_tx()
442 usr2 = imx_uart_readl(sport, USR2); in imx_uart_stop_tx()
448 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_stop_tx()
472 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_stop_tx()
494 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_rx()
495 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_stop_rx()
496 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_stop_rx()
548 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_transmit_buffer()
562 !(imx_uart_readl(sport, imx_uart_uts_reg(sport)) & UTS_TXFULL)) { in imx_uart_transmit_buffer()
589 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx_callback()
607 u32 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_dma_tx_callback()
629 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_dma_tx()
665 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx()
693 u32 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_start_tx()
725 u32 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_start_tx()
737 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
745 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
765 usr1 = imx_uart_readl(sport, USR1) & USR1_RTSS; in __imx_uart_rtsint()
802 while (imx_uart_readl(sport, USR2) & USR2_RDR) { in __imx_uart_rxint()
808 rx = imx_uart_readl(sport, URXD0); in __imx_uart_rxint()
810 usr2 = imx_uart_readl(sport, USR2); in __imx_uart_rxint()
885 unsigned usr1 = imx_uart_readl(sport, USR1); in imx_uart_get_hwmctrl()
886 unsigned usr2 = imx_uart_readl(sport, USR2); in imx_uart_get_hwmctrl()
896 if (!(imx_uart_readl(sport, USR2) & USR2_RIIN)) in imx_uart_get_hwmctrl()
937 usr1 = imx_uart_readl(sport, USR1); in imx_uart_int()
938 usr2 = imx_uart_readl(sport, USR2); in imx_uart_int()
939 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_int()
940 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_int()
941 ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_int()
942 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_int()
1018 ret = (imx_uart_readl(sport, USR2) & USR2_TXDC) ? TIOCSER_TEMT : 0; in imx_uart_tx_empty()
1051 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_set_mctrl()
1066 ucr3 = imx_uart_readl(sport, UCR3) & ~UCR3_DSR; in imx_uart_set_mctrl()
1071 uts = imx_uart_readl(sport, imx_uart_uts_reg(sport)) & ~UTS_LOOP; in imx_uart_set_mctrl()
1090 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_SNDBRK; in imx_uart_break_ctl()
1241 usr1 = imx_uart_readl(sport, USR1); in imx_uart_clear_rx_errors()
1242 usr2 = imx_uart_readl(sport, USR2); in imx_uart_clear_rx_errors()
1279 val = imx_uart_readl(sport, UFCR) & (UFCR_RFDIV | UFCR_DCEDTE); in imx_uart_setup_ufcr()
1366 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_dma()
1378 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_disable_dma()
1412 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_startup()
1428 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_startup()
1432 while (!(imx_uart_readl(sport, UCR2) & UCR2_SRST) && (--i > 0)) in imx_uart_startup()
1441 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_RRDYEN; in imx_uart_startup()
1448 ucr4 = imx_uart_readl(sport, UCR4) & ~(UCR4_OREN | UCR4_INVR); in imx_uart_startup()
1455 ucr3 = imx_uart_readl(sport, UCR3) & ~UCR3_INVT; in imx_uart_startup()
1471 ucr2 = imx_uart_readl(sport, UCR2) & ~UCR2_ATEN; in imx_uart_startup()
1492 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_startup()
1496 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_startup()
1537 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_shutdown()
1553 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_shutdown()
1557 ucr4 = imx_uart_readl(sport, UCR4); in imx_uart_shutdown()
1585 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_flush_buffer()
1602 ubir = imx_uart_readl(sport, UBIR); in imx_uart_flush_buffer()
1603 ubmr = imx_uart_readl(sport, UBMR); in imx_uart_flush_buffer()
1604 uts = imx_uart_readl(sport, IMX21_UTS); in imx_uart_flush_buffer()
1606 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_flush_buffer()
1610 while (!(imx_uart_readl(sport, UCR2) & UCR2_SRST) && (--i > 0)) in imx_uart_flush_buffer()
1656 old_ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_set_termios()
1749 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_set_termios()
1762 old_ubir = imx_uart_readl(sport, UBIR); in imx_uart_set_termios()
1763 old_ubmr = imx_uart_readl(sport, UBMR); in imx_uart_set_termios()
1854 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_poll_init()
1855 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_poll_init()
1881 if (!(imx_uart_readl(sport, USR2) & USR2_RDR)) in imx_uart_poll_get_char()
1884 return imx_uart_readl(sport, URXD0) & URXD_RX_DATA; in imx_uart_poll_get_char()
1894 status = imx_uart_readl(sport, USR1); in imx_uart_poll_put_char()
1902 status = imx_uart_readl(sport, USR2); in imx_uart_poll_put_char()
1921 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_rs485_config()
1967 while (imx_uart_readl(sport, imx_uart_uts_reg(sport)) & UTS_TXFULL) in imx_uart_console_putchar()
2013 while (!(imx_uart_readl(sport, USR2) & USR2_TXDC)); in imx_uart_console_write()
2030 if (imx_uart_readl(sport, UCR1) & UCR1_UARTEN) { in imx_uart_console_get_options()
2036 ucr2 = imx_uart_readl(sport, UCR2); in imx_uart_console_get_options()
2051 ubir = imx_uart_readl(sport, UBIR) & 0xffff; in imx_uart_console_get_options()
2052 ubmr = imx_uart_readl(sport, UBMR) & 0xffff; in imx_uart_console_get_options()
2054 ucfr_rfdiv = (imx_uart_readl(sport, UFCR) & UFCR_RFDIV) >> 7; in imx_uart_console_get_options()
2349 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2360 u32 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_probe()
2375 u32 ufcr = imx_uart_readl(sport, UFCR); in imx_uart_probe()
2472 sport->saved_reg[0] = imx_uart_readl(sport, UCR1); in imx_uart_save_context()
2473 sport->saved_reg[1] = imx_uart_readl(sport, UCR2); in imx_uart_save_context()
2474 sport->saved_reg[2] = imx_uart_readl(sport, UCR3); in imx_uart_save_context()
2475 sport->saved_reg[3] = imx_uart_readl(sport, UCR4); in imx_uart_save_context()
2476 sport->saved_reg[4] = imx_uart_readl(sport, UFCR); in imx_uart_save_context()
2477 sport->saved_reg[5] = imx_uart_readl(sport, UESC); in imx_uart_save_context()
2478 sport->saved_reg[6] = imx_uart_readl(sport, UTIM); in imx_uart_save_context()
2479 sport->saved_reg[7] = imx_uart_readl(sport, UBIR); in imx_uart_save_context()
2480 sport->saved_reg[8] = imx_uart_readl(sport, UBMR); in imx_uart_save_context()
2481 sport->saved_reg[9] = imx_uart_readl(sport, IMX21_UTS); in imx_uart_save_context()
2490 ucr3 = imx_uart_readl(sport, UCR3); in imx_uart_enable_wakeup()
2500 u32 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_wakeup()