Lines Matching refs:the_port
355 static struct ioc3_port *get_ioc3_port(struct uart_port *the_port) in get_ioc3_port() argument
357 struct ioc3_driver_data *idd = dev_get_drvdata(the_port->dev); in get_ioc3_port()
367 if (the_port == &card_ptr->ic_port[ii].icp_uart_port[jj]) in get_ioc3_port()
825 static inline int set_mcr(struct uart_port *the_port, in set_mcr() argument
828 struct ioc3_port *port = get_ioc3_port(the_port); in set_mcr()
895 static void transmit_chars(struct uart_port *the_port) in transmit_chars() argument
901 struct ioc3_port *port = get_ioc3_port(the_port); in transmit_chars()
904 if (!the_port) in transmit_chars()
909 state = the_port->state; in transmit_chars()
912 if (uart_circ_empty(&state->xmit) || uart_tx_stopped(the_port)) { in transmit_chars()
929 the_port->icount.tx += result; in transmit_chars()
938 uart_write_wakeup(the_port); in transmit_chars()
954 ioc3_change_speed(struct uart_port *the_port, in ioc3_change_speed() argument
957 struct ioc3_port *port = get_ioc3_port(the_port); in ioc3_change_speed()
961 struct uart_state *state = the_port->state; in ioc3_change_speed()
992 baud = uart_get_baud_rate(the_port, new_termios, old_termios, in ioc3_change_speed()
995 the_port->line)); in ioc3_change_speed()
997 if (!the_port->fifosize) in ioc3_change_speed()
998 the_port->fifosize = FIFO_SIZE; in ioc3_change_speed()
999 uart_update_timeout(the_port, cflag, baud); in ioc3_change_speed()
1001 the_port->ignore_status_mask = N_ALL_INPUT; in ioc3_change_speed()
1006 the_port->ignore_status_mask &= ~(N_PARITY_ERROR in ioc3_change_speed()
1009 the_port->ignore_status_mask &= ~N_BREAK; in ioc3_change_speed()
1011 the_port->ignore_status_mask &= ~N_OVERRUN_ERROR; in ioc3_change_speed()
1015 the_port->ignore_status_mask &= ~N_DATA_READY; in ioc3_change_speed()
1032 __func__, (void *)port, the_port->line, cflag, baud, in ioc3_change_speed()
1034 the_port->ignore_status_mask)); in ioc3_change_speed()
1041 set_notification(port, the_port->ignore_status_mask, 1); in ioc3_change_speed()
1049 static inline int ic3_startup_local(struct uart_port *the_port) in ic3_startup_local() argument
1053 if (!the_port) { in ic3_startup_local()
1058 port = get_ioc3_port(the_port); in ic3_startup_local()
1067 ioc3_set_proto(port, IS_RS232(the_port->line) ? PROTO_RS232 : in ic3_startup_local()
1093 static void ioc3_cb_post_ncs(struct uart_port *the_port, int ncs) in ioc3_cb_post_ncs() argument
1097 icount = &the_port->icount; in ioc3_cb_post_ncs()
1117 static inline int do_read(struct uart_port *the_port, char *buf, int len) in do_read() argument
1120 struct ioc3_port *port = get_ioc3_port(the_port); in do_read()
1221 the_port->line); in do_read()
1293 (&the_port->state-> in do_read()
1307 ioc3_cb_post_ncs(the_port, NCS_OVERRUN); in do_read()
1334 ioc3_cb_post_ncs(the_port, in do_read()
1340 ioc3_cb_post_ncs(the_port, in do_read()
1346 (the_port, NCS_BREAK); in do_read()
1394 static int receive_chars(struct uart_port *the_port) in receive_chars() argument
1398 struct uart_state *state = the_port->state; in receive_chars()
1399 struct ioc3_port *port = get_ioc3_port(the_port); in receive_chars()
1409 spin_lock_irqsave(&the_port->lock, pflags); in receive_chars()
1411 read_count = do_read(the_port, ch, MAX_CHARS); in receive_chars()
1416 the_port->icount.rx += read_count; in receive_chars()
1418 spin_unlock_irqrestore(&the_port->lock, pflags); in receive_chars()
1442 struct uart_port *the_port; in ioc3uart_intr_one() local
1490 the_port = port->ip_port; in ioc3uart_intr_one()
1491 uart_handle_dcd_change(the_port, in ioc3uart_intr_one()
1494 (&the_port->state->port.delta_msr_wait); in ioc3uart_intr_one()
1510 the_port = port->ip_port; in ioc3uart_intr_one()
1511 uart_handle_cts_change(the_port, shadow in ioc3uart_intr_one()
1514 (&the_port->state->port.delta_msr_wait); in ioc3uart_intr_one()
1657 static const char *ic3_type(struct uart_port *the_port) in ic3_type() argument
1659 if (IS_RS232(the_port->line)) in ic3_type()
1670 static unsigned int ic3_tx_empty(struct uart_port *the_port) in ic3_tx_empty() argument
1673 struct ioc3_port *port = get_ioc3_port(the_port); in ic3_tx_empty()
1685 static void ic3_stop_tx(struct uart_port *the_port) in ic3_stop_tx() argument
1687 struct ioc3_port *port = get_ioc3_port(the_port); in ic3_stop_tx()
1698 static void ic3_stop_rx(struct uart_port *the_port) in ic3_stop_rx() argument
1700 struct ioc3_port *port = get_ioc3_port(the_port); in ic3_stop_rx()
1711 static void null_void_function(struct uart_port *the_port) in null_void_function() argument
1720 static void ic3_shutdown(struct uart_port *the_port) in ic3_shutdown() argument
1726 port = get_ioc3_port(the_port); in ic3_shutdown()
1730 state = the_port->state; in ic3_shutdown()
1733 spin_lock_irqsave(&the_port->lock, port_flags); in ic3_shutdown()
1735 spin_unlock_irqrestore(&the_port->lock, port_flags); in ic3_shutdown()
1744 static void ic3_set_mctrl(struct uart_port *the_port, unsigned int mctrl) in ic3_set_mctrl() argument
1759 set_mcr(the_port, mcr, SHADOW_DTR); in ic3_set_mctrl()
1767 static unsigned int ic3_get_mctrl(struct uart_port *the_port) in ic3_get_mctrl() argument
1769 struct ioc3_port *port = get_ioc3_port(the_port); in ic3_get_mctrl()
1791 static void ic3_start_tx(struct uart_port *the_port) in ic3_start_tx() argument
1793 struct ioc3_port *port = get_ioc3_port(the_port); in ic3_start_tx()
1807 static void ic3_break_ctl(struct uart_port *the_port, int break_state) in ic3_break_ctl() argument
1816 static int ic3_startup(struct uart_port *the_port) in ic3_startup() argument
1823 if (!the_port) { in ic3_startup()
1827 port = get_ioc3_port(the_port); in ic3_startup()
1833 port->ip_port = the_port; in ic3_startup()
1841 spin_lock_irqsave(&the_port->lock, port_flags); in ic3_startup()
1842 retval = ic3_startup_local(the_port); in ic3_startup()
1843 spin_unlock_irqrestore(&the_port->lock, port_flags); in ic3_startup()
1855 ic3_set_termios(struct uart_port *the_port, in ic3_set_termios() argument
1860 spin_lock_irqsave(&the_port->lock, port_flags); in ic3_set_termios()
1861 ioc3_change_speed(the_port, termios, old_termios); in ic3_set_termios()
1862 spin_unlock_irqrestore(&the_port->lock, port_flags); in ic3_set_termios()
1915 struct uart_port *the_port; in ioc3_serial_core_attach() local
1929 the_port = &card_ptr->ic_port[phys_port]. in ioc3_serial_core_attach()
1932 port->ip_port = the_port; in ioc3_serial_core_attach()
1935 __func__, (void *)the_port, (void *)port, in ioc3_serial_core_attach()
1939 the_port->membase = (unsigned char __iomem *)1; in ioc3_serial_core_attach()
1940 the_port->iobase = (pdev->bus->number << 16) | ii; in ioc3_serial_core_attach()
1941 the_port->line = (Num_of_ioc3_cards << 2) | ii; in ioc3_serial_core_attach()
1942 the_port->mapbase = 1; in ioc3_serial_core_attach()
1943 the_port->type = PORT_16550A; in ioc3_serial_core_attach()
1944 the_port->fifosize = FIFO_SIZE; in ioc3_serial_core_attach()
1945 the_port->ops = &ioc3_ops; in ioc3_serial_core_attach()
1946 the_port->irq = idd->irq_io; in ioc3_serial_core_attach()
1947 the_port->dev = &pdev->dev; in ioc3_serial_core_attach()
1949 if (uart_add_one_port(&ioc3_uart, the_port) < 0) { in ioc3_serial_core_attach()
1952 __func__, the_port->line, pdev->bus->number); in ioc3_serial_core_attach()
1955 the_port->line, the_port->irq, pdev->bus->number)); in ioc3_serial_core_attach()
1975 struct uart_port *the_port; in ioc3uart_remove() local
1981 the_port = &card_ptr->ic_port[GET_PHYSICAL_PORT(ii)]. in ioc3uart_remove()
1983 if (the_port) in ioc3uart_remove()
1984 uart_remove_one_port(&ioc3_uart, the_port); in ioc3uart_remove()