Searched refs:new_serial (Results 1 – 12 of 12) sorted by relevance
/drivers/tty/serial/ |
D | serial_core.c | 682 struct serial_struct new_serial; in uart_set_info() local 691 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in uart_set_info() 694 new_port = new_serial.port; in uart_set_info() 696 new_port += (unsigned long) new_serial.port_high << HIGH_BITS_OFFSET; in uart_set_info() 698 new_serial.irq = irq_canonicalize(new_serial.irq); in uart_set_info() 699 close_delay = msecs_to_jiffies(new_serial.close_delay * 10); in uart_set_info() 700 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? in uart_set_info() 702 msecs_to_jiffies(new_serial.closing_wait * 10); in uart_set_info() 714 && new_serial.irq != uport->irq; in uart_set_info() 723 (unsigned long)new_serial.iomem_base != uport->mapbase || in uart_set_info() [all …]
|
D | 68328serial.c | 824 struct serial_struct new_serial; local 830 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) 835 if ((new_serial.baud_base != info->baud_base) || 836 (new_serial.type != info->type) || 837 (new_serial.close_delay != info->close_delay) || 838 ((new_serial.flags & ~S_USR_MASK) != 842 (new_serial.flags & S_USR_MASK)); 843 info->custom_divisor = new_serial.custom_divisor; 855 info->baud_base = new_serial.baud_base; 857 (new_serial.flags & S_FLAGS)); [all …]
|
D | crisv10.c | 3445 struct serial_struct new_serial; in set_serial_info() local 3449 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in set_serial_info() 3455 if ((new_serial.type != info->type) || in set_serial_info() 3456 (new_serial.close_delay != info->close_delay) || in set_serial_info() 3457 ((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() 3461 (new_serial.flags & ASYNC_USR_MASK)); in set_serial_info() 3473 info->baud_base = new_serial.baud_base; in set_serial_info() 3475 (new_serial.flags & ASYNC_FLAGS)); in set_serial_info() 3476 info->custom_divisor = new_serial.custom_divisor; in set_serial_info() 3477 info->type = new_serial.type; in set_serial_info() [all …]
|
/drivers/tty/ |
D | amiserial.c | 1055 struct serial_struct new_serial; in set_serial_info() local 1059 if (copy_from_user(&new_serial,new_info,sizeof(new_serial))) in set_serial_info() 1063 change_spd = ((new_serial.flags ^ port->flags) & ASYNC_SPD_MASK) || in set_serial_info() 1064 new_serial.custom_divisor != state->custom_divisor; in set_serial_info() 1065 if (new_serial.irq || new_serial.port != state->port || in set_serial_info() 1066 new_serial.xmit_fifo_size != state->xmit_fifo_size) { in set_serial_info() 1072 if ((new_serial.baud_base != state->baud_base) || in set_serial_info() 1073 (new_serial.close_delay != port->close_delay) || in set_serial_info() 1074 (new_serial.xmit_fifo_size != state->xmit_fifo_size) || in set_serial_info() 1075 ((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() [all …]
|
D | moxa.c | 2040 struct serial_struct new_serial; in moxa_set_serial_info() local 2042 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in moxa_set_serial_info() 2045 if (new_serial.irq != 0 || new_serial.port != 0 || in moxa_set_serial_info() 2046 new_serial.custom_divisor != 0 || in moxa_set_serial_info() 2047 new_serial.baud_base != 921600) in moxa_set_serial_info() 2051 if (((new_serial.flags & ~ASYNC_USR_MASK) != in moxa_set_serial_info() 2055 info->port.close_delay = new_serial.close_delay * HZ / 100; in moxa_set_serial_info() 2057 new_serial.flags = (new_serial.flags & ~ASYNC_FLAGS); in moxa_set_serial_info() 2058 new_serial.flags |= (info->port.flags & ASYNC_FLAGS); in moxa_set_serial_info() 2060 MoxaSetFifo(info, new_serial.type == PORT_16550A); in moxa_set_serial_info() [all …]
|
D | mxser.c | 1234 struct serial_struct new_serial; in mxser_set_serial_info() local 1242 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in mxser_set_serial_info() 1245 if (new_serial.irq != info->board->irq || in mxser_set_serial_info() 1246 new_serial.port != info->ioaddr) in mxser_set_serial_info() 1252 if ((new_serial.baud_base != info->baud_base) || in mxser_set_serial_info() 1253 (new_serial.close_delay != info->port.close_delay) || in mxser_set_serial_info() 1254 ((new_serial.flags & ~ASYNC_USR_MASK) != (info->port.flags & ~ASYNC_USR_MASK))) in mxser_set_serial_info() 1257 (new_serial.flags & ASYNC_USR_MASK)); in mxser_set_serial_info() 1264 (new_serial.flags & ASYNC_FLAGS)); in mxser_set_serial_info() 1265 port->close_delay = new_serial.close_delay * HZ / 100; in mxser_set_serial_info() [all …]
|
D | cyclades.c | 2339 struct serial_struct new_serial; in cy_set_serial_info() local 2342 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in cy_set_serial_info() 2347 if (new_serial.close_delay != info->port.close_delay || in cy_set_serial_info() 2348 new_serial.baud_base != info->baud || in cy_set_serial_info() 2349 (new_serial.flags & ASYNC_FLAGS & in cy_set_serial_info() 2357 (new_serial.flags & ASYNC_USR_MASK); in cy_set_serial_info() 2358 info->baud = new_serial.baud_base; in cy_set_serial_info() 2359 info->custom_divisor = new_serial.custom_divisor; in cy_set_serial_info() 2368 info->baud = new_serial.baud_base; in cy_set_serial_info() 2369 info->custom_divisor = new_serial.custom_divisor; in cy_set_serial_info() [all …]
|
D | rocket.c | 1233 struct rocket_config new_serial; in set_config() local 1235 if (copy_from_user(&new_serial, new_info, sizeof (new_serial))) in set_config() 1241 if ((new_serial.flags & ~ROCKET_USR_MASK) != (info->flags & ~ROCKET_USR_MASK)) { in set_config() 1245 info->flags = ((info->flags & ~ROCKET_USR_MASK) | (new_serial.flags & ROCKET_USR_MASK)); in set_config() 1251 info->flags = ((info->flags & ~ROCKET_FLAGS) | (new_serial.flags & ROCKET_FLAGS)); in set_config() 1252 info->port.close_delay = new_serial.close_delay; in set_config() 1253 info->port.closing_wait = new_serial.closing_wait; in set_config()
|
/drivers/usb/serial/ |
D | usb_wwan.c | 151 struct serial_struct new_serial; in set_serial_info() local 155 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 158 close_delay = new_serial.close_delay * 10; in set_serial_info() 159 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? in set_serial_info() 160 ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait * 10; in set_serial_info()
|
D | ftdi_sio.c | 1392 struct serial_struct new_serial; in set_serial_info() local 1395 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 1404 if (((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() 1410 (new_serial.flags & ASYNC_USR_MASK)); in set_serial_info() 1411 priv->custom_divisor = new_serial.custom_divisor; in set_serial_info() 1415 if (new_serial.baud_base != priv->baud_base) { in set_serial_info() 1423 (new_serial.flags & ASYNC_FLAGS)); in set_serial_info() 1424 priv->custom_divisor = new_serial.custom_divisor; in set_serial_info()
|
D | ti_usb_3410_5052.c | 1429 struct serial_struct new_serial; in ti_set_serial_info() local 1431 if (copy_from_user(&new_serial, new_arg, sizeof(new_serial))) in ti_set_serial_info() 1434 tport->tp_flags = new_serial.flags & TI_SET_SERIAL_FLAGS; in ti_set_serial_info() 1435 tport->tp_closing_wait = new_serial.closing_wait; in ti_set_serial_info()
|
/drivers/usb/class/ |
D | cdc-acm.c | 804 struct serial_struct new_serial; in set_serial_info() local 808 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 811 close_delay = new_serial.close_delay * 10; in set_serial_info() 812 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? in set_serial_info() 813 ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait * 10; in set_serial_info()
|