/drivers/tty/serial/ |
D | 68328serial.c | 833 struct serial_struct new_serial; local 839 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) 844 if ((new_serial.baud_base != info->baud_base) || 845 (new_serial.type != info->type) || 846 (new_serial.close_delay != port->close_delay) || 847 ((new_serial.flags & ~ASYNC_USR_MASK) != 851 (new_serial.flags & ASYNC_USR_MASK)); 852 info->custom_divisor = new_serial.custom_divisor; 864 info->baud_base = new_serial.baud_base; 866 (new_serial.flags & ASYNC_FLAGS)); [all …]
|
D | crisv10.c | 3242 struct serial_struct new_serial; in set_serial_info() local 3246 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in set_serial_info() 3252 if ((new_serial.type != info->type) || in set_serial_info() 3253 (new_serial.close_delay != info->port.close_delay) || in set_serial_info() 3254 ((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() 3258 (new_serial.flags & ASYNC_USR_MASK)); in set_serial_info() 3270 info->baud_base = new_serial.baud_base; in set_serial_info() 3272 (new_serial.flags & ASYNC_FLAGS)); in set_serial_info() 3273 info->custom_divisor = new_serial.custom_divisor; in set_serial_info() 3274 info->type = new_serial.type; in set_serial_info() [all …]
|
D | serial_core.c | 927 struct serial_struct new_serial; in uart_set_info_user() local 931 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in uart_set_info_user() 942 retval = uart_set_info(tty, port, state, &new_serial); in uart_set_info_user()
|
/drivers/tty/ |
D | amiserial.c | 1045 struct serial_struct new_serial; in set_serial_info() local 1049 if (copy_from_user(&new_serial,new_info,sizeof(new_serial))) in set_serial_info() 1053 change_spd = ((new_serial.flags ^ port->flags) & ASYNC_SPD_MASK) || in set_serial_info() 1054 new_serial.custom_divisor != state->custom_divisor; in set_serial_info() 1055 if (new_serial.irq || new_serial.port != state->port || in set_serial_info() 1056 new_serial.xmit_fifo_size != state->xmit_fifo_size) { in set_serial_info() 1062 if ((new_serial.baud_base != state->baud_base) || in set_serial_info() 1063 (new_serial.close_delay != port->close_delay) || in set_serial_info() 1064 (new_serial.xmit_fifo_size != state->xmit_fifo_size) || in set_serial_info() 1065 ((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() [all …]
|
D | moxa.c | 2054 struct serial_struct new_serial; in moxa_set_serial_info() local 2056 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in moxa_set_serial_info() 2059 if (new_serial.irq != 0 || new_serial.port != 0 || in moxa_set_serial_info() 2060 new_serial.custom_divisor != 0 || in moxa_set_serial_info() 2061 new_serial.baud_base != 921600) in moxa_set_serial_info() 2065 if (((new_serial.flags & ~ASYNC_USR_MASK) != in moxa_set_serial_info() 2069 info->port.close_delay = new_serial.close_delay * HZ / 100; in moxa_set_serial_info() 2071 new_serial.flags = (new_serial.flags & ~ASYNC_FLAGS); in moxa_set_serial_info() 2072 new_serial.flags |= (info->port.flags & ASYNC_FLAGS); in moxa_set_serial_info() 2074 MoxaSetFifo(info, new_serial.type == PORT_16550A); in moxa_set_serial_info() [all …]
|
D | mxser.c | 1238 struct serial_struct new_serial; in mxser_set_serial_info() local 1246 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in mxser_set_serial_info() 1249 if (new_serial.irq != info->board->irq || in mxser_set_serial_info() 1250 new_serial.port != info->ioaddr) in mxser_set_serial_info() 1256 if ((new_serial.baud_base != info->baud_base) || in mxser_set_serial_info() 1257 (new_serial.close_delay != info->port.close_delay) || in mxser_set_serial_info() 1258 ((new_serial.flags & ~ASYNC_USR_MASK) != (info->port.flags & ~ASYNC_USR_MASK))) in mxser_set_serial_info() 1261 (new_serial.flags & ASYNC_USR_MASK)); in mxser_set_serial_info() 1268 (new_serial.flags & ASYNC_FLAGS)); in mxser_set_serial_info() 1269 port->close_delay = new_serial.close_delay * HZ / 100; in mxser_set_serial_info() [all …]
|
D | cyclades.c | 2308 struct serial_struct new_serial; in cy_set_serial_info() local 2311 if (copy_from_user(&new_serial, new_info, sizeof(new_serial))) in cy_set_serial_info() 2316 if (new_serial.close_delay != info->port.close_delay || in cy_set_serial_info() 2317 new_serial.baud_base != info->baud || in cy_set_serial_info() 2318 (new_serial.flags & ASYNC_FLAGS & in cy_set_serial_info() 2326 (new_serial.flags & ASYNC_USR_MASK); in cy_set_serial_info() 2327 info->baud = new_serial.baud_base; in cy_set_serial_info() 2328 info->custom_divisor = new_serial.custom_divisor; in cy_set_serial_info() 2337 info->baud = new_serial.baud_base; in cy_set_serial_info() 2338 info->custom_divisor = new_serial.custom_divisor; in cy_set_serial_info() [all …]
|
D | rocket.c | 1214 struct rocket_config new_serial; in set_config() local 1216 if (copy_from_user(&new_serial, new_info, sizeof (new_serial))) in set_config() 1222 if ((new_serial.flags & ~ROCKET_USR_MASK) != (info->flags & ~ROCKET_USR_MASK)) { in set_config() 1226 info->flags = ((info->flags & ~ROCKET_USR_MASK) | (new_serial.flags & ROCKET_USR_MASK)); in set_config() 1232 info->flags = ((info->flags & ~ROCKET_FLAGS) | (new_serial.flags & ROCKET_FLAGS)); in set_config() 1233 info->port.close_delay = new_serial.close_delay; in set_config() 1234 info->port.closing_wait = new_serial.closing_wait; in set_config()
|
/drivers/usb/serial/ |
D | usb_wwan.c | 163 struct serial_struct new_serial; in set_serial_info() local 167 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 170 close_delay = new_serial.close_delay * 10; in set_serial_info() 171 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? in set_serial_info() 172 ASYNC_CLOSING_WAIT_NONE : new_serial.closing_wait * 10; in set_serial_info()
|
D | ti_usb_3410_5052.c | 1253 struct serial_struct new_serial; in ti_set_serial_info() local 1256 if (copy_from_user(&new_serial, new_arg, sizeof(new_serial))) in ti_set_serial_info() 1259 cwait = new_serial.closing_wait; in ti_set_serial_info() 1261 cwait = msecs_to_jiffies(10 * new_serial.closing_wait); in ti_set_serial_info() 1263 tport->tp_flags = new_serial.flags & TI_SET_SERIAL_FLAGS; in ti_set_serial_info()
|
D | ftdi_sio.c | 1504 struct serial_struct new_serial; in set_serial_info() local 1507 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 1516 if (((new_serial.flags & ~ASYNC_USR_MASK) != in set_serial_info() 1522 (new_serial.flags & ASYNC_USR_MASK)); in set_serial_info() 1523 priv->custom_divisor = new_serial.custom_divisor; in set_serial_info() 1527 if (new_serial.baud_base != priv->baud_base) { in set_serial_info() 1535 (new_serial.flags & ASYNC_FLAGS)); in set_serial_info() 1536 priv->custom_divisor = new_serial.custom_divisor; in set_serial_info()
|
/drivers/usb/class/ |
D | cdc-acm.c | 869 struct serial_struct new_serial; in set_serial_info() local 874 if (copy_from_user(&new_serial, newinfo, sizeof(new_serial))) in set_serial_info() 877 close_delay = msecs_to_jiffies(new_serial.close_delay * 10); in set_serial_info() 878 closing_wait = new_serial.closing_wait == ASYNC_CLOSING_WAIT_NONE ? in set_serial_info() 880 msecs_to_jiffies(new_serial.closing_wait * 10); in set_serial_info() 891 if ((new_serial.close_delay != old_close_delay) || in set_serial_info() 892 (new_serial.closing_wait != old_closing_wait)) in set_serial_info()
|