uport 2878 drivers/tty/serial/8250/8250_port.c struct uart_port *uport = state->uart_port; uport 2879 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(uport); uport 2881 drivers/tty/serial/8250/8250_port.c if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) uport 2914 drivers/tty/serial/8250/8250_port.c struct uart_port *uport = state->uart_port; uport 2915 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(uport); uport 2918 drivers/tty/serial/8250/8250_port.c if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || uport 104 drivers/tty/serial/arc_uart.c #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) uport 89 drivers/tty/serial/dz.c static inline struct dz_port *to_dport(struct uart_port *uport) uport 91 drivers/tty/serial/dz.c return container_of(uport, struct dz_port, port); uport 127 drivers/tty/serial/dz.c static void dz_stop_tx(struct uart_port *uport) uport 129 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 137 drivers/tty/serial/dz.c static void dz_start_tx(struct uart_port *uport) uport 139 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 147 drivers/tty/serial/dz.c static void dz_stop_rx(struct uart_port *uport) uport 149 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 184 drivers/tty/serial/dz.c struct uart_port *uport; uport 194 drivers/tty/serial/dz.c uport = &dport->port; uport 199 drivers/tty/serial/dz.c icount = &uport->icount; uport 219 drivers/tty/serial/dz.c if (uart_handle_break(uport)) uport 228 drivers/tty/serial/dz.c status &= uport->read_status_mask; uport 238 drivers/tty/serial/dz.c if (uart_handle_sysrq_char(uport, ch)) uport 241 drivers/tty/serial/dz.c uart_insert_char(uport, status, DZ_OERR, ch, flag); uport 361 drivers/tty/serial/dz.c static unsigned int dz_get_mctrl(struct uart_port *uport) uport 366 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 377 drivers/tty/serial/dz.c static void dz_set_mctrl(struct uart_port *uport, unsigned int mctrl) uport 382 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 402 drivers/tty/serial/dz.c static int dz_startup(struct uart_port *uport) uport 404 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 443 drivers/tty/serial/dz.c static void dz_shutdown(struct uart_port *uport) uport 445 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 478 drivers/tty/serial/dz.c static unsigned int dz_tx_empty(struct uart_port *uport) uport 480 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 489 drivers/tty/serial/dz.c static void dz_break_ctl(struct uart_port *uport, int break_state) uport 495 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 499 drivers/tty/serial/dz.c spin_lock_irqsave(&uport->lock, flags); uport 506 drivers/tty/serial/dz.c spin_unlock_irqrestore(&uport->lock, flags); uport 565 drivers/tty/serial/dz.c static void dz_set_termios(struct uart_port *uport, struct ktermios *termios, uport 568 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 597 drivers/tty/serial/dz.c baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); uport 600 drivers/tty/serial/dz.c baud = uart_get_baud_rate(uport, old_termios, NULL, 50, 9600); uport 615 drivers/tty/serial/dz.c uart_update_timeout(uport, termios->c_cflag, baud); uport 628 drivers/tty/serial/dz.c uport->ignore_status_mask = 0; uport 644 drivers/tty/serial/dz.c static void dz_pm(struct uart_port *uport, unsigned int state, uport 647 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 659 drivers/tty/serial/dz.c static const char *dz_type(struct uart_port *uport) uport 664 drivers/tty/serial/dz.c static void dz_release_port(struct uart_port *uport) uport 666 drivers/tty/serial/dz.c struct dz_mux *mux = to_dport(uport)->mux; uport 669 drivers/tty/serial/dz.c iounmap(uport->membase); uport 670 drivers/tty/serial/dz.c uport->membase = NULL; uport 674 drivers/tty/serial/dz.c release_mem_region(uport->mapbase, dec_kn_slot_size); uport 677 drivers/tty/serial/dz.c static int dz_map_port(struct uart_port *uport) uport 679 drivers/tty/serial/dz.c if (!uport->membase) uport 680 drivers/tty/serial/dz.c uport->membase = ioremap_nocache(uport->mapbase, uport 682 drivers/tty/serial/dz.c if (!uport->membase) { uport 689 drivers/tty/serial/dz.c static int dz_request_port(struct uart_port *uport) uport 691 drivers/tty/serial/dz.c struct dz_mux *mux = to_dport(uport)->mux; uport 697 drivers/tty/serial/dz.c if (!request_mem_region(uport->mapbase, dec_kn_slot_size, uport 705 drivers/tty/serial/dz.c ret = dz_map_port(uport); uport 709 drivers/tty/serial/dz.c release_mem_region(uport->mapbase, dec_kn_slot_size); uport 715 drivers/tty/serial/dz.c static void dz_config_port(struct uart_port *uport, int flags) uport 717 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 720 drivers/tty/serial/dz.c if (dz_request_port(uport)) uport 723 drivers/tty/serial/dz.c uport->type = PORT_DZ; uport 732 drivers/tty/serial/dz.c static int dz_verify_port(struct uart_port *uport, struct serial_struct *ser) uport 738 drivers/tty/serial/dz.c if (ser->irq != uport->irq) uport 779 drivers/tty/serial/dz.c struct uart_port *uport = &dport->port; uport 783 drivers/tty/serial/dz.c uport->irq = dec_interrupt[DEC_IRQ_DZ11]; uport 784 drivers/tty/serial/dz.c uport->fifosize = 1; uport 785 drivers/tty/serial/dz.c uport->iotype = UPIO_MEM; uport 786 drivers/tty/serial/dz.c uport->flags = UPF_BOOT_AUTOCONF; uport 787 drivers/tty/serial/dz.c uport->ops = &dz_ops; uport 788 drivers/tty/serial/dz.c uport->line = line; uport 789 drivers/tty/serial/dz.c uport->mapbase = base; uport 808 drivers/tty/serial/dz.c static void dz_console_putchar(struct uart_port *uport, int ch) uport 810 drivers/tty/serial/dz.c struct dz_port *dport = to_dport(uport); uport 867 drivers/tty/serial/dz.c struct uart_port *uport = &dport->port; uport 874 drivers/tty/serial/dz.c ret = dz_map_port(uport); uport 881 drivers/tty/serial/dz.c dz_pm(uport, 0, -1); uport 1926 drivers/tty/serial/pmac_zilog.c struct uart_pmac_port *uport = &pmz_ports[i]; uport 1928 drivers/tty/serial/pmac_zilog.c if (uport->node != NULL) uport 1929 drivers/tty/serial/pmac_zilog.c pmz_dispose_port(uport); uport 1931 drivers/tty/serial/pmac_zilog.c if (uport->pdev != NULL) uport 1932 drivers/tty/serial/pmac_zilog.c pmz_dispose_port(uport); uport 102 drivers/tty/serial/qcom_geni_serial.c struct uart_port uport; uport 109 drivers/tty/serial/qcom_geni_serial.c int (*handle_rx)(struct uart_port *uport, u32 bytes, bool drop); uport 124 drivers/tty/serial/qcom_geni_serial.c static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop); uport 125 drivers/tty/serial/qcom_geni_serial.c static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop); uport 127 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_stop_rx(struct uart_port *uport); uport 128 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_handle_rx(struct uart_port *uport, bool drop); uport 140 drivers/tty/serial/qcom_geni_serial.c .uport = { uport 148 drivers/tty/serial/qcom_geni_serial.c .uport = { uport 156 drivers/tty/serial/qcom_geni_serial.c .uport = { uport 190 drivers/tty/serial/qcom_geni_serial.c .uport = { uport 198 drivers/tty/serial/qcom_geni_serial.c static int qcom_geni_serial_request_port(struct uart_port *uport) uport 200 drivers/tty/serial/qcom_geni_serial.c struct platform_device *pdev = to_platform_device(uport->dev); uport 201 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 203 drivers/tty/serial/qcom_geni_serial.c uport->membase = devm_platform_ioremap_resource(pdev, 0); uport 204 drivers/tty/serial/qcom_geni_serial.c if (IS_ERR(uport->membase)) uport 205 drivers/tty/serial/qcom_geni_serial.c return PTR_ERR(uport->membase); uport 206 drivers/tty/serial/qcom_geni_serial.c port->se.base = uport->membase; uport 210 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_config_port(struct uart_port *uport, int cfg_flags) uport 213 drivers/tty/serial/qcom_geni_serial.c uport->type = PORT_MSM; uport 214 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_request_port(uport); uport 218 drivers/tty/serial/qcom_geni_serial.c static unsigned int qcom_geni_serial_get_mctrl(struct uart_port *uport) uport 223 drivers/tty/serial/qcom_geni_serial.c if (uart_console(uport)) { uport 226 drivers/tty/serial/qcom_geni_serial.c geni_ios = readl(uport->membase + SE_GENI_IOS); uport 234 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_set_mctrl(struct uart_port *uport, uport 239 drivers/tty/serial/qcom_geni_serial.c if (uart_console(uport)) uport 244 drivers/tty/serial/qcom_geni_serial.c writel(uart_manual_rfr, uport->membase + SE_UART_MANUAL_RFR); uport 247 drivers/tty/serial/qcom_geni_serial.c static const char *qcom_geni_serial_get_type(struct uart_port *uport) uport 264 drivers/tty/serial/qcom_geni_serial.c static bool qcom_geni_serial_poll_bit(struct uart_port *uport, uport 273 drivers/tty/serial/qcom_geni_serial.c if (uport->private_data) { uport 274 drivers/tty/serial/qcom_geni_serial.c port = to_dev_port(uport, uport); uport 292 drivers/tty/serial/qcom_geni_serial.c reg = readl(uport->membase + offset); uport 301 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_setup_tx(struct uart_port *uport, u32 xmit_size) uport 305 drivers/tty/serial/qcom_geni_serial.c writel(xmit_size, uport->membase + SE_UART_TX_TRANS_LEN); uport 307 drivers/tty/serial/qcom_geni_serial.c writel(m_cmd, uport->membase + SE_GENI_M_CMD0); uport 310 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_poll_tx_done(struct uart_port *uport) uport 315 drivers/tty/serial/qcom_geni_serial.c done = qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 318 drivers/tty/serial/qcom_geni_serial.c writel(M_GENI_CMD_ABORT, uport->membase + uport 321 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 324 drivers/tty/serial/qcom_geni_serial.c writel(irq_clear, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 327 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_abort_rx(struct uart_port *uport) uport 331 drivers/tty/serial/qcom_geni_serial.c writel(S_GENI_CMD_ABORT, uport->membase + SE_GENI_S_CMD_CTRL_REG); uport 332 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_bit(uport, SE_GENI_S_CMD_CTRL_REG, uport 334 drivers/tty/serial/qcom_geni_serial.c writel(irq_clear, uport->membase + SE_GENI_S_IRQ_CLEAR); uport 335 drivers/tty/serial/qcom_geni_serial.c writel(FORCE_DEFAULT, uport->membase + GENI_FORCE_DEFAULT_REG); uport 339 drivers/tty/serial/qcom_geni_serial.c static int qcom_geni_serial_get_char(struct uart_port *uport) uport 344 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_M_IRQ_STATUS); uport 345 drivers/tty/serial/qcom_geni_serial.c writel(status, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 347 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_S_IRQ_STATUS); uport 348 drivers/tty/serial/qcom_geni_serial.c writel(status, uport->membase + SE_GENI_S_IRQ_CLEAR); uport 350 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_RX_FIFO_STATUS); uport 354 drivers/tty/serial/qcom_geni_serial.c rx_fifo = readl(uport->membase + SE_GENI_RX_FIFOn); uport 358 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_poll_put_char(struct uart_port *uport, uport 361 drivers/tty/serial/qcom_geni_serial.c writel(DEF_TX_WM, uport->membase + SE_GENI_TX_WATERMARK_REG); uport 362 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_setup_tx(uport, 1); uport 363 drivers/tty/serial/qcom_geni_serial.c WARN_ON(!qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 365 drivers/tty/serial/qcom_geni_serial.c writel(c, uport->membase + SE_GENI_TX_FIFOn); uport 366 drivers/tty/serial/qcom_geni_serial.c writel(M_TX_FIFO_WATERMARK_EN, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 367 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_tx_done(uport); uport 372 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_wr_char(struct uart_port *uport, int ch) uport 374 drivers/tty/serial/qcom_geni_serial.c writel(ch, uport->membase + SE_GENI_TX_FIFOn); uport 378 drivers/tty/serial/qcom_geni_serial.c __qcom_geni_serial_console_write(struct uart_port *uport, const char *s, uport 393 drivers/tty/serial/qcom_geni_serial.c writel(DEF_TX_WM, uport->membase + SE_GENI_TX_WATERMARK_REG); uport 394 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_setup_tx(uport, bytes_to_send); uport 405 drivers/tty/serial/qcom_geni_serial.c if (!qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 409 drivers/tty/serial/qcom_geni_serial.c uart_console_write(uport, s + i, chars_to_write, uport 411 drivers/tty/serial/qcom_geni_serial.c writel(M_TX_FIFO_WATERMARK_EN, uport->membase + uport 415 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_tx_done(uport); uport 421 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport; uport 434 drivers/tty/serial/qcom_geni_serial.c uport = &port->uport; uport 436 drivers/tty/serial/qcom_geni_serial.c locked = spin_trylock_irqsave(&uport->lock, flags); uport 438 drivers/tty/serial/qcom_geni_serial.c spin_lock_irqsave(&uport->lock, flags); uport 440 drivers/tty/serial/qcom_geni_serial.c geni_status = readl(uport->membase + SE_GENI_STATUS); uport 445 drivers/tty/serial/qcom_geni_serial.c if (!qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 448 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 450 drivers/tty/serial/qcom_geni_serial.c writel(M_CMD_ABORT_EN, uport->membase + uport 453 drivers/tty/serial/qcom_geni_serial.c writel(M_CMD_CANCEL_EN, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 459 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_tx_done(uport); uport 461 drivers/tty/serial/qcom_geni_serial.c if (uart_circ_chars_pending(&uport->state->xmit)) { uport 462 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 464 drivers/tty/serial/qcom_geni_serial.c uport->membase + SE_GENI_M_IRQ_EN); uport 468 drivers/tty/serial/qcom_geni_serial.c __qcom_geni_serial_console_write(uport, s, count); uport 471 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_setup_tx(uport, port->tx_remaining); uport 474 drivers/tty/serial/qcom_geni_serial.c spin_unlock_irqrestore(&uport->lock, flags); uport 477 drivers/tty/serial/qcom_geni_serial.c static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop) uport 482 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 484 drivers/tty/serial/qcom_geni_serial.c tport = &uport->state->port; uport 489 drivers/tty/serial/qcom_geni_serial.c ioread32_rep(uport->membase + SE_GENI_RX_FIFOn, buf, 1); uport 497 drivers/tty/serial/qcom_geni_serial.c uport->icount.rx++; uport 500 drivers/tty/serial/qcom_geni_serial.c if (uart_handle_break(uport)) uport 504 drivers/tty/serial/qcom_geni_serial.c sysrq = uart_prepare_sysrq_char(uport, buf[c]); uport 515 drivers/tty/serial/qcom_geni_serial.c static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop) uport 522 drivers/tty/serial/qcom_geni_serial.c static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop) uport 526 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 531 drivers/tty/serial/qcom_geni_serial.c tport = &uport->state->port; uport 532 drivers/tty/serial/qcom_geni_serial.c ioread32_rep(uport->membase + SE_GENI_RX_FIFOn, port->rx_fifo, words); uport 539 drivers/tty/serial/qcom_geni_serial.c dev_err(uport->dev, "%s:Unable to push data ret %d_bytes %d\n", uport 543 drivers/tty/serial/qcom_geni_serial.c uport->icount.rx += ret; uport 548 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_start_tx(struct uart_port *uport) uport 553 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_STATUS); uport 557 drivers/tty/serial/qcom_geni_serial.c if (!qcom_geni_serial_tx_empty(uport)) uport 560 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 563 drivers/tty/serial/qcom_geni_serial.c writel(DEF_TX_WM, uport->membase + SE_GENI_TX_WATERMARK_REG); uport 564 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_M_IRQ_EN); uport 567 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_stop_tx(struct uart_port *uport) uport 571 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 573 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 575 drivers/tty/serial/qcom_geni_serial.c writel(0, uport->membase + SE_GENI_TX_WATERMARK_REG); uport 576 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_M_IRQ_EN); uport 577 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_STATUS); uport 583 drivers/tty/serial/qcom_geni_serial.c if (!qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 586 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_bit(uport, SE_GENI_M_IRQ_STATUS, uport 588 drivers/tty/serial/qcom_geni_serial.c writel(M_CMD_ABORT_EN, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 590 drivers/tty/serial/qcom_geni_serial.c writel(M_CMD_CANCEL_EN, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 593 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_start_rx(struct uart_port *uport) uport 597 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 599 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_STATUS); uport 601 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_rx(uport); uport 605 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_S_IRQ_EN); uport 607 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_S_IRQ_EN); uport 609 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 611 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_M_IRQ_EN); uport 614 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_stop_rx(struct uart_port *uport) uport 618 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 621 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_S_IRQ_EN); uport 623 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_S_IRQ_EN); uport 625 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 627 drivers/tty/serial/qcom_geni_serial.c writel(irq_en, uport->membase + SE_GENI_M_IRQ_EN); uport 629 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_STATUS); uport 635 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_bit(uport, SE_GENI_S_IRQ_STATUS, uport 641 drivers/tty/serial/qcom_geni_serial.c s_irq_status = readl(uport->membase + SE_GENI_S_IRQ_STATUS); uport 644 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_handle_rx(uport, true); uport 645 drivers/tty/serial/qcom_geni_serial.c writel(s_irq_status, uport->membase + SE_GENI_S_IRQ_CLEAR); uport 647 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_STATUS); uport 649 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_abort_rx(uport); uport 652 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_handle_rx(struct uart_port *uport, bool drop) uport 659 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 661 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_RX_FIFO_STATUS); uport 674 drivers/tty/serial/qcom_geni_serial.c port->handle_rx(uport, total_bytes, drop); uport 677 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_handle_tx(struct uart_port *uport, bool done, uport 680 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 681 drivers/tty/serial/qcom_geni_serial.c struct circ_buf *xmit = &uport->state->xmit; uport 691 drivers/tty/serial/qcom_geni_serial.c status = readl(uport->membase + SE_GENI_TX_FIFO_STATUS); uport 701 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_tx(uport); uport 714 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_setup_tx(uport, pending); uport 717 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 720 drivers/tty/serial/qcom_geni_serial.c uport->membase + SE_GENI_M_IRQ_EN); uport 737 drivers/tty/serial/qcom_geni_serial.c iowrite32_rep(uport->membase + SE_GENI_TX_FIFOn, buf, 1); uport 740 drivers/tty/serial/qcom_geni_serial.c uport->icount.tx += tx_bytes; uport 753 drivers/tty/serial/qcom_geni_serial.c uport->membase + SE_GENI_M_IRQ_CLEAR); uport 757 drivers/tty/serial/qcom_geni_serial.c irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 760 drivers/tty/serial/qcom_geni_serial.c uport->membase + SE_GENI_M_IRQ_EN); uport 764 drivers/tty/serial/qcom_geni_serial.c uart_write_wakeup(uport); uport 773 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport = dev; uport 776 drivers/tty/serial/qcom_geni_serial.c struct tty_port *tport = &uport->state->port; uport 777 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 779 drivers/tty/serial/qcom_geni_serial.c if (uport->suspended) uport 782 drivers/tty/serial/qcom_geni_serial.c spin_lock_irqsave(&uport->lock, flags); uport 783 drivers/tty/serial/qcom_geni_serial.c m_irq_status = readl(uport->membase + SE_GENI_M_IRQ_STATUS); uport 784 drivers/tty/serial/qcom_geni_serial.c s_irq_status = readl(uport->membase + SE_GENI_S_IRQ_STATUS); uport 785 drivers/tty/serial/qcom_geni_serial.c geni_status = readl(uport->membase + SE_GENI_STATUS); uport 786 drivers/tty/serial/qcom_geni_serial.c m_irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); uport 787 drivers/tty/serial/qcom_geni_serial.c writel(m_irq_status, uport->membase + SE_GENI_M_IRQ_CLEAR); uport 788 drivers/tty/serial/qcom_geni_serial.c writel(s_irq_status, uport->membase + SE_GENI_S_IRQ_CLEAR); uport 794 drivers/tty/serial/qcom_geni_serial.c uport->icount.overrun++; uport 799 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_handle_tx(uport, m_irq_status & M_CMD_DONE_EN, uport 804 drivers/tty/serial/qcom_geni_serial.c uport->icount.parity++; uport 808 drivers/tty/serial/qcom_geni_serial.c uport->icount.brk++; uport 814 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_handle_rx(uport, drop_rx); uport 817 drivers/tty/serial/qcom_geni_serial.c uart_unlock_and_check_sysrq(uport, flags); uport 824 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport; uport 826 drivers/tty/serial/qcom_geni_serial.c uport = &port->uport; uport 830 drivers/tty/serial/qcom_geni_serial.c uport->fifosize = uport 835 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_shutdown(struct uart_port *uport) uport 840 drivers/tty/serial/qcom_geni_serial.c if (uart_console(uport)) uport 841 drivers/tty/serial/qcom_geni_serial.c console_stop(uport->cons); uport 843 drivers/tty/serial/qcom_geni_serial.c free_irq(uport->irq, uport); uport 844 drivers/tty/serial/qcom_geni_serial.c spin_lock_irqsave(&uport->lock, flags); uport 845 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_tx(uport); uport 846 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_rx(uport); uport 847 drivers/tty/serial/qcom_geni_serial.c spin_unlock_irqrestore(&uport->lock, flags); uport 850 drivers/tty/serial/qcom_geni_serial.c static int qcom_geni_serial_port_setup(struct uart_port *uport) uport 852 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 856 drivers/tty/serial/qcom_geni_serial.c if (uart_console(uport)) { uport 866 drivers/tty/serial/qcom_geni_serial.c dev_err(uport->dev, "Invalid FW loaded, proto: %d\n", proto); uport 870 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_rx(uport); uport 874 drivers/tty/serial/qcom_geni_serial.c writel(rxstale, uport->membase + SE_UART_RX_STALE_CNT); uport 879 drivers/tty/serial/qcom_geni_serial.c if (uart_console(uport)) uport 880 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_tx_done(uport); uport 887 drivers/tty/serial/qcom_geni_serial.c if (!uart_console(uport)) { uport 888 drivers/tty/serial/qcom_geni_serial.c port->rx_fifo = devm_kcalloc(uport->dev, uport 898 drivers/tty/serial/qcom_geni_serial.c static int qcom_geni_serial_startup(struct uart_port *uport) uport 901 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 905 drivers/tty/serial/qcom_geni_serial.c (uart_console(uport) ? "console" : "uart"), uport->line); uport 908 drivers/tty/serial/qcom_geni_serial.c ret = qcom_geni_serial_port_setup(uport); uport 913 drivers/tty/serial/qcom_geni_serial.c ret = request_irq(uport->irq, qcom_geni_serial_isr, IRQF_TRIGGER_HIGH, uport 914 drivers/tty/serial/qcom_geni_serial.c port->name, uport); uport 916 drivers/tty/serial/qcom_geni_serial.c dev_err(uport->dev, "Failed to get IRQ ret %d\n", ret); uport 949 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_set_termios(struct uart_port *uport, uport 961 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 965 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_stop_rx(uport); uport 967 drivers/tty/serial/qcom_geni_serial.c baud = uart_get_baud_rate(uport, termios, old, 300, 4000000); uport 980 drivers/tty/serial/qcom_geni_serial.c uport->uartclk = clk_rate; uport 986 drivers/tty/serial/qcom_geni_serial.c tx_trans_cfg = readl(uport->membase + SE_UART_TX_TRANS_CFG); uport 987 drivers/tty/serial/qcom_geni_serial.c tx_parity_cfg = readl(uport->membase + SE_UART_TX_PARITY_CFG); uport 988 drivers/tty/serial/qcom_geni_serial.c rx_trans_cfg = readl(uport->membase + SE_UART_RX_TRANS_CFG); uport 989 drivers/tty/serial/qcom_geni_serial.c rx_parity_cfg = readl(uport->membase + SE_UART_RX_PARITY_CFG); uport 1042 drivers/tty/serial/qcom_geni_serial.c uart_update_timeout(uport, termios->c_cflag, baud); uport 1044 drivers/tty/serial/qcom_geni_serial.c if (!uart_console(uport)) uport 1046 drivers/tty/serial/qcom_geni_serial.c uport->membase + SE_UART_LOOPBACK_CFG); uport 1047 drivers/tty/serial/qcom_geni_serial.c writel(tx_trans_cfg, uport->membase + SE_UART_TX_TRANS_CFG); uport 1048 drivers/tty/serial/qcom_geni_serial.c writel(tx_parity_cfg, uport->membase + SE_UART_TX_PARITY_CFG); uport 1049 drivers/tty/serial/qcom_geni_serial.c writel(rx_trans_cfg, uport->membase + SE_UART_RX_TRANS_CFG); uport 1050 drivers/tty/serial/qcom_geni_serial.c writel(rx_parity_cfg, uport->membase + SE_UART_RX_PARITY_CFG); uport 1051 drivers/tty/serial/qcom_geni_serial.c writel(bits_per_char, uport->membase + SE_UART_TX_WORD_LEN); uport 1052 drivers/tty/serial/qcom_geni_serial.c writel(bits_per_char, uport->membase + SE_UART_RX_WORD_LEN); uport 1053 drivers/tty/serial/qcom_geni_serial.c writel(stop_bit_len, uport->membase + SE_UART_TX_STOP_BIT_LEN); uport 1054 drivers/tty/serial/qcom_geni_serial.c writel(ser_clk_cfg, uport->membase + GENI_SER_M_CLK_CFG); uport 1055 drivers/tty/serial/qcom_geni_serial.c writel(ser_clk_cfg, uport->membase + GENI_SER_S_CLK_CFG); uport 1057 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_start_rx(uport); uport 1060 drivers/tty/serial/qcom_geni_serial.c static unsigned int qcom_geni_serial_tx_empty(struct uart_port *uport) uport 1062 drivers/tty/serial/qcom_geni_serial.c return !readl(uport->membase + SE_GENI_TX_FIFO_STATUS); uport 1068 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport; uport 1085 drivers/tty/serial/qcom_geni_serial.c uport = &port->uport; uport 1087 drivers/tty/serial/qcom_geni_serial.c if (unlikely(!uport->membase)) uport 1091 drivers/tty/serial/qcom_geni_serial.c ret = qcom_geni_serial_port_setup(uport); uport 1099 drivers/tty/serial/qcom_geni_serial.c return uart_set_options(uport, co, baud, parity, bits, flow); uport 1113 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport = &dev->port; uport 1122 drivers/tty/serial/qcom_geni_serial.c if (!uport->membase) uport 1126 drivers/tty/serial/qcom_geni_serial.c se.base = uport->membase; uport 1140 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_poll_tx_done(uport); uport 1141 drivers/tty/serial/qcom_geni_serial.c qcom_geni_serial_abort_rx(uport); uport 1146 drivers/tty/serial/qcom_geni_serial.c writel(tx_trans_cfg, uport->membase + SE_UART_TX_TRANS_CFG); uport 1147 drivers/tty/serial/qcom_geni_serial.c writel(tx_parity_cfg, uport->membase + SE_UART_TX_PARITY_CFG); uport 1148 drivers/tty/serial/qcom_geni_serial.c writel(rx_trans_cfg, uport->membase + SE_UART_RX_TRANS_CFG); uport 1149 drivers/tty/serial/qcom_geni_serial.c writel(rx_parity_cfg, uport->membase + SE_UART_RX_PARITY_CFG); uport 1150 drivers/tty/serial/qcom_geni_serial.c writel(bits_per_char, uport->membase + SE_UART_TX_WORD_LEN); uport 1151 drivers/tty/serial/qcom_geni_serial.c writel(bits_per_char, uport->membase + SE_UART_RX_WORD_LEN); uport 1152 drivers/tty/serial/qcom_geni_serial.c writel(stop_bit_len, uport->membase + SE_UART_TX_STOP_BIT_LEN); uport 1206 drivers/tty/serial/qcom_geni_serial.c static void qcom_geni_serial_pm(struct uart_port *uport, uport 1209 drivers/tty/serial/qcom_geni_serial.c struct qcom_geni_serial_port *port = to_dev_port(uport, uport); uport 1263 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport; uport 1286 drivers/tty/serial/qcom_geni_serial.c uport = &port->uport; uport 1288 drivers/tty/serial/qcom_geni_serial.c if (uport->private_data) uport 1291 drivers/tty/serial/qcom_geni_serial.c uport->dev = &pdev->dev; uport 1304 drivers/tty/serial/qcom_geni_serial.c uport->mapbase = res->start; uport 1313 drivers/tty/serial/qcom_geni_serial.c uport->irq = irq; uport 1315 drivers/tty/serial/qcom_geni_serial.c uport->private_data = drv; uport 1319 drivers/tty/serial/qcom_geni_serial.c device_create_file(uport->dev, &dev_attr_loopback); uport 1320 drivers/tty/serial/qcom_geni_serial.c return uart_add_one_port(drv, uport); uport 1326 drivers/tty/serial/qcom_geni_serial.c struct uart_driver *drv = port->uport.private_data; uport 1328 drivers/tty/serial/qcom_geni_serial.c uart_remove_one_port(drv, &port->uport); uport 1335 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport = &port->uport; uport 1337 drivers/tty/serial/qcom_geni_serial.c return uart_suspend_port(uport->private_data, uport); uport 1343 drivers/tty/serial/qcom_geni_serial.c struct uart_port *uport = &port->uport; uport 1345 drivers/tty/serial/qcom_geni_serial.c return uart_resume_port(uport->private_data, uport); uport 1617 drivers/tty/serial/samsung.c struct uart_port *uport; uport 1620 drivers/tty/serial/samsung.c uport = &port->port; uport 1646 drivers/tty/serial/samsung.c if (uport->state == NULL) uport 1649 drivers/tty/serial/samsung.c tty = uport->state->port.tty; uport 1657 drivers/tty/serial/samsung.c dev_warn(uport->dev, "%s: no termios?\n", __func__); uport 1661 drivers/tty/serial/samsung.c s3c24xx_serial_set_termios(uport, termios, NULL); uport 105 drivers/tty/serial/sb1250-duart.c #define to_sport(uport) container_of(uport, struct sbd_port, port) uport 237 drivers/tty/serial/sb1250-duart.c static unsigned int sbd_tx_empty(struct uart_port *uport) uport 239 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 244 drivers/tty/serial/sb1250-duart.c static unsigned int sbd_get_mctrl(struct uart_port *uport) uport 246 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 250 drivers/tty/serial/sb1250-duart.c status >>= (uport->line) % 2; uport 258 drivers/tty/serial/sb1250-duart.c static void sbd_set_mctrl(struct uart_port *uport, unsigned int mctrl) uport 260 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 271 drivers/tty/serial/sb1250-duart.c clr <<= (uport->line) % 2; uport 272 drivers/tty/serial/sb1250-duart.c set <<= (uport->line) % 2; uport 286 drivers/tty/serial/sb1250-duart.c static void sbd_stop_tx(struct uart_port *uport) uport 288 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 294 drivers/tty/serial/sb1250-duart.c static void sbd_start_tx(struct uart_port *uport) uport 296 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 300 drivers/tty/serial/sb1250-duart.c mask = read_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2)); uport 302 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), mask); uport 309 drivers/tty/serial/sb1250-duart.c static void sbd_stop_rx(struct uart_port *uport) uport 311 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 313 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), 0); uport 316 drivers/tty/serial/sb1250-duart.c static void sbd_enable_ms(struct uart_port *uport) uport 318 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 324 drivers/tty/serial/sb1250-duart.c static void sbd_break_ctl(struct uart_port *uport, int break_state) uport 326 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 337 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 351 drivers/tty/serial/sb1250-duart.c icount = &uport->icount; uport 359 drivers/tty/serial/sb1250-duart.c if (uart_handle_break(uport)) uport 368 drivers/tty/serial/sb1250-duart.c status &= uport->read_status_mask; uport 377 drivers/tty/serial/sb1250-duart.c if (uart_handle_sysrq_char(uport, ch)) uport 380 drivers/tty/serial/sb1250-duart.c uart_insert_char(uport, status, M_DUART_OVRUN_ERR, ch, flag); uport 383 drivers/tty/serial/sb1250-duart.c tty_flip_buffer_push(&uport->state->port); uport 388 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 417 drivers/tty/serial/sb1250-duart.c mask = read_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2)); uport 419 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), mask); uport 425 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 428 drivers/tty/serial/sb1250-duart.c delta = read_sbdshr(sport, R_DUART_INCHREG((uport->line) % 2)); uport 429 drivers/tty/serial/sb1250-duart.c delta >>= (uport->line) % 2; uport 432 drivers/tty/serial/sb1250-duart.c uart_handle_cts_change(uport, !(delta & M_DUART_IN_PIN0_VAL)); uport 435 drivers/tty/serial/sb1250-duart.c uport->icount.dsr++; uport 439 drivers/tty/serial/sb1250-duart.c wake_up_interruptible(&uport->state->port.delta_msr_wait); uport 445 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 452 drivers/tty/serial/sb1250-duart.c R_DUART_ISRREG((uport->line) % 2)); uport 454 drivers/tty/serial/sb1250-duart.c R_DUART_IMRREG((uport->line) % 2)); uport 473 drivers/tty/serial/sb1250-duart.c static int sbd_startup(struct uart_port *uport) uport 475 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 489 drivers/tty/serial/sb1250-duart.c read_sbdshr(sport, R_DUART_INCHREG((uport->line) % 2)); uport 501 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), uport 507 drivers/tty/serial/sb1250-duart.c static void sbd_shutdown(struct uart_port *uport) uport 509 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 519 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 533 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), 0); uport 538 drivers/tty/serial/sb1250-duart.c static void sbd_set_termios(struct uart_port *uport, struct ktermios *termios, uport 541 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 583 drivers/tty/serial/sb1250-duart.c baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000); uport 589 drivers/tty/serial/sb1250-duart.c uart_update_timeout(uport, termios->c_cflag, baud); uport 591 drivers/tty/serial/sb1250-duart.c uport->read_status_mask = M_DUART_OVRUN_ERR; uport 593 drivers/tty/serial/sb1250-duart.c uport->read_status_mask |= M_DUART_FRM_ERR | uport 596 drivers/tty/serial/sb1250-duart.c uport->read_status_mask |= M_DUART_RCVD_BRK; uport 598 drivers/tty/serial/sb1250-duart.c uport->ignore_status_mask = 0; uport 600 drivers/tty/serial/sb1250-duart.c uport->ignore_status_mask |= M_DUART_FRM_ERR | uport 603 drivers/tty/serial/sb1250-duart.c uport->ignore_status_mask |= M_DUART_RCVD_BRK; uport 605 drivers/tty/serial/sb1250-duart.c uport->ignore_status_mask |= M_DUART_OVRUN_ERR; uport 618 drivers/tty/serial/sb1250-duart.c spin_lock(&uport->lock); uport 640 drivers/tty/serial/sb1250-duart.c spin_unlock(&uport->lock); uport 644 drivers/tty/serial/sb1250-duart.c static const char *sbd_type(struct uart_port *uport) uport 649 drivers/tty/serial/sb1250-duart.c static void sbd_release_port(struct uart_port *uport) uport 651 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 656 drivers/tty/serial/sb1250-duart.c iounmap(uport->membase); uport 657 drivers/tty/serial/sb1250-duart.c uport->membase = NULL; uport 661 drivers/tty/serial/sb1250-duart.c release_mem_region(uport->mapbase, DUART_CHANREG_SPACING); uport 664 drivers/tty/serial/sb1250-duart.c static int sbd_map_port(struct uart_port *uport) uport 667 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 670 drivers/tty/serial/sb1250-duart.c if (!uport->membase) uport 671 drivers/tty/serial/sb1250-duart.c uport->membase = ioremap_nocache(uport->mapbase, uport 673 drivers/tty/serial/sb1250-duart.c if (!uport->membase) { uport 683 drivers/tty/serial/sb1250-duart.c iounmap(uport->membase); uport 684 drivers/tty/serial/sb1250-duart.c uport->membase = NULL; uport 691 drivers/tty/serial/sb1250-duart.c static int sbd_request_port(struct uart_port *uport) uport 694 drivers/tty/serial/sb1250-duart.c struct sbd_duart *duart = to_sport(uport)->duart; uport 697 drivers/tty/serial/sb1250-duart.c if (!request_mem_region(uport->mapbase, DUART_CHANREG_SPACING, uport 712 drivers/tty/serial/sb1250-duart.c ret = sbd_map_port(uport); uport 720 drivers/tty/serial/sb1250-duart.c release_mem_region(uport->mapbase, DUART_CHANREG_SPACING); uport 726 drivers/tty/serial/sb1250-duart.c static void sbd_config_port(struct uart_port *uport, int flags) uport 728 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 731 drivers/tty/serial/sb1250-duart.c if (sbd_request_port(uport)) uport 734 drivers/tty/serial/sb1250-duart.c uport->type = PORT_SB1250_DUART; uport 740 drivers/tty/serial/sb1250-duart.c static int sbd_verify_port(struct uart_port *uport, struct serial_struct *ser) uport 746 drivers/tty/serial/sb1250-duart.c if (ser->irq != uport->irq) uport 748 drivers/tty/serial/sb1250-duart.c if (ser->baud_base != uport->uartclk / 16) uport 804 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 808 drivers/tty/serial/sb1250-duart.c uport->irq = SBD_INT(line); uport 809 drivers/tty/serial/sb1250-duart.c uport->uartclk = 100000000 / 20 * 16; uport 810 drivers/tty/serial/sb1250-duart.c uport->fifosize = 16; uport 811 drivers/tty/serial/sb1250-duart.c uport->iotype = UPIO_MEM; uport 812 drivers/tty/serial/sb1250-duart.c uport->flags = UPF_BOOT_AUTOCONF; uport 813 drivers/tty/serial/sb1250-duart.c uport->ops = &sbd_ops; uport 814 drivers/tty/serial/sb1250-duart.c uport->line = line; uport 815 drivers/tty/serial/sb1250-duart.c uport->mapbase = SBD_CHANREGS(line); uport 827 drivers/tty/serial/sb1250-duart.c static void sbd_console_putchar(struct uart_port *uport, int ch) uport 829 drivers/tty/serial/sb1250-duart.c struct sbd_port *sport = to_sport(uport); uport 841 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 846 drivers/tty/serial/sb1250-duart.c spin_lock_irqsave(&uport->lock, flags); uport 847 drivers/tty/serial/sb1250-duart.c mask = read_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2)); uport 848 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), uport 851 drivers/tty/serial/sb1250-duart.c spin_unlock_irqrestore(&uport->lock, flags); uport 856 drivers/tty/serial/sb1250-duart.c spin_lock_irqsave(&uport->lock, flags); uport 860 drivers/tty/serial/sb1250-duart.c write_sbdshr(sport, R_DUART_IMRREG((uport->line) % 2), mask); uport 861 drivers/tty/serial/sb1250-duart.c spin_unlock_irqrestore(&uport->lock, flags); uport 869 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 879 drivers/tty/serial/sb1250-duart.c ret = sbd_map_port(uport); uport 887 drivers/tty/serial/sb1250-duart.c return uart_set_options(uport, co, baud, parity, bits, flow); uport 941 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 944 drivers/tty/serial/sb1250-duart.c uart_add_one_port(&sbd_reg, uport); uport 958 drivers/tty/serial/sb1250-duart.c struct uart_port *uport = &sport->port; uport 961 drivers/tty/serial/sb1250-duart.c uart_remove_one_port(&sbd_reg, uport); uport 103 drivers/tty/serial/serial-tegra.c struct uart_port uport; uport 154 drivers/tty/serial/serial-tegra.c return readl(tup->uport.membase + (reg << tup->uport.regshift)); uport 160 drivers/tty/serial/serial-tegra.c writel(val, tup->uport.membase + (reg << tup->uport.regshift)); uport 165 drivers/tty/serial/serial-tegra.c return container_of(u, struct tegra_uart_port, uport); uport 367 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 395 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 409 drivers/tty/serial/serial-tegra.c spin_lock_irqsave(&tup->uport.lock, flags); uport 422 drivers/tty/serial/serial-tegra.c spin_unlock_irqrestore(&tup->uport.lock, flags); uport 440 drivers/tty/serial/serial-tegra.c tup->uport.icount.overrun++; uport 441 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Got overrun errors\n"); uport 445 drivers/tty/serial/serial-tegra.c tup->uport.icount.parity++; uport 446 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Got Parity errors\n"); uport 449 drivers/tty/serial/serial-tegra.c tup->uport.icount.frame++; uport 450 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Got frame errors\n"); uport 458 drivers/tty/serial/serial-tegra.c if (tup->uport.ignore_status_mask & UART_LSR_BI) uport 461 drivers/tty/serial/serial-tegra.c tup->uport.icount.brk++; uport 462 drivers/tty/serial/serial-tegra.c dev_dbg(tup->uport.dev, "Got Break\n"); uport 464 drivers/tty/serial/serial-tegra.c uart_insert_char(&tup->uport, lsr, UART_LSR_OE, 0, flag); uport 482 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 494 drivers/tty/serial/serial-tegra.c tup->uport.icount.tx++; uport 513 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 521 drivers/tty/serial/serial-tegra.c spin_lock_irqsave(&tup->uport.lock, flags); uport 525 drivers/tty/serial/serial-tegra.c uart_write_wakeup(&tup->uport); uport 527 drivers/tty/serial/serial-tegra.c spin_unlock_irqrestore(&tup->uport.lock, flags); uport 533 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 536 drivers/tty/serial/serial-tegra.c dma_sync_single_for_device(tup->uport.dev, tup->tx_dma_buf_phys, uport 545 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Not able to get desc for Tx\n"); uport 562 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 609 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 626 drivers/tty/serial/serial-tegra.c struct circ_buf *xmit = &tup->uport.state->xmit; uport 631 drivers/tty/serial/serial-tegra.c uart_write_wakeup(&tup->uport); uport 652 drivers/tty/serial/serial-tegra.c tup->uport.icount.rx++; uport 654 drivers/tty/serial/serial-tegra.c if (!uart_handle_sysrq_char(&tup->uport, ch) && tty) uport 657 drivers/tty/serial/serial-tegra.c if (tup->uport.ignore_status_mask & UART_LSR_DR) uport 672 drivers/tty/serial/serial-tegra.c tup->uport.icount.rx += count; uport 674 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "No tty port\n"); uport 678 drivers/tty/serial/serial-tegra.c if (tup->uport.ignore_status_mask & UART_LSR_DR) uport 681 drivers/tty/serial/serial-tegra.c dma_sync_single_for_cpu(tup->uport.dev, tup->rx_dma_buf_phys, uport 687 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "RxData copy to tty layer failed\n"); uport 689 drivers/tty/serial/serial-tegra.c dma_sync_single_for_device(tup->uport.dev, tup->rx_dma_buf_phys, uport 696 drivers/tty/serial/serial-tegra.c struct tty_port *port = &tup->uport.state->port; uport 716 drivers/tty/serial/serial-tegra.c struct uart_port *u = &tup->uport; uport 726 drivers/tty/serial/serial-tegra.c dev_dbg(tup->uport.dev, "RX DMA is in progress\n"); uport 770 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Not able to get desc for Rx\n"); uport 776 drivers/tty/serial/serial-tegra.c dma_sync_single_for_device(tup->uport.dev, tup->rx_dma_buf_phys, uport 794 drivers/tty/serial/serial-tegra.c tup->uport.icount.rng++; uport 796 drivers/tty/serial/serial-tegra.c tup->uport.icount.dsr++; uport 799 drivers/tty/serial/serial-tegra.c uart_handle_dcd_change(&tup->uport, msr & UART_MSR_DCD); uport 802 drivers/tty/serial/serial-tegra.c uart_handle_cts_change(&tup->uport, msr & UART_MSR_CTS); uport 807 drivers/tty/serial/serial-tegra.c struct tty_struct *tty = tty_port_tty_get(&tup->uport.state->port); uport 808 drivers/tty/serial/serial-tegra.c struct tty_port *port = &tup->uport.state->port; uport 820 drivers/tty/serial/serial-tegra.c struct uart_port *u = &tup->uport; uport 888 drivers/tty/serial/serial-tegra.c struct tty_port *port = &tup->uport.state->port; uport 919 drivers/tty/serial/serial-tegra.c unsigned long fifo_empty_time = tup->uport.fifosize * char_time; uport 933 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 946 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 954 drivers/tty/serial/serial-tegra.c spin_lock_irqsave(&tup->uport.lock, flags); uport 958 drivers/tty/serial/serial-tegra.c spin_unlock_irqrestore(&tup->uport.lock, flags); uport 1028 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "FIFO mode not enabled\n"); uport 1048 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Failed to set baud rate\n"); uport 1058 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Not able to start Rx DMA\n"); uport 1100 drivers/tty/serial/serial-tegra.c dma_free_coherent(tup->uport.dev, TEGRA_UART_RX_DMA_BUFFER_SIZE, uport 1108 drivers/tty/serial/serial-tegra.c dma_unmap_single(tup->uport.dev, tup->tx_dma_buf_phys, uport 1125 drivers/tty/serial/serial-tegra.c dma_chan = dma_request_slave_channel_reason(tup->uport.dev, uport 1129 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 1135 drivers/tty/serial/serial-tegra.c dma_buf = dma_alloc_coherent(tup->uport.dev, uport 1139 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 1144 drivers/tty/serial/serial-tegra.c dma_sconfig.src_addr = tup->uport.mapbase; uport 1151 drivers/tty/serial/serial-tegra.c dma_phys = dma_map_single(tup->uport.dev, uport 1152 drivers/tty/serial/serial-tegra.c tup->uport.state->xmit.buf, UART_XMIT_SIZE, uport 1154 drivers/tty/serial/serial-tegra.c if (dma_mapping_error(tup->uport.dev, dma_phys)) { uport 1155 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "dma_map_single tx failed\n"); uport 1159 drivers/tty/serial/serial-tegra.c dma_buf = tup->uport.state->xmit.buf; uport 1160 drivers/tty/serial/serial-tegra.c dma_sconfig.dst_addr = tup->uport.mapbase; uport 1170 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, uport 1342 drivers/tty/serial/serial-tegra.c dev_err(tup->uport.dev, "Failed to set baud rate\n"); uport 1373 drivers/tty/serial/serial-tegra.c tup->uport.ignore_status_mask = 0; uport 1376 drivers/tty/serial/serial-tegra.c tup->uport.ignore_status_mask |= UART_LSR_DR; uport 1378 drivers/tty/serial/serial-tegra.c tup->uport.ignore_status_mask |= UART_LSR_BI; uport 1430 drivers/tty/serial/serial-tegra.c tup->uport.line = port; uport 1573 drivers/tty/serial/serial-tegra.c u = &tup->uport; uport 1621 drivers/tty/serial/serial-tegra.c struct uart_port *u = &tup->uport; uport 1631 drivers/tty/serial/serial-tegra.c struct uart_port *u = &tup->uport; uport 1639 drivers/tty/serial/serial-tegra.c struct uart_port *u = &tup->uport; uport 51 drivers/tty/serial/serial_core.c static int uart_dcd_enabled(struct uart_port *uport) uport 53 drivers/tty/serial/serial_core.c return !!(uport->status & UPSTAT_DCD_ENABLE); uport 63 drivers/tty/serial/serial_core.c static inline void uart_port_deref(struct uart_port *uport) uport 65 drivers/tty/serial/serial_core.c if (atomic_dec_and_test(&uport->state->refcount)) uport 66 drivers/tty/serial/serial_core.c wake_up(&uport->state->remove_wait); uport 77 drivers/tty/serial/serial_core.c #define uart_port_unlock(uport, flags) \ uport 79 drivers/tty/serial/serial_core.c struct uart_port *__uport = uport; \ uport 156 drivers/tty/serial/serial_core.c static void uart_port_dtr_rts(struct uart_port *uport, int raise) uport 158 drivers/tty/serial/serial_core.c int rs485_on = uport->rs485_config && uport 159 drivers/tty/serial/serial_core.c (uport->rs485.flags & SER_RS485_ENABLED); uport 160 drivers/tty/serial/serial_core.c int RTS_after_send = !!(uport->rs485.flags & SER_RS485_RTS_AFTER_SEND); uport 164 drivers/tty/serial/serial_core.c uart_set_mctrl(uport, TIOCM_DTR); uport 165 drivers/tty/serial/serial_core.c uart_clear_mctrl(uport, TIOCM_RTS); uport 167 drivers/tty/serial/serial_core.c uart_set_mctrl(uport, TIOCM_DTR | TIOCM_RTS); uport 173 drivers/tty/serial/serial_core.c uart_clear_mctrl(uport, clear); uport 184 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 189 drivers/tty/serial/serial_core.c if (uport->type == PORT_UNKNOWN) uport 209 drivers/tty/serial/serial_core.c uart_port_unlock(uport, flags); uport 211 drivers/tty/serial/serial_core.c uart_port_unlock(uport, flags); uport 219 drivers/tty/serial/serial_core.c retval = uport->ops->startup(uport); uport 221 drivers/tty/serial/serial_core.c if (uart_console(uport) && uport->cons->cflag) { uport 222 drivers/tty/serial/serial_core.c tty->termios.c_cflag = uport->cons->cflag; uport 223 drivers/tty/serial/serial_core.c uport->cons->cflag = 0; uport 235 drivers/tty/serial/serial_core.c uart_port_dtr_rts(uport, 1); uport 274 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 291 drivers/tty/serial/serial_core.c if (uport && uart_console(uport) && tty) uport 292 drivers/tty/serial/serial_core.c uport->cons->cflag = tty->termios.c_cflag; uport 295 drivers/tty/serial/serial_core.c uart_port_dtr_rts(uport, 0); uport 316 drivers/tty/serial/serial_core.c uart_port_unlock(uport, flags); uport 503 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 511 drivers/tty/serial/serial_core.c if (!tty || uport->type == PORT_UNKNOWN) uport 515 drivers/tty/serial/serial_core.c uport->ops->set_termios(uport, termios, old_termios); uport 520 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 522 drivers/tty/serial/serial_core.c uport->status |= UPSTAT_CTS_ENABLE; uport 524 drivers/tty/serial/serial_core.c uport->status &= ~UPSTAT_CTS_ENABLE; uport 527 drivers/tty/serial/serial_core.c uport->status &= ~UPSTAT_DCD_ENABLE; uport 529 drivers/tty/serial/serial_core.c uport->status |= UPSTAT_DCD_ENABLE; uport 532 drivers/tty/serial/serial_core.c hw_stopped = uport->hw_stopped; uport 533 drivers/tty/serial/serial_core.c uport->hw_stopped = uart_softcts_mode(uport) && uport 534 drivers/tty/serial/serial_core.c !(uport->ops->get_mctrl(uport) & TIOCM_CTS); uport 535 drivers/tty/serial/serial_core.c if (uport->hw_stopped) { uport 537 drivers/tty/serial/serial_core.c uport->ops->stop_tx(uport); uport 542 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 757 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 767 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 768 drivers/tty/serial/serial_core.c if (!uport) uport 771 drivers/tty/serial/serial_core.c retinfo->type = uport->type; uport 772 drivers/tty/serial/serial_core.c retinfo->line = uport->line; uport 773 drivers/tty/serial/serial_core.c retinfo->port = uport->iobase; uport 775 drivers/tty/serial/serial_core.c retinfo->port_high = (long) uport->iobase >> HIGH_BITS_OFFSET; uport 776 drivers/tty/serial/serial_core.c retinfo->irq = uport->irq; uport 777 drivers/tty/serial/serial_core.c retinfo->flags = (__force int)uport->flags; uport 778 drivers/tty/serial/serial_core.c retinfo->xmit_fifo_size = uport->fifosize; uport 779 drivers/tty/serial/serial_core.c retinfo->baud_base = uport->uartclk / 16; uport 784 drivers/tty/serial/serial_core.c retinfo->custom_divisor = uport->custom_divisor; uport 785 drivers/tty/serial/serial_core.c retinfo->hub6 = uport->hub6; uport 786 drivers/tty/serial/serial_core.c retinfo->io_type = uport->iotype; uport 787 drivers/tty/serial/serial_core.c retinfo->iomem_reg_shift = uport->regshift; uport 788 drivers/tty/serial/serial_core.c retinfo->iomem_base = (void *)(unsigned long)uport->mapbase; uport 809 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 816 drivers/tty/serial/serial_core.c if (!uport) uport 830 drivers/tty/serial/serial_core.c change_irq = !(uport->flags & UPF_FIXED_PORT) uport 831 drivers/tty/serial/serial_core.c && new_info->irq != uport->irq; uport 838 drivers/tty/serial/serial_core.c change_port = !(uport->flags & UPF_FIXED_PORT) uport 839 drivers/tty/serial/serial_core.c && (new_port != uport->iobase || uport 840 drivers/tty/serial/serial_core.c (unsigned long)new_info->iomem_base != uport->mapbase || uport 841 drivers/tty/serial/serial_core.c new_info->hub6 != uport->hub6 || uport 842 drivers/tty/serial/serial_core.c new_info->io_type != uport->iotype || uport 843 drivers/tty/serial/serial_core.c new_info->iomem_reg_shift != uport->regshift || uport 844 drivers/tty/serial/serial_core.c new_info->type != uport->type); uport 846 drivers/tty/serial/serial_core.c old_flags = uport->flags; uport 848 drivers/tty/serial/serial_core.c old_custom_divisor = uport->custom_divisor; uport 853 drivers/tty/serial/serial_core.c (new_info->baud_base != uport->uartclk / 16) || uport 857 drivers/tty/serial/serial_core.c new_info->xmit_fifo_size != uport->fifosize) || uport 860 drivers/tty/serial/serial_core.c uport->flags = ((uport->flags & ~UPF_USR_MASK) | uport 862 drivers/tty/serial/serial_core.c uport->custom_divisor = new_info->custom_divisor; uport 873 drivers/tty/serial/serial_core.c if (uport->ops->verify_port) uport 874 drivers/tty/serial/serial_core.c retval = uport->ops->verify_port(uport, new_info); uport 903 drivers/tty/serial/serial_core.c old_iobase = uport->iobase; uport 904 drivers/tty/serial/serial_core.c old_mapbase = uport->mapbase; uport 905 drivers/tty/serial/serial_core.c old_type = uport->type; uport 906 drivers/tty/serial/serial_core.c old_hub6 = uport->hub6; uport 907 drivers/tty/serial/serial_core.c old_iotype = uport->iotype; uport 908 drivers/tty/serial/serial_core.c old_shift = uport->regshift; uport 913 drivers/tty/serial/serial_core.c if (old_type != PORT_UNKNOWN && uport->ops->release_port) uport 914 drivers/tty/serial/serial_core.c uport->ops->release_port(uport); uport 916 drivers/tty/serial/serial_core.c uport->iobase = new_port; uport 917 drivers/tty/serial/serial_core.c uport->type = new_info->type; uport 918 drivers/tty/serial/serial_core.c uport->hub6 = new_info->hub6; uport 919 drivers/tty/serial/serial_core.c uport->iotype = new_info->io_type; uport 920 drivers/tty/serial/serial_core.c uport->regshift = new_info->iomem_reg_shift; uport 921 drivers/tty/serial/serial_core.c uport->mapbase = (unsigned long)new_info->iomem_base; uport 926 drivers/tty/serial/serial_core.c if (uport->type != PORT_UNKNOWN && uport->ops->request_port) { uport 927 drivers/tty/serial/serial_core.c retval = uport->ops->request_port(uport); uport 938 drivers/tty/serial/serial_core.c uport->iobase = old_iobase; uport 939 drivers/tty/serial/serial_core.c uport->type = old_type; uport 940 drivers/tty/serial/serial_core.c uport->hub6 = old_hub6; uport 941 drivers/tty/serial/serial_core.c uport->iotype = old_iotype; uport 942 drivers/tty/serial/serial_core.c uport->regshift = old_shift; uport 943 drivers/tty/serial/serial_core.c uport->mapbase = old_mapbase; uport 946 drivers/tty/serial/serial_core.c retval = uport->ops->request_port(uport); uport 952 drivers/tty/serial/serial_core.c uport->type = PORT_UNKNOWN; uport 966 drivers/tty/serial/serial_core.c uport->irq = new_info->irq; uport 967 drivers/tty/serial/serial_core.c if (!(uport->flags & UPF_FIXED_PORT)) uport 968 drivers/tty/serial/serial_core.c uport->uartclk = new_info->baud_base * 16; uport 969 drivers/tty/serial/serial_core.c uport->flags = (uport->flags & ~UPF_CHANGE_MASK) | uport 971 drivers/tty/serial/serial_core.c uport->custom_divisor = new_info->custom_divisor; uport 975 drivers/tty/serial/serial_core.c uport->fifosize = new_info->xmit_fifo_size; uport 976 drivers/tty/serial/serial_core.c port->low_latency = (uport->flags & UPF_LOW_LATENCY) ? 1 : 0; uport 980 drivers/tty/serial/serial_core.c if (uport->type == PORT_UNKNOWN) uport 983 drivers/tty/serial/serial_core.c if (((old_flags ^ uport->flags) & UPF_SPD_MASK) || uport 984 drivers/tty/serial/serial_core.c old_custom_divisor != uport->custom_divisor) { uport 989 drivers/tty/serial/serial_core.c if (uport->flags & UPF_SPD_MASK) { uport 990 drivers/tty/serial/serial_core.c dev_notice_ratelimited(uport->dev, uport 1038 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 1041 drivers/tty/serial/serial_core.c result = uport->ops->tx_empty(uport); uport 1049 drivers/tty/serial/serial_core.c if (uport->x_char || uport 1051 drivers/tty/serial/serial_core.c !uart_tx_stopped(uport))) uport 1061 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1065 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1066 drivers/tty/serial/serial_core.c if (!uport) uport 1070 drivers/tty/serial/serial_core.c result = uport->mctrl; uport 1071 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1072 drivers/tty/serial/serial_core.c result |= uport->ops->get_mctrl(uport); uport 1073 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1085 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1089 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1090 drivers/tty/serial/serial_core.c if (!uport) uport 1094 drivers/tty/serial/serial_core.c uart_update_mctrl(uport, set, clear); uport 1106 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1110 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1111 drivers/tty/serial/serial_core.c if (!uport) uport 1114 drivers/tty/serial/serial_core.c if (uport->type != PORT_UNKNOWN && uport->ops->break_ctl) uport 1115 drivers/tty/serial/serial_core.c uport->ops->break_ctl(uport, break_state); uport 1125 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1139 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1140 drivers/tty/serial/serial_core.c if (!uport) { uport 1153 drivers/tty/serial/serial_core.c if (uport->type != PORT_UNKNOWN && uport->ops->release_port) uport 1154 drivers/tty/serial/serial_core.c uport->ops->release_port(uport); uport 1157 drivers/tty/serial/serial_core.c if (uport->flags & UPF_AUTO_IRQ) uport 1164 drivers/tty/serial/serial_core.c uport->ops->config_port(uport, flags); uport 1177 drivers/tty/serial/serial_core.c static void uart_enable_ms(struct uart_port *uport) uport 1182 drivers/tty/serial/serial_core.c if (uport->ops->enable_ms) uport 1183 drivers/tty/serial/serial_core.c uport->ops->enable_ms(uport); uport 1197 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1206 drivers/tty/serial/serial_core.c uport = uart_port_ref(state); uport 1207 drivers/tty/serial/serial_core.c if (!uport) uport 1209 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1210 drivers/tty/serial/serial_core.c memcpy(&cprev, &uport->icount, sizeof(struct uart_icount)); uport 1211 drivers/tty/serial/serial_core.c uart_enable_ms(uport); uport 1212 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1216 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1217 drivers/tty/serial/serial_core.c memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); uport 1218 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1242 drivers/tty/serial/serial_core.c uart_port_deref(uport); uport 1258 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1260 drivers/tty/serial/serial_core.c uport = uart_port_ref(state); uport 1261 drivers/tty/serial/serial_core.c if (!uport) uport 1263 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1264 drivers/tty/serial/serial_core.c memcpy(&cnow, &uport->icount, sizeof(struct uart_icount)); uport 1265 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1266 drivers/tty/serial/serial_core.c uart_port_deref(uport); uport 1384 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1421 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1423 drivers/tty/serial/serial_core.c if (!uport || tty_io_error(tty)) { uport 1439 drivers/tty/serial/serial_core.c ret = uart_get_rs485_config(uport, uarg); uport 1443 drivers/tty/serial/serial_core.c ret = uart_set_rs485_config(uport, uarg); uport 1454 drivers/tty/serial/serial_core.c if (uport->ops->ioctl) uport 1455 drivers/tty/serial/serial_core.c ret = uport->ops->ioctl(uport, cmd, arg); uport 1467 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1470 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1471 drivers/tty/serial/serial_core.c if (uport && uport->ops->set_ldisc) uport 1472 drivers/tty/serial/serial_core.c uport->ops->set_ldisc(uport, &tty->termios); uport 1480 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1486 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1487 drivers/tty/serial/serial_core.c if (!uport) uport 1494 drivers/tty/serial/serial_core.c if (uport->flags & UPF_SOFT_FLOW) { uport 1521 drivers/tty/serial/serial_core.c uart_clear_mctrl(uport, TIOCM_RTS | TIOCM_DTR); uport 1527 drivers/tty/serial/serial_core.c uart_set_mctrl(uport, mask); uport 1562 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 1568 drivers/tty/serial/serial_core.c if (WARN(!uport, "detached port still initialized!\n")) uport 1571 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1572 drivers/tty/serial/serial_core.c uport->ops->stop_rx(uport); uport 1573 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1659 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1665 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1666 drivers/tty/serial/serial_core.c WARN(!uport, "hangup of detached port!\n"); uport 1676 drivers/tty/serial/serial_core.c if (uport && !uart_console(uport)) uport 1688 drivers/tty/serial/serial_core.c struct uart_port *uport = uart_port_check(state); uport 1702 drivers/tty/serial/serial_core.c if (uport) uport 1703 drivers/tty/serial/serial_core.c uport->ops->shutdown(uport); uport 1708 drivers/tty/serial/serial_core.c if (uport) uport 1709 drivers/tty/serial/serial_core.c synchronize_irq(uport->irq); uport 1715 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1718 drivers/tty/serial/serial_core.c uport = uart_port_ref(state); uport 1725 drivers/tty/serial/serial_core.c if (WARN_ON(!uport)) uport 1727 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1728 drivers/tty/serial/serial_core.c uart_enable_ms(uport); uport 1729 drivers/tty/serial/serial_core.c mctrl = uport->ops->get_mctrl(uport); uport 1730 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1731 drivers/tty/serial/serial_core.c uart_port_deref(uport); uport 1740 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1742 drivers/tty/serial/serial_core.c uport = uart_port_ref(state); uport 1743 drivers/tty/serial/serial_core.c if (!uport) uport 1745 drivers/tty/serial/serial_core.c uart_port_dtr_rts(uport, raise); uport 1746 drivers/tty/serial/serial_core.c uart_port_deref(uport); uport 1784 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1787 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1788 drivers/tty/serial/serial_core.c if (!uport || uport->flags & UPF_DEAD) uport 1791 drivers/tty/serial/serial_core.c port->low_latency = (uport->flags & UPF_LOW_LATENCY) ? 1 : 0; uport 1823 drivers/tty/serial/serial_core.c struct uart_port *uport; uport 1829 drivers/tty/serial/serial_core.c uport = uart_port_check(state); uport 1830 drivers/tty/serial/serial_core.c if (!uport) uport 1833 drivers/tty/serial/serial_core.c mmio = uport->iotype >= UPIO_MEM; uport 1835 drivers/tty/serial/serial_core.c uport->line, uart_type(uport), uport 1837 drivers/tty/serial/serial_core.c mmio ? (unsigned long long)uport->mapbase uport 1838 drivers/tty/serial/serial_core.c : (unsigned long long)uport->iobase, uport 1839 drivers/tty/serial/serial_core.c uport->irq); uport 1841 drivers/tty/serial/serial_core.c if (uport->type == PORT_UNKNOWN) { uport 1850 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 1851 drivers/tty/serial/serial_core.c status = uport->ops->get_mctrl(uport); uport 1852 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 1857 drivers/tty/serial/serial_core.c uport->icount.tx, uport->icount.rx); uport 1858 drivers/tty/serial/serial_core.c if (uport->icount.frame) uport 1859 drivers/tty/serial/serial_core.c seq_printf(m, " fe:%d", uport->icount.frame); uport 1860 drivers/tty/serial/serial_core.c if (uport->icount.parity) uport 1861 drivers/tty/serial/serial_core.c seq_printf(m, " pe:%d", uport->icount.parity); uport 1862 drivers/tty/serial/serial_core.c if (uport->icount.brk) uport 1863 drivers/tty/serial/serial_core.c seq_printf(m, " brk:%d", uport->icount.brk); uport 1864 drivers/tty/serial/serial_core.c if (uport->icount.overrun) uport 1865 drivers/tty/serial/serial_core.c seq_printf(m, " oe:%d", uport->icount.overrun); uport 1866 drivers/tty/serial/serial_core.c if (uport->icount.buf_overrun) uport 1867 drivers/tty/serial/serial_core.c seq_printf(m, " bo:%d", uport->icount.buf_overrun); uport 1870 drivers/tty/serial/serial_core.c if (uport->mctrl & (bit)) \ uport 2150 drivers/tty/serial/serial_core.c int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) uport 2152 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; uport 2155 drivers/tty/serial/serial_core.c struct uart_match match = {uport, drv}; uport 2159 drivers/tty/serial/serial_core.c tty_dev = device_find_child(uport->dev, &match, serial_match_port); uport 2161 drivers/tty/serial/serial_core.c enable_irq_wake(uport->irq); uport 2169 drivers/tty/serial/serial_core.c if (!console_suspend_enabled && uart_console(uport)) uport 2172 drivers/tty/serial/serial_core.c uport->suspended = 1; uport 2175 drivers/tty/serial/serial_core.c const struct uart_ops *ops = uport->ops; uport 2181 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 2182 drivers/tty/serial/serial_core.c ops->stop_tx(uport); uport 2183 drivers/tty/serial/serial_core.c ops->set_mctrl(uport, 0); uport 2184 drivers/tty/serial/serial_core.c ops->stop_rx(uport); uport 2185 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 2190 drivers/tty/serial/serial_core.c for (tries = 3; !ops->tx_empty(uport) && tries; tries--) uport 2193 drivers/tty/serial/serial_core.c dev_err(uport->dev, "%s: Unable to drain transmitter\n", uport 2194 drivers/tty/serial/serial_core.c uport->name); uport 2196 drivers/tty/serial/serial_core.c ops->shutdown(uport); uport 2202 drivers/tty/serial/serial_core.c if (uart_console(uport)) uport 2203 drivers/tty/serial/serial_core.c console_stop(uport->cons); uport 2212 drivers/tty/serial/serial_core.c int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) uport 2214 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; uport 2217 drivers/tty/serial/serial_core.c struct uart_match match = {uport, drv}; uport 2222 drivers/tty/serial/serial_core.c tty_dev = device_find_child(uport->dev, &match, serial_match_port); uport 2223 drivers/tty/serial/serial_core.c if (!uport->suspended && device_may_wakeup(tty_dev)) { uport 2224 drivers/tty/serial/serial_core.c if (irqd_is_wakeup_set(irq_get_irq_data((uport->irq)))) uport 2225 drivers/tty/serial/serial_core.c disable_irq_wake(uport->irq); uport 2231 drivers/tty/serial/serial_core.c uport->suspended = 0; uport 2236 drivers/tty/serial/serial_core.c if (uart_console(uport)) { uport 2241 drivers/tty/serial/serial_core.c termios.c_cflag = uport->cons->cflag; uport 2251 drivers/tty/serial/serial_core.c uport->ops->set_termios(uport, &termios, NULL); uport 2253 drivers/tty/serial/serial_core.c console_start(uport->cons); uport 2257 drivers/tty/serial/serial_core.c const struct uart_ops *ops = uport->ops; uport 2261 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 2262 drivers/tty/serial/serial_core.c ops->set_mctrl(uport, 0); uport 2263 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 2264 drivers/tty/serial/serial_core.c if (console_suspend_enabled || !uart_console(uport)) { uport 2267 drivers/tty/serial/serial_core.c ret = ops->startup(uport); uport 2271 drivers/tty/serial/serial_core.c spin_lock_irq(&uport->lock); uport 2272 drivers/tty/serial/serial_core.c ops->set_mctrl(uport, uport->mctrl); uport 2273 drivers/tty/serial/serial_core.c ops->start_tx(uport); uport 2274 drivers/tty/serial/serial_core.c spin_unlock_irq(&uport->lock); uport 2787 drivers/tty/serial/serial_core.c int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport) uport 2797 drivers/tty/serial/serial_core.c if (uport->line >= drv->nr) uport 2800 drivers/tty/serial/serial_core.c state = drv->state + uport->line; uport 2813 drivers/tty/serial/serial_core.c state->uart_port = uport; uport 2814 drivers/tty/serial/serial_core.c uport->state = state; uport 2817 drivers/tty/serial/serial_core.c uport->cons = drv->cons; uport 2818 drivers/tty/serial/serial_core.c uport->minor = drv->tty_driver->minor_start + uport->line; uport 2819 drivers/tty/serial/serial_core.c uport->name = kasprintf(GFP_KERNEL, "%s%d", drv->dev_name, uport 2820 drivers/tty/serial/serial_core.c drv->tty_driver->name_base + uport->line); uport 2821 drivers/tty/serial/serial_core.c if (!uport->name) { uport 2830 drivers/tty/serial/serial_core.c if (!(uart_console(uport) && (uport->cons->flags & CON_ENABLED))) { uport 2831 drivers/tty/serial/serial_core.c spin_lock_init(&uport->lock); uport 2832 drivers/tty/serial/serial_core.c lockdep_set_class(&uport->lock, &port_lock_key); uport 2834 drivers/tty/serial/serial_core.c if (uport->cons && uport->dev) uport 2835 drivers/tty/serial/serial_core.c of_console_check(uport->dev->of_node, uport->cons->name, uport->line); uport 2837 drivers/tty/serial/serial_core.c tty_port_link_device(port, drv->tty_driver, uport->line); uport 2838 drivers/tty/serial/serial_core.c uart_configure_port(drv, state, uport); uport 2840 drivers/tty/serial/serial_core.c port->console = uart_console(uport); uport 2843 drivers/tty/serial/serial_core.c if (uport->attr_group) uport 2846 drivers/tty/serial/serial_core.c uport->tty_groups = kcalloc(num_groups, sizeof(*uport->tty_groups), uport 2848 drivers/tty/serial/serial_core.c if (!uport->tty_groups) { uport 2852 drivers/tty/serial/serial_core.c uport->tty_groups[0] = &tty_dev_attr_group; uport 2853 drivers/tty/serial/serial_core.c if (uport->attr_group) uport 2854 drivers/tty/serial/serial_core.c uport->tty_groups[1] = uport->attr_group; uport 2861 drivers/tty/serial/serial_core.c uport->line, uport->dev, port, uport->tty_groups); uport 2865 drivers/tty/serial/serial_core.c dev_err(uport->dev, "Cannot register tty device on line %d\n", uport 2866 drivers/tty/serial/serial_core.c uport->line); uport 2872 drivers/tty/serial/serial_core.c uport->flags &= ~UPF_DEAD; uport 2890 drivers/tty/serial/serial_core.c int uart_remove_one_port(struct uart_driver *drv, struct uart_port *uport) uport 2892 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; uport 2908 drivers/tty/serial/serial_core.c if (uart_port != uport) uport 2909 drivers/tty/serial/serial_core.c dev_alert(uport->dev, "Removing wrong port: %p != %p\n", uport 2910 drivers/tty/serial/serial_core.c uart_port, uport); uport 2917 drivers/tty/serial/serial_core.c uport->flags |= UPF_DEAD; uport 2923 drivers/tty/serial/serial_core.c tty_port_unregister_device(port, drv->tty_driver, uport->line); uport 2934 drivers/tty/serial/serial_core.c if (uart_console(uport)) uport 2935 drivers/tty/serial/serial_core.c unregister_console(uport->cons); uport 2940 drivers/tty/serial/serial_core.c if (uport->type != PORT_UNKNOWN && uport->ops->release_port) uport 2941 drivers/tty/serial/serial_core.c uport->ops->release_port(uport); uport 2942 drivers/tty/serial/serial_core.c kfree(uport->tty_groups); uport 2943 drivers/tty/serial/serial_core.c kfree(uport->name); uport 2948 drivers/tty/serial/serial_core.c uport->type = PORT_UNKNOWN; uport 2994 drivers/tty/serial/serial_core.c void uart_handle_dcd_change(struct uart_port *uport, unsigned int status) uport 2996 drivers/tty/serial/serial_core.c struct tty_port *port = &uport->state->port; uport 3000 drivers/tty/serial/serial_core.c lockdep_assert_held_once(&uport->lock); uport 3011 drivers/tty/serial/serial_core.c uport->icount.dcd++; uport 3013 drivers/tty/serial/serial_core.c if (uart_dcd_enabled(uport)) { uport 3029 drivers/tty/serial/serial_core.c void uart_handle_cts_change(struct uart_port *uport, unsigned int status) uport 3031 drivers/tty/serial/serial_core.c lockdep_assert_held_once(&uport->lock); uport 3033 drivers/tty/serial/serial_core.c uport->icount.cts++; uport 3035 drivers/tty/serial/serial_core.c if (uart_softcts_mode(uport)) { uport 3036 drivers/tty/serial/serial_core.c if (uport->hw_stopped) { uport 3038 drivers/tty/serial/serial_core.c uport->hw_stopped = 0; uport 3039 drivers/tty/serial/serial_core.c uport->ops->start_tx(uport); uport 3040 drivers/tty/serial/serial_core.c uart_write_wakeup(uport); uport 3044 drivers/tty/serial/serial_core.c uport->hw_stopped = 1; uport 3045 drivers/tty/serial/serial_core.c uport->ops->stop_tx(uport); uport 1116 drivers/tty/serial/sprd_serial.c static bool sprd_uart_is_console(struct uart_port *uport) uport 1120 drivers/tty/serial/sprd_serial.c if (cons && cons->index >= 0 && cons->index == uport->line) uport 1126 drivers/tty/serial/sprd_serial.c static int sprd_clk_init(struct uart_port *uport) uport 1129 drivers/tty/serial/sprd_serial.c struct sprd_uart_port *u = sprd_port[uport->line]; uport 1131 drivers/tty/serial/sprd_serial.c clk_uart = devm_clk_get(uport->dev, "uart"); uport 1133 drivers/tty/serial/sprd_serial.c dev_warn(uport->dev, "uart%d can't get uart clock\n", uport 1134 drivers/tty/serial/sprd_serial.c uport->line); uport 1138 drivers/tty/serial/sprd_serial.c clk_parent = devm_clk_get(uport->dev, "source"); uport 1140 drivers/tty/serial/sprd_serial.c dev_warn(uport->dev, "uart%d can't get source clock\n", uport 1141 drivers/tty/serial/sprd_serial.c uport->line); uport 1146 drivers/tty/serial/sprd_serial.c uport->uartclk = SPRD_DEFAULT_SOURCE_CLK; uport 1148 drivers/tty/serial/sprd_serial.c uport->uartclk = clk_get_rate(clk_uart); uport 1150 drivers/tty/serial/sprd_serial.c u->clk = devm_clk_get(uport->dev, "enable"); uport 1155 drivers/tty/serial/sprd_serial.c dev_warn(uport->dev, "uart%d can't get enable clock\n", uport 1156 drivers/tty/serial/sprd_serial.c uport->line); uport 1159 drivers/tty/serial/sprd_serial.c if (!sprd_uart_is_console(uport)) uport 103 drivers/tty/serial/zs.c #define to_zport(uport) container_of(uport, struct zs_port, port) uport 308 drivers/tty/serial/zs.c static unsigned int zs_tx_empty(struct uart_port *uport) uport 310 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 376 drivers/tty/serial/zs.c static unsigned int zs_get_mctrl(struct uart_port *uport) uport 378 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 389 drivers/tty/serial/zs.c static void zs_set_mctrl(struct uart_port *uport, unsigned int mctrl) uport 391 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 429 drivers/tty/serial/zs.c static void zs_stop_tx(struct uart_port *uport) uport 431 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 441 drivers/tty/serial/zs.c static void zs_start_tx(struct uart_port *uport) uport 443 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 455 drivers/tty/serial/zs.c static void zs_stop_rx(struct uart_port *uport) uport 457 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 489 drivers/tty/serial/zs.c static void zs_enable_ms(struct uart_port *uport) uport 491 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 519 drivers/tty/serial/zs.c static void zs_break_ctl(struct uart_port *uport, int break_state) uport 521 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 543 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 563 drivers/tty/serial/zs.c icount = &uport->icount; uport 592 drivers/tty/serial/zs.c status &= uport->read_status_mask; uport 601 drivers/tty/serial/zs.c if (uart_handle_sysrq_char(uport, ch)) uport 604 drivers/tty/serial/zs.c uart_insert_char(uport, status, Rx_OVR, ch, flag); uport 607 drivers/tty/serial/zs.c tty_flip_buffer_push(&uport->state->port); uport 652 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 666 drivers/tty/serial/zs.c if (uart_handle_break(uport)) uport 680 drivers/tty/serial/zs.c uart_handle_cts_change(uport, uport 683 drivers/tty/serial/zs.c uart_handle_dcd_change(uport, uport 686 drivers/tty/serial/zs.c uport->icount.dsr++; uport 688 drivers/tty/serial/zs.c uport->icount.rng++; uport 691 drivers/tty/serial/zs.c wake_up_interruptible(&uport->state->port.delta_msr_wait); uport 756 drivers/tty/serial/zs.c static int zs_startup(struct uart_port *uport) uport 758 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 809 drivers/tty/serial/zs.c static void zs_shutdown(struct uart_port *uport) uport 811 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 852 drivers/tty/serial/zs.c static void zs_set_termios(struct uart_port *uport, struct ktermios *termios, uport 855 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 915 drivers/tty/serial/zs.c baud = uart_get_baud_rate(uport, termios, old_termios, 0, uport 916 drivers/tty/serial/zs.c uport->uartclk / zport->clk_mode / 4); uport 918 drivers/tty/serial/zs.c brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); uport 922 drivers/tty/serial/zs.c uart_update_timeout(uport, termios->c_cflag, baud); uport 924 drivers/tty/serial/zs.c uport->read_status_mask = Rx_OVR; uport 926 drivers/tty/serial/zs.c uport->read_status_mask |= FRM_ERR | PAR_ERR; uport 928 drivers/tty/serial/zs.c uport->read_status_mask |= Rx_BRK; uport 930 drivers/tty/serial/zs.c uport->ignore_status_mask = 0; uport 932 drivers/tty/serial/zs.c uport->ignore_status_mask |= FRM_ERR | PAR_ERR; uport 934 drivers/tty/serial/zs.c uport->ignore_status_mask |= Rx_BRK; uport 936 drivers/tty/serial/zs.c uport->ignore_status_mask |= Rx_OVR; uport 967 drivers/tty/serial/zs.c static void zs_pm(struct uart_port *uport, unsigned int state, uport 970 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 980 drivers/tty/serial/zs.c static const char *zs_type(struct uart_port *uport) uport 985 drivers/tty/serial/zs.c static void zs_release_port(struct uart_port *uport) uport 987 drivers/tty/serial/zs.c iounmap(uport->membase); uport 988 drivers/tty/serial/zs.c uport->membase = 0; uport 989 drivers/tty/serial/zs.c release_mem_region(uport->mapbase, ZS_CHAN_IO_SIZE); uport 992 drivers/tty/serial/zs.c static int zs_map_port(struct uart_port *uport) uport 994 drivers/tty/serial/zs.c if (!uport->membase) uport 995 drivers/tty/serial/zs.c uport->membase = ioremap_nocache(uport->mapbase, uport 997 drivers/tty/serial/zs.c if (!uport->membase) { uport 1004 drivers/tty/serial/zs.c static int zs_request_port(struct uart_port *uport) uport 1008 drivers/tty/serial/zs.c if (!request_mem_region(uport->mapbase, ZS_CHAN_IO_SIZE, "scc")) { uport 1012 drivers/tty/serial/zs.c ret = zs_map_port(uport); uport 1014 drivers/tty/serial/zs.c release_mem_region(uport->mapbase, ZS_CHAN_IO_SIZE); uport 1020 drivers/tty/serial/zs.c static void zs_config_port(struct uart_port *uport, int flags) uport 1022 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 1025 drivers/tty/serial/zs.c if (zs_request_port(uport)) uport 1028 drivers/tty/serial/zs.c uport->type = PORT_ZS; uport 1034 drivers/tty/serial/zs.c static int zs_verify_port(struct uart_port *uport, struct serial_struct *ser) uport 1036 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 1041 drivers/tty/serial/zs.c if (ser->irq != uport->irq) uport 1043 drivers/tty/serial/zs.c if (ser->baud_base != uport->uartclk / zport->clk_mode / 4) uport 1104 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 1109 drivers/tty/serial/zs.c uport->irq = zs_parms.irq[chip]; uport 1110 drivers/tty/serial/zs.c uport->uartclk = ZS_CLOCK; uport 1111 drivers/tty/serial/zs.c uport->fifosize = 1; uport 1112 drivers/tty/serial/zs.c uport->iotype = UPIO_MEM; uport 1113 drivers/tty/serial/zs.c uport->flags = UPF_BOOT_AUTOCONF; uport 1114 drivers/tty/serial/zs.c uport->ops = &zs_ops; uport 1115 drivers/tty/serial/zs.c uport->line = chip * ZS_NUM_CHAN + side; uport 1116 drivers/tty/serial/zs.c uport->mapbase = dec_kn_slot_base + uport 1130 drivers/tty/serial/zs.c static void zs_console_putchar(struct uart_port *uport, int ch) uport 1132 drivers/tty/serial/zs.c struct zs_port *zport = to_zport(uport); uport 1203 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 1210 drivers/tty/serial/zs.c ret = zs_map_port(uport); uport 1215 drivers/tty/serial/zs.c zs_pm(uport, 0, -1); uport 1219 drivers/tty/serial/zs.c return uart_set_options(uport, co, baud, parity, bits, flow); uport 1284 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 1287 drivers/tty/serial/zs.c uart_add_one_port(&zs_reg, uport); uport 1300 drivers/tty/serial/zs.c struct uart_port *uport = &zport->port; uport 1303 drivers/tty/serial/zs.c uart_remove_one_port(&zs_reg, uport); uport 439 include/linux/serial_core.h static inline bool uart_cts_enabled(struct uart_port *uport) uport 441 include/linux/serial_core.h return !!(uport->status & UPSTAT_CTS_ENABLE); uport 444 include/linux/serial_core.h static inline bool uart_softcts_mode(struct uart_port *uport) uport 448 include/linux/serial_core.h return ((uport->status & mask) == UPSTAT_CTS_ENABLE); uport 455 include/linux/serial_core.h extern void uart_handle_dcd_change(struct uart_port *uport, uport 457 include/linux/serial_core.h extern void uart_handle_cts_change(struct uart_port *uport,