/linux/sound/drivers/ |
H A D | serial-u16550.c | 157 static inline void snd_uart16550_add_timer(struct snd_uart16550 *uart) in snd_uart16550_add_timer() argument 159 if (!uart->timer_running) { in snd_uart16550_add_timer() 161 mod_timer(&uart->buffer_timer, jiffies + (HZ + 255) / 256); in snd_uart16550_add_timer() 162 uart->timer_running = 1; in snd_uart16550_add_timer() 166 static inline void snd_uart16550_del_timer(struct snd_uart16550 *uart) in snd_uart16550_del_timer() argument 168 if (uart->timer_running) { in snd_uart16550_del_timer() 169 del_timer(&uart->buffer_timer); in snd_uart16550_del_timer() 170 uart->timer_running = 0; in snd_uart16550_del_timer() 175 static inline void snd_uart16550_buffer_output(struct snd_uart16550 *uart) in snd_uart16550_buffer_output() argument 177 unsigned short buff_out = uart->buff_out; in snd_uart16550_buffer_output() [all …]
|
/linux/drivers/tty/serial/ |
H A D | men_z135_uart.c | 136 static inline void men_z135_reg_set(struct men_z135_port *uart, in men_z135_reg_set() argument 139 struct uart_port *port = &uart->port; in men_z135_reg_set() 143 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_set() 149 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_set() 158 static void men_z135_reg_clr(struct men_z135_port *uart, in men_z135_reg_clr() argument 161 struct uart_port *port = &uart->port; in men_z135_reg_clr() 165 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_clr() 171 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_clr() 181 static void men_z135_handle_modem_status(struct men_z135_port *uart) in men_z135_handle_modem_status() argument 185 msr = (uart->stat_reg >> 8) & 0xff; in men_z135_handle_modem_status() [all …]
|
H A D | timbuart.c | 55 struct timbuart_port *uart = in timbuart_start_tx() local 59 tasklet_schedule(&uart->tasklet); in timbuart_start_tx() 115 struct timbuart_port *uart = in timbuart_handle_tx_port() local 134 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port() 171 struct timbuart_port *uart = from_tasklet(uart, t, tasklet); in timbuart_tasklet() local 174 uart_port_lock(&uart->port); in timbuart_tasklet() 176 isr = ioread32(uart->port.membase + TIMBUART_ISR); in timbuart_tasklet() 177 dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr); in timbuart_tasklet() 179 if (!uart->usedma) in timbuart_tasklet() 180 timbuart_handle_tx_port(&uart->port, isr, &ier); in timbuart_tasklet() [all …]
|
H A D | liteuart.c | 73 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_update_irq_reg() local 76 uart->irq_reg |= mask; in liteuart_update_irq_reg() 78 uart->irq_reg &= ~mask; in liteuart_update_irq_reg() 81 litex_write8(port->membase + OFF_EV_ENABLE, uart->irq_reg); in liteuart_update_irq_reg() 96 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_stop_rx() local 99 del_timer(&uart->timer); in liteuart_stop_rx() 133 struct liteuart_port *uart = data; in liteuart_interrupt() local 134 struct uart_port *port = &uart->port; in liteuart_interrupt() 143 isr = litex_read8(port->membase + OFF_EV_PENDING) & uart->irq_reg; in liteuart_interrupt() 155 struct liteuart_port *uart = from_timer(uart, t, timer); in liteuart_timer() local [all …]
|
H A D | vt8500_serial.c | 96 struct uart_port uart; member 126 uart); in vt8500_stop_tx() 136 uart); in vt8500_stop_rx() 146 uart); in vt8500_enable_ms() 210 uart); in vt8500_start_tx() 282 container_of(port, struct vt8500_port, uart); in vt8500_set_baud_rate() 306 container_of(port, struct vt8500_port, uart); in vt8500_startup() 325 container_of(port, struct vt8500_port, uart); in vt8500_shutdown() 330 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); in vt8500_shutdown() 331 vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); in vt8500_shutdown() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_core.c | 698 struct uart_8250_port *uart; in serial8250_register_8250_port() local 706 uart = serial8250_find_match_or_unused(&up->port); in serial8250_register_8250_port() 707 if (!uart) { in serial8250_register_8250_port() 712 uart = serial8250_setup_port(nr_uarts); in serial8250_register_8250_port() 713 if (!uart) in serial8250_register_8250_port() 718 if (uart->port.type != PORT_8250_CIR) { in serial8250_register_8250_port() 721 if (uart->port.dev) in serial8250_register_8250_port() 722 uart_remove_one_port(&serial8250_reg, &uart->port); in serial8250_register_8250_port() 724 uart->port.ctrl_id = up->port.ctrl_id; in serial8250_register_8250_port() 725 uart->port.port_id = up->port.port_id; in serial8250_register_8250_port() [all …]
|
H A D | 8250_tegra.c | 46 struct tegra_uart *uart; in tegra_uart_probe() local 51 uart = devm_kzalloc(&pdev->dev, sizeof(*uart), GFP_KERNEL); in tegra_uart_probe() 52 if (!uart) in tegra_uart_probe() 84 uart->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); in tegra_uart_probe() 85 if (IS_ERR(uart->rst)) in tegra_uart_probe() 86 return PTR_ERR(uart->rst); in tegra_uart_probe() 89 uart->clk = devm_clk_get(&pdev->dev, NULL); in tegra_uart_probe() 90 if (IS_ERR(uart->clk)) { in tegra_uart_probe() 95 ret = clk_prepare_enable(uart->clk); in tegra_uart_probe() 99 port->uartclk = clk_get_rate(uart->clk); in tegra_uart_probe() [all …]
|
H A D | 8250_platform.c | 113 struct uart_8250_port uart = { }; in serial8250_probe_acpi() local 124 uart.port.iobase = regs->start; in serial8250_probe_acpi() 128 uart.port.mapbase = regs->start; in serial8250_probe_acpi() 129 uart.port.mapsize = resource_size(regs); in serial8250_probe_acpi() 130 uart.port.flags = UPF_IOREMAP; in serial8250_probe_acpi() 138 uart.port.uartclk = 1843200; in serial8250_probe_acpi() 139 uart.port.type = PORT_16550A; in serial8250_probe_acpi() 140 uart.port.dev = &pdev->dev; in serial8250_probe_acpi() 141 uart.port.flags |= UPF_SKIP_TEST | UPF_BOOT_AUTOCONF; in serial8250_probe_acpi() 143 ret = uart_read_and_validate_port_properties(&uart.port); in serial8250_probe_acpi() [all …]
|
H A D | 8250_hp300.c | 160 struct uart_8250_port uart; in hpdca_init_one() local 169 memset(&uart, 0, sizeof(uart)); in hpdca_init_one() 172 uart.port.iotype = UPIO_MEM; in hpdca_init_one() 173 uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF; in hpdca_init_one() 174 uart.port.irq = d->ipl; in hpdca_init_one() 175 uart.port.uartclk = HPDCA_BAUD_BASE * 16; in hpdca_init_one() 176 uart.port.mapbase = (d->resource.start + UART_OFFSET); in hpdca_init_one() 177 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one() 178 uart.port.regshift = 1; in hpdca_init_one() 179 uart.port.dev = &d->dev; in hpdca_init_one() [all …]
|
H A D | 8250_lpc18xx.c | 93 struct uart_8250_port uart; in lpc18xx_serial_probe() local 103 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe() 105 uart.port.membase = devm_ioremap(&pdev->dev, res->start, in lpc18xx_serial_probe() 107 if (!uart.port.membase) in lpc18xx_serial_probe() 141 spin_lock_init(&uart.port.lock); in lpc18xx_serial_probe() 142 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe() 143 uart.port.mapbase = res->start; in lpc18xx_serial_probe() 144 uart.port.type = PORT_16550A; in lpc18xx_serial_probe() 145 uart.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST; in lpc18xx_serial_probe() 146 uart.port.uartclk = clk_get_rate(data->clk_uart); in lpc18xx_serial_probe() [all …]
|
H A D | 8250_parisc.c | 25 struct uart_8250_port uart; in serial_init_chip() local 52 memset(&uart, 0, sizeof(uart)); in serial_init_chip() 53 uart.port.iotype = UPIO_MEM; in serial_init_chip() 55 uart.port.uartclk = (dev->id.sversion != 0xad) ? in serial_init_chip() 57 uart.port.mapbase = address; in serial_init_chip() 58 uart.port.membase = ioremap(address, 16); in serial_init_chip() 59 if (!uart.port.membase) { in serial_init_chip() 63 uart.port.irq = dev->irq; in serial_init_chip() 64 uart.port.flags = UPF_BOOT_AUTOCONF; in serial_init_chip() 65 uart.port.dev = &dev->dev; in serial_init_chip() [all …]
|
H A D | 8250_dfl.c | 52 static int dfl_uart_get_params(struct dfl_device *dfl_dev, struct uart_8250_port *uart) in dfl_uart_get_params() argument 63 uart->port.uartclk = clk_freq; in dfl_uart_get_params() 71 uart->port.type = PORT_ALTR_16550_F32; in dfl_uart_get_params() 75 uart->port.type = PORT_ALTR_16550_F64; in dfl_uart_get_params() 79 uart->port.type = PORT_ALTR_16550_F128; in dfl_uart_get_params() 90 uart->port.regshift = FIELD_GET(DFHv1_PARAM_REG_LAYOUT_SHIFT, reg_layout); in dfl_uart_get_params() 94 uart->port.iotype = UPIO_MEM32; in dfl_uart_get_params() 98 uart->port.iotype = UPIO_MEM16; in dfl_uart_get_params() 112 struct uart_8250_port uart = { }; in dfl_uart_probe() local 116 uart.port.flags = UPF_IOREMAP; in dfl_uart_probe() [all …]
|
H A D | 8250_pxa.c | 92 struct uart_8250_port uart = {}; in serial_pxa_probe() local 113 uart.port.type = PORT_XSCALE; in serial_pxa_probe() 114 uart.port.mapbase = mmres->start; in serial_pxa_probe() 115 uart.port.flags = UPF_IOREMAP | UPF_SKIP_TEST | UPF_FIXED_TYPE; in serial_pxa_probe() 116 uart.port.dev = &pdev->dev; in serial_pxa_probe() 117 uart.port.uartclk = clk_get_rate(data->clk); in serial_pxa_probe() 118 uart.port.pm = serial_pxa_pm; in serial_pxa_probe() 119 uart.port.private_data = data; in serial_pxa_probe() 121 ret = uart_read_port_properties(&uart.port); in serial_pxa_probe() 125 uart.port.iotype = UPIO_MEM32; in serial_pxa_probe() [all …]
|
H A D | 8250_pericom.c | 89 struct uart_8250_port uart; in pericom8250_probe() local 113 memset(&uart, 0, sizeof(uart)); in pericom8250_probe() 115 uart.port.dev = &pdev->dev; in pericom8250_probe() 116 uart.port.irq = pdev->irq; in pericom8250_probe() 117 uart.port.private_data = pericom; in pericom8250_probe() 118 uart.port.iotype = UPIO_PORT; in pericom8250_probe() 119 uart.port.uartclk = 921600 * 16; in pericom8250_probe() 120 uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in pericom8250_probe() 121 uart.port.set_divisor = pericom_do_set_divisor; in pericom8250_probe() 125 uart.port.iobase = pci_resource_start(pdev, bar) + offset; in pericom8250_probe() [all …]
|
H A D | 8250_acorn.c | 43 struct uart_8250_port uart; in serial_card_probe() local 62 memset(&uart, 0, sizeof(struct uart_8250_port)); in serial_card_probe() 63 uart.port.irq = ec->irq; in serial_card_probe() 64 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in serial_card_probe() 65 uart.port.uartclk = type->uartclk; in serial_card_probe() 66 uart.port.iotype = UPIO_MEM; in serial_card_probe() 67 uart.port.regshift = 2; in serial_card_probe() 68 uart.port.dev = &ec->dev; in serial_card_probe() 71 uart.port.membase = info->vaddr + type->offset[i]; in serial_card_probe() 72 uart.port.mapbase = bus_addr + type->offset[i]; in serial_card_probe() [all …]
|
H A D | 8250_ingenic.c | 233 struct uart_8250_port uart = {}; in ingenic_uart_probe() local 255 spin_lock_init(&uart.port.lock); in ingenic_uart_probe() 256 uart.port.type = PORT_16550A; in ingenic_uart_probe() 257 uart.port.flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE; in ingenic_uart_probe() 258 uart.port.mapbase = regs->start; in ingenic_uart_probe() 259 uart.port.serial_out = ingenic_uart_serial_out; in ingenic_uart_probe() 260 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe() 261 uart.port.dev = &pdev->dev; in ingenic_uart_probe() 262 uart.tx_loadsz = cdata->tx_loadsz; in ingenic_uart_probe() 263 uart.capabilities = UART_CAP_FIFO | UART_CAP_RTOIE; in ingenic_uart_probe() [all …]
|
H A D | 8250_fintek.c | 350 static void fintek_8250_set_termios_handler(struct uart_8250_port *uart) in fintek_8250_set_termios_handler() argument 352 struct fintek_8250 *pdata = uart->port.private_data; in fintek_8250_set_termios_handler() 359 uart->port.set_termios = fintek_8250_set_termios; in fintek_8250_set_termios_handler() 368 struct uart_8250_port *uart) in probe_setup_port() argument 395 if (aux != uart->port.iobase) in probe_setup_port() 400 irq_data = irq_get_irq_data(uart->port.irq); in probe_setup_port() 431 static void fintek_8250_set_rs485_handler(struct uart_8250_port *uart) in fintek_8250_set_rs485_handler() argument 433 struct fintek_8250 *pdata = uart->port.private_data; in fintek_8250_set_rs485_handler() 441 uart->port.rs485_config = fintek_8250_rs485_config; in fintek_8250_set_rs485_handler() 443 uart->port.rs485_supported = fintek_8250_rs485_supported_port0; in fintek_8250_set_rs485_handler() [all …]
|
H A D | 8250_lpss.c | 313 struct uart_8250_port uart; in lpss8250_probe() local 333 memset(&uart, 0, sizeof(struct uart_8250_port)); in lpss8250_probe() 335 uart.port.dev = &pdev->dev; in lpss8250_probe() 336 uart.port.irq = pci_irq_vector(pdev, 0); in lpss8250_probe() 337 uart.port.private_data = &lpss->data; in lpss8250_probe() 338 uart.port.type = PORT_16550A; in lpss8250_probe() 339 uart.port.iotype = UPIO_MEM32; in lpss8250_probe() 340 uart.port.regshift = 2; in lpss8250_probe() 341 uart.port.uartclk = lpss->board->base_baud * 16; in lpss8250_probe() 342 uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; in lpss8250_probe() [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | mvebu-uart.txt | 6 - "marvell,armada-3700-uart" for the standard variant of the UART 9 - "marvell,armada-3700-uart-ext" for the extended variant of the 14 is provided (possible only with the "marvell,armada-3700-uart" 23 (marvell,armada-3700-uart): "uart-sum", "uart-tx" and "uart-rx", 28 (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx", 38 compatible = "marvell,armada-3700-uart"; 45 interrupt-names = "uart-sum", "uart-tx", "uart-rx"; 49 compatible = "marvell,armada-3700-uart-ext"; 55 interrupt-names = "uart-tx", "uart-rx";
|
/linux/drivers/misc/ibmasm/ |
H A D | uart.c | 22 struct uart_8250_port uart; in ibmasm_register_uart() local 36 memset(&uart, 0, sizeof(uart)); in ibmasm_register_uart() 37 uart.port.irq = sp->irq; in ibmasm_register_uart() 38 uart.port.uartclk = 3686400; in ibmasm_register_uart() 39 uart.port.flags = UPF_SHARE_IRQ; in ibmasm_register_uart() 40 uart.port.iotype = UPIO_MEM; in ibmasm_register_uart() 41 uart.port.membase = iomem_base; in ibmasm_register_uart() 43 sp->serial_line = serial8250_register_8250_port(&uart); in ibmasm_register_uart()
|
/linux/arch/arm64/boot/dts/nuvoton/ |
H A D | nuvoton-common-npcm8xx.dtsi | 89 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 98 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 107 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 116 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 125 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 134 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart"; 143 compatible = "nuvoton,npcm845-uart", "nuvoton,npcm750-uart";
|
/linux/arch/powerpc/boot/dts/ |
H A D | cm5200.dts | 27 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 31 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 35 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 47 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
|
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
H A D | serial.txt | 4 - fsl,cpm1-smc-uart 5 - fsl,cpm2-smc-uart 6 - fsl,cpm1-scc-uart 7 - fsl,cpm2-scc-uart 8 - fsl,qe-uart 23 compatible = "fsl,mpc8272-scc-uart", 24 "fsl,cpm2-scc-uart";
|
/linux/tools/arch/x86/dell-uart-backlight-emulator/ |
H A D | Makefile | 4 dell-uart-backlight-emulator: dell-uart-backlight-emulator.c 15 @rm -f dell-uart-backlight-emulator 17 install : dell-uart-backlight-emulator 19 install -m 755 -p dell-uart-backlight-emulator $(DESTDIR)$(BINDIR)/dell-uart-backlight-emulator
|
/linux/drivers/acpi/ |
H A D | spcr.c | 90 char *uart; in acpi_parse_spcr() local 136 uart = "pl011"; in acpi_parse_spcr() 142 uart = "uart"; in acpi_parse_spcr() 195 uart = "qdf2400_e44"; in acpi_parse_spcr() 210 snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype, in acpi_parse_spcr() 213 snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, in acpi_parse_spcr() 223 err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); in acpi_parse_spcr()
|