Lines Matching refs:atmel_uart_writel

211 static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value)  in atmel_uart_writel()  function
300 atmel_uart_writel(port, ATMEL_US_IDR, atmel_port->tx_done_mask); in atmel_config_rs485()
311 atmel_uart_writel(port, ATMEL_US_TTGR, in atmel_config_rs485()
323 atmel_uart_writel(port, ATMEL_US_MR, mode); in atmel_config_rs485()
326 atmel_uart_writel(port, ATMEL_US_IER, atmel_port->tx_done_mask); in atmel_config_rs485()
367 atmel_uart_writel(port, ATMEL_US_IDR, atmel_port->tx_done_mask); in atmel_config_iso7816()
419 atmel_uart_writel(port, ATMEL_US_TTGR, iso7816conf->tg); in atmel_config_iso7816()
420 atmel_uart_writel(port, ATMEL_US_BRGR, cd); in atmel_config_iso7816()
421 atmel_uart_writel(port, ATMEL_US_FIDI, fidi); in atmel_config_iso7816()
423 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXDIS | ATMEL_US_RXEN); in atmel_config_iso7816()
430 atmel_uart_writel(port, ATMEL_US_TTGR, 0); in atmel_config_iso7816()
431 atmel_uart_writel(port, ATMEL_US_BRGR, atmel_port->backup_brgr); in atmel_config_iso7816()
432 atmel_uart_writel(port, ATMEL_US_FIDI, 0x174); in atmel_config_iso7816()
443 atmel_uart_writel(port, ATMEL_US_MR, mode); in atmel_config_iso7816()
447 atmel_uart_writel(port, ATMEL_US_IER, atmel_port->tx_done_mask); in atmel_config_iso7816()
478 atmel_uart_writel(port, ATMEL_US_TTGR, in atmel_set_mctrl()
509 atmel_uart_writel(port, ATMEL_US_CR, control); in atmel_set_mctrl()
520 atmel_uart_writel(port, ATMEL_US_MR, mode); in atmel_set_mctrl()
559 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTDIS); in atmel_stop_tx()
568 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXDIS); in atmel_stop_tx()
573 atmel_uart_writel(port, ATMEL_US_IDR, atmel_port->tx_done_mask); in atmel_stop_tx()
600 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTEN); in atmel_start_tx()
604 atmel_uart_writel(port, ATMEL_US_IER, atmel_port->tx_done_mask); in atmel_start_tx()
608 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXEN); in atmel_start_tx()
619 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA); in atmel_start_rx()
621 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RXEN); in atmel_start_rx()
625 atmel_uart_writel(port, ATMEL_US_IER, in atmel_start_rx()
628 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_RXTEN); in atmel_start_rx()
630 atmel_uart_writel(port, ATMEL_US_IER, ATMEL_US_RXRDY); in atmel_start_rx()
639 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RXDIS); in atmel_stop_rx()
643 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_RXTDIS); in atmel_stop_rx()
644 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_stop_rx()
648 atmel_uart_writel(port, ATMEL_US_IDR, ATMEL_US_RXRDY); in atmel_stop_rx()
680 atmel_uart_writel(port, ATMEL_US_IER, ier); in atmel_enable_ms()
715 atmel_uart_writel(port, ATMEL_US_IDR, idr); in atmel_disable_ms()
725 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STTBRK); in atmel_break_ctl()
728 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STPBRK); in atmel_break_ctl()
762 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA); in atmel_pdc_rxerr()
798 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA); in atmel_rx_chars()
803 atmel_uart_writel(port, ATMEL_US_IER, in atmel_rx_chars()
813 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_rx_chars()
848 atmel_uart_writel(port, ATMEL_US_IER, in atmel_tx_chars()
892 atmel_uart_writel(port, ATMEL_US_IER, in atmel_complete_tx_dma()
1113 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STTTO); in atmel_rx_from_dma()
1120 atmel_uart_writel(port, ATMEL_US_IER, ATMEL_US_TIMEOUT); in atmel_rx_from_dma()
1180 atmel_uart_writel(port, ATMEL_US_IER, ATMEL_US_TIMEOUT); in atmel_rx_from_dma()
1306 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_handle_receive()
1319 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_handle_receive()
1334 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA); in atmel_handle_receive()
1335 atmel_uart_writel(port, ATMEL_US_IDR, ATMEL_US_RXBRK); in atmel_handle_receive()
1349 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_handle_transmit()
1422 atmel_uart_writel(port, ATMEL_US_IDR, mask); in atmel_interrupt()
1467 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTDIS); in atmel_tx_pdc()
1478 atmel_uart_writel(port, ATMEL_PDC_TPR, in atmel_tx_pdc()
1480 atmel_uart_writel(port, ATMEL_PDC_TCR, count); in atmel_tx_pdc()
1482 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTEN); in atmel_tx_pdc()
1484 atmel_uart_writel(port, ATMEL_US_IER, in atmel_tx_pdc()
1604 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STTTO); in atmel_rx_from_pdc()
1650 atmel_uart_writel(port, ATMEL_PDC_RNPR, pdc->dma_addr); in atmel_rx_from_pdc()
1651 atmel_uart_writel(port, ATMEL_PDC_RNCR, pdc->dma_size); in atmel_rx_from_pdc()
1660 atmel_uart_writel(port, ATMEL_US_IER, in atmel_rx_from_pdc()
1694 atmel_uart_writel(port, ATMEL_PDC_RPR, atmel_port->pdc_rx[0].dma_addr); in atmel_prepare_rx_pdc()
1695 atmel_uart_writel(port, ATMEL_PDC_RCR, PDC_BUFFER_SIZE); in atmel_prepare_rx_pdc()
1697 atmel_uart_writel(port, ATMEL_PDC_RNPR, in atmel_prepare_rx_pdc()
1699 atmel_uart_writel(port, ATMEL_PDC_RNCR, PDC_BUFFER_SIZE); in atmel_prepare_rx_pdc()
1886 atmel_uart_writel(port, ATMEL_US_IDR, -1); in atmel_startup()
1930 atmel_uart_writel(port, ATMEL_US_CR, in atmel_startup()
1945 atmel_uart_writel(port, ATMEL_US_FMR, fmr); in atmel_startup()
1954 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA | ATMEL_US_RSTRX); in atmel_startup()
1956 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXEN | ATMEL_US_RXEN); in atmel_startup()
1968 atmel_uart_writel(port, atmel_port->rtor, in atmel_startup()
1970 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STTTO); in atmel_startup()
1972 atmel_uart_writel(port, ATMEL_US_IER, in atmel_startup()
1976 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_RXTEN); in atmel_startup()
1984 atmel_uart_writel(port, atmel_port->rtor, in atmel_startup()
1986 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_STTTO); in atmel_startup()
1988 atmel_uart_writel(port, ATMEL_US_IER, in atmel_startup()
1993 atmel_uart_writel(port, ATMEL_US_IER, ATMEL_US_RXRDY); in atmel_startup()
2008 atmel_uart_writel(port, ATMEL_PDC_TCR, 0); in atmel_flush_buffer()
2029 atmel_uart_writel(port, ATMEL_US_IDR, -1); in atmel_shutdown()
2057 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA); in atmel_shutdown()
2098 atmel_uart_writel(port, ATMEL_US_IER, atmel_port->backup_imr); in atmel_serial_pm()
2103 atmel_uart_writel(port, ATMEL_US_IDR, -1); in atmel_serial_pm()
2188 atmel_uart_writel(port, ATMEL_US_IER, port->read_status_mask); in atmel_set_termios()
2216 atmel_uart_writel(port, ATMEL_US_IDR, -1); in atmel_set_termios()
2219 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXDIS | ATMEL_US_RXDIS); in atmel_set_termios()
2224 atmel_uart_writel(port, ATMEL_US_TTGR, in atmel_set_termios()
2228 atmel_uart_writel(port, ATMEL_US_TTGR, port->iso7816.tg); in atmel_set_termios()
2344 atmel_uart_writel(port, ATMEL_US_BRGR, quot); in atmel_set_termios()
2347 atmel_uart_writel(port, ATMEL_US_MR, mode); in atmel_set_termios()
2364 atmel_uart_writel(port, ATMEL_US_CR, rts_state); in atmel_set_termios()
2367 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA | ATMEL_US_RSTRX); in atmel_set_termios()
2368 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXEN | ATMEL_US_RXEN); in atmel_set_termios()
2372 atmel_uart_writel(port, ATMEL_US_IER, imr); in atmel_set_termios()
2601 atmel_uart_writel(port, ATMEL_US_IDR, in atmel_console_write()
2606 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTDIS); in atmel_console_write()
2609 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXEN); in atmel_console_write()
2624 atmel_uart_writel(port, ATMEL_PDC_PTCR, ATMEL_PDC_TXTEN); in atmel_console_write()
2627 atmel_uart_writel(port, ATMEL_US_IER, imr); in atmel_console_write()
2676 atmel_uart_writel(port, ATMEL_US_IDR, -1); in atmel_console_setup()
2677 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_RSTSTA | ATMEL_US_RSTRX); in atmel_console_setup()
2678 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_TXEN | ATMEL_US_RXEN); in atmel_console_setup()
2799 atmel_uart_writel(port, ATMEL_US_MR, atmel_port->cache.mr); in atmel_serial_resume()
2800 atmel_uart_writel(port, ATMEL_US_IER, atmel_port->cache.imr); in atmel_serial_resume()
2801 atmel_uart_writel(port, ATMEL_US_BRGR, atmel_port->cache.brgr); in atmel_serial_resume()
2802 atmel_uart_writel(port, atmel_port->rtor, in atmel_serial_resume()
2804 atmel_uart_writel(port, ATMEL_US_TTGR, atmel_port->cache.ttgr); in atmel_serial_resume()
2807 atmel_uart_writel(port, ATMEL_US_CR, ATMEL_US_FIFOEN | in atmel_serial_resume()
2809 atmel_uart_writel(port, ATMEL_US_FMR, in atmel_serial_resume()
2811 atmel_uart_writel(port, ATMEL_US_FIER, in atmel_serial_resume()
2966 atmel_uart_writel(&atmel_port->uart, ATMEL_US_MR, in atmel_serial_probe()
2968 atmel_uart_writel(&atmel_port->uart, ATMEL_US_CR, in atmel_serial_probe()