/drivers/net/caif/ |
D | caif_serial.c | 87 static inline void update_tty_status(struct ser_device *ser) in update_tty_status() argument 89 ser->tty_status = in update_tty_status() 90 ser->tty->stopped << 5 | in update_tty_status() 91 ser->tty->flow_stopped << 3 | in update_tty_status() 92 ser->tty->packet << 2 | in update_tty_status() 93 ser->tty->port->low_latency << 1; in update_tty_status() 95 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) in debugfs_init() argument 97 ser->debugfs_tty_dir = in debugfs_init() 99 if (!IS_ERR(ser->debugfs_tty_dir)) { in debugfs_init() 101 ser->debugfs_tty_dir, in debugfs_init() [all …]
|
/drivers/staging/speakup/ |
D | serialio.c | 22 const struct old_serial_port *ser = rs_table + index; in spk_serial_init() local 26 quot = ser->baud_base / baud; in spk_serial_init() 37 if (synth_request_region(ser->port, 8)) { in spk_serial_init() 40 __release_region(&ioport_resource, ser->port, 8); in spk_serial_init() 41 err = synth_request_region(ser->port, 8); in spk_serial_init() 44 ser->port, err); in spk_serial_init() 51 outb(cval | UART_LCR_DLAB, ser->port + UART_LCR); /* set DLAB */ in spk_serial_init() 52 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ in spk_serial_init() 53 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */ in spk_serial_init() 54 outb(cval, ser->port + UART_LCR); /* reset DLAB */ in spk_serial_init() [all …]
|
D | synth.c | 37 const struct old_serial_port *ser; in spk_serial_synth_probe() local 40 if ((synth->ser >= SPK_LO_TTY) && (synth->ser <= SPK_HI_TTY)) { in spk_serial_synth_probe() 41 ser = spk_serial_init(synth->ser); in spk_serial_synth_probe() 42 if (ser == NULL) { in spk_serial_synth_probe() 45 outb_p(0, ser->port); in spk_serial_synth_probe() 47 outb_p('\r', ser->port); in spk_serial_synth_probe() 51 pr_warn("ttyS%i is an invalid port\n", synth->ser); in spk_serial_synth_probe() 58 synth->long_name, synth->ser, synth->version); in spk_serial_synth_probe()
|
D | speakup_dummy.c | 126 module_param_named(ser, synth_dummy.ser, int, S_IRUGO); 129 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_txprt.c | 124 module_param_named(ser, synth_txprt.ser, int, S_IRUGO); 127 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_bns.c | 124 module_param_named(ser, synth_bns.ser, int, S_IRUGO); 127 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_acntsa.c | 140 module_param_named(ser, synth_acntsa.ser, int, S_IRUGO); 143 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_spkout.c | 142 module_param_named(ser, synth_spkout.ser, int, S_IRUGO); 145 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_audptr.c | 172 module_param_named(ser, synth_audptr.ser, int, S_IRUGO); 175 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_ltlk.c | 171 module_param_named(ser, synth_ltlk.ser, int, S_IRUGO); 174 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_apollo.c | 204 module_param_named(ser, synth_apollo.ser, int, S_IRUGO); 207 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_decext.c | 230 module_param_named(ser, synth_decext.ser, int, S_IRUGO); 233 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
D | speakup_dectlk.c | 299 module_param_named(ser, synth_dectlk.ser, int, S_IRUGO); 302 MODULE_PARM_DESC(ser, "Set the serial port for the synthesizer (0-based).");
|
/drivers/isdn/gigaset/ |
D | ser-gigaset.c | 65 struct tty_struct *tty = cs->hw.ser->tty; in write_modem() 107 struct tty_struct *tty = cs->hw.ser->tty; in send_cb() 342 bcs->hw.ser = NULL; in gigaset_initbcshw() 371 if (!cs->hw.ser) in gigaset_freecshw() 373 dev_set_drvdata(&cs->hw.ser->dev.dev, NULL); in gigaset_freecshw() 374 platform_device_unregister(&cs->hw.ser->dev); in gigaset_freecshw() 375 kfree(cs->hw.ser); in gigaset_freecshw() 376 cs->hw.ser = NULL; in gigaset_freecshw() 402 cs->hw.ser = scs; in gigaset_initcshw() 404 cs->hw.ser->dev.name = GIGASET_MODULENAME; in gigaset_initcshw() [all …]
|
/drivers/usb/serial/ |
D | f81232.c | 288 struct serial_struct ser; in f81232_ioctl() local 296 memset(&ser, 0, sizeof ser); in f81232_ioctl() 297 ser.type = PORT_16654; in f81232_ioctl() 298 ser.line = port->serial->minor; in f81232_ioctl() 299 ser.port = port->number; in f81232_ioctl() 300 ser.baud_base = 460800; in f81232_ioctl() 302 if (copy_to_user((void __user *)arg, &ser, sizeof ser)) in f81232_ioctl()
|
D | pl2303.c | 635 struct serial_struct ser; in pl2303_ioctl() local 642 memset(&ser, 0, sizeof ser); in pl2303_ioctl() 643 ser.type = PORT_16654; in pl2303_ioctl() 644 ser.line = port->serial->minor; in pl2303_ioctl() 645 ser.port = port->number; in pl2303_ioctl() 646 ser.baud_base = 460800; in pl2303_ioctl() 648 if (copy_to_user((void __user *)arg, &ser, sizeof ser)) in pl2303_ioctl()
|
/drivers/tty/serial/ |
D | pnx8xxx_uart.c | 594 pnx8xxx_verify_port(struct uart_port *port, struct serial_struct *ser) in pnx8xxx_verify_port() argument 599 if (ser->type != PORT_UNKNOWN && ser->type != PORT_PNX8XXX) in pnx8xxx_verify_port() 601 if (sport->port.irq != ser->irq) in pnx8xxx_verify_port() 603 if (ser->io_type != SERIAL_IO_MEM) in pnx8xxx_verify_port() 605 if (sport->port.uartclk / 16 != ser->baud_base) in pnx8xxx_verify_port() 607 if ((void *)sport->port.mapbase != ser->iomem_base) in pnx8xxx_verify_port() 609 if (sport->port.iobase != ser->port) in pnx8xxx_verify_port() 611 if (ser->hub6 != 0) in pnx8xxx_verify_port()
|
D | sa1100.c | 556 sa1100_verify_port(struct uart_port *port, struct serial_struct *ser) in sa1100_verify_port() argument 561 if (ser->type != PORT_UNKNOWN && ser->type != PORT_SA1100) in sa1100_verify_port() 563 if (sport->port.irq != ser->irq) in sa1100_verify_port() 565 if (ser->io_type != SERIAL_IO_MEM) in sa1100_verify_port() 567 if (sport->port.uartclk / 16 != ser->baud_base) in sa1100_verify_port() 569 if ((void *)sport->port.mapbase != ser->iomem_base) in sa1100_verify_port() 571 if (sport->port.iobase != ser->port) in sa1100_verify_port() 573 if (ser->hub6 != 0) in sa1100_verify_port()
|
D | 21285.c | 329 static int serial21285_verify_port(struct uart_port *port, struct serial_struct *ser) in serial21285_verify_port() argument 332 if (ser->type != PORT_UNKNOWN && ser->type != PORT_21285) in serial21285_verify_port() 334 if (ser->irq <= 0) in serial21285_verify_port() 336 if (ser->baud_base != port->uartclk / 16) in serial21285_verify_port()
|
D | apbuart.c | 319 struct serial_struct *ser) in apbuart_verify_port() argument 322 if (ser->type != PORT_UNKNOWN && ser->type != PORT_APBUART) in apbuart_verify_port() 324 if (ser->irq < 0 || ser->irq >= NR_IRQS) in apbuart_verify_port() 326 if (ser->baud_base < 9600) in apbuart_verify_port()
|
D | ar933x_uart.c | 463 struct serial_struct *ser) in ar933x_uart_verify_port() argument 467 if (ser->type != PORT_UNKNOWN && in ar933x_uart_verify_port() 468 ser->type != PORT_AR933X) in ar933x_uart_verify_port() 471 if (ser->irq < 0 || ser->irq >= NR_IRQS) in ar933x_uart_verify_port() 474 if (ser->baud_base < up->min_baud || in ar933x_uart_verify_port() 475 ser->baud_base > up->max_baud) in ar933x_uart_verify_port()
|
D | xilinx_uartps.c | 630 struct serial_struct *ser) in xuartps_verify_port() argument 632 if (ser->type != PORT_UNKNOWN && ser->type != PORT_XUARTPS) in xuartps_verify_port() 634 if (port->irq != ser->irq) in xuartps_verify_port() 636 if (ser->io_type != UPIO_MEM) in xuartps_verify_port() 638 if (port->iobase != ser->port) in xuartps_verify_port() 640 if (ser->hub6 != 0) in xuartps_verify_port()
|
D | lantiq.c | 552 struct serial_struct *ser) in lqasc_verify_port() argument 555 if (ser->type != PORT_UNKNOWN && ser->type != PORT_LTQ_ASC) in lqasc_verify_port() 557 if (ser->irq < 0 || ser->irq >= NR_IRQS) in lqasc_verify_port() 559 if (ser->baud_base < 9600) in lqasc_verify_port()
|
D | serial_ks8695.c | 516 static int ks8695uart_verify_port(struct uart_port *port, struct serial_struct *ser) in ks8695uart_verify_port() argument 520 if (ser->type != PORT_UNKNOWN && ser->type != PORT_KS8695) in ks8695uart_verify_port() 522 if (ser->irq != port->irq) in ks8695uart_verify_port() 524 if (ser->baud_base < 9600) in ks8695uart_verify_port()
|
D | amba-pl010.c | 517 static int pl010_verify_port(struct uart_port *port, struct serial_struct *ser) in pl010_verify_port() argument 520 if (ser->type != PORT_UNKNOWN && ser->type != PORT_AMBA) in pl010_verify_port() 522 if (ser->irq < 0 || ser->irq >= nr_irqs) in pl010_verify_port() 524 if (ser->baud_base < 9600) in pl010_verify_port()
|