uart 30 arch/arm/mach-davinci/include/mach/uncompress.h u32 *uart; uart 35 arch/arm/mach-davinci/include/mach/uncompress.h if (!uart) uart 38 arch/arm/mach-davinci/include/mach/uncompress.h while (!(uart[UART_LSR] & UART_LSR_THRE)) uart 40 arch/arm/mach-davinci/include/mach/uncompress.h uart[UART_TX] = c; uart 45 arch/arm/mach-davinci/include/mach/uncompress.h if (!uart) uart 48 arch/arm/mach-davinci/include/mach/uncompress.h while (!(uart[UART_LSR] & UART_LSR_THRE)) uart 54 arch/arm/mach-davinci/include/mach/uncompress.h uart = (u32 *)phys; uart 3684 arch/arm/mach-omap2/omap_hwmod.c const char *uart; uart 3688 arch/arm/mach-omap2/omap_hwmod.c uart = of_get_property(np, "stdout-path", NULL); uart 3689 arch/arm/mach-omap2/omap_hwmod.c if (uart) { uart 3690 arch/arm/mach-omap2/omap_hwmod.c np = of_find_node_by_path(uart); uart 3692 arch/arm/mach-omap2/omap_hwmod.c uart = of_get_property(np, "ti,hwmods", NULL); uart 3693 arch/arm/mach-omap2/omap_hwmod.c oh = omap_hwmod_lookup(uart); uart 3695 arch/arm/mach-omap2/omap_hwmod.c uart = of_get_property(np->parent, uart 3698 arch/arm/mach-omap2/omap_hwmod.c oh = omap_hwmod_lookup(uart); uart 112 arch/arm/plat-samsung/init.c int uart; uart 116 arch/arm/plat-samsung/init.c for (uart = 0; uart < no; uart++, cfg++, cfgptr++) { uart 121 arch/arm/plat-samsung/init.c s3c24xx_uart_devs[uart] = platdev; uart 932 arch/ia64/kernel/efi.c int uart = 0; uart 952 arch/ia64/kernel/efi.c uart = 1; uart 955 arch/ia64/kernel/efi.c if (!uart) uart 959 arch/ia64/kernel/efi.c uart = 0; uart 895 arch/mips/cavium-octeon/octeon-platform.c int uart; uart 903 arch/mips/cavium-octeon/octeon-platform.c uart = fdt_path_offset(initial_boot_params, alias_prop); uart 909 arch/mips/cavium-octeon/octeon-platform.c uart, "clock-frequency", uart 914 arch/mips/cavium-octeon/octeon-platform.c fdt_nop_node(initial_boot_params, uart); uart 161 arch/mips/generic/yamon-dt.c unsigned int uart, baud, stop_bits; uart 167 arch/mips/generic/yamon-dt.c uart = 0; uart 169 arch/mips/generic/yamon-dt.c uart = 1; uart 173 arch/mips/generic/yamon-dt.c uart = 0; uart 180 arch/mips/generic/yamon-dt.c snprintf(mode_var_name, sizeof(mode_var_name), "modetty%u", uart); uart 212 arch/mips/generic/yamon-dt.c uart, baud, parity, stop_bits, uart 123 arch/mips/include/asm/sgi/ioc.h struct sgioc_uart_regs uart; uart 36 arch/mips/sgi-ip27/ip27-console.c struct ioc3_uartregs *uart = console_uart(); uart 38 arch/mips/sgi-ip27/ip27-console.c while ((readb(&uart->iu_lsr) & 0x20) == 0) uart 40 arch/mips/sgi-ip27/ip27-console.c writeb(c, &uart->iu_thr); uart 26 arch/powerpc/boot/cuboot-hotfoot.c u32 uart = mfdcr(DCRN_CPC0_UCR) & 0x7f; uart 34 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/opb/serial@ef600300", bd.bi_procfreq / uart); uart 35 arch/powerpc/boot/cuboot-hotfoot.c dt_fixup_clock("/plb/opb/serial@ef600400", bd.bi_procfreq / uart); uart 25 arch/x86/include/asm/serial.h { .uart = 0, BASE_BAUD, 0x3F8, 4, STD_COMX_FLAGS }, /* ttyS0 */ \ uart 26 arch/x86/include/asm/serial.h { .uart = 0, BASE_BAUD, 0x2F8, 3, STD_COMX_FLAGS }, /* ttyS1 */ \ uart 27 arch/x86/include/asm/serial.h { .uart = 0, BASE_BAUD, 0x3E8, 4, STD_COMX_FLAGS }, /* ttyS2 */ \ uart 28 arch/x86/include/asm/serial.h { .uart = 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */ uart 92 drivers/acpi/spcr.c char *uart; uart 135 drivers/acpi/spcr.c uart = "pl011"; uart 139 drivers/acpi/spcr.c uart = "uart"; uart 192 drivers/acpi/spcr.c uart = "qdf2400_e44"; uart 206 drivers/acpi/spcr.c snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype, uart 209 drivers/acpi/spcr.c snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, uart 219 drivers/acpi/spcr.c err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); uart 575 drivers/bus/ti-sysc.c const char *uart; uart 587 drivers/bus/ti-sysc.c uart = of_get_property(np, "stdout-path", NULL); uart 588 drivers/bus/ti-sysc.c if (!uart) uart 591 drivers/bus/ti-sysc.c np = of_find_node_by_path(uart); uart 440 drivers/char/mwave/mwavedd.c struct uart_8250_port uart; uart 472 drivers/char/mwave/mwavedd.c memset(&uart, 0, sizeof(uart)); uart 474 drivers/char/mwave/mwavedd.c uart.port.uartclk = 1843200; uart 475 drivers/char/mwave/mwavedd.c uart.port.iobase = port; uart 476 drivers/char/mwave/mwavedd.c uart.port.irq = irq; uart 477 drivers/char/mwave/mwavedd.c uart.port.iotype = UPIO_PORT; uart 478 drivers/char/mwave/mwavedd.c uart.port.flags = UPF_SHARE_IRQ; uart 479 drivers/char/mwave/mwavedd.c return serial8250_register_8250_port(&uart); uart 64 drivers/clk/meson/g12a-aoclk.c AXG_AO_GATE(uart, AO_CLK_GATE0, 4); uart 94 drivers/clk/mxs/clk-imx23.c cpu, hbus, xbus, emi, uart, uart 144 drivers/clk/mxs/clk-imx23.c clks[uart] = mxs_clk_gate("uart", "ref_xtal", XTAL, 31); uart 149 drivers/clk/mxs/clk-imx28.c cpu, hbus, xbus, emi, uart, uart 212 drivers/clk/mxs/clk-imx28.c clks[uart] = mxs_clk_gate("uart", "ref_xtal", XTAL, 31); uart 20 drivers/firmware/pcdp.c setup_serial_console(struct pcdp_uart *uart) uart 27 drivers/firmware/pcdp.c mmio = (uart->addr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY); uart 29 drivers/firmware/pcdp.c mmio ? "mmio" : "io", uart->addr.address); uart 30 drivers/firmware/pcdp.c if (uart->baud) { uart 31 drivers/firmware/pcdp.c p += sprintf(p, ",%llu", uart->baud); uart 32 drivers/firmware/pcdp.c if (uart->bits) { uart 33 drivers/firmware/pcdp.c switch (uart->parity) { uart 38 drivers/firmware/pcdp.c p += sprintf(p, "%c%d", parity, uart->bits); uart 87 drivers/firmware/pcdp.c struct pcdp_uart *uart; uart 109 drivers/firmware/pcdp.c for (i = 0, uart = pcdp->uart; i < pcdp->num_uarts; i++, uart++) { uart 110 drivers/firmware/pcdp.c if (uart->flags & PCDP_UART_PRIMARY_CONSOLE || serial) { uart 111 drivers/firmware/pcdp.c if (uart->type == PCDP_CONSOLE_UART) { uart 112 drivers/firmware/pcdp.c rc = setup_serial_console(uart); uart 119 drivers/firmware/pcdp.c for (dev = (struct pcdp_device *) (pcdp->uart + pcdp->num_uarts); uart 106 drivers/firmware/pcdp.h struct pcdp_uart uart[0]; /* actual size is num_uarts */ uart 22 drivers/misc/ibmasm/uart.c struct uart_8250_port uart; uart 36 drivers/misc/ibmasm/uart.c memset(&uart, 0, sizeof(uart)); uart 37 drivers/misc/ibmasm/uart.c uart.port.irq = sp->irq; uart 38 drivers/misc/ibmasm/uart.c uart.port.uartclk = 3686400; uart 39 drivers/misc/ibmasm/uart.c uart.port.flags = UPF_SHARE_IRQ; uart 40 drivers/misc/ibmasm/uart.c uart.port.iotype = UPIO_MEM; uart 41 drivers/misc/ibmasm/uart.c uart.port.membase = iomem_base; uart 43 drivers/misc/ibmasm/uart.c sp->serial_line = serial8250_register_8250_port(&uart); uart 1572 drivers/net/ethernet/sfc/mcdi.c int efx_mcdi_log_ctrl(struct efx_nic *efx, bool evq, bool uart, u32 dest_evq) uart 1578 drivers/net/ethernet/sfc/mcdi.c if (uart) uart 332 drivers/net/ethernet/sfc/mcdi.h int efx_mcdi_log_ctrl(struct efx_nic *efx, bool evq, bool uart, u32 dest_evq); uart 1081 drivers/net/ethernet/sgi/ioc3-eth.c static void ioc3_8250_register(struct ioc3_uartregs __iomem *uart) uart 1093 drivers/net/ethernet/sgi/ioc3-eth.c .membase = (unsigned char __iomem *)uart, uart 1094 drivers/net/ethernet/sgi/ioc3-eth.c .mapbase = (unsigned long)uart, uart 1099 drivers/net/ethernet/sgi/ioc3-eth.c lcr = readb(&uart->iu_lcr); uart 1100 drivers/net/ethernet/sgi/ioc3-eth.c writeb(lcr | UART_LCR_DLAB, &uart->iu_lcr); uart 1101 drivers/net/ethernet/sgi/ioc3-eth.c writeb(COSMISC_CONSTANT, &uart->iu_scr); uart 1102 drivers/net/ethernet/sgi/ioc3-eth.c writeb(lcr, &uart->iu_lcr); uart 1103 drivers/net/ethernet/sgi/ioc3-eth.c readb(&uart->iu_lcr); uart 341 drivers/net/hamradio/baycom_ser_fdx.c static enum uart ser12_check_uart(unsigned int iobase) uart 344 drivers/net/hamradio/baycom_ser_fdx.c enum uart u; uart 345 drivers/net/hamradio/baycom_ser_fdx.c enum uart uart_tab[] = uart 377 drivers/net/hamradio/baycom_ser_fdx.c enum uart u; uart 423 drivers/net/hamradio/baycom_ser_hdx.c static enum uart ser12_check_uart(unsigned int iobase) uart 426 drivers/net/hamradio/baycom_ser_hdx.c enum uart u; uart 427 drivers/net/hamradio/baycom_ser_hdx.c enum uart uart_tab[] = uart 459 drivers/net/hamradio/baycom_ser_hdx.c enum uart u; uart 494 drivers/net/hamradio/yam.c static enum uart yam_check_uart(unsigned int iobase) uart 497 drivers/net/hamradio/yam.c enum uart u; uart 498 drivers/net/hamradio/yam.c enum uart uart_tab[] = uart 837 drivers/net/hamradio/yam.c enum uart u; uart 204 drivers/nfc/nfcmrvl/fw_dnld.c &priv->fw_dnld.binary_config->uart.baudrate, uart 207 drivers/nfc/nfcmrvl/fw_dnld.c priv->fw_dnld.binary_config->uart.flow_control; uart 55 drivers/nfc/nfcmrvl/fw_dnld.h struct nfcmrvl_fw_uart_config uart; uart 791 drivers/pinctrl/tegra/pinctrl-tegra-xusb.c TEGRA124_FUNCTION(uart), uart 1253 drivers/pinctrl/tegra/pinctrl-tegra210.c FUNCTION(uart), uart 1018 drivers/scsi/megaraid/megaraid_sas.h u32 uart:1; uart 16 drivers/staging/speakup/serialio.h unsigned int uart; /* unused */ uart 54 drivers/tty/serial/8250/8250.h unsigned int uart; uart 260 drivers/tty/serial/8250/8250.h int fintek_8250_probe(struct uart_8250_port *uart); uart 262 drivers/tty/serial/8250/8250.h static inline int fintek_8250_probe(struct uart_8250_port *uart) { return 0; } uart 43 drivers/tty/serial/8250/8250_acorn.c struct uart_8250_port uart; uart 62 drivers/tty/serial/8250/8250_acorn.c memset(&uart, 0, sizeof(struct uart_8250_port)); uart 63 drivers/tty/serial/8250/8250_acorn.c uart.port.irq = ec->irq; uart 64 drivers/tty/serial/8250/8250_acorn.c uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; uart 65 drivers/tty/serial/8250/8250_acorn.c uart.port.uartclk = type->uartclk; uart 66 drivers/tty/serial/8250/8250_acorn.c uart.port.iotype = UPIO_MEM; uart 67 drivers/tty/serial/8250/8250_acorn.c uart.port.regshift = 2; uart 68 drivers/tty/serial/8250/8250_acorn.c uart.port.dev = &ec->dev; uart 71 drivers/tty/serial/8250/8250_acorn.c uart.port.membase = info->vaddr + type->offset[i]; uart 72 drivers/tty/serial/8250/8250_acorn.c uart.port.mapbase = bus_addr + type->offset[i]; uart 74 drivers/tty/serial/8250/8250_acorn.c info->ports[i] = serial8250_register_8250_port(&uart); uart 20 drivers/tty/serial/8250/8250_bcm2835aux.c struct uart_8250_port uart; uart 37 drivers/tty/serial/8250/8250_bcm2835aux.c spin_lock_init(&data->uart.port.lock); uart 38 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.capabilities = UART_CAP_FIFO | UART_CAP_MINI; uart 39 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.dev = &pdev->dev; uart 40 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.regshift = 2; uart 41 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.type = PORT_16550; uart 42 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.iotype = UPIO_MEM; uart 43 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.fifosize = 8; uart 44 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.flags = UPF_SHARE_IRQ | uart 61 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.irq = ret; uart 69 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.membase = devm_ioremap_resource(&pdev->dev, res); uart 70 drivers/tty/serial/8250/8250_bcm2835aux.c ret = PTR_ERR_OR_ZERO(data->uart.port.membase); uart 77 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.line = ret; uart 92 drivers/tty/serial/8250/8250_bcm2835aux.c data->uart.port.uartclk = clk_get_rate(data->clk) * 2; uart 95 drivers/tty/serial/8250/8250_bcm2835aux.c ret = serial8250_register_8250_port(&data->uart); uart 799 drivers/tty/serial/8250/8250_core.c struct uart_8250_port uart; uart 802 drivers/tty/serial/8250/8250_core.c memset(&uart, 0, sizeof(uart)); uart 808 drivers/tty/serial/8250/8250_core.c uart.port.iobase = p->iobase; uart 809 drivers/tty/serial/8250/8250_core.c uart.port.membase = p->membase; uart 810 drivers/tty/serial/8250/8250_core.c uart.port.irq = p->irq; uart 811 drivers/tty/serial/8250/8250_core.c uart.port.irqflags = p->irqflags; uart 812 drivers/tty/serial/8250/8250_core.c uart.port.uartclk = p->uartclk; uart 813 drivers/tty/serial/8250/8250_core.c uart.port.regshift = p->regshift; uart 814 drivers/tty/serial/8250/8250_core.c uart.port.iotype = p->iotype; uart 815 drivers/tty/serial/8250/8250_core.c uart.port.flags = p->flags; uart 816 drivers/tty/serial/8250/8250_core.c uart.port.mapbase = p->mapbase; uart 817 drivers/tty/serial/8250/8250_core.c uart.port.hub6 = p->hub6; uart 818 drivers/tty/serial/8250/8250_core.c uart.port.private_data = p->private_data; uart 819 drivers/tty/serial/8250/8250_core.c uart.port.type = p->type; uart 820 drivers/tty/serial/8250/8250_core.c uart.port.serial_in = p->serial_in; uart 821 drivers/tty/serial/8250/8250_core.c uart.port.serial_out = p->serial_out; uart 822 drivers/tty/serial/8250/8250_core.c uart.port.handle_irq = p->handle_irq; uart 823 drivers/tty/serial/8250/8250_core.c uart.port.handle_break = p->handle_break; uart 824 drivers/tty/serial/8250/8250_core.c uart.port.set_termios = p->set_termios; uart 825 drivers/tty/serial/8250/8250_core.c uart.port.set_ldisc = p->set_ldisc; uart 826 drivers/tty/serial/8250/8250_core.c uart.port.get_mctrl = p->get_mctrl; uart 827 drivers/tty/serial/8250/8250_core.c uart.port.pm = p->pm; uart 828 drivers/tty/serial/8250/8250_core.c uart.port.dev = &dev->dev; uart 829 drivers/tty/serial/8250/8250_core.c uart.port.irqflags |= irqflag; uart 830 drivers/tty/serial/8250/8250_core.c ret = serial8250_register_8250_port(&uart); uart 975 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *uart; uart 983 drivers/tty/serial/8250/8250_core.c uart = serial8250_find_match_or_unused(&up->port); uart 984 drivers/tty/serial/8250/8250_core.c if (uart && uart->port.type != PORT_8250_CIR) { uart 987 drivers/tty/serial/8250/8250_core.c if (uart->port.dev) uart 988 drivers/tty/serial/8250/8250_core.c uart_remove_one_port(&serial8250_reg, &uart->port); uart 990 drivers/tty/serial/8250/8250_core.c uart->port.iobase = up->port.iobase; uart 991 drivers/tty/serial/8250/8250_core.c uart->port.membase = up->port.membase; uart 992 drivers/tty/serial/8250/8250_core.c uart->port.irq = up->port.irq; uart 993 drivers/tty/serial/8250/8250_core.c uart->port.irqflags = up->port.irqflags; uart 994 drivers/tty/serial/8250/8250_core.c uart->port.uartclk = up->port.uartclk; uart 995 drivers/tty/serial/8250/8250_core.c uart->port.fifosize = up->port.fifosize; uart 996 drivers/tty/serial/8250/8250_core.c uart->port.regshift = up->port.regshift; uart 997 drivers/tty/serial/8250/8250_core.c uart->port.iotype = up->port.iotype; uart 998 drivers/tty/serial/8250/8250_core.c uart->port.flags = up->port.flags | UPF_BOOT_AUTOCONF; uart 999 drivers/tty/serial/8250/8250_core.c uart->bugs = up->bugs; uart 1000 drivers/tty/serial/8250/8250_core.c uart->port.mapbase = up->port.mapbase; uart 1001 drivers/tty/serial/8250/8250_core.c uart->port.mapsize = up->port.mapsize; uart 1002 drivers/tty/serial/8250/8250_core.c uart->port.private_data = up->port.private_data; uart 1003 drivers/tty/serial/8250/8250_core.c uart->tx_loadsz = up->tx_loadsz; uart 1004 drivers/tty/serial/8250/8250_core.c uart->capabilities = up->capabilities; uart 1005 drivers/tty/serial/8250/8250_core.c uart->port.throttle = up->port.throttle; uart 1006 drivers/tty/serial/8250/8250_core.c uart->port.unthrottle = up->port.unthrottle; uart 1007 drivers/tty/serial/8250/8250_core.c uart->port.rs485_config = up->port.rs485_config; uart 1008 drivers/tty/serial/8250/8250_core.c uart->port.rs485 = up->port.rs485; uart 1009 drivers/tty/serial/8250/8250_core.c uart->dma = up->dma; uart 1012 drivers/tty/serial/8250/8250_core.c if (uart->port.fifosize && !uart->tx_loadsz) uart 1013 drivers/tty/serial/8250/8250_core.c uart->tx_loadsz = uart->port.fifosize; uart 1016 drivers/tty/serial/8250/8250_core.c uart->port.dev = up->port.dev; uart 1019 drivers/tty/serial/8250/8250_core.c uart->port.type = up->port.type; uart 1025 drivers/tty/serial/8250/8250_core.c if (!has_acpi_companion(uart->port.dev)) { uart 1026 drivers/tty/serial/8250/8250_core.c gpios = mctrl_gpio_init(&uart->port, 0); uart 1031 drivers/tty/serial/8250/8250_core.c uart->gpios = gpios; uart 1035 drivers/tty/serial/8250/8250_core.c serial8250_set_defaults(uart); uart 1039 drivers/tty/serial/8250/8250_core.c uart->port.serial_in = up->port.serial_in; uart 1041 drivers/tty/serial/8250/8250_core.c uart->port.serial_out = up->port.serial_out; uart 1043 drivers/tty/serial/8250/8250_core.c uart->port.handle_irq = up->port.handle_irq; uart 1046 drivers/tty/serial/8250/8250_core.c uart->port.set_termios = up->port.set_termios; uart 1048 drivers/tty/serial/8250/8250_core.c uart->port.set_ldisc = up->port.set_ldisc; uart 1050 drivers/tty/serial/8250/8250_core.c uart->port.get_mctrl = up->port.get_mctrl; uart 1052 drivers/tty/serial/8250/8250_core.c uart->port.set_mctrl = up->port.set_mctrl; uart 1054 drivers/tty/serial/8250/8250_core.c uart->port.get_divisor = up->port.get_divisor; uart 1056 drivers/tty/serial/8250/8250_core.c uart->port.set_divisor = up->port.set_divisor; uart 1058 drivers/tty/serial/8250/8250_core.c uart->port.startup = up->port.startup; uart 1060 drivers/tty/serial/8250/8250_core.c uart->port.shutdown = up->port.shutdown; uart 1062 drivers/tty/serial/8250/8250_core.c uart->port.pm = up->port.pm; uart 1064 drivers/tty/serial/8250/8250_core.c uart->port.handle_break = up->port.handle_break; uart 1066 drivers/tty/serial/8250/8250_core.c uart->dl_read = up->dl_read; uart 1068 drivers/tty/serial/8250/8250_core.c uart->dl_write = up->dl_write; uart 1070 drivers/tty/serial/8250/8250_core.c if (uart->port.type != PORT_8250_CIR) { uart 1072 drivers/tty/serial/8250/8250_core.c serial8250_isa_config(0, &uart->port, uart 1073 drivers/tty/serial/8250/8250_core.c &uart->capabilities); uart 1075 drivers/tty/serial/8250/8250_core.c serial8250_apply_quirks(uart); uart 1077 drivers/tty/serial/8250/8250_core.c &uart->port); uart 1079 drivers/tty/serial/8250/8250_core.c ret = uart->port.line; uart 1081 drivers/tty/serial/8250/8250_core.c dev_info(uart->port.dev, uart 1083 drivers/tty/serial/8250/8250_core.c uart->port.iobase, uart 1084 drivers/tty/serial/8250/8250_core.c (unsigned long long)uart->port.mapbase, uart 1085 drivers/tty/serial/8250/8250_core.c uart->port.irq); uart 1092 drivers/tty/serial/8250/8250_core.c uart->overrun_backoff_time_ms = uart 1094 drivers/tty/serial/8250/8250_core.c INIT_DELAYED_WORK(&uart->overrun_backoff, uart 1097 drivers/tty/serial/8250/8250_core.c uart->overrun_backoff_time_ms = 0; uart 1117 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *uart = &serial8250_ports[line]; uart 1121 drivers/tty/serial/8250/8250_core.c if (uart->em485) { uart 1124 drivers/tty/serial/8250/8250_core.c spin_lock_irqsave(&uart->port.lock, flags); uart 1125 drivers/tty/serial/8250/8250_core.c serial8250_em485_destroy(uart); uart 1126 drivers/tty/serial/8250/8250_core.c spin_unlock_irqrestore(&uart->port.lock, flags); uart 1129 drivers/tty/serial/8250/8250_core.c uart_remove_one_port(&serial8250_reg, &uart->port); uart 1131 drivers/tty/serial/8250/8250_core.c uart->port.flags &= ~UPF_BOOT_AUTOCONF; uart 1132 drivers/tty/serial/8250/8250_core.c uart->port.type = PORT_UNKNOWN; uart 1133 drivers/tty/serial/8250/8250_core.c uart->port.dev = &serial8250_isa_devs->dev; uart 1134 drivers/tty/serial/8250/8250_core.c uart->capabilities = 0; uart 1135 drivers/tty/serial/8250/8250_core.c serial8250_apply_quirks(uart); uart 1136 drivers/tty/serial/8250/8250_core.c uart_add_one_port(&serial8250_reg, &uart->port); uart 1138 drivers/tty/serial/8250/8250_core.c uart->port.dev = NULL; uart 387 drivers/tty/serial/8250/8250_dw.c struct uart_8250_port uart = {}, *up = &uart; uart 155 drivers/tty/serial/8250/8250_early.c EARLYCON_DECLARE(uart, early_serial8250_setup); uart 158 drivers/tty/serial/8250/8250_early.c OF_EARLYCON_DECLARE(uart, "nvidia,tegra20-uart", early_serial8250_setup); uart 159 drivers/tty/serial/8250/8250_early.c OF_EARLYCON_DECLARE(uart, "snps,dw-apb-uart", early_serial8250_setup); uart 556 drivers/tty/serial/8250/8250_exar.c struct uart_8250_port uart; uart 587 drivers/tty/serial/8250/8250_exar.c memset(&uart, 0, sizeof(uart)); uart 588 drivers/tty/serial/8250/8250_exar.c uart.port.flags = UPF_SHARE_IRQ | UPF_EXAR_EFR | UPF_FIXED_TYPE | UPF_FIXED_PORT; uart 589 drivers/tty/serial/8250/8250_exar.c uart.port.irq = pci_irq_vector(pcidev, 0); uart 590 drivers/tty/serial/8250/8250_exar.c uart.port.dev = &pcidev->dev; uart 592 drivers/tty/serial/8250/8250_exar.c rc = devm_request_irq(&pcidev->dev, uart.port.irq, exar_misc_handler, uart 601 drivers/tty/serial/8250/8250_exar.c rc = board->setup(priv, pcidev, &uart, i); uart 608 drivers/tty/serial/8250/8250_exar.c uart.port.iobase, uart.port.irq, uart.port.iotype); uart 610 drivers/tty/serial/8250/8250_exar.c priv->line[i] = serial8250_register_8250_port(&uart); uart 614 drivers/tty/serial/8250/8250_exar.c uart.port.iobase, uart.port.irq, uart 615 drivers/tty/serial/8250/8250_exar.c uart.port.iotype, priv->line[i]); uart 288 drivers/tty/serial/8250/8250_fintek.c static void fintek_8250_goto_highspeed(struct uart_8250_port *uart, uart 299 drivers/tty/serial/8250/8250_fintek.c uart->port.uartclk = 921600 * 16; uart 370 drivers/tty/serial/8250/8250_fintek.c static void fintek_8250_set_termios_handler(struct uart_8250_port *uart) uart 372 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = uart->port.private_data; uart 377 drivers/tty/serial/8250/8250_fintek.c uart->port.set_termios = fintek_8250_set_termios; uart 386 drivers/tty/serial/8250/8250_fintek.c struct uart_8250_port *uart) uart 413 drivers/tty/serial/8250/8250_fintek.c if (aux != uart->port.iobase) uart 418 drivers/tty/serial/8250/8250_fintek.c irq_data = irq_get_irq_data(uart->port.irq); uart 425 drivers/tty/serial/8250/8250_fintek.c fintek_8250_goto_highspeed(uart, pdata); uart 439 drivers/tty/serial/8250/8250_fintek.c static void fintek_8250_set_rs485_handler(struct uart_8250_port *uart) uart 441 drivers/tty/serial/8250/8250_fintek.c struct fintek_8250 *pdata = uart->port.private_data; uart 448 drivers/tty/serial/8250/8250_fintek.c uart->port.rs485_config = fintek_8250_rs485_config; uart 456 drivers/tty/serial/8250/8250_fintek.c int fintek_8250_probe(struct uart_8250_port *uart) uart 461 drivers/tty/serial/8250/8250_fintek.c if (probe_setup_port(&probe_data, uart)) uart 464 drivers/tty/serial/8250/8250_fintek.c pdata = devm_kzalloc(uart->port.dev, sizeof(*pdata), GFP_KERNEL); uart 469 drivers/tty/serial/8250/8250_fintek.c uart->port.private_data = pdata; uart 470 drivers/tty/serial/8250/8250_fintek.c fintek_8250_set_rs485_handler(uart); uart 471 drivers/tty/serial/8250/8250_fintek.c fintek_8250_set_termios_handler(uart); uart 25 drivers/tty/serial/8250/8250_gsc.c struct uart_8250_port uart; uart 52 drivers/tty/serial/8250/8250_gsc.c memset(&uart, 0, sizeof(uart)); uart 53 drivers/tty/serial/8250/8250_gsc.c uart.port.iotype = UPIO_MEM; uart 55 drivers/tty/serial/8250/8250_gsc.c uart.port.uartclk = (dev->id.sversion != 0xad) ? uart 57 drivers/tty/serial/8250/8250_gsc.c uart.port.mapbase = address; uart 58 drivers/tty/serial/8250/8250_gsc.c uart.port.membase = ioremap_nocache(address, 16); uart 59 drivers/tty/serial/8250/8250_gsc.c if (!uart.port.membase) { uart 63 drivers/tty/serial/8250/8250_gsc.c uart.port.irq = dev->irq; uart 64 drivers/tty/serial/8250/8250_gsc.c uart.port.flags = UPF_BOOT_AUTOCONF; uart 65 drivers/tty/serial/8250/8250_gsc.c uart.port.dev = &dev->dev; uart 67 drivers/tty/serial/8250/8250_gsc.c err = serial8250_register_8250_port(&uart); uart 72 drivers/tty/serial/8250/8250_gsc.c iounmap(uart.port.membase); uart 160 drivers/tty/serial/8250/8250_hp300.c struct uart_8250_port uart; uart 169 drivers/tty/serial/8250/8250_hp300.c memset(&uart, 0, sizeof(uart)); uart 172 drivers/tty/serial/8250/8250_hp300.c uart.port.iotype = UPIO_MEM; uart 173 drivers/tty/serial/8250/8250_hp300.c uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF; uart 174 drivers/tty/serial/8250/8250_hp300.c uart.port.irq = d->ipl; uart 175 drivers/tty/serial/8250/8250_hp300.c uart.port.uartclk = HPDCA_BAUD_BASE * 16; uart 176 drivers/tty/serial/8250/8250_hp300.c uart.port.mapbase = (d->resource.start + UART_OFFSET); uart 177 drivers/tty/serial/8250/8250_hp300.c uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); uart 178 drivers/tty/serial/8250/8250_hp300.c uart.port.regshift = 1; uart 179 drivers/tty/serial/8250/8250_hp300.c uart.port.dev = &d->dev; uart 180 drivers/tty/serial/8250/8250_hp300.c line = serial8250_register_8250_port(&uart); uart 185 drivers/tty/serial/8250/8250_hp300.c d->scode, uart.port.irq); uart 209 drivers/tty/serial/8250/8250_hp300.c struct uart_8250_port uart; uart 247 drivers/tty/serial/8250/8250_hp300.c memset(&uart, 0, sizeof(uart)); uart 252 drivers/tty/serial/8250/8250_hp300.c uart.port.iotype = UPIO_MEM; uart 253 drivers/tty/serial/8250/8250_hp300.c uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ uart 256 drivers/tty/serial/8250/8250_hp300.c uart.port.irq = 0; uart 257 drivers/tty/serial/8250/8250_hp300.c uart.port.uartclk = HPAPCI_BAUD_BASE * 16; uart 258 drivers/tty/serial/8250/8250_hp300.c uart.port.mapbase = base; uart 259 drivers/tty/serial/8250/8250_hp300.c uart.port.membase = (char *)(base + DIO_VIRADDRBASE); uart 260 drivers/tty/serial/8250/8250_hp300.c uart.port.regshift = 2; uart 262 drivers/tty/serial/8250/8250_hp300.c line = serial8250_register_8250_port(&uart); uart 265 drivers/tty/serial/8250/8250_hp300.c dev_notice(uart.port.dev, uart 267 drivers/tty/serial/8250/8250_hp300.c i, uart.port.irq); uart 209 drivers/tty/serial/8250/8250_ingenic.c struct uart_8250_port uart = {}; uart 233 drivers/tty/serial/8250/8250_ingenic.c spin_lock_init(&uart.port.lock); uart 234 drivers/tty/serial/8250/8250_ingenic.c uart.port.type = PORT_16550A; uart 235 drivers/tty/serial/8250/8250_ingenic.c uart.port.flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE; uart 236 drivers/tty/serial/8250/8250_ingenic.c uart.port.iotype = UPIO_MEM; uart 237 drivers/tty/serial/8250/8250_ingenic.c uart.port.mapbase = regs->start; uart 238 drivers/tty/serial/8250/8250_ingenic.c uart.port.regshift = 2; uart 239 drivers/tty/serial/8250/8250_ingenic.c uart.port.serial_out = ingenic_uart_serial_out; uart 240 drivers/tty/serial/8250/8250_ingenic.c uart.port.serial_in = ingenic_uart_serial_in; uart 241 drivers/tty/serial/8250/8250_ingenic.c uart.port.irq = irq->start; uart 242 drivers/tty/serial/8250/8250_ingenic.c uart.port.dev = &pdev->dev; uart 243 drivers/tty/serial/8250/8250_ingenic.c uart.port.fifosize = cdata->fifosize; uart 244 drivers/tty/serial/8250/8250_ingenic.c uart.tx_loadsz = cdata->tx_loadsz; uart 245 drivers/tty/serial/8250/8250_ingenic.c uart.capabilities = UART_CAP_FIFO | UART_CAP_RTOIE; uart 250 drivers/tty/serial/8250/8250_ingenic.c uart.port.line = line; uart 252 drivers/tty/serial/8250/8250_ingenic.c uart.port.membase = devm_ioremap(&pdev->dev, regs->start, uart 254 drivers/tty/serial/8250/8250_ingenic.c if (!uart.port.membase) uart 286 drivers/tty/serial/8250/8250_ingenic.c uart.port.uartclk = clk_get_rate(data->clk_baud); uart 288 drivers/tty/serial/8250/8250_ingenic.c data->line = serial8250_register_8250_port(&uart); uart 104 drivers/tty/serial/8250/8250_lpc18xx.c struct uart_8250_port uart; uart 118 drivers/tty/serial/8250/8250_lpc18xx.c memset(&uart, 0, sizeof(uart)); uart 120 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.membase = devm_ioremap(&pdev->dev, res->start, uart 122 drivers/tty/serial/8250/8250_lpc18xx.c if (!uart.port.membase) uart 155 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.line = ret; uart 160 drivers/tty/serial/8250/8250_lpc18xx.c spin_lock_init(&uart.port.lock); uart 161 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.dev = &pdev->dev; uart 162 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.irq = irq; uart 163 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.iotype = UPIO_MEM32; uart 164 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.mapbase = res->start; uart 165 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.regshift = 2; uart 166 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.type = PORT_16550A; uart 167 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST; uart 168 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.uartclk = clk_get_rate(data->clk_uart); uart 169 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.private_data = data; uart 170 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.rs485_config = lpc18xx_rs485_config; uart 171 drivers/tty/serial/8250/8250_lpc18xx.c uart.port.serial_out = lpc18xx_uart_serial_out; uart 173 drivers/tty/serial/8250/8250_lpc18xx.c uart.dma = &data->dma; uart 174 drivers/tty/serial/8250/8250_lpc18xx.c uart.dma->rxconf.src_maxburst = 1; uart 175 drivers/tty/serial/8250/8250_lpc18xx.c uart.dma->txconf.dst_maxburst = 1; uart 177 drivers/tty/serial/8250/8250_lpc18xx.c ret = serial8250_register_8250_port(&uart); uart 288 drivers/tty/serial/8250/8250_lpss.c struct uart_8250_port uart; uart 302 drivers/tty/serial/8250/8250_lpss.c memset(&uart, 0, sizeof(struct uart_8250_port)); uart 304 drivers/tty/serial/8250/8250_lpss.c uart.port.dev = &pdev->dev; uart 305 drivers/tty/serial/8250/8250_lpss.c uart.port.irq = pdev->irq; uart 306 drivers/tty/serial/8250/8250_lpss.c uart.port.private_data = &lpss->data; uart 307 drivers/tty/serial/8250/8250_lpss.c uart.port.type = PORT_16550A; uart 308 drivers/tty/serial/8250/8250_lpss.c uart.port.iotype = UPIO_MEM; uart 309 drivers/tty/serial/8250/8250_lpss.c uart.port.regshift = 2; uart 310 drivers/tty/serial/8250/8250_lpss.c uart.port.uartclk = lpss->board->base_baud * 16; uart 311 drivers/tty/serial/8250/8250_lpss.c uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; uart 312 drivers/tty/serial/8250/8250_lpss.c uart.capabilities = UART_CAP_FIFO | UART_CAP_AFE; uart 313 drivers/tty/serial/8250/8250_lpss.c uart.port.mapbase = pci_resource_start(pdev, 0); uart 314 drivers/tty/serial/8250/8250_lpss.c uart.port.membase = pcim_iomap(pdev, 0, 0); uart 315 drivers/tty/serial/8250/8250_lpss.c if (!uart.port.membase) uart 318 drivers/tty/serial/8250/8250_lpss.c ret = lpss->board->setup(lpss, &uart.port); uart 322 drivers/tty/serial/8250/8250_lpss.c dw8250_setup_port(&uart.port); uart 324 drivers/tty/serial/8250/8250_lpss.c ret = lpss8250_dma_setup(lpss, &uart); uart 328 drivers/tty/serial/8250/8250_lpss.c ret = serial8250_register_8250_port(&uart); uart 19 drivers/tty/serial/8250/8250_men_mcb.c struct uart_8250_port uart; uart 106 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.dev = mdev->dma_dev; uart 107 drivers/tty/serial/8250/8250_men_mcb.c spin_lock_init(&data[i].uart.port.lock); uart 109 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.type = PORT_16550; uart 110 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ uart 112 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.iotype = UPIO_MEM; uart 113 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.uartclk = men_lookup_uartclk(mdev); uart 114 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.regshift = 0; uart 115 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.irq = mcb_get_irq(mdev); uart 116 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.membase = membase; uart 117 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.fifosize = 60; uart 118 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.mapbase = (unsigned long) mem->start uart 120 drivers/tty/serial/8250/8250_men_mcb.c data[i].uart.port.iobase = data[i].uart.port.mapbase; uart 123 drivers/tty/serial/8250/8250_men_mcb.c data[i].line = serial8250_register_8250_port(&data[i].uart); uart 142 drivers/tty/serial/8250/8250_men_mcb.c num_ports = get_num_ports(mdev, data[0].uart.port.membase); uart 283 drivers/tty/serial/8250/8250_mid.c struct uart_8250_port uart; uart 299 drivers/tty/serial/8250/8250_mid.c memset(&uart, 0, sizeof(struct uart_8250_port)); uart 301 drivers/tty/serial/8250/8250_mid.c uart.port.dev = &pdev->dev; uart 302 drivers/tty/serial/8250/8250_mid.c uart.port.irq = pdev->irq; uart 303 drivers/tty/serial/8250/8250_mid.c uart.port.private_data = mid; uart 304 drivers/tty/serial/8250/8250_mid.c uart.port.type = PORT_16750; uart 305 drivers/tty/serial/8250/8250_mid.c uart.port.iotype = UPIO_MEM; uart 306 drivers/tty/serial/8250/8250_mid.c uart.port.uartclk = mid->board->base_baud * 16; uart 307 drivers/tty/serial/8250/8250_mid.c uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; uart 308 drivers/tty/serial/8250/8250_mid.c uart.port.set_termios = mid8250_set_termios; uart 310 drivers/tty/serial/8250/8250_mid.c uart.port.mapbase = pci_resource_start(pdev, bar); uart 311 drivers/tty/serial/8250/8250_mid.c uart.port.membase = pcim_iomap(pdev, bar, 0); uart 312 drivers/tty/serial/8250/8250_mid.c if (!uart.port.membase) uart 316 drivers/tty/serial/8250/8250_mid.c ret = mid->board->setup(mid, &uart.port); uart 321 drivers/tty/serial/8250/8250_mid.c ret = mid8250_dma_setup(mid, &uart); uart 325 drivers/tty/serial/8250/8250_mid.c ret = serial8250_register_8250_port(&uart); uart 484 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_port uart = {}; uart 495 drivers/tty/serial/8250/8250_mtk.c uart.port.membase = devm_ioremap(&pdev->dev, regs->start, uart 497 drivers/tty/serial/8250/8250_mtk.c if (!uart.port.membase) uart 505 drivers/tty/serial/8250/8250_mtk.c err = mtk8250_probe_of(pdev, &uart.port, data); uart 511 drivers/tty/serial/8250/8250_mtk.c spin_lock_init(&uart.port.lock); uart 512 drivers/tty/serial/8250/8250_mtk.c uart.port.mapbase = regs->start; uart 513 drivers/tty/serial/8250/8250_mtk.c uart.port.irq = irq->start; uart 514 drivers/tty/serial/8250/8250_mtk.c uart.port.pm = mtk8250_do_pm; uart 515 drivers/tty/serial/8250/8250_mtk.c uart.port.type = PORT_16550; uart 516 drivers/tty/serial/8250/8250_mtk.c uart.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; uart 517 drivers/tty/serial/8250/8250_mtk.c uart.port.dev = &pdev->dev; uart 518 drivers/tty/serial/8250/8250_mtk.c uart.port.iotype = UPIO_MEM32; uart 519 drivers/tty/serial/8250/8250_mtk.c uart.port.regshift = 2; uart 520 drivers/tty/serial/8250/8250_mtk.c uart.port.private_data = data; uart 521 drivers/tty/serial/8250/8250_mtk.c uart.port.shutdown = mtk8250_shutdown; uart 522 drivers/tty/serial/8250/8250_mtk.c uart.port.startup = mtk8250_startup; uart 523 drivers/tty/serial/8250/8250_mtk.c uart.port.set_termios = mtk8250_set_termios; uart 524 drivers/tty/serial/8250/8250_mtk.c uart.port.uartclk = clk_get_rate(data->uart_clk); uart 527 drivers/tty/serial/8250/8250_mtk.c uart.dma = data->dma; uart 531 drivers/tty/serial/8250/8250_mtk.c writel(0x0, uart.port.membase + uart 532 drivers/tty/serial/8250/8250_mtk.c (MTK_UART_RATE_FIX << uart.port.regshift)); uart 540 drivers/tty/serial/8250/8250_mtk.c data->line = serial8250_register_8250_port(&uart); uart 3868 drivers/tty/serial/8250/8250_pci.c struct uart_8250_port uart; uart 3908 drivers/tty/serial/8250/8250_pci.c memset(&uart, 0, sizeof(uart)); uart 3909 drivers/tty/serial/8250/8250_pci.c uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; uart 3910 drivers/tty/serial/8250/8250_pci.c uart.port.uartclk = board->base_baud * 16; uart 3926 drivers/tty/serial/8250/8250_pci.c uart.port.irq = pci_irq_vector(dev, 0); uart 3927 drivers/tty/serial/8250/8250_pci.c uart.port.dev = &dev->dev; uart 3930 drivers/tty/serial/8250/8250_pci.c if (quirk->setup(priv, board, &uart, i)) uart 3934 drivers/tty/serial/8250/8250_pci.c uart.port.iobase, uart.port.irq, uart.port.iotype); uart 3936 drivers/tty/serial/8250/8250_pci.c priv->line[i] = serial8250_register_8250_port(&uart); uart 3940 drivers/tty/serial/8250/8250_pci.c uart.port.iobase, uart.port.irq, uart 3941 drivers/tty/serial/8250/8250_pci.c uart.port.iotype, priv->line[i]); uart 439 drivers/tty/serial/8250/8250_pnp.c struct uart_8250_port uart, *port; uart 448 drivers/tty/serial/8250/8250_pnp.c memset(&uart, 0, sizeof(uart)); uart 450 drivers/tty/serial/8250/8250_pnp.c uart.port.irq = pnp_irq(dev, 0); uart 452 drivers/tty/serial/8250/8250_pnp.c uart.port.iobase = pnp_port_start(dev, 2); uart 453 drivers/tty/serial/8250/8250_pnp.c uart.port.iotype = UPIO_PORT; uart 455 drivers/tty/serial/8250/8250_pnp.c uart.port.iobase = pnp_port_start(dev, 0); uart 456 drivers/tty/serial/8250/8250_pnp.c uart.port.iotype = UPIO_PORT; uart 458 drivers/tty/serial/8250/8250_pnp.c uart.port.mapbase = pnp_mem_start(dev, 0); uart 459 drivers/tty/serial/8250/8250_pnp.c uart.port.iotype = UPIO_MEM; uart 460 drivers/tty/serial/8250/8250_pnp.c uart.port.flags = UPF_IOREMAP; uart 466 drivers/tty/serial/8250/8250_pnp.c uart.port.iobase, (unsigned long long)uart.port.mapbase, uart 467 drivers/tty/serial/8250/8250_pnp.c uart.port.irq, uart.port.iotype); uart 470 drivers/tty/serial/8250/8250_pnp.c uart.port.flags |= UPF_FIXED_PORT | UPF_FIXED_TYPE; uart 471 drivers/tty/serial/8250/8250_pnp.c uart.port.type = PORT_8250_CIR; uart 474 drivers/tty/serial/8250/8250_pnp.c uart.port.flags |= UPF_SKIP_TEST | UPF_BOOT_AUTOCONF; uart 476 drivers/tty/serial/8250/8250_pnp.c uart.port.flags |= UPF_SHARE_IRQ; uart 477 drivers/tty/serial/8250/8250_pnp.c uart.port.uartclk = 1843200; uart 478 drivers/tty/serial/8250/8250_pnp.c uart.port.dev = &dev->dev; uart 480 drivers/tty/serial/8250/8250_pnp.c line = serial8250_register_8250_port(&uart); uart 94 drivers/tty/serial/8250/8250_pxa.c struct uart_8250_port uart = {}; uart 118 drivers/tty/serial/8250/8250_pxa.c uart.port.line = ret; uart 120 drivers/tty/serial/8250/8250_pxa.c uart.port.type = PORT_XSCALE; uart 121 drivers/tty/serial/8250/8250_pxa.c uart.port.iotype = UPIO_MEM32; uart 122 drivers/tty/serial/8250/8250_pxa.c uart.port.mapbase = mmres->start; uart 123 drivers/tty/serial/8250/8250_pxa.c uart.port.regshift = 2; uart 124 drivers/tty/serial/8250/8250_pxa.c uart.port.irq = irqres->start; uart 125 drivers/tty/serial/8250/8250_pxa.c uart.port.fifosize = 64; uart 126 drivers/tty/serial/8250/8250_pxa.c uart.port.flags = UPF_IOREMAP | UPF_SKIP_TEST; uart 127 drivers/tty/serial/8250/8250_pxa.c uart.port.dev = &pdev->dev; uart 128 drivers/tty/serial/8250/8250_pxa.c uart.port.uartclk = clk_get_rate(data->clk); uart 129 drivers/tty/serial/8250/8250_pxa.c uart.port.pm = serial_pxa_pm; uart 130 drivers/tty/serial/8250/8250_pxa.c uart.port.private_data = data; uart 131 drivers/tty/serial/8250/8250_pxa.c uart.dl_write = serial_pxa_dl_write; uart 133 drivers/tty/serial/8250/8250_pxa.c ret = serial8250_register_8250_port(&uart); uart 108 drivers/tty/serial/8250/serial_cs.c static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_8250_port *uart) uart 110 drivers/tty/serial/8250/serial_cs.c uart->port.uartclk = 14745600; uart 346 drivers/tty/serial/8250/serial_cs.c struct uart_8250_port uart; uart 349 drivers/tty/serial/8250/serial_cs.c memset(&uart, 0, sizeof(uart)); uart 350 drivers/tty/serial/8250/serial_cs.c uart.port.iobase = iobase; uart 351 drivers/tty/serial/8250/serial_cs.c uart.port.irq = irq; uart 352 drivers/tty/serial/8250/serial_cs.c uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ; uart 353 drivers/tty/serial/8250/serial_cs.c uart.port.uartclk = 1843200; uart 354 drivers/tty/serial/8250/serial_cs.c uart.port.dev = &handle->dev; uart 356 drivers/tty/serial/8250/serial_cs.c uart.port.flags |= UPF_BUGGY_UART; uart 359 drivers/tty/serial/8250/serial_cs.c info->quirk->setup(handle, &uart); uart 361 drivers/tty/serial/8250/serial_cs.c line = serial8250_register_8250_port(&uart); uart 532 drivers/tty/serial/altera_uart.c OF_EARLYCON_DECLARE(uart, "altr,uart-1.0", altera_uart_earlycon_setup); uart 80 drivers/tty/serial/arc_uart.c #define UART_SET_DATA(uart, val) UART_REG_SET(uart, R_DATA, val) uart 81 drivers/tty/serial/arc_uart.c #define UART_GET_DATA(uart) UART_REG_GET(uart, R_DATA) uart 83 drivers/tty/serial/arc_uart.c #define UART_SET_BAUDH(uart, val) UART_REG_SET(uart, R_BAUDH, val) uart 84 drivers/tty/serial/arc_uart.c #define UART_SET_BAUDL(uart, val) UART_REG_SET(uart, R_BAUDL, val) uart 86 drivers/tty/serial/arc_uart.c #define UART_CLR_STATUS(uart, val) UART_REG_CLR(uart, R_STS, val) uart 87 drivers/tty/serial/arc_uart.c #define UART_GET_STATUS(uart) UART_REG_GET(uart, R_STS) uart 89 drivers/tty/serial/arc_uart.c #define UART_ALL_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB|TXIENB) uart 90 drivers/tty/serial/arc_uart.c #define UART_RX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB) uart 91 drivers/tty/serial/arc_uart.c #define UART_TX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, TXIENB) uart 93 drivers/tty/serial/arc_uart.c #define UART_ALL_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB|TXIENB) uart 94 drivers/tty/serial/arc_uart.c #define UART_RX_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB) uart 95 drivers/tty/serial/arc_uart.c #define UART_TX_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, TXIENB) uart 362 drivers/tty/serial/arc_uart.c struct arc_uart_port *uart = to_arc_port(port); uart 375 drivers/tty/serial/arc_uart.c hw_val = port->uartclk / (uart->baud * 4) - 1; uart 583 drivers/tty/serial/arc_uart.c struct arc_uart_port *uart; uart 601 drivers/tty/serial/arc_uart.c uart = &arc_uart_ports[dev_id]; uart 602 drivers/tty/serial/arc_uart.c port = &uart->port; uart 614 drivers/tty/serial/arc_uart.c uart->baud = val; uart 117 drivers/tty/serial/atmel_serial.c struct uart_port uart; /* uart */ uart 211 drivers/tty/serial/atmel_serial.c to_atmel_uart_port(struct uart_port *uart) uart 213 drivers/tty/serial/atmel_serial.c return container_of(uart, struct atmel_uart_port, uart); uart 864 drivers/tty/serial/atmel_serial.c struct uart_port *port = &atmel_port->uart; uart 1280 drivers/tty/serial/atmel_serial.c struct uart_port *port = &atmel_port->uart; uart 2486 drivers/tty/serial/atmel_serial.c struct uart_port *port = &atmel_port->uart; uart 2556 drivers/tty/serial/atmel_serial.c struct uart_port *port = &atmel_ports[co->index].uart; uart 2635 drivers/tty/serial/atmel_serial.c struct uart_port *port = &atmel_ports[co->index].uart; uart 2881 drivers/tty/serial/atmel_serial.c atmel_port->uart.line = ret; uart 2891 drivers/tty/serial/atmel_serial.c atmel_port->gpios = mctrl_gpio_init(&atmel_port->uart, 0); uart 2897 drivers/tty/serial/atmel_serial.c if (!atmel_use_pdc_rx(&atmel_port->uart)) { uart 2907 drivers/tty/serial/atmel_serial.c rs485_enabled = atmel_port->uart.rs485.flags & SER_RS485_ENABLED; uart 2909 drivers/tty/serial/atmel_serial.c ret = uart_add_one_port(&atmel_uart, &atmel_port->uart); uart 2914 drivers/tty/serial/atmel_serial.c if (atmel_is_console_port(&atmel_port->uart) uart 2934 drivers/tty/serial/atmel_serial.c atmel_uart_writel(&atmel_port->uart, ATMEL_US_MR, uart 2936 drivers/tty/serial/atmel_serial.c atmel_uart_writel(&atmel_port->uart, ATMEL_US_CR, uart 2943 drivers/tty/serial/atmel_serial.c atmel_get_ip_name(&atmel_port->uart); uart 2957 drivers/tty/serial/atmel_serial.c if (!atmel_is_console_port(&atmel_port->uart)) { uart 2962 drivers/tty/serial/atmel_serial.c clear_bit(atmel_port->uart.line, atmel_ports_in_use); uart 986 drivers/tty/serial/ip22zilog.c base = (unsigned long) &sgioc->uart; uart 136 drivers/tty/serial/men_z135_uart.c static inline void men_z135_reg_set(struct men_z135_port *uart, uart 139 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 143 drivers/tty/serial/men_z135_uart.c spin_lock_irqsave(&uart->lock, flags); uart 149 drivers/tty/serial/men_z135_uart.c spin_unlock_irqrestore(&uart->lock, flags); uart 158 drivers/tty/serial/men_z135_uart.c static void men_z135_reg_clr(struct men_z135_port *uart, uart 161 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 165 drivers/tty/serial/men_z135_uart.c spin_lock_irqsave(&uart->lock, flags); uart 171 drivers/tty/serial/men_z135_uart.c spin_unlock_irqrestore(&uart->lock, flags); uart 181 drivers/tty/serial/men_z135_uart.c static void men_z135_handle_modem_status(struct men_z135_port *uart) uart 185 drivers/tty/serial/men_z135_uart.c msr = (uart->stat_reg >> 8) & 0xff; uart 188 drivers/tty/serial/men_z135_uart.c uart_handle_dcd_change(&uart->port, uart 191 drivers/tty/serial/men_z135_uart.c uart_handle_cts_change(&uart->port, uart 195 drivers/tty/serial/men_z135_uart.c static void men_z135_handle_lsr(struct men_z135_port *uart) uart 197 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 200 drivers/tty/serial/men_z135_uart.c lsr = (uart->stat_reg >> 16) & 0xff; uart 220 drivers/tty/serial/men_z135_uart.c static u16 get_rx_fifo_content(struct men_z135_port *uart) uart 222 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 243 drivers/tty/serial/men_z135_uart.c static void men_z135_handle_rx(struct men_z135_port *uart) uart 245 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 251 drivers/tty/serial/men_z135_uart.c size = get_rx_fifo_content(uart); uart 264 drivers/tty/serial/men_z135_uart.c dev_warn(&uart->mdev->dev, uart 271 drivers/tty/serial/men_z135_uart.c memcpy_fromio(uart->rxbuf, port->membase + MEN_Z135_RX_RAM, room); uart 276 drivers/tty/serial/men_z135_uart.c copied = tty_insert_flip_string(tport, uart->rxbuf, room); uart 278 drivers/tty/serial/men_z135_uart.c dev_warn(&uart->mdev->dev, uart 293 drivers/tty/serial/men_z135_uart.c static void men_z135_handle_tx(struct men_z135_port *uart) uart 295 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 329 drivers/tty/serial/men_z135_uart.c dev_err(&uart->mdev->dev, uart 366 drivers/tty/serial/men_z135_uart.c men_z135_reg_set(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_TXCIEN); uart 368 drivers/tty/serial/men_z135_uart.c men_z135_reg_clr(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_TXCIEN); uart 387 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = (struct men_z135_port *)data; uart 388 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 392 drivers/tty/serial/men_z135_uart.c uart->stat_reg = ioread32(port->membase + MEN_Z135_STAT_REG); uart 393 drivers/tty/serial/men_z135_uart.c irq_id = IRQ_ID(uart->stat_reg); uart 403 drivers/tty/serial/men_z135_uart.c men_z135_handle_lsr(uart); uart 409 drivers/tty/serial/men_z135_uart.c dev_dbg(&uart->mdev->dev, "Character Timeout Indication\n"); uart 410 drivers/tty/serial/men_z135_uart.c men_z135_handle_rx(uart); uart 415 drivers/tty/serial/men_z135_uart.c men_z135_handle_tx(uart); uart 420 drivers/tty/serial/men_z135_uart.c men_z135_handle_modem_status(uart); uart 436 drivers/tty/serial/men_z135_uart.c static int men_z135_request_irq(struct men_z135_port *uart) uart 438 drivers/tty/serial/men_z135_uart.c struct device *dev = &uart->mdev->dev; uart 439 drivers/tty/serial/men_z135_uart.c struct uart_port *port = &uart->port; uart 443 drivers/tty/serial/men_z135_uart.c "men_z135_intr", uart); uart 549 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 551 drivers/tty/serial/men_z135_uart.c men_z135_reg_clr(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_TXCIEN); uart 562 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 564 drivers/tty/serial/men_z135_uart.c men_z135_reg_clr(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_MSIEN); uart 576 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 578 drivers/tty/serial/men_z135_uart.c if (uart->automode) uart 581 drivers/tty/serial/men_z135_uart.c men_z135_handle_tx(uart); uart 592 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 594 drivers/tty/serial/men_z135_uart.c men_z135_reg_clr(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_RXCIEN); uart 605 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 607 drivers/tty/serial/men_z135_uart.c men_z135_reg_set(uart, MEN_Z135_CONF_REG, MEN_Z135_IER_MSIEN); uart 612 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 616 drivers/tty/serial/men_z135_uart.c err = men_z135_request_irq(uart); uart 638 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 643 drivers/tty/serial/men_z135_uart.c men_z135_reg_clr(uart, MEN_Z135_CONF_REG, conf_reg); uart 645 drivers/tty/serial/men_z135_uart.c free_irq(uart->port.irq, uart); uart 652 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 696 drivers/tty/serial/men_z135_uart.c uart->automode = true; uart 700 drivers/tty/serial/men_z135_uart.c uart->automode = false; uart 732 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 737 drivers/tty/serial/men_z135_uart.c mcb_release_mem(uart->mem); uart 742 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = to_men_z135(port); uart 743 drivers/tty/serial/men_z135_uart.c struct mcb_device *mdev = uart->mdev; uart 746 drivers/tty/serial/men_z135_uart.c mem = mcb_request_mem(uart->mdev, dev_name(&mdev->dev)); uart 751 drivers/tty/serial/men_z135_uart.c uart->mem = mem; uart 812 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart; uart 819 drivers/tty/serial/men_z135_uart.c uart = devm_kzalloc(dev, sizeof(struct men_z135_port), GFP_KERNEL); uart 820 drivers/tty/serial/men_z135_uart.c if (!uart) uart 823 drivers/tty/serial/men_z135_uart.c uart->rxbuf = (unsigned char *)__get_free_page(GFP_KERNEL); uart 824 drivers/tty/serial/men_z135_uart.c if (!uart->rxbuf) uart 829 drivers/tty/serial/men_z135_uart.c mcb_set_drvdata(mdev, uart); uart 831 drivers/tty/serial/men_z135_uart.c uart->port.uartclk = MEN_Z135_BASECLK * 16; uart 832 drivers/tty/serial/men_z135_uart.c uart->port.fifosize = MEN_Z135_FIFO_SIZE; uart 833 drivers/tty/serial/men_z135_uart.c uart->port.iotype = UPIO_MEM; uart 834 drivers/tty/serial/men_z135_uart.c uart->port.ops = &men_z135_ops; uart 835 drivers/tty/serial/men_z135_uart.c uart->port.irq = mcb_get_irq(mdev); uart 836 drivers/tty/serial/men_z135_uart.c uart->port.iotype = UPIO_MEM; uart 837 drivers/tty/serial/men_z135_uart.c uart->port.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP; uart 838 drivers/tty/serial/men_z135_uart.c uart->port.line = line++; uart 839 drivers/tty/serial/men_z135_uart.c uart->port.dev = dev; uart 840 drivers/tty/serial/men_z135_uart.c uart->port.type = PORT_MEN_Z135; uart 841 drivers/tty/serial/men_z135_uart.c uart->port.mapbase = mem->start; uart 842 drivers/tty/serial/men_z135_uart.c uart->port.membase = NULL; uart 843 drivers/tty/serial/men_z135_uart.c uart->mdev = mdev; uart 845 drivers/tty/serial/men_z135_uart.c spin_lock_init(&uart->lock); uart 847 drivers/tty/serial/men_z135_uart.c err = uart_add_one_port(&men_z135_driver, &uart->port); uart 854 drivers/tty/serial/men_z135_uart.c free_page((unsigned long) uart->rxbuf); uart 867 drivers/tty/serial/men_z135_uart.c struct men_z135_port *uart = mcb_get_drvdata(mdev); uart 870 drivers/tty/serial/men_z135_uart.c uart_remove_one_port(&men_z135_driver, &uart->port); uart 871 drivers/tty/serial/men_z135_uart.c free_page((unsigned long) uart->rxbuf); uart 175 drivers/tty/serial/msm_serial.c struct uart_port uart; uart 187 drivers/tty/serial/msm_serial.c #define UART_TO_MSM(uart_port) container_of(uart_port, struct msm_port, uart) uart 277 drivers/tty/serial/msm_serial.c msm_stop_dma(&msm_port->uart, dma); uart 285 drivers/tty/serial/msm_serial.c msm_stop_dma(&msm_port->uart, dma); uart 295 drivers/tty/serial/msm_serial.c struct device *dev = msm_port->uart.dev; uart 338 drivers/tty/serial/msm_serial.c struct device *dev = msm_port->uart.dev; uart 429 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; uart 478 drivers/tty/serial/msm_serial.c struct circ_buf *xmit = &msm_port->uart.state->xmit; uart 479 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; uart 539 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; uart 602 drivers/tty/serial/msm_serial.c struct uart_port *uart = &msm_port->uart; uart 609 drivers/tty/serial/msm_serial.c dma->phys = dma_map_single(uart->dev, dma->virt, uart 611 drivers/tty/serial/msm_serial.c ret = dma_mapping_error(uart->dev, dma->phys); uart 641 drivers/tty/serial/msm_serial.c msm_write(uart, msm_port->imr, UART_IMR); uart 647 drivers/tty/serial/msm_serial.c msm_write(uart, UART_CR_CMD_RESET_STALE_INT, UART_CR); uart 648 drivers/tty/serial/msm_serial.c msm_write(uart, UART_CR_CMD_STALE_EVENT_ENABLE, UART_CR); uart 650 drivers/tty/serial/msm_serial.c val = msm_read(uart, UARTDM_DMEN); uart 654 drivers/tty/serial/msm_serial.c msm_write(uart, val, UARTDM_DMEN); uart 656 drivers/tty/serial/msm_serial.c msm_write(uart, UARTDM_RX_SIZE, UARTDM_DMRX); uart 659 drivers/tty/serial/msm_serial.c msm_write(uart, val, UARTDM_DMEN); uart 663 drivers/tty/serial/msm_serial.c dma_unmap_single(uart->dev, dma->phys, UARTDM_RX_SIZE, dma->dir); uart 864 drivers/tty/serial/msm_serial.c struct circ_buf *xmit = &msm_port->uart.state->xmit; uart 1203 drivers/tty/serial/msm_serial.c msm_request_tx_dma(msm_port, msm_port->uart.mapbase); uart 1204 drivers/tty/serial/msm_serial.c msm_request_rx_dma(msm_port, msm_port->uart.mapbase); uart 1540 drivers/tty/serial/msm_serial.c .uart = { uart 1549 drivers/tty/serial/msm_serial.c .uart = { uart 1558 drivers/tty/serial/msm_serial.c .uart = { uart 1572 drivers/tty/serial/msm_serial.c return &msm_uart_ports[line].uart; uart 1839 drivers/tty/serial/msm_serial.c uart_suspend_port(&msm_uart_driver, &port->uart); uart 1848 drivers/tty/serial/msm_serial.c uart_resume_port(&msm_uart_driver, &port->uart); uart 116 drivers/tty/serial/sccnxp.c struct uart_driver uart; uart 494 drivers/tty/serial/sccnxp.c for (i = 0; i < s->uart.nr; i++) { uart 969 drivers/tty/serial/sccnxp.c s->uart.owner = THIS_MODULE; uart 970 drivers/tty/serial/sccnxp.c s->uart.dev_name = "ttySC"; uart 971 drivers/tty/serial/sccnxp.c s->uart.major = SCCNXP_MAJOR; uart 972 drivers/tty/serial/sccnxp.c s->uart.minor = SCCNXP_MINOR; uart 973 drivers/tty/serial/sccnxp.c s->uart.nr = s->chip->nr; uart 975 drivers/tty/serial/sccnxp.c s->uart.cons = &s->console; uart 976 drivers/tty/serial/sccnxp.c s->uart.cons->device = uart_console_device; uart 977 drivers/tty/serial/sccnxp.c s->uart.cons->write = sccnxp_console_write; uart 978 drivers/tty/serial/sccnxp.c s->uart.cons->setup = sccnxp_console_setup; uart 979 drivers/tty/serial/sccnxp.c s->uart.cons->flags = CON_PRINTBUFFER; uart 980 drivers/tty/serial/sccnxp.c s->uart.cons->index = -1; uart 981 drivers/tty/serial/sccnxp.c s->uart.cons->data = s; uart 982 drivers/tty/serial/sccnxp.c strcpy(s->uart.cons->name, "ttySC"); uart 984 drivers/tty/serial/sccnxp.c ret = uart_register_driver(&s->uart); uart 990 drivers/tty/serial/sccnxp.c for (i = 0; i < s->uart.nr; i++) { uart 1003 drivers/tty/serial/sccnxp.c uart_add_one_port(&s->uart, &s->port[i]); uart 1030 drivers/tty/serial/sccnxp.c uart_unregister_driver(&s->uart); uart 1048 drivers/tty/serial/sccnxp.c for (i = 0; i < s->uart.nr; i++) uart 1049 drivers/tty/serial/sccnxp.c uart_remove_one_port(&s->uart, &s->port[i]); uart 1051 drivers/tty/serial/sccnxp.c uart_unregister_driver(&s->uart); uart 1019 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *uart; uart 1024 drivers/tty/serial/serial_txx9.c uart = &serial_txx9_ports[i]; uart 1025 drivers/tty/serial/serial_txx9.c if (uart_match_port(&uart->port, port)) { uart 1026 drivers/tty/serial/serial_txx9.c uart_remove_one_port(&serial_txx9_reg, &uart->port); uart 1033 drivers/tty/serial/serial_txx9.c uart = &serial_txx9_ports[i]; uart 1034 drivers/tty/serial/serial_txx9.c if (!(uart->port.iobase || uart->port.mapbase)) uart 1039 drivers/tty/serial/serial_txx9.c uart->port.iobase = port->iobase; uart 1040 drivers/tty/serial/serial_txx9.c uart->port.membase = port->membase; uart 1041 drivers/tty/serial/serial_txx9.c uart->port.irq = port->irq; uart 1042 drivers/tty/serial/serial_txx9.c uart->port.uartclk = port->uartclk; uart 1043 drivers/tty/serial/serial_txx9.c uart->port.iotype = port->iotype; uart 1044 drivers/tty/serial/serial_txx9.c uart->port.flags = port->flags uart 1046 drivers/tty/serial/serial_txx9.c uart->port.mapbase = port->mapbase; uart 1048 drivers/tty/serial/serial_txx9.c uart->port.dev = port->dev; uart 1049 drivers/tty/serial/serial_txx9.c ret = uart_add_one_port(&serial_txx9_reg, &uart->port); uart 1051 drivers/tty/serial/serial_txx9.c ret = uart->port.line; uart 1066 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *uart = &serial_txx9_ports[line]; uart 1069 drivers/tty/serial/serial_txx9.c uart_remove_one_port(&serial_txx9_reg, &uart->port); uart 1070 drivers/tty/serial/serial_txx9.c uart->port.flags = 0; uart 1071 drivers/tty/serial/serial_txx9.c uart->port.type = PORT_UNKNOWN; uart 1072 drivers/tty/serial/serial_txx9.c uart->port.iobase = 0; uart 1073 drivers/tty/serial/serial_txx9.c uart->port.mapbase = 0; uart 1074 drivers/tty/serial/serial_txx9.c uart->port.membase = NULL; uart 1075 drivers/tty/serial/serial_txx9.c uart->port.dev = NULL; uart 171 drivers/tty/serial/sh-sci.c to_sci_port(struct uart_port *uart) uart 173 drivers/tty/serial/sh-sci.c return container_of(uart, struct sci_port, port); uart 55 drivers/tty/serial/timbuart.c struct timbuart_port *uart = uart 59 drivers/tty/serial/timbuart.c tasklet_schedule(&uart->tasklet); uart 121 drivers/tty/serial/timbuart.c struct timbuart_port *uart = uart 140 drivers/tty/serial/timbuart.c *ier |= uart->last_ier & TXFLAGS; uart 177 drivers/tty/serial/timbuart.c struct timbuart_port *uart = (struct timbuart_port *)arg; uart 180 drivers/tty/serial/timbuart.c spin_lock(&uart->port.lock); uart 182 drivers/tty/serial/timbuart.c isr = ioread32(uart->port.membase + TIMBUART_ISR); uart 183 drivers/tty/serial/timbuart.c dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr); uart 185 drivers/tty/serial/timbuart.c if (!uart->usedma) uart 186 drivers/tty/serial/timbuart.c timbuart_handle_tx_port(&uart->port, isr, &ier); uart 188 drivers/tty/serial/timbuart.c timbuart_mctrl_check(&uart->port, isr, &ier); uart 190 drivers/tty/serial/timbuart.c if (!uart->usedma) uart 191 drivers/tty/serial/timbuart.c timbuart_handle_rx_port(&uart->port, isr, &ier); uart 193 drivers/tty/serial/timbuart.c iowrite32(ier, uart->port.membase + TIMBUART_IER); uart 195 drivers/tty/serial/timbuart.c spin_unlock(&uart->port.lock); uart 196 drivers/tty/serial/timbuart.c dev_dbg(uart->port.dev, "%s leaving\n", __func__); uart 242 drivers/tty/serial/timbuart.c struct timbuart_port *uart = uart 254 drivers/tty/serial/timbuart.c "timb-uart", uart); uart 259 drivers/tty/serial/timbuart.c struct timbuart_port *uart = uart 262 drivers/tty/serial/timbuart.c free_irq(port->irq, uart); uart 351 drivers/tty/serial/timbuart.c struct timbuart_port *uart = (struct timbuart_port *)devid; uart 353 drivers/tty/serial/timbuart.c if (ioread8(uart->port.membase + TIMBUART_IPR)) { uart 354 drivers/tty/serial/timbuart.c uart->last_ier = ioread32(uart->port.membase + TIMBUART_IER); uart 357 drivers/tty/serial/timbuart.c iowrite32(0, uart->port.membase + TIMBUART_IER); uart 360 drivers/tty/serial/timbuart.c tasklet_schedule(&uart->tasklet); uart 416 drivers/tty/serial/timbuart.c struct timbuart_port *uart; uart 421 drivers/tty/serial/timbuart.c uart = kzalloc(sizeof(*uart), GFP_KERNEL); uart 422 drivers/tty/serial/timbuart.c if (!uart) { uart 427 drivers/tty/serial/timbuart.c uart->usedma = 0; uart 429 drivers/tty/serial/timbuart.c uart->port.uartclk = 3250000 * 16; uart 430 drivers/tty/serial/timbuart.c uart->port.fifosize = TIMBUART_FIFO_SIZE; uart 431 drivers/tty/serial/timbuart.c uart->port.regshift = 2; uart 432 drivers/tty/serial/timbuart.c uart->port.iotype = UPIO_MEM; uart 433 drivers/tty/serial/timbuart.c uart->port.ops = &timbuart_ops; uart 434 drivers/tty/serial/timbuart.c uart->port.irq = 0; uart 435 drivers/tty/serial/timbuart.c uart->port.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP; uart 436 drivers/tty/serial/timbuart.c uart->port.line = 0; uart 437 drivers/tty/serial/timbuart.c uart->port.dev = &dev->dev; uart 444 drivers/tty/serial/timbuart.c uart->port.mapbase = iomem->start; uart 445 drivers/tty/serial/timbuart.c uart->port.membase = NULL; uart 452 drivers/tty/serial/timbuart.c uart->port.irq = irq; uart 454 drivers/tty/serial/timbuart.c tasklet_init(&uart->tasklet, timbuart_tasklet, (unsigned long)uart); uart 460 drivers/tty/serial/timbuart.c err = uart_add_one_port(&timbuart_driver, &uart->port); uart 464 drivers/tty/serial/timbuart.c platform_set_drvdata(dev, uart); uart 471 drivers/tty/serial/timbuart.c kfree(uart); uart 481 drivers/tty/serial/timbuart.c struct timbuart_port *uart = platform_get_drvdata(dev); uart 483 drivers/tty/serial/timbuart.c tasklet_kill(&uart->tasklet); uart 484 drivers/tty/serial/timbuart.c uart_remove_one_port(&timbuart_driver, &uart->port); uart 486 drivers/tty/serial/timbuart.c kfree(uart); uart 100 drivers/tty/serial/vt8500_serial.c struct uart_port uart; uart 130 drivers/tty/serial/vt8500_serial.c uart); uart 140 drivers/tty/serial/vt8500_serial.c uart); uart 150 drivers/tty/serial/vt8500_serial.c uart); uart 231 drivers/tty/serial/vt8500_serial.c uart); uart 309 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); uart 333 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); uart 352 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); uart 357 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); uart 358 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); uart 367 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); uart 381 drivers/tty/serial/vt8500_serial.c lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); uart 413 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, lcr, VT8500_URLCR); uart 423 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x88c, VT8500_URFCR); uart 424 drivers/tty/serial/vt8500_serial.c while ((vt8500_read(&vt8500_port->uart, VT8500_URFCR) & 0xc) uart 434 drivers/tty/serial/vt8500_serial.c if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) uart 437 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x881, VT8500_URFCR); uart 438 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, vt8500_port->ier, VT8500_URIER); uart 446 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); uart 507 drivers/tty/serial/vt8500_serial.c ier = vt8500_read(&vt8500_port->uart, VT8500_URIER); uart 508 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, VT8500_URIER, 0); uart 510 drivers/tty/serial/vt8500_serial.c uart_console_write(&vt8500_port->uart, s, count, uart 517 drivers/tty/serial/vt8500_serial.c wait_for_xmitr(&vt8500_port->uart); uart 518 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, VT8500_URIER, ier); uart 540 drivers/tty/serial/vt8500_serial.c return uart_set_options(&vt8500_port->uart, uart 676 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.membase = devm_ioremap_resource(&pdev->dev, mmres); uart 677 drivers/tty/serial/vt8500_serial.c if (IS_ERR(vt8500_port->uart.membase)) uart 678 drivers/tty/serial/vt8500_serial.c return PTR_ERR(vt8500_port->uart.membase); uart 697 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.type = PORT_VT8500; uart 698 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.iotype = UPIO_MEM; uart 699 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.mapbase = mmres->start; uart 700 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.irq = irqres->start; uart 701 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.fifosize = 16; uart 702 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.ops = &vt8500_uart_pops; uart 703 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.line = port; uart 704 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.dev = &pdev->dev; uart 705 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF; uart 708 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.uartclk = 16 * clk_get_rate(vt8500_port->clk) / uart 717 drivers/tty/serial/vt8500_serial.c uart_add_one_port(&vt8500_uart_driver, &vt8500_port->uart); uart 188 drivers/usb/serial/quatech2.c u8 uart, uart 196 drivers/usb/serial/quatech2.c uart, data, sizeof(*data), QT2_USB_TIMEOUT); uart 206 drivers/usb/serial/quatech2.c u8 uart, u8 reg, u16 data) uart 211 drivers/usb/serial/quatech2.c QT_SET_GET_REGISTER, 0x40, value, uart, uart 98 drivers/usb/serial/ssu100.c unsigned short uart, uart 106 drivers/usb/serial/ssu100.c uart, data, sizeof(*data), 300); uart 117 drivers/usb/serial/ssu100.c unsigned short uart, uart 124 drivers/usb/serial/ssu100.c QT_SET_GET_REGISTER, 0x40, value, uart, uart 410 include/linux/serial_core.h int uart_register_driver(struct uart_driver *uart); uart 411 include/linux/serial_core.h void uart_unregister_driver(struct uart_driver *uart); uart 159 sound/drivers/serial-u16550.c static inline void snd_uart16550_add_timer(struct snd_uart16550 *uart) uart 161 sound/drivers/serial-u16550.c if (!uart->timer_running) { uart 163 sound/drivers/serial-u16550.c mod_timer(&uart->buffer_timer, jiffies + (HZ + 255) / 256); uart 164 sound/drivers/serial-u16550.c uart->timer_running = 1; uart 168 sound/drivers/serial-u16550.c static inline void snd_uart16550_del_timer(struct snd_uart16550 *uart) uart 170 sound/drivers/serial-u16550.c if (uart->timer_running) { uart 171 sound/drivers/serial-u16550.c del_timer(&uart->buffer_timer); uart 172 sound/drivers/serial-u16550.c uart->timer_running = 0; uart 177 sound/drivers/serial-u16550.c static inline void snd_uart16550_buffer_output(struct snd_uart16550 *uart) uart 179 sound/drivers/serial-u16550.c unsigned short buff_out = uart->buff_out; uart 180 sound/drivers/serial-u16550.c if (uart->buff_in_count > 0) { uart 181 sound/drivers/serial-u16550.c outb(uart->tx_buff[buff_out], uart->base + UART_TX); uart 182 sound/drivers/serial-u16550.c uart->fifo_count++; uart 185 sound/drivers/serial-u16550.c uart->buff_out = buff_out; uart 186 sound/drivers/serial-u16550.c uart->buff_in_count--; uart 194 sound/drivers/serial-u16550.c static void snd_uart16550_io_loop(struct snd_uart16550 * uart) uart 200 sound/drivers/serial-u16550.c substream = uart->prev_in; uart 203 sound/drivers/serial-u16550.c while ((status = inb(uart->base + UART_LSR)) & UART_LSR_DR) { uart 205 sound/drivers/serial-u16550.c c = inb(uart->base + UART_RX); uart 209 sound/drivers/serial-u16550.c uart->rstatus = c; uart 212 sound/drivers/serial-u16550.c if (uart->adaptor == SNDRV_SERIAL_GENERIC) { uart 213 sound/drivers/serial-u16550.c if (uart->rstatus == 0xf5) { uart 219 sound/drivers/serial-u16550.c uart->rstatus = 0; uart 220 sound/drivers/serial-u16550.c } else if ((uart->filemode & SERIAL_MODE_INPUT_OPEN) uart 221 sound/drivers/serial-u16550.c && uart->midi_input[substream]) uart 222 sound/drivers/serial-u16550.c snd_rawmidi_receive(uart->midi_input[substream], uart 224 sound/drivers/serial-u16550.c } else if ((uart->filemode & SERIAL_MODE_INPUT_OPEN) && uart 225 sound/drivers/serial-u16550.c uart->midi_input[substream]) uart 226 sound/drivers/serial-u16550.c snd_rawmidi_receive(uart->midi_input[substream], &c, 1); uart 231 sound/drivers/serial-u16550.c uart->rmidi->name, uart->base); uart 235 sound/drivers/serial-u16550.c uart->prev_in = substream; uart 241 sound/drivers/serial-u16550.c uart->fifo_count = 0; uart 242 sound/drivers/serial-u16550.c if (uart->adaptor == SNDRV_SERIAL_MS124W_SA uart 243 sound/drivers/serial-u16550.c || uart->adaptor == SNDRV_SERIAL_GENERIC) { uart 245 sound/drivers/serial-u16550.c status = inb(uart->base + UART_MSR); uart 246 sound/drivers/serial-u16550.c while (uart->fifo_count == 0 && (status & UART_MSR_CTS) && uart 247 sound/drivers/serial-u16550.c uart->buff_in_count > 0) { uart 248 sound/drivers/serial-u16550.c snd_uart16550_buffer_output(uart); uart 249 sound/drivers/serial-u16550.c status = inb(uart->base + UART_MSR); uart 253 sound/drivers/serial-u16550.c while (uart->fifo_count < uart->fifo_limit /* Can we write ? */ uart 254 sound/drivers/serial-u16550.c && uart->buff_in_count > 0) /* Do we want to? */ uart 255 sound/drivers/serial-u16550.c snd_uart16550_buffer_output(uart); uart 257 sound/drivers/serial-u16550.c if (uart->irq < 0 && uart->buff_in_count > 0) uart 258 sound/drivers/serial-u16550.c snd_uart16550_add_timer(uart); uart 283 sound/drivers/serial-u16550.c struct snd_uart16550 *uart; uart 285 sound/drivers/serial-u16550.c uart = dev_id; uart 286 sound/drivers/serial-u16550.c spin_lock(&uart->open_lock); uart 287 sound/drivers/serial-u16550.c if (uart->filemode == SERIAL_MODE_NOT_OPENED) { uart 288 sound/drivers/serial-u16550.c spin_unlock(&uart->open_lock); uart 292 sound/drivers/serial-u16550.c inb(uart->base + UART_IIR); uart 293 sound/drivers/serial-u16550.c snd_uart16550_io_loop(uart); uart 294 sound/drivers/serial-u16550.c spin_unlock(&uart->open_lock); uart 302 sound/drivers/serial-u16550.c struct snd_uart16550 *uart; uart 304 sound/drivers/serial-u16550.c uart = from_timer(uart, t, buffer_timer); uart 305 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 306 sound/drivers/serial-u16550.c snd_uart16550_del_timer(uart); uart 307 sound/drivers/serial-u16550.c snd_uart16550_io_loop(uart); uart 308 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 316 sound/drivers/serial-u16550.c static int snd_uart16550_detect(struct snd_uart16550 *uart) uart 318 sound/drivers/serial-u16550.c unsigned long io_base = uart->base; uart 327 sound/drivers/serial-u16550.c uart->res_base = request_region(io_base, 8, "Serial MIDI"); uart 328 sound/drivers/serial-u16550.c if (uart->res_base == NULL) { uart 359 sound/drivers/serial-u16550.c static void snd_uart16550_do_open(struct snd_uart16550 * uart) uart 364 sound/drivers/serial-u16550.c uart->buff_in_count = 0; uart 365 sound/drivers/serial-u16550.c uart->buff_in = 0; uart 366 sound/drivers/serial-u16550.c uart->buff_out = 0; uart 367 sound/drivers/serial-u16550.c uart->fifo_limit = 1; uart 368 sound/drivers/serial-u16550.c uart->fifo_count = 0; uart 369 sound/drivers/serial-u16550.c uart->timer_running = 0; uart 378 sound/drivers/serial-u16550.c ,uart->base + UART_FCR); /* FIFO Control Register */ uart 380 sound/drivers/serial-u16550.c if ((inb(uart->base + UART_IIR) & 0xf0) == 0xc0) uart 381 sound/drivers/serial-u16550.c uart->fifo_limit = 16; uart 382 sound/drivers/serial-u16550.c if (uart->divisor != 0) { uart 383 sound/drivers/serial-u16550.c uart->old_line_ctrl_reg = inb(uart->base + UART_LCR); uart 385 sound/drivers/serial-u16550.c ,uart->base + UART_LCR); /* Line Control Register */ uart 386 sound/drivers/serial-u16550.c uart->old_divisor_lsb = inb(uart->base + UART_DLL); uart 387 sound/drivers/serial-u16550.c uart->old_divisor_msb = inb(uart->base + UART_DLM); uart 389 sound/drivers/serial-u16550.c outb(uart->divisor uart 390 sound/drivers/serial-u16550.c ,uart->base + UART_DLL); /* Divisor Latch Low */ uart 392 sound/drivers/serial-u16550.c ,uart->base + UART_DLM); /* Divisor Latch High */ uart 400 sound/drivers/serial-u16550.c ,uart->base + UART_LCR); /* Line Control Register */ uart 402 sound/drivers/serial-u16550.c switch (uart->adaptor) { uart 409 sound/drivers/serial-u16550.c ,uart->base + UART_MCR); /* Modem Control Register */ uart 416 sound/drivers/serial-u16550.c uart->base + UART_MCR); uart 422 sound/drivers/serial-u16550.c uart->base + UART_MCR); uart 426 sound/drivers/serial-u16550.c if (uart->irq < 0) { uart 430 sound/drivers/serial-u16550.c } else if (uart->adaptor == SNDRV_SERIAL_MS124W_SA) { uart 434 sound/drivers/serial-u16550.c } else if (uart->adaptor == SNDRV_SERIAL_GENERIC) { uart 444 sound/drivers/serial-u16550.c outb(byte, uart->base + UART_IER); /* Interrupt enable Register */ uart 446 sound/drivers/serial-u16550.c inb(uart->base + UART_LSR); /* Clear any pre-existing overrun indication */ uart 447 sound/drivers/serial-u16550.c inb(uart->base + UART_IIR); /* Clear any pre-existing transmit interrupt */ uart 448 sound/drivers/serial-u16550.c inb(uart->base + UART_RX); /* Clear any pre-existing receive interrupt */ uart 451 sound/drivers/serial-u16550.c static void snd_uart16550_do_close(struct snd_uart16550 * uart) uart 453 sound/drivers/serial-u16550.c if (uart->irq < 0) uart 454 sound/drivers/serial-u16550.c snd_uart16550_del_timer(uart); uart 462 sound/drivers/serial-u16550.c ,uart->base + UART_IER); /* Interrupt enable Register */ uart 464 sound/drivers/serial-u16550.c switch (uart->adaptor) { uart 469 sound/drivers/serial-u16550.c ,uart->base + UART_MCR); /* Modem Control Register */ uart 476 sound/drivers/serial-u16550.c uart->base + UART_MCR); uart 482 sound/drivers/serial-u16550.c uart->base + UART_MCR); uart 486 sound/drivers/serial-u16550.c inb(uart->base + UART_IIR); /* Clear any outstanding interrupts */ uart 489 sound/drivers/serial-u16550.c if (uart->divisor != 0) { uart 491 sound/drivers/serial-u16550.c ,uart->base + UART_LCR); /* Line Control Register */ uart 492 sound/drivers/serial-u16550.c outb(uart->old_divisor_lsb uart 493 sound/drivers/serial-u16550.c ,uart->base + UART_DLL); /* Divisor Latch Low */ uart 494 sound/drivers/serial-u16550.c outb(uart->old_divisor_msb uart 495 sound/drivers/serial-u16550.c ,uart->base + UART_DLM); /* Divisor Latch High */ uart 497 sound/drivers/serial-u16550.c outb(uart->old_line_ctrl_reg uart 498 sound/drivers/serial-u16550.c ,uart->base + UART_LCR); /* Line Control Register */ uart 505 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 507 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 508 sound/drivers/serial-u16550.c if (uart->filemode == SERIAL_MODE_NOT_OPENED) uart 509 sound/drivers/serial-u16550.c snd_uart16550_do_open(uart); uart 510 sound/drivers/serial-u16550.c uart->filemode |= SERIAL_MODE_INPUT_OPEN; uart 511 sound/drivers/serial-u16550.c uart->midi_input[substream->number] = substream; uart 512 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 519 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 521 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 522 sound/drivers/serial-u16550.c uart->filemode &= ~SERIAL_MODE_INPUT_OPEN; uart 523 sound/drivers/serial-u16550.c uart->midi_input[substream->number] = NULL; uart 524 sound/drivers/serial-u16550.c if (uart->filemode == SERIAL_MODE_NOT_OPENED) uart 525 sound/drivers/serial-u16550.c snd_uart16550_do_close(uart); uart 526 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 534 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 536 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 538 sound/drivers/serial-u16550.c uart->filemode |= SERIAL_MODE_INPUT_TRIGGERED; uart 540 sound/drivers/serial-u16550.c uart->filemode &= ~SERIAL_MODE_INPUT_TRIGGERED; uart 541 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 547 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 549 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 550 sound/drivers/serial-u16550.c if (uart->filemode == SERIAL_MODE_NOT_OPENED) uart 551 sound/drivers/serial-u16550.c snd_uart16550_do_open(uart); uart 552 sound/drivers/serial-u16550.c uart->filemode |= SERIAL_MODE_OUTPUT_OPEN; uart 553 sound/drivers/serial-u16550.c uart->midi_output[substream->number] = substream; uart 554 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 561 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 563 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 564 sound/drivers/serial-u16550.c uart->filemode &= ~SERIAL_MODE_OUTPUT_OPEN; uart 565 sound/drivers/serial-u16550.c uart->midi_output[substream->number] = NULL; uart 566 sound/drivers/serial-u16550.c if (uart->filemode == SERIAL_MODE_NOT_OPENED) uart 567 sound/drivers/serial-u16550.c snd_uart16550_do_close(uart); uart 568 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 572 sound/drivers/serial-u16550.c static inline int snd_uart16550_buffer_can_write(struct snd_uart16550 *uart, uart 575 sound/drivers/serial-u16550.c if (uart->buff_in_count + Num < TX_BUFF_SIZE) uart 581 sound/drivers/serial-u16550.c static inline int snd_uart16550_write_buffer(struct snd_uart16550 *uart, uart 584 sound/drivers/serial-u16550.c unsigned short buff_in = uart->buff_in; uart 585 sound/drivers/serial-u16550.c if (uart->buff_in_count < TX_BUFF_SIZE) { uart 586 sound/drivers/serial-u16550.c uart->tx_buff[buff_in] = byte; uart 589 sound/drivers/serial-u16550.c uart->buff_in = buff_in; uart 590 sound/drivers/serial-u16550.c uart->buff_in_count++; uart 591 sound/drivers/serial-u16550.c if (uart->irq < 0) /* polling mode */ uart 592 sound/drivers/serial-u16550.c snd_uart16550_add_timer(uart); uart 598 sound/drivers/serial-u16550.c static int snd_uart16550_output_byte(struct snd_uart16550 *uart, uart 602 sound/drivers/serial-u16550.c if (uart->buff_in_count == 0 /* Buffer empty? */ uart 603 sound/drivers/serial-u16550.c && ((uart->adaptor != SNDRV_SERIAL_MS124W_SA && uart 604 sound/drivers/serial-u16550.c uart->adaptor != SNDRV_SERIAL_GENERIC) || uart 605 sound/drivers/serial-u16550.c (uart->fifo_count == 0 /* FIFO empty? */ uart 606 sound/drivers/serial-u16550.c && (inb(uart->base + UART_MSR) & UART_MSR_CTS)))) { /* CTS? */ uart 609 sound/drivers/serial-u16550.c if ((inb(uart->base + UART_LSR) & UART_LSR_THRE) != 0) { uart 611 sound/drivers/serial-u16550.c uart->fifo_count = 1; uart 612 sound/drivers/serial-u16550.c outb(midi_byte, uart->base + UART_TX); uart 614 sound/drivers/serial-u16550.c if (uart->fifo_count < uart->fifo_limit) { uart 615 sound/drivers/serial-u16550.c uart->fifo_count++; uart 616 sound/drivers/serial-u16550.c outb(midi_byte, uart->base + UART_TX); uart 620 sound/drivers/serial-u16550.c snd_uart16550_write_buffer(uart, midi_byte); uart 624 sound/drivers/serial-u16550.c if (!snd_uart16550_write_buffer(uart, midi_byte)) { uart 627 sound/drivers/serial-u16550.c uart->rmidi->name, uart->base); uart 639 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 648 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 650 sound/drivers/serial-u16550.c if (uart->irq < 0) /* polling */ uart 651 sound/drivers/serial-u16550.c snd_uart16550_io_loop(uart); uart 653 sound/drivers/serial-u16550.c if (uart->adaptor == SNDRV_SERIAL_MS124W_MB) { uart 657 sound/drivers/serial-u16550.c if (uart->buff_in_count > TX_BUFF_SIZE - 2) uart 671 sound/drivers/serial-u16550.c snd_uart16550_output_byte(uart, substream, addr_byte); uart 673 sound/drivers/serial-u16550.c snd_uart16550_output_byte(uart, substream, midi_byte); uart 681 sound/drivers/serial-u16550.c (uart->adaptor == SNDRV_SERIAL_SOUNDCANVAS || uart 682 sound/drivers/serial-u16550.c uart->adaptor == SNDRV_SERIAL_GENERIC) && uart 683 sound/drivers/serial-u16550.c (uart->prev_out != substream->number || uart 686 sound/drivers/serial-u16550.c if (snd_uart16550_buffer_can_write(uart, 3)) { uart 693 sound/drivers/serial-u16550.c uart->prev_out = substream->number; uart 695 sound/drivers/serial-u16550.c snd_uart16550_output_byte(uart, substream, uart 698 sound/drivers/serial-u16550.c snd_uart16550_output_byte(uart, substream, uart 699 sound/drivers/serial-u16550.c uart->prev_out + 1); uart 703 sound/drivers/serial-u16550.c uart->adaptor == SNDRV_SERIAL_SOUNDCANVAS) uart 704 sound/drivers/serial-u16550.c snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); uart 705 sound/drivers/serial-u16550.c } else if (!uart->drop_on_full) uart 711 sound/drivers/serial-u16550.c if (!snd_uart16550_output_byte(uart, substream, midi_byte) && uart 712 sound/drivers/serial-u16550.c !uart->drop_on_full ) uart 716 sound/drivers/serial-u16550.c uart->prev_status[uart->prev_out] = midi_byte; uart 723 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 730 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = substream->rmidi->private_data; uart 732 sound/drivers/serial-u16550.c spin_lock_irqsave(&uart->open_lock, flags); uart 734 sound/drivers/serial-u16550.c uart->filemode |= SERIAL_MODE_OUTPUT_TRIGGERED; uart 736 sound/drivers/serial-u16550.c uart->filemode &= ~SERIAL_MODE_OUTPUT_TRIGGERED; uart 737 sound/drivers/serial-u16550.c spin_unlock_irqrestore(&uart->open_lock, flags); uart 756 sound/drivers/serial-u16550.c static int snd_uart16550_free(struct snd_uart16550 *uart) uart 758 sound/drivers/serial-u16550.c if (uart->irq >= 0) uart 759 sound/drivers/serial-u16550.c free_irq(uart->irq, uart); uart 760 sound/drivers/serial-u16550.c release_and_free_resource(uart->res_base); uart 761 sound/drivers/serial-u16550.c kfree(uart); uart 767 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = device->device_data; uart 768 sound/drivers/serial-u16550.c return snd_uart16550_free(uart); uart 783 sound/drivers/serial-u16550.c struct snd_uart16550 *uart; uart 787 sound/drivers/serial-u16550.c if ((uart = kzalloc(sizeof(*uart), GFP_KERNEL)) == NULL) uart 789 sound/drivers/serial-u16550.c uart->adaptor = adaptor; uart 790 sound/drivers/serial-u16550.c uart->card = card; uart 791 sound/drivers/serial-u16550.c spin_lock_init(&uart->open_lock); uart 792 sound/drivers/serial-u16550.c uart->irq = -1; uart 793 sound/drivers/serial-u16550.c uart->base = iobase; uart 794 sound/drivers/serial-u16550.c uart->drop_on_full = droponfull; uart 796 sound/drivers/serial-u16550.c if ((err = snd_uart16550_detect(uart)) <= 0) { uart 798 sound/drivers/serial-u16550.c snd_uart16550_free(uart); uart 804 sound/drivers/serial-u16550.c 0, "Serial MIDI", uart)) { uart 808 sound/drivers/serial-u16550.c uart->irq = irq; uart 811 sound/drivers/serial-u16550.c uart->divisor = base / speed; uart 812 sound/drivers/serial-u16550.c uart->speed = base / (unsigned int)uart->divisor; uart 813 sound/drivers/serial-u16550.c uart->speed_base = base; uart 814 sound/drivers/serial-u16550.c uart->prev_out = -1; uart 815 sound/drivers/serial-u16550.c uart->prev_in = 0; uart 816 sound/drivers/serial-u16550.c uart->rstatus = 0; uart 817 sound/drivers/serial-u16550.c memset(uart->prev_status, 0x80, sizeof(unsigned char) * SNDRV_SERIAL_MAX_OUTS); uart 818 sound/drivers/serial-u16550.c timer_setup(&uart->buffer_timer, snd_uart16550_buffer_timer, 0); uart 819 sound/drivers/serial-u16550.c uart->timer_running = 0; uart 822 sound/drivers/serial-u16550.c if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, uart, &ops)) < 0) { uart 823 sound/drivers/serial-u16550.c snd_uart16550_free(uart); uart 827 sound/drivers/serial-u16550.c switch (uart->adaptor) { uart 832 sound/drivers/serial-u16550.c outb(UART_MCR_RTS | (0&UART_MCR_DTR), uart->base + UART_MCR); uart 837 sound/drivers/serial-u16550.c outb(UART_MCR_RTS | UART_MCR_DTR, uart->base + UART_MCR); uart 844 sound/drivers/serial-u16550.c *ruart = uart; uart 858 sound/drivers/serial-u16550.c static int snd_uart16550_rmidi(struct snd_uart16550 *uart, int device, uart 865 sound/drivers/serial-u16550.c err = snd_rawmidi_new(uart->card, "UART Serial MIDI", device, uart 879 sound/drivers/serial-u16550.c rrawmidi->private_data = uart; uart 888 sound/drivers/serial-u16550.c struct snd_uart16550 *uart; uart 943 sound/drivers/serial-u16550.c &uart)) < 0) uart 946 sound/drivers/serial-u16550.c err = snd_uart16550_rmidi(uart, 0, outs[dev], ins[dev], &uart->rmidi); uart 952 sound/drivers/serial-u16550.c adaptor_names[uart->adaptor], uart 953 sound/drivers/serial-u16550.c uart->base, uart 954 sound/drivers/serial-u16550.c uart->irq);