Lines Matching refs:psc_ops

86 struct psc_ops {  struct
344 static const struct psc_ops mpc52xx_psc_ops = {
374 static const struct psc_ops mpc5200b_psc_ops = {
964 static const struct psc_ops mpc5125_psc_ops = {
999 static const struct psc_ops mpc512x_psc_ops = {
1036 static const struct psc_ops *psc_ops; variable
1045 return psc_ops->tx_empty(port) ? TIOCSER_TEMT : 0; in mpc52xx_uart_tx_empty()
1051 psc_ops->set_rts(port, mctrl & TIOCM_RTS); in mpc52xx_uart_set_mctrl()
1058 u8 status = psc_ops->get_ipcr(port); in mpc52xx_uart_get_mctrl()
1072 psc_ops->stop_tx(port); in mpc52xx_uart_stop_tx()
1079 psc_ops->start_tx(port); in mpc52xx_uart_start_tx()
1086 psc_ops->stop_rx(port); in mpc52xx_uart_stop_rx()
1092 psc_ops->enable_ms(port); in mpc52xx_uart_enable_ms()
1102 psc_ops->command(port, MPC52xx_PSC_START_BRK); in mpc52xx_uart_break_ctl()
1104 psc_ops->command(port, MPC52xx_PSC_STOP_BRK); in mpc52xx_uart_break_ctl()
1114 if (psc_ops->clock) { in mpc52xx_uart_startup()
1115 ret = psc_ops->clock(port, 1); in mpc52xx_uart_startup()
1127 psc_ops->command(port, MPC52xx_PSC_RST_RX); in mpc52xx_uart_startup()
1128 psc_ops->command(port, MPC52xx_PSC_RST_TX); in mpc52xx_uart_startup()
1137 psc_ops->set_sicr(port, 0); /* UART mode DCD ignored */ in mpc52xx_uart_startup()
1139 psc_ops->fifo_init(port); in mpc52xx_uart_startup()
1141 psc_ops->command(port, MPC52xx_PSC_TX_ENABLE); in mpc52xx_uart_startup()
1142 psc_ops->command(port, MPC52xx_PSC_RX_ENABLE); in mpc52xx_uart_startup()
1151 psc_ops->command(port, MPC52xx_PSC_RST_RX); in mpc52xx_uart_shutdown()
1153 psc_ops->command(port, MPC52xx_PSC_RST_TX); in mpc52xx_uart_shutdown()
1156 psc_ops->set_imr(port, port->read_status_mask); in mpc52xx_uart_shutdown()
1158 if (psc_ops->clock) in mpc52xx_uart_shutdown()
1159 psc_ops->clock(port, 0); in mpc52xx_uart_shutdown()
1162 psc_ops->cw_disable_ints(port); in mpc52xx_uart_shutdown()
1235 psc_ops->command(port, MPC52xx_PSC_RST_RX); in mpc52xx_uart_set_termios()
1236 psc_ops->command(port, MPC52xx_PSC_RST_TX); in mpc52xx_uart_set_termios()
1239 psc_ops->set_mode(port, mr1, mr2); in mpc52xx_uart_set_termios()
1240 baud = psc_ops->set_baudrate(port, new, old); in mpc52xx_uart_set_termios()
1249 psc_ops->command(port, MPC52xx_PSC_TX_ENABLE); in mpc52xx_uart_set_termios()
1250 psc_ops->command(port, MPC52xx_PSC_RX_ENABLE); in mpc52xx_uart_set_termios()
1269 if (psc_ops->clock_relse) in mpc52xx_uart_release_port()
1270 psc_ops->clock_relse(port); in mpc52xx_uart_release_port()
1299 if (psc_ops->clock_alloc) { in mpc52xx_uart_request_port()
1300 err = psc_ops->clock_alloc(port); in mpc52xx_uart_request_port()
1375 while (psc_ops->raw_rx_rdy(port)) { in mpc52xx_uart_int_rx_chars()
1377 ch = psc_ops->read_char(port); in mpc52xx_uart_int_rx_chars()
1388 status = psc_ops->get_status(port); in mpc52xx_uart_int_rx_chars()
1408 psc_ops->command(port, MPC52xx_PSC_RST_ERR_STAT); in mpc52xx_uart_int_rx_chars()
1425 return psc_ops->raw_rx_rdy(port); in mpc52xx_uart_int_rx_chars()
1434 psc_ops->raw_tx_rdy(port), in mpc52xx_uart_int_tx_chars()
1435 psc_ops->write_char(port, ch)); in mpc52xx_uart_int_tx_chars()
1450 psc_ops->rx_clr_irq(port); in mpc5xxx_uart_process_int()
1451 if (psc_ops->rx_rdy(port)) in mpc5xxx_uart_process_int()
1454 psc_ops->tx_clr_irq(port); in mpc5xxx_uart_process_int()
1455 if (psc_ops->tx_rdy(port)) in mpc5xxx_uart_process_int()
1458 status = psc_ops->get_ipcr(port); in mpc5xxx_uart_process_int()
1482 ret = psc_ops->handle_irq(port); in mpc52xx_uart_int()
1504 mr1 = psc_ops->get_mr1(port); in mpc52xx_console_get_options()
1538 psc_ops->cw_disable_ints(port); in mpc52xx_console_write()
1549 psc_ops->write_char(port, '\r'); in mpc52xx_console_write()
1552 psc_ops->write_char(port, *s); in mpc52xx_console_write()
1561 psc_ops->cw_restore_ints(port); in mpc52xx_console_write()
1750 psc_ops->get_irq(port, op->dev.of_node); in mpc52xx_uart_of_probe()
1829 psc_ops = match->data; in mpc52xx_uart_of_enumerate()
1881 if (psc_ops && psc_ops->fifoc_init) { in mpc52xx_uart_init()
1882 ret = psc_ops->fifoc_init(); in mpc52xx_uart_init()
1896 if (psc_ops && psc_ops->fifoc_uninit) in mpc52xx_uart_init()
1897 psc_ops->fifoc_uninit(); in mpc52xx_uart_init()
1906 if (psc_ops->fifoc_uninit) in mpc52xx_uart_exit()
1907 psc_ops->fifoc_uninit(); in mpc52xx_uart_exit()