• 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

743 static struct ioc4_port *get_ioc4_port(struct uart_port *the_port, int set)
745 struct ioc4_driver_data *idd = dev_get_drvdata(the_port->dev);
759 if (the_port == port->ip_all_ports
763 port->ip_port = the_port;
1551 * @the_port: port to use
1555 static inline int set_mcr(struct uart_port *the_port,
1558 struct ioc4_port *port = get_ioc4_port(the_port, 0);
1622 * @the_port: port to write
1624 static void transmit_chars(struct uart_port *the_port)
1630 struct ioc4_port *port = get_ioc4_port(the_port, 0);
1633 if (!the_port)
1638 state = the_port->state;
1641 if (uart_circ_empty(&state->xmit) || uart_tx_stopped(the_port)) {
1658 the_port->icount.tx += result;
1667 uart_write_wakeup(the_port);
1678 * @the_port: port to change
1683 ioc4_change_speed(struct uart_port *the_port,
1686 struct ioc4_port *port = get_ioc4_port(the_port, 0);
1690 struct uart_state *state = the_port->state;
1728 baud = uart_get_baud_rate(the_port, new_termios, old_termios,
1736 if (!the_port->fifosize)
1737 the_port->fifosize = IOC4_FIFO_CHARS;
1738 the_port->timeout = ((the_port->fifosize * HZ * bits) / (baud / 10));
1739 the_port->timeout += HZ / 50; /* Add .02 seconds of slop */
1741 the_port->ignore_status_mask = N_ALL_INPUT;
1746 the_port->ignore_status_mask &= ~(N_PARITY_ERROR
1749 the_port->ignore_status_mask &= ~N_BREAK;
1751 the_port->ignore_status_mask &= ~N_OVERRUN_ERROR;
1755 the_port->ignore_status_mask &= ~N_DATA_READY;
1771 new_parity_enable, new_parity, the_port->ignore_status_mask));
1778 set_notification(port, the_port->ignore_status_mask, 1);
1784 * @the_port: Port to operate on
1786 static inline int ic4_startup_local(struct uart_port *the_port)
1791 if (!the_port)
1794 port = get_ioc4_port(the_port, 0);
1798 state = the_port->state;
1803 ioc4_set_proto(port, the_port->mapbase);
1806 ioc4_change_speed(the_port, state->port.tty->termios,
1814 * @the_port: port to output
1816 static void ioc4_cb_output_lowat(struct uart_port *the_port)
1821 if (the_port) {
1822 spin_lock_irqsave(&the_port->lock, pflags);
1823 transmit_chars(the_port);
1824 spin_unlock_irqrestore(&the_port->lock, pflags);
1840 struct uart_port *the_port;
1884 the_port = port->ip_port;
1885 the_port->icount.dcd = 1;
1887 (&the_port->state->port.delta_msr_wait);
1905 the_port = port->ip_port;
1906 the_port->icount.cts =
1909 (&the_port->state->port.delta_msr_wait);
2041 static void ioc4_cb_post_ncs(struct uart_port *the_port, int ncs)
2045 icount = &the_port->icount;
2060 * @the_port: port to use
2065 static inline int do_read(struct uart_port *the_port, unsigned char *buf,
2069 struct ioc4_port *port = get_ioc4_port(the_port, 0);
2239 the_port->icount.dcd = 0;
2241 (&the_port->state->
2255 ioc4_cb_post_ncs(the_port, NCS_OVERRUN);
2282 ioc4_cb_post_ncs(the_port,
2287 ioc4_cb_post_ncs(the_port,
2293 (the_port,
2338 * @the_port: port to read from
2340 static void receive_chars(struct uart_port *the_port)
2346 struct uart_state *state = the_port->state;
2355 spin_lock_irqsave(&the_port->lock, pflags);
2361 icount = &the_port->icount;
2362 read_count = do_read(the_port, ch, request_count);
2369 spin_unlock_irqrestore(&the_port->lock, pflags);
2379 static const char *ic4_type(struct uart_port *the_port)
2381 if (the_port->mapbase == PROTO_RS232)
2392 static unsigned int ic4_tx_empty(struct uart_port *the_port)
2394 struct ioc4_port *port = get_ioc4_port(the_port, 0);
2397 if (port_is_active(port, the_port)) {
2409 static void ic4_stop_tx(struct uart_port *the_port)
2411 struct ioc4_port *port = get_ioc4_port(the_port, 0);
2413 if (port_is_active(port, the_port))
2422 static void null_void_function(struct uart_port *the_port)
2431 static void ic4_shutdown(struct uart_port *the_port)
2437 port = get_ioc4_port(the_port, 0);
2441 state = the_port->state;
2449 spin_lock_irqsave(&the_port->lock, port_flags);
2452 spin_unlock_irqrestore(&the_port->lock, port_flags);
2461 static void ic4_set_mctrl(struct uart_port *the_port, unsigned int mctrl)
2466 port = get_ioc4_port(the_port, 0);
2467 if (!port_is_active(port, the_port))
2481 set_mcr(the_port, mcr, IOC4_SHADOW_DTR);
2489 static unsigned int ic4_get_mctrl(struct uart_port *the_port)
2491 struct ioc4_port *port = get_ioc4_port(the_port, 0);
2495 if (!port_is_active(port, the_port))
2513 static void ic4_start_tx(struct uart_port *the_port)
2515 struct ioc4_port *port = get_ioc4_port(the_port, 0);
2517 if (port_is_active(port, the_port)) {
2529 static void ic4_break_ctl(struct uart_port *the_port, int break_state)
2538 static int ic4_startup(struct uart_port *the_port)
2546 if (!the_port)
2548 port = get_ioc4_port(the_port, 1);
2551 state = the_port->state;
2560 spin_lock_irqsave(&the_port->lock, port_flags);
2561 retval = ic4_startup_local(the_port);
2562 spin_unlock_irqrestore(&the_port->lock, port_flags);
2574 ic4_set_termios(struct uart_port *the_port,
2579 spin_lock_irqsave(&the_port->lock, port_flags);
2580 ioc4_change_speed(the_port, termios, old_termios);
2581 spin_unlock_irqrestore(&the_port->lock, port_flags);
2646 struct uart_port *the_port;
2659 the_port = &control->ic_port[port_num].icp_uart_port
2661 if (the_port) {
2665 the_port);
2670 the_port);
2712 struct uart_port *the_port;
2734 the_port = &control->ic_port[port_num].icp_uart_port
2737 port->ip_all_ports[port_type_idx] = the_port;
2739 DPRINT_CONFIG(("%s: attach the_port 0x%p / port 0x%p : type %s\n",
2740 __func__, (void *)the_port,
2745 the_port->membase = (unsigned char __iomem *)1;
2746 the_port->iobase = (pdev->bus->number << 16) | port_num;
2747 the_port->line = (Num_of_ioc4_cards << 2) | port_num;
2748 the_port->mapbase = port_type;
2749 the_port->type = PORT_16550A;
2750 the_port->fifosize = IOC4_FIFO_CHARS;
2751 the_port->ops = &ioc4_ops;
2752 the_port->irq = control->ic_irq;
2753 the_port->dev = &pdev->dev;
2754 spin_lock_init(&the_port->lock);
2755 if (uart_add_one_port(u_driver, the_port) < 0) {
2758 __func__, the_port->line, pdev->bus->number);
2762 the_port->line, the_port->irq, pdev->bus->number));