• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/serial/

Lines Matching defs:the_port

352  * @the_port: uart port to find
354 static struct ioc3_port *get_ioc3_port(struct uart_port *the_port)
356 struct ioc3_driver_data *idd = dev_get_drvdata(the_port->dev);
366 if (the_port == &card_ptr->ic_port[ii].icp_uart_port[jj])
815 * @the_port: port to use
819 static inline int set_mcr(struct uart_port *the_port,
822 struct ioc3_port *port = get_ioc3_port(the_port);
886 * transmit_chars - upper level write, called with the_port->lock
887 * @the_port: port to write
889 static void transmit_chars(struct uart_port *the_port)
895 struct ioc3_port *port = get_ioc3_port(the_port);
898 if (!the_port)
903 state = the_port->state;
906 if (uart_circ_empty(&state->xmit) || uart_tx_stopped(the_port)) {
923 the_port->icount.tx += result;
932 uart_write_wakeup(the_port);
943 * @the_port: port to change
948 ioc3_change_speed(struct uart_port *the_port,
951 struct ioc3_port *port = get_ioc3_port(the_port);
955 struct uart_state *state = the_port->state;
986 baud = uart_get_baud_rate(the_port, new_termios, old_termios,
989 the_port->line));
991 if (!the_port->fifosize)
992 the_port->fifosize = FIFO_SIZE;
993 uart_update_timeout(the_port, cflag, baud);
995 the_port->ignore_status_mask = N_ALL_INPUT;
1000 the_port->ignore_status_mask &= ~(N_PARITY_ERROR
1003 the_port->ignore_status_mask &= ~N_BREAK;
1005 the_port->ignore_status_mask &= ~N_OVERRUN_ERROR;
1009 the_port->ignore_status_mask &= ~N_DATA_READY;
1026 __func__, (void *)port, the_port->line, cflag, baud,
1028 the_port->ignore_status_mask));
1035 set_notification(port, the_port->ignore_status_mask, 1);
1041 * @the_port: Port to operate on
1043 static inline int ic3_startup_local(struct uart_port *the_port)
1047 if (!the_port) {
1052 port = get_ioc3_port(the_port);
1061 ioc3_set_proto(port, IS_RS232(the_port->line) ? PROTO_RS232 :
1074 /* the_port->lock is set on the call here */
1087 static void ioc3_cb_post_ncs(struct uart_port *the_port, int ncs)
1091 icount = &the_port->icount;
1106 * @the_port: port to use
1111 static inline int do_read(struct uart_port *the_port, char *buf, int len)
1114 struct ioc3_port *port = get_ioc3_port(the_port);
1214 the_port->line);
1286 (&the_port->state->
1300 ioc3_cb_post_ncs(the_port, NCS_OVERRUN);
1327 ioc3_cb_post_ncs(the_port,
1333 ioc3_cb_post_ncs(the_port,
1339 (the_port, NCS_BREAK);
1385 * @the_port: port to read from
1387 static int receive_chars(struct uart_port *the_port)
1392 struct uart_state *state = the_port->state;
1393 struct ioc3_port *port = get_ioc3_port(the_port);
1405 spin_lock_irqsave(&the_port->lock, pflags);
1408 read_count = do_read(the_port, ch, MAX_CHARS);
1412 the_port->icount.rx += read_count;
1414 spin_unlock_irqrestore(&the_port->lock, pflags);
1438 struct uart_port *the_port;
1486 the_port = port->ip_port;
1487 uart_handle_dcd_change(the_port,
1490 (&the_port->state->port.delta_msr_wait);
1506 the_port = port->ip_port;
1507 uart_handle_cts_change(the_port, shadow
1510 (&the_port->state->port.delta_msr_wait);
1653 static const char *ic3_type(struct uart_port *the_port)
1655 if (IS_RS232(the_port->line))
1666 static unsigned int ic3_tx_empty(struct uart_port *the_port)
1669 struct ioc3_port *port = get_ioc3_port(the_port);
1681 static void ic3_stop_tx(struct uart_port *the_port)
1683 struct ioc3_port *port = get_ioc3_port(the_port);
1694 static void ic3_stop_rx(struct uart_port *the_port)
1696 struct ioc3_port *port = get_ioc3_port(the_port);
1707 static void null_void_function(struct uart_port *the_port)
1716 static void ic3_shutdown(struct uart_port *the_port)
1722 port = get_ioc3_port(the_port);
1726 state = the_port->state;
1729 spin_lock_irqsave(&the_port->lock, port_flags);
1731 spin_unlock_irqrestore(&the_port->lock, port_flags);
1740 static void ic3_set_mctrl(struct uart_port *the_port, unsigned int mctrl)
1755 set_mcr(the_port, mcr, SHADOW_DTR);
1763 static unsigned int ic3_get_mctrl(struct uart_port *the_port)
1765 struct ioc3_port *port = get_ioc3_port(the_port);
1783 * ic3_start_tx - Start transmitter. Called with the_port->lock
1787 static void ic3_start_tx(struct uart_port *the_port)
1789 struct ioc3_port *port = get_ioc3_port(the_port);
1803 static void ic3_break_ctl(struct uart_port *the_port, int break_state)
1812 static int ic3_startup(struct uart_port *the_port)
1819 if (!the_port) {
1823 port = get_ioc3_port(the_port);
1829 port->ip_port = the_port;
1837 spin_lock_irqsave(&the_port->lock, port_flags);
1838 retval = ic3_startup_local(the_port);
1839 spin_unlock_irqrestore(&the_port->lock, port_flags);
1851 ic3_set_termios(struct uart_port *the_port,
1856 spin_lock_irqsave(&the_port->lock, port_flags);
1857 ioc3_change_speed(the_port, termios, old_termios);
1858 spin_unlock_irqrestore(&the_port->lock, port_flags);
1912 struct uart_port *the_port;
1926 the_port = &card_ptr->ic_port[phys_port].
1929 port->ip_port = the_port;
1931 DPRINT_CONFIG(("%s: attach the_port 0x%p / port 0x%p [%d/%d]\n",
1932 __func__, (void *)the_port, (void *)port,
1936 the_port->membase = (unsigned char __iomem *)1;
1937 the_port->iobase = (pdev->bus->number << 16) | ii;
1938 the_port->line = (Num_of_ioc3_cards << 2) | ii;
1939 the_port->mapbase = 1;
1940 the_port->type = PORT_16550A;
1941 the_port->fifosize = FIFO_SIZE;
1942 the_port->ops = &ioc3_ops;
1943 the_port->irq = idd->irq_io;
1944 the_port->dev = &pdev->dev;
1946 if (uart_add_one_port(&ioc3_uart, the_port) < 0) {
1949 __func__, the_port->line, pdev->bus->number);
1952 the_port->line, the_port->irq, pdev->bus->number));
1972 struct uart_port *the_port;
1978 the_port = &card_ptr->ic_port[GET_PHYSICAL_PORT(ii)].
1980 if (the_port)
1981 uart_remove_one_port(&ioc3_uart, the_port);