/drivers/tty/serial/ |
D | bfin_uart.c | 70 static void bfin_serial_dma_tx_chars(struct bfin_serial_port *uart); 72 static void bfin_serial_tx_chars(struct bfin_serial_port *uart); 81 struct bfin_serial_port *uart = (struct bfin_serial_port *)port; in bfin_serial_get_mctrl() local 82 if (uart->cts_pin < 0) in bfin_serial_get_mctrl() 86 if (UART_GET_CTS(uart)) in bfin_serial_get_mctrl() 94 struct bfin_serial_port *uart = (struct bfin_serial_port *)port; in bfin_serial_set_mctrl() local 95 if (uart->rts_pin < 0) in bfin_serial_set_mctrl() 100 UART_ENABLE_RTS(uart); in bfin_serial_set_mctrl() 102 UART_DISABLE_RTS(uart); in bfin_serial_set_mctrl() 110 struct bfin_serial_port *uart = dev_id; in bfin_serial_mctrl_cts_int() local [all …]
|
D | men_z135_uart.c | 139 static inline void men_z135_reg_set(struct men_z135_port *uart, in men_z135_reg_set() argument 142 struct uart_port *port = &uart->port; in men_z135_reg_set() 146 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_set() 152 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_set() 161 static void men_z135_reg_clr(struct men_z135_port *uart, in men_z135_reg_clr() argument 164 struct uart_port *port = &uart->port; in men_z135_reg_clr() 168 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_clr() 174 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_clr() 184 static void men_z135_handle_modem_status(struct men_z135_port *uart) in men_z135_handle_modem_status() argument 188 msr = (uart->stat_reg >> 8) & 0xff; in men_z135_handle_modem_status() [all …]
|
D | timbuart.c | 67 struct timbuart_port *uart = in timbuart_start_tx() local 71 tasklet_schedule(&uart->tasklet); in timbuart_start_tx() 133 struct timbuart_port *uart = in timbuart_handle_tx_port() local 152 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port() 189 struct timbuart_port *uart = (struct timbuart_port *)arg; in timbuart_tasklet() local 192 spin_lock(&uart->port.lock); in timbuart_tasklet() 194 isr = ioread32(uart->port.membase + TIMBUART_ISR); in timbuart_tasklet() 195 dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr); in timbuart_tasklet() 197 if (!uart->usedma) in timbuart_tasklet() 198 timbuart_handle_tx_port(&uart->port, isr, &ier); in timbuart_tasklet() [all …]
|
D | vt8500_serial.c | 108 struct uart_port uart; member 138 uart); in vt8500_stop_tx() 148 uart); in vt8500_stop_rx() 158 uart); in vt8500_enable_ms() 239 uart); in vt8500_start_tx() 317 container_of(port, struct vt8500_port, uart); in vt8500_set_baud_rate() 341 container_of(port, struct vt8500_port, uart); in vt8500_startup() 360 container_of(port, struct vt8500_port, uart); in vt8500_shutdown() 365 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); in vt8500_shutdown() 366 vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); in vt8500_shutdown() [all …]
|
D | arc_uart.c | 83 #define UART_SET_DATA(uart, val) UART_REG_SET(uart, R_DATA, val) argument 84 #define UART_GET_DATA(uart) UART_REG_GET(uart, R_DATA) argument 86 #define UART_SET_BAUDH(uart, val) UART_REG_SET(uart, R_BAUDH, val) argument 87 #define UART_SET_BAUDL(uart, val) UART_REG_SET(uart, R_BAUDL, val) argument 89 #define UART_CLR_STATUS(uart, val) UART_REG_CLR(uart, R_STS, val) argument 90 #define UART_GET_STATUS(uart) UART_REG_GET(uart, R_STS) argument 92 #define UART_ALL_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB|TXIENB) argument 93 #define UART_RX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB) argument 94 #define UART_TX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, TXIENB) argument 96 #define UART_ALL_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB|TXIENB) argument [all …]
|
D | tilegx.c | 46 struct uart_port uart; member 87 struct tty_port *port = &tile_uart->uart.state->port; in handle_receive() 106 spin_unlock(&tile_uart->uart.lock); in handle_receive() 108 spin_lock(&tile_uart->uart.lock); in handle_receive() 143 port = &tile_uart->uart; in handle_transmit() 186 tile_uart = container_of(port, struct tile_uart_port, uart); in tilegx_interrupt() 214 tile_uart = container_of(port, struct tile_uart_port, uart); in tilegx_tx_empty() 264 tile_uart = container_of(port, struct tile_uart_port, uart); in tilegx_start_tx() 306 tile_uart = container_of(port, struct tile_uart_port, uart); in tilegx_stop_rx() 336 tile_uart = container_of(port, struct tile_uart_port, uart); in tilegx_startup() [all …]
|
D | serial_txx9.c | 1023 struct uart_txx9_port *uart; in serial_txx9_register_port() local 1028 uart = &serial_txx9_ports[i]; in serial_txx9_register_port() 1029 if (uart_match_port(&uart->port, port)) { in serial_txx9_register_port() 1030 uart_remove_one_port(&serial_txx9_reg, &uart->port); in serial_txx9_register_port() 1037 uart = &serial_txx9_ports[i]; in serial_txx9_register_port() 1038 if (!(uart->port.iobase || uart->port.mapbase)) in serial_txx9_register_port() 1043 uart->port.iobase = port->iobase; in serial_txx9_register_port() 1044 uart->port.membase = port->membase; in serial_txx9_register_port() 1045 uart->port.irq = port->irq; in serial_txx9_register_port() 1046 uart->port.uartclk = port->uartclk; in serial_txx9_register_port() [all …]
|
D | sccnxp.c | 112 struct uart_driver uart; member 459 for (i = 0; i < s->uart.nr; i++) { in sccnxp_handle_events() 926 s->uart.owner = THIS_MODULE; in sccnxp_probe() 927 s->uart.dev_name = "ttySC"; in sccnxp_probe() 928 s->uart.major = SCCNXP_MAJOR; in sccnxp_probe() 929 s->uart.minor = SCCNXP_MINOR; in sccnxp_probe() 930 s->uart.nr = s->chip->nr; in sccnxp_probe() 932 s->uart.cons = &s->console; in sccnxp_probe() 933 s->uart.cons->device = uart_console_device; in sccnxp_probe() 934 s->uart.cons->write = sccnxp_console_write; in sccnxp_probe() [all …]
|
D | msm_serial.c | 183 struct uart_port uart; member 195 #define UART_TO_MSM(uart_port) container_of(uart_port, struct msm_port, uart) 285 msm_stop_dma(&msm_port->uart, dma); in msm_release_dma() 293 msm_stop_dma(&msm_port->uart, dma); in msm_release_dma() 303 struct device *dev = msm_port->uart.dev; in msm_request_tx_dma() 346 struct device *dev = msm_port->uart.dev; in msm_request_rx_dma() 433 struct uart_port *port = &msm_port->uart; in msm_complete_tx_dma() 482 struct circ_buf *xmit = &msm_port->uart.state->xmit; in msm_handle_tx_dma() 483 struct uart_port *port = &msm_port->uart; in msm_handle_tx_dma() 543 struct uart_port *port = &msm_port->uart; in msm_complete_rx_dma() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_core.c | 807 struct uart_8250_port uart; in serial8250_probe() local 810 memset(&uart, 0, sizeof(uart)); in serial8250_probe() 816 uart.port.iobase = p->iobase; in serial8250_probe() 817 uart.port.membase = p->membase; in serial8250_probe() 818 uart.port.irq = p->irq; in serial8250_probe() 819 uart.port.irqflags = p->irqflags; in serial8250_probe() 820 uart.port.uartclk = p->uartclk; in serial8250_probe() 821 uart.port.regshift = p->regshift; in serial8250_probe() 822 uart.port.iotype = p->iotype; in serial8250_probe() 823 uart.port.flags = p->flags; in serial8250_probe() [all …]
|
D | 8250_pnp.c | 442 struct uart_8250_port uart, *port; in serial_pnp_probe() local 451 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe() 453 uart.port.irq = pnp_irq(dev, 0); in serial_pnp_probe() 455 uart.port.iobase = pnp_port_start(dev, 2); in serial_pnp_probe() 456 uart.port.iotype = UPIO_PORT; in serial_pnp_probe() 458 uart.port.iobase = pnp_port_start(dev, 0); in serial_pnp_probe() 459 uart.port.iotype = UPIO_PORT; in serial_pnp_probe() 461 uart.port.mapbase = pnp_mem_start(dev, 0); in serial_pnp_probe() 462 uart.port.iotype = UPIO_MEM; in serial_pnp_probe() 463 uart.port.flags = UPF_IOREMAP; in serial_pnp_probe() [all …]
|
D | 8250_hp300.c | 159 struct uart_8250_port uart; in hpdca_init_one() local 168 memset(&uart, 0, sizeof(uart)); in hpdca_init_one() 171 uart.port.iotype = UPIO_MEM; in hpdca_init_one() 172 uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF; in hpdca_init_one() 173 uart.port.irq = d->ipl; in hpdca_init_one() 174 uart.port.uartclk = HPDCA_BAUD_BASE * 16; in hpdca_init_one() 175 uart.port.mapbase = (d->resource.start + UART_OFFSET); in hpdca_init_one() 176 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one() 177 uart.port.regshift = 1; in hpdca_init_one() 178 uart.port.dev = &d->dev; in hpdca_init_one() [all …]
|
D | 8250_lpc18xx.c | 108 struct uart_8250_port uart; in lpc18xx_serial_probe() local 124 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe() 126 uart.port.membase = devm_ioremap(&pdev->dev, res->start, in lpc18xx_serial_probe() 128 if (!uart.port.membase) in lpc18xx_serial_probe() 161 uart.port.line = ret; in lpc18xx_serial_probe() 166 spin_lock_init(&uart.port.lock); in lpc18xx_serial_probe() 167 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe() 168 uart.port.irq = irq; in lpc18xx_serial_probe() 169 uart.port.iotype = UPIO_MEM32; in lpc18xx_serial_probe() 170 uart.port.mapbase = res->start; in lpc18xx_serial_probe() [all …]
|
D | 8250_moxa.c | 52 struct uart_8250_port uart; in moxa8250_probe() local 73 memset(&uart, 0, sizeof(struct uart_8250_port)); in moxa8250_probe() 75 uart.port.dev = &pdev->dev; in moxa8250_probe() 76 uart.port.irq = pdev->irq; in moxa8250_probe() 77 uart.port.uartclk = MOXA_BASE_BAUD * 16; in moxa8250_probe() 78 uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in moxa8250_probe() 96 uart.port.iotype = UPIO_MEM; in moxa8250_probe() 97 uart.port.iobase = 0; in moxa8250_probe() 98 uart.port.mapbase = baseaddr + offset; in moxa8250_probe() 99 uart.port.membase = ioaddr + offset; in moxa8250_probe() [all …]
|
D | 8250_bcm2835aux.c | 24 struct uart_8250_port uart; member 41 spin_lock_init(&data->uart.port.lock); in bcm2835aux_serial_probe() 42 data->uart.capabilities = UART_CAP_FIFO; in bcm2835aux_serial_probe() 43 data->uart.port.dev = &pdev->dev; in bcm2835aux_serial_probe() 44 data->uart.port.regshift = 2; in bcm2835aux_serial_probe() 45 data->uart.port.type = PORT_16550; in bcm2835aux_serial_probe() 46 data->uart.port.iotype = UPIO_MEM; in bcm2835aux_serial_probe() 47 data->uart.port.fifosize = 8; in bcm2835aux_serial_probe() 48 data->uart.port.flags = UPF_SHARE_IRQ | in bcm2835aux_serial_probe() 67 data->uart.port.irq = ret; in bcm2835aux_serial_probe() [all …]
|
D | 8250_gsc.c | 29 struct uart_8250_port uart; in serial_init_chip() local 56 memset(&uart, 0, sizeof(uart)); in serial_init_chip() 57 uart.port.iotype = UPIO_MEM; in serial_init_chip() 59 uart.port.uartclk = (dev->id.sversion != 0xad) ? in serial_init_chip() 61 uart.port.mapbase = address; in serial_init_chip() 62 uart.port.membase = ioremap_nocache(address, 16); 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() 67 err = serial8250_register_8250_port(&uart); in serial_init_chip() [all …]
|
D | 8250_mtk.c | 182 struct uart_8250_port uart = {}; in mtk8250_probe() local 193 uart.port.membase = devm_ioremap(&pdev->dev, regs->start, in mtk8250_probe() 195 if (!uart.port.membase) in mtk8250_probe() 203 err = mtk8250_probe_of(pdev, &uart.port, data); in mtk8250_probe() 209 spin_lock_init(&uart.port.lock); in mtk8250_probe() 210 uart.port.mapbase = regs->start; in mtk8250_probe() 211 uart.port.irq = irq->start; in mtk8250_probe() 212 uart.port.pm = mtk8250_do_pm; in mtk8250_probe() 213 uart.port.type = PORT_16550; in mtk8250_probe() 214 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; in mtk8250_probe() [all …]
|
D | 8250_ingenic.c | 206 struct uart_8250_port uart = {}; in ingenic_uart_probe() local 230 spin_lock_init(&uart.port.lock); in ingenic_uart_probe() 231 uart.port.type = PORT_16550A; in ingenic_uart_probe() 232 uart.port.flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE; in ingenic_uart_probe() 233 uart.port.iotype = UPIO_MEM; in ingenic_uart_probe() 234 uart.port.mapbase = regs->start; in ingenic_uart_probe() 235 uart.port.regshift = 2; in ingenic_uart_probe() 236 uart.port.serial_out = ingenic_uart_serial_out; in ingenic_uart_probe() 237 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe() 238 uart.port.irq = irq->start; in ingenic_uart_probe() [all …]
|
D | 8250_acorn.c | 46 struct uart_8250_port uart; in serial_card_probe() local 65 memset(&uart, 0, sizeof(struct uart_8250_port)); in serial_card_probe() 66 uart.port.irq = ec->irq; in serial_card_probe() 67 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in serial_card_probe() 68 uart.port.uartclk = type->uartclk; in serial_card_probe() 69 uart.port.iotype = UPIO_MEM; in serial_card_probe() 70 uart.port.regshift = 2; in serial_card_probe() 71 uart.port.dev = &ec->dev; in serial_card_probe() 74 uart.port.membase = info->vaddr + type->offset[i]; in serial_card_probe() 75 uart.port.mapbase = bus_addr + type->offset[i]; in serial_card_probe() [all …]
|
D | 8250_lpss.c | 275 struct uart_8250_port uart; in lpss8250_probe() local 291 memset(&uart, 0, sizeof(struct uart_8250_port)); in lpss8250_probe() 293 uart.port.dev = &pdev->dev; in lpss8250_probe() 294 uart.port.irq = pdev->irq; in lpss8250_probe() 295 uart.port.private_data = lpss; in lpss8250_probe() 296 uart.port.type = PORT_16550A; in lpss8250_probe() 297 uart.port.iotype = UPIO_MEM; in lpss8250_probe() 298 uart.port.regshift = 2; in lpss8250_probe() 299 uart.port.uartclk = lpss->board->base_baud * 16; in lpss8250_probe() 300 uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; in lpss8250_probe() [all …]
|
D | 8250_mid.c | 244 struct uart_8250_port uart; in mid8250_probe() local 262 memset(&uart, 0, sizeof(struct uart_8250_port)); in mid8250_probe() 264 uart.port.dev = &pdev->dev; in mid8250_probe() 265 uart.port.irq = pdev->irq; in mid8250_probe() 266 uart.port.private_data = mid; in mid8250_probe() 267 uart.port.type = PORT_16750; in mid8250_probe() 268 uart.port.iotype = UPIO_MEM; in mid8250_probe() 269 uart.port.uartclk = mid->board->base_baud * 16; in mid8250_probe() 270 uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; in mid8250_probe() 271 uart.port.set_termios = mid8250_set_termios; in mid8250_probe() [all …]
|
D | serial_cs.c | 107 static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_8250_port *uart) in quirk_setup_brainboxes_0104() argument 109 uart->port.uartclk = 14745600; in quirk_setup_brainboxes_0104() 345 struct uart_8250_port uart; in setup_serial() local 348 memset(&uart, 0, sizeof(uart)); in setup_serial() 349 uart.port.iobase = iobase; in setup_serial() 350 uart.port.irq = irq; in setup_serial() 351 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_SHARE_IRQ; in setup_serial() 352 uart.port.uartclk = 1843200; in setup_serial() 353 uart.port.dev = &handle->dev; in setup_serial() 355 uart.port.flags |= UPF_BUGGY_UART; in setup_serial() [all …]
|
/drivers/firmware/ |
D | pcdp.c | 23 setup_serial_console(struct pcdp_uart *uart) in setup_serial_console() argument 30 mmio = (uart->addr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY); in setup_serial_console() 32 mmio ? "mmio" : "io", uart->addr.address); in setup_serial_console() 33 if (uart->baud) { in setup_serial_console() 34 p += sprintf(p, ",%llu", uart->baud); in setup_serial_console() 35 if (uart->bits) { in setup_serial_console() 36 switch (uart->parity) { in setup_serial_console() 41 p += sprintf(p, "%c%d", parity, uart->bits); in setup_serial_console() 90 struct pcdp_uart *uart; in efi_setup_pcdp_console() local 112 for (i = 0, uart = pcdp->uart; i < pcdp->num_uarts; i++, uart++) { in efi_setup_pcdp_console() [all …]
|
/drivers/misc/ibmasm/ |
D | uart.c | 36 struct uart_8250_port uart; in ibmasm_register_uart() local 50 memset(&uart, 0, sizeof(uart)); in ibmasm_register_uart() 51 uart.port.irq = sp->irq; in ibmasm_register_uart() 52 uart.port.uartclk = 3686400; in ibmasm_register_uart() 53 uart.port.flags = UPF_SHARE_IRQ; in ibmasm_register_uart() 54 uart.port.iotype = UPIO_MEM; in ibmasm_register_uart() 55 uart.port.membase = iomem_base; in ibmasm_register_uart() 57 sp->serial_line = serial8250_register_8250_port(&uart); in ibmasm_register_uart()
|
/drivers/acpi/ |
D | spcr.c | 38 char *uart; in parse_spcr() local 69 uart = "pl011"; in parse_spcr() 73 uart = "uart"; in parse_spcr() 98 snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, in parse_spcr() 106 err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); in parse_spcr()
|