/linux-4.4.14/drivers/usb/serial/ |
D | cp210x.c | 426 static unsigned int cp210x_quantise_baudrate(unsigned int baud) in cp210x_quantise_baudrate() argument 428 if (baud <= 300) in cp210x_quantise_baudrate() 429 baud = 300; in cp210x_quantise_baudrate() 430 else if (baud <= 600) baud = 600; in cp210x_quantise_baudrate() 431 else if (baud <= 1200) baud = 1200; in cp210x_quantise_baudrate() 432 else if (baud <= 1800) baud = 1800; in cp210x_quantise_baudrate() 433 else if (baud <= 2400) baud = 2400; in cp210x_quantise_baudrate() 434 else if (baud <= 4000) baud = 4000; in cp210x_quantise_baudrate() 435 else if (baud <= 4803) baud = 4800; in cp210x_quantise_baudrate() 436 else if (baud <= 7207) baud = 7200; in cp210x_quantise_baudrate() [all …]
|
D | pl2303.c | 325 static speed_t pl2303_get_supported_baud_rate(speed_t baud) in pl2303_get_supported_baud_rate() argument 336 if (baud_sup[i] > baud) in pl2303_get_supported_baud_rate() 341 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate() 342 else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) in pl2303_get_supported_baud_rate() 343 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate() 345 baud = baud_sup[i]; in pl2303_get_supported_baud_rate() 347 return baud; in pl2303_get_supported_baud_rate() 355 speed_t baud) in pl2303_encode_baud_rate_direct() argument 357 put_unaligned_le32(baud, buf); in pl2303_encode_baud_rate_direct() 359 return baud; in pl2303_encode_baud_rate_direct() [all …]
|
D | iuu_phoenix.c | 66 u32 baud; member 794 u32 baud; in iuu_uart_baud() local 807 baud = baud_base; in iuu_uart_baud() 809 if (baud < 1200 || baud > 230400) { in iuu_uart_baud() 813 if (baud > 977) { in iuu_uart_baud() 818 if (baud > 3906) { in iuu_uart_baud() 823 if (baud > 11718) { in iuu_uart_baud() 828 if (baud > 46875) { in iuu_uart_baud() 833 T1reload = 256 - (u8) (T1FrekvensHZ / (baud * 2)); in iuu_uart_baud() 897 int baud; in iuu_set_termios() local [all …]
|
D | console.c | 61 int baud = 9600; in usb_console_setup() local 74 baud = simple_strtoul(options, NULL, 10); in usb_console_setup() 87 if (baud == 0) in usb_console_setup() 88 baud = 9600; in usb_console_setup() 167 tty_termios_encode_baud_rate(&tty->termios, baud, baud); in usb_console_setup()
|
D | ftdi_sio.c | 1056 static unsigned short int ftdi_232am_baud_base_to_divisor(int baud, int base); 1057 static unsigned short int ftdi_232am_baud_to_divisor(int baud); 1058 static __u32 ftdi_232bm_baud_base_to_divisor(int baud, int base); 1059 static __u32 ftdi_232bm_baud_to_divisor(int baud); 1060 static __u32 ftdi_2232h_baud_base_to_divisor(int baud, int base); 1061 static __u32 ftdi_2232h_baud_to_divisor(int baud); 1106 static unsigned short int ftdi_232am_baud_base_to_divisor(int baud, int base) in ftdi_232am_baud_base_to_divisor() argument 1110 int divisor3 = base / 2 / baud; in ftdi_232am_baud_base_to_divisor() 1126 static unsigned short int ftdi_232am_baud_to_divisor(int baud) in ftdi_232am_baud_to_divisor() argument 1128 return ftdi_232am_baud_base_to_divisor(baud, 48000000); in ftdi_232am_baud_to_divisor() [all …]
|
D | ir-usb.c | 323 speed_t baud; in ir_set_termios() local 326 baud = tty_get_baud_rate(tty); in ir_set_termios() 334 switch (baud) { in ir_set_termios() 364 baud = 9600; in ir_set_termios() 374 tty_encode_baud_rate(tty, baud, baud); in ir_set_termios()
|
D | ssu100.c | 206 u16 baud, divisor, remainder; in ssu100_set_termios() local 234 baud = tty_get_baud_rate(tty); in ssu100_set_termios() 235 if (!baud) in ssu100_set_termios() 236 baud = 9600; in ssu100_set_termios() 238 dev_dbg(&port->dev, "%s - got baud = %d\n", __func__, baud); in ssu100_set_termios() 241 divisor = MAX_BAUD_RATE / baud; in ssu100_set_termios() 242 remainder = MAX_BAUD_RATE % baud; in ssu100_set_termios() 243 if (((remainder * 2) >= baud) && (baud != 110)) in ssu100_set_termios()
|
D | belkin_sa.c | 294 speed_t baud; in belkin_sa_set_termios() local 326 baud = tty_get_baud_rate(tty); in belkin_sa_set_termios() 327 if (baud) { in belkin_sa_set_termios() 328 urb_value = BELKIN_SA_BAUD(baud); in belkin_sa_set_termios() 333 baud = BELKIN_SA_BAUD(urb_value); in belkin_sa_set_termios() 336 tty_encode_baud_rate(tty, baud, baud); in belkin_sa_set_termios()
|
D | keyspan.c | 101 int baud; member 168 p_priv->baud = baud_rate; in keyspan_set_termios() 789 if (p_priv->baud > 57600) in usa90_indat_callback() 1026 p_priv->baud = 9600; in keyspan_open() 1071 p_priv->baud = baud_rate; in keyspan_open() 1590 if (p_priv->old_baud != p_priv->baud) { in keyspan_usa26_send_setup() 1591 p_priv->old_baud = p_priv->baud; in keyspan_usa26_send_setup() 1593 if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, in keyspan_usa26_send_setup() 1597 __func__, p_priv->baud); in keyspan_usa26_send_setup() 1731 if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, in keyspan_usa28_send_setup() [all …]
|
D | kl5kusb105.c | 409 speed_t baud; in klsi_105_set_termios() local 421 baud = tty_get_baud_rate(tty); in klsi_105_set_termios() 436 switch (baud) { in klsi_105_set_termios() 466 baud = 9600; in klsi_105_set_termios() 481 tty_encode_baud_rate(tty, baud, baud); in klsi_105_set_termios()
|
D | ti_usb_3410_5052.c | 709 int baud; in ti_set_termios() local 794 baud = tty_get_baud_rate(tty); in ti_set_termios() 795 if (!baud) in ti_set_termios() 796 baud = 9600; in ti_set_termios() 798 config->wBaudRate = (__u16)((923077 + baud/2) / baud); in ti_set_termios() 800 config->wBaudRate = (__u16)((461538 + baud/2) / baud); in ti_set_termios() 804 tty_encode_baud_rate(tty, baud, baud); in ti_set_termios() 808 __func__, baud, config->wBaudRate, config->wFlags, in ti_set_termios()
|
D | mos7720.c | 1350 unsigned int baud) in set_higher_rates() argument 1384 write_mos_reg(serial, dummy, sp_reg, baud * 0x10); in set_higher_rates() 1533 int baud; in change_port_settings() local 1655 baud = tty_get_baud_rate(tty); in change_port_settings() 1656 if (!baud) { in change_port_settings() 1659 baud = 9600; in change_port_settings() 1662 if (baud >= 230400) { in change_port_settings() 1663 set_higher_rates(mos7720_port, baud); in change_port_settings() 1669 dev_dbg(&port->dev, "%s - baud rate = %d\n", __func__, baud); in change_port_settings() 1670 status = send_cmd_write_baud_rate(mos7720_port, baud); in change_port_settings() [all …]
|
D | keyspan_pda.c | 224 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) in keyspan_pda_setbaud() argument 229 switch (baud) { in keyspan_pda_setbaud() 262 baud = 9600; in keyspan_pda_setbaud() 279 return baud; in keyspan_pda_setbaud()
|
D | spcp8x5.c | 297 int baud; in spcp8x5_set_termios() local 322 baud = tty_get_baud_rate(tty); in spcp8x5_set_termios() 323 switch (baud) { in spcp8x5_set_termios()
|
D | digi_acceleport.c | 686 speed_t baud; in digi_set_termios() local 693 baud = tty_get_baud_rate(tty); in digi_set_termios() 694 if (baud != tty_termios_baud_rate(old_termios)) { in digi_set_termios() 707 switch (baud) { in digi_set_termios() 730 baud = 9600; in digi_set_termios() 860 tty_encode_baud_rate(tty, baud, baud); in digi_set_termios()
|
D | quatech2.c | 273 u16 baud; in qt2_set_termios() local 303 baud = tty_get_baud_rate(tty); in qt2_set_termios() 304 if (!baud) in qt2_set_termios() 305 baud = 9600; in qt2_set_termios() 307 status = qt2_set_port_config(dev, port_priv->device_port, baud, in qt2_set_termios()
|
D | mxuport.c | 855 int baud; in mxuport_set_termios() local 923 baud = tty_get_baud_rate(tty); in mxuport_set_termios() 924 if (!baud) in mxuport_set_termios() 925 baud = 9600; in mxuport_set_termios() 928 put_unaligned_le32(baud, buf); in mxuport_set_termios() 936 dev_dbg(&port->dev, "baud_rate : %d\n", baud); in mxuport_set_termios()
|
D | whiteheat.c | 740 port_settings.baud = tty_get_baud_rate(tty); in firm_setup_port() 741 dev_dbg(dev, "%s - baud rate = %d\n", __func__, port_settings.baud); in firm_setup_port() 744 tty_encode_baud_rate(tty, port_settings.baud, port_settings.baud); in firm_setup_port()
|
D | whiteheat.h | 94 __u32 baud; /* any value 7 - 460800, firmware calculates member
|
D | io_ti.c | 2244 int baud; in change_port_settings() local 2343 baud = tty_get_baud_rate(tty); in change_port_settings() 2344 if (!baud) { in change_port_settings() 2346 baud = 9600; in change_port_settings() 2348 tty_encode_baud_rate(tty, baud, baud); in change_port_settings() 2350 edge_port->baud_rate = baud; in change_port_settings() 2351 config->wBaudRate = (__u16)((461550L + baud/2) / baud); in change_port_settings() 2355 dev_dbg(dev, "%s - baud rate = %d, wBaudRate = %d\n", __func__, baud, config->wBaudRate); in change_port_settings()
|
D | io_edgeport.c | 2385 int baud; in change_port_settings() local 2529 baud = tty_get_baud_rate(tty); in change_port_settings() 2530 if (!baud) { in change_port_settings() 2532 baud = 9600; in change_port_settings() 2535 dev_dbg(dev, "%s - baud rate = %d\n", __func__, baud); in change_port_settings() 2536 status = send_cmd_write_baud_rate(edge_port, baud); in change_port_settings() 2539 baud = tty_termios_baud_rate(old_termios); in change_port_settings() 2540 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
|
D | mos7840.c | 1705 int baud; in mos7840_change_port_settings() local 1830 baud = tty_get_baud_rate(tty); in mos7840_change_port_settings() 1832 if (!baud) { in mos7840_change_port_settings() 1835 baud = 9600; in mos7840_change_port_settings() 1838 dev_dbg(&port->dev, "%s - baud rate = %d\n", __func__, baud); in mos7840_change_port_settings() 1839 status = mos7840_send_cmd_write_baud_rate(mos7840_port, baud); in mos7840_change_port_settings()
|
/linux-4.4.14/arch/m68k/atari/ |
D | debug.c | 168 int baud = cflag & CBAUD; in atari_init_mfp_port() local 173 baud += B38400; in atari_init_mfp_port() 174 if (baud < B1200 || baud > B38400+2) in atari_init_mfp_port() 175 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_mfp_port() 176 baud -= B1200; /* baud_table[] starts at 1200bps */ in atari_init_mfp_port() 181 st_mfp.tim_dt_d = baud_table[baud]; in atari_init_mfp_port() 218 int baud = cflag & CBAUD; in atari_init_scc_port() local 222 baud += B38400; in atari_init_scc_port() 223 if (baud < B1200 || baud > B38400+2) in atari_init_scc_port() 224 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_scc_port() [all …]
|
/linux-4.4.14/arch/x86/boot/ |
D | early_serial_console.c | 21 static void early_serial_init(int port, int baud) in early_serial_init() argument 31 divisor = 115200 / baud; in early_serial_init() 43 int baud = DEFAULT_BAUD; in parse_earlyprintk() local 87 baud = simple_strtoull(arg + pos, &e, 0); in parse_earlyprintk() 88 if (baud == 0 || arg + pos == e) in parse_earlyprintk() 89 baud = DEFAULT_BAUD; in parse_earlyprintk() 93 early_serial_init(port, baud); in parse_earlyprintk() 115 int baud = DEFAULT_BAUD; in parse_console_uart8250() local 135 baud = simple_strtoull(options + 1, &options, 0); in parse_console_uart8250() 137 baud = probe_baud(port); in parse_console_uart8250() [all …]
|
/linux-4.4.14/arch/mn10300/kernel/ |
D | gdb-io-ttysm.c | 96 void gdbstub_io_set_baud(unsigned baud) in gdbstub_io_set_baud() argument 105 if (!baud) { in gdbstub_io_set_baud() 106 baud = 9600; in gdbstub_io_set_baud() 107 } else if (baud == 134) { in gdbstub_io_set_baud() 108 baud = 269; /* 134 is really 134.5 */ in gdbstub_io_set_baud() 118 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud() 123 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud() 128 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud() 136 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud() 141 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud() [all …]
|
D | mn10300-serial.c | 1065 int baud, bits, xdiv, tmp; in mn10300_serial_change_speed() local 1162 baud = uart_get_baud_rate(&port->uart, new, old, 0, in mn10300_serial_change_speed() 1165 _debug("ALT %d [baud %d]", battempt, baud); in mn10300_serial_change_speed() 1167 if (!baud) in mn10300_serial_change_speed() 1168 baud = 9600; /* B0 transition handled in rs_set_termios */ in mn10300_serial_change_speed() 1170 if (baud == 134) { in mn10300_serial_change_speed() 1171 baud = 269; /* 134 is really 134.5 */ in mn10300_serial_change_speed() 1175 if (baud == 38400 && in mn10300_serial_change_speed() 1230 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in mn10300_serial_change_speed() 1236 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in mn10300_serial_change_speed() [all …]
|
D | gdb-io-serial.c | 82 void gdbstub_io_set_baud(unsigned baud) in gdbstub_io_set_baud() argument 87 value = 18432000 / 16 / baud; in gdbstub_io_set_baud()
|
/linux-4.4.14/drivers/tty/serial/8250/ |
D | 8250_mtk.c | 45 unsigned int baud, quot; in mtk8250_set_termios() local 65 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios() 69 if (baud <= 115200) { in mtk8250_set_termios() 71 quot = uart_get_divisor(port, baud); in mtk8250_set_termios() 72 } else if (baud <= 576000) { in mtk8250_set_termios() 76 if ((baud == 500000) || (baud == 576000)) in mtk8250_set_termios() 77 baud = 460800; in mtk8250_set_termios() 78 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); in mtk8250_set_termios() 83 if (baud >= 1152000) in mtk8250_set_termios() 84 baud = 921600; in mtk8250_set_termios() [all …]
|
D | 8250_mid.c | 145 unsigned int baud = tty_termios_baud_rate(termios); in mid8250_set_termios() local 148 unsigned long fuart = baud * ps; in mid8250_set_termios() 154 if (mid->board->freq > baud) in mid8250_set_termios() 155 ps = mid->board->freq / baud; /* baud rate too high */ in mid8250_set_termios() 158 fuart = baud * ps; in mid8250_set_termios()
|
D | 8250_port.c | 2118 unsigned int baud, in xr17v35x_get_divisor() argument 2124 quot_16 = DIV_ROUND_CLOSEST(port->uartclk, baud); in xr17v35x_get_divisor() 2131 unsigned int baud, in serial8250_get_divisor() argument 2143 baud == (port->uartclk/4)) in serial8250_get_divisor() 2146 baud == (port->uartclk/8)) in serial8250_get_divisor() 2149 quot = xr17v35x_get_divisor(up, baud, frac); in serial8250_get_divisor() 2151 quot = uart_get_divisor(port, baud); in serial8250_get_divisor() 2200 static void serial8250_set_divisor(struct uart_port *port, unsigned int baud, in serial8250_set_divisor() argument 2207 if (baud == 115200) { in serial8250_set_divisor() 2254 unsigned int baud, quot, frac = 0; in serial8250_do_set_termios() local [all …]
|
D | 8250_omap.c | 185 static void omap_8250_get_divisor(struct uart_port *port, unsigned int baud, in omap_8250_get_divisor() argument 195 if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) { in omap_8250_get_divisor() 208 div_13 = DIV_ROUND_CLOSEST(uartclk, 13 * baud); in omap_8250_get_divisor() 209 div_16 = DIV_ROUND_CLOSEST(uartclk, 16 * baud); in omap_8250_get_divisor() 216 abs_d13 = abs(baud - uartclk / 13 / div_13); in omap_8250_get_divisor() 217 abs_d16 = abs(baud - uartclk / 16 / div_16); in omap_8250_get_divisor() 325 unsigned int baud; in omap_8250_set_termios() local 355 baud = uart_get_baud_rate(port, termios, old, in omap_8250_set_termios() 358 omap_8250_get_divisor(port, baud, priv); in omap_8250_set_termios() 370 uart_update_timeout(port, termios->c_cflag, baud); in omap_8250_set_termios() [all …]
|
D | 8250_ingenic.c | 102 unsigned int baud, divisor; in ingenic_early_console_setup() local 109 baud = dev->baud ?: 115200; in ingenic_early_console_setup() 110 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); in ingenic_early_console_setup()
|
D | 8250_early.c | 128 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud); in init_port() 142 if (!device->baud) { in early_serial8250_setup()
|
D | 8250_dw.c | 222 unsigned int baud = tty_termios_baud_rate(termios); in dw8250_set_termios() local 231 rate = clk_round_rate(d->clk, baud * 16); in dw8250_set_termios()
|
/linux-4.4.14/arch/mips/mti-sead3/ |
D | sead3-init.c | 24 int baud = 0; in console_config() local 32 baud = baud*10 + *s++ - '0'; in console_config() 46 if (baud == 0) in console_config() 47 baud = 38400; in console_config() 54 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
|
/linux-4.4.14/arch/mips/include/asm/netlogic/xlp-hal/ |
D | uart.h | 54 #define BAUD_DIVISOR(baud) (BASE_BAUD / baud) argument 103 nlm_uart_set_baudrate(uint64_t base, int baud) in nlm_uart_set_baudrate() argument 112 (BAUD_DIVISOR(baud) & 0xff)); in nlm_uart_set_baudrate() 114 ((BAUD_DIVISOR(baud) >> 8) & 0xff)); in nlm_uart_set_baudrate() 155 nlm_uart_init(uint64_t base, int baud, int databits, int stopbits, in nlm_uart_init() argument 181 nlm_uart_set_baudrate(base, baud); in nlm_uart_init()
|
/linux-4.4.14/arch/mips/sni/ |
D | setup.c | 63 char *baud; in sni_console_setup() local 74 baud = prom_getenv("lbaud"); in sni_console_setup() 78 baud = prom_getenv("rbaud"); in sni_console_setup() 81 if (baud) in sni_console_setup() 82 strcpy(options, baud); in sni_console_setup() 85 baud ? options : NULL); in sni_console_setup() 88 baud ? options : NULL); in sni_console_setup()
|
/linux-4.4.14/drivers/tty/serial/ |
D | suncore.c | 88 int baud, bits, stop, cflag; in sunserial_console_termios() local 119 baud = simple_strtoul(s, NULL, 0); in sunserial_console_termios() 129 switch (baud) { in sunserial_console_termios() 143 default: baud = 9600; cflag |= B9600; break; in sunserial_console_termios() 170 int baud; member 185 for (i = 0; mouse_baud_table[i].baud != -1; i++) in suncore_mouse_baud_cflag_next() 190 if (mouse_baud_table[i].baud == -1) in suncore_mouse_baud_cflag_next() 193 *new_baud = mouse_baud_table[i].baud; in suncore_mouse_baud_cflag_next()
|
D | ar933x_uart.c | 204 unsigned int baud, in ar933x_uart_get_scale_step() argument 214 min_diff = baud; in ar933x_uart_get_scale_step() 219 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step() 226 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step() 243 unsigned int baud, scale, step; in ar933x_uart_set_termios() local 265 baud = uart_get_baud_rate(port, new, old, up->min_baud, up->max_baud); in ar933x_uart_set_termios() 266 ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); in ar933x_uart_set_termios() 279 uart_update_timeout(port, new->c_cflag, baud); in ar933x_uart_set_termios() 305 tty_termios_encode_baud_rate(new, baud, baud); in ar933x_uart_set_termios() 583 int baud = 115200; in ar933x_uart_console_setup() local [all …]
|
D | 21285.c | 213 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local 229 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios() 230 quot = uart_get_divisor(port, baud); in serial21285_set_termios() 265 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 385 serial21285_get_options(struct uart_port *port, int *baud, in serial21285_get_options() argument 416 *baud = port->uartclk / (16 * (tmp + 1)); in serial21285_get_options() 423 int baud = 9600; in serial21285_console_setup() local 429 baud = 57600; in serial21285_console_setup() 437 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup() 439 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup() [all …]
|
D | xilinx_uartps.c | 169 unsigned int baud; member 337 unsigned int baud, u32 *rbdiv, u32 *rcd, int *div8) in cdns_uart_calc_baud_divs() argument 345 if (baud < clk / ((CDNS_UART_BDIV_MAX + 1) * CDNS_UART_CD_MAX)) { in cdns_uart_calc_baud_divs() 353 cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1)); in cdns_uart_calc_baud_divs() 359 if (baud > calc_baud) in cdns_uart_calc_baud_divs() 360 bauderror = baud - calc_baud; in cdns_uart_calc_baud_divs() 362 bauderror = calc_baud - baud; in cdns_uart_calc_baud_divs() 372 if (((besterror * 100) / baud) < 3) in cdns_uart_calc_baud_divs() 373 bestbaud = baud; in cdns_uart_calc_baud_divs() 386 unsigned int baud) in cdns_uart_set_baud_rate() argument [all …]
|
D | arc_uart.c | 104 unsigned long baud; member 366 unsigned int baud, uartl, uarth, hw_val; in arc_serial_set_termios() local 376 baud = uart_get_baud_rate(port, new, old, 0, 460800); in arc_serial_set_termios() 378 hw_val = port->uartclk / (uart->baud * 4) - 1; in arc_serial_set_termios() 403 tty_termios_encode_baud_rate(new, baud, baud); in arc_serial_set_termios() 405 uart_update_timeout(port, new->c_cflag, baud); in arc_serial_set_termios() 494 int baud = 115200; in arc_serial_console_setup() local 511 uart_parse_options(options, &baud, &parity, &bits, &flow); in arc_serial_console_setup() 517 return uart_set_options(port, co, baud, parity, bits, flow); in arc_serial_console_setup() 569 hw_val = port->uartclk / (dev->baud * 4) - 1; in arc_early_console_setup() [all …]
|
D | netx-serial.c | 340 unsigned int baud, quot; in netx_set_termios() local 372 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in netx_set_termios() 373 quot = baud * 4096; in netx_set_termios() 380 uart_update_timeout(port, termios->c_cflag, baud); in netx_set_termios() 551 netx_console_get_options(struct uart_port *port, int *baud, in netx_console_get_options() argument 556 *baud = (readl(port->membase + UART_BAUDDIV_MSB) << 8) | in netx_console_get_options() 558 *baud *= 1000; in netx_console_get_options() 559 *baud /= 4096; in netx_console_get_options() 560 *baud *= 1000; in netx_console_get_options() 561 *baud /= 256; in netx_console_get_options() [all …]
|
D | vt8500_serial.c | 315 static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) in vt8500_set_baud_rate() argument 323 div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; in vt8500_set_baud_rate() 326 baud = port->uartclk / 16 / ((div & 0x3ff) + 1); in vt8500_set_baud_rate() 334 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate() 336 return baud; in vt8500_set_baud_rate() 378 unsigned int baud, lcr; in vt8500_set_termios() local 384 baud = uart_get_baud_rate(port, termios, old, 900, 921600); in vt8500_set_termios() 385 baud = vt8500_set_baud_rate(port, baud); in vt8500_set_termios() 387 tty_termios_encode_baud_rate(termios, baud, baud); in vt8500_set_termios() 429 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() [all …]
|
D | sunsab.c | 647 static void calc_ebrg(int baud, int *n_ret, int *m_ret) in calc_ebrg() argument 651 if (baud == 0) { in calc_ebrg() 662 n = (SAB_BASE_BAUD * 10) / baud; in calc_ebrg() 683 unsigned int iflag, unsigned int baud, in sunsab_convert_to_sab() argument 716 calc_ebrg(baud, &n, &m); in sunsab_convert_to_sab() 720 up->tec_timeout = (10 * 1000000) / baud; in sunsab_convert_to_sab() 787 unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); in sunsab_set_termios() local 788 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios() 791 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); in sunsab_set_termios() 883 unsigned int baud, quot; in sunsab_console_setup() local [all …]
|
D | serial_ks8695.c | 386 unsigned int baud, quot; in ks8695uart_set_termios() local 391 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in ks8695uart_set_termios() 392 quot = uart_get_divisor(port, baud); in ks8695uart_set_termios() 435 uart_update_timeout(port, termios->c_cflag, baud); in ks8695uart_set_termios() 578 static void __init ks8695_console_get_options(struct uart_port *port, int *baud, int *parity, int *… in ks8695_console_get_options() argument 609 *baud = port->uartclk / (UART_GET_BRDR(port) & 0x0FFF); in ks8695_console_get_options() 610 *baud /= 16; in ks8695_console_get_options() 611 *baud &= 0xFFFFFFF0; in ks8695_console_get_options() 617 int baud = 115200; in ks8695_console_setup() local 630 uart_parse_options(options, &baud, &parity, &bits, &flow); in ks8695_console_setup() [all …]
|
D | apbuart.c | 240 unsigned int baud, quot; in apbuart_set_termios() local 243 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in apbuart_set_termios() 244 if (baud == 0) in apbuart_set_termios() 248 quot = (uart_get_divisor(port, baud)) * 2; in apbuart_set_termios() 265 uart_update_timeout(port, termios->c_cflag, baud); in apbuart_set_termios() 454 apbuart_console_get_options(struct uart_port *port, int *baud, in apbuart_console_get_options() argument 472 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options() 479 int baud = 38400; in apbuart_console_setup() local 500 uart_parse_options(options, &baud, &parity, &bits, &flow); in apbuart_console_setup() 502 apbuart_console_get_options(port, &baud, &parity, &bits); in apbuart_console_setup() [all …]
|
D | mpc52xx_uart.c | 297 unsigned int baud; in mpc5200_psc_set_baudrate() local 301 baud = uart_get_baud_rate(port, new, old, in mpc5200_psc_set_baudrate() 304 divisor = (port->uartclk + 16 * baud) / (32 * baud); in mpc5200_psc_set_baudrate() 308 return baud; in mpc5200_psc_set_baudrate() 315 unsigned int baud; in mpc5200b_psc_set_baudrate() local 321 baud = uart_get_baud_rate(port, new, old, in mpc5200b_psc_set_baudrate() 324 divisor = (port->uartclk + 2 * baud) / (4 * baud); in mpc5200b_psc_set_baudrate() 328 if (divisor > 0xffff || baud <= 115200) { in mpc5200b_psc_set_baudrate() 334 return baud; in mpc5200b_psc_set_baudrate() 543 unsigned int baud; in mpc512x_psc_set_baudrate() local [all …]
|
D | dz.c | 508 static int dz_encode_baud_rate(unsigned int baud) in dz_encode_baud_rate() argument 510 switch (baud) { in dz_encode_baud_rate() 569 unsigned int cflag, baud; in dz_set_termios() local 596 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); in dz_set_termios() 597 bflag = dz_encode_baud_rate(baud); in dz_set_termios() 599 baud = uart_get_baud_rate(uport, old_termios, NULL, 50, 9600); in dz_set_termios() 600 bflag = dz_encode_baud_rate(baud); in dz_set_termios() 602 baud = 9600; in dz_set_termios() 605 tty_termios_encode_baud_rate(termios, baud, baud); in dz_set_termios() 614 uart_update_timeout(uport, termios->c_cflag, baud); in dz_set_termios() [all …]
|
D | max3100.c | 110 int baud; /* current baud rate */ member 432 int baud = 0; in max3100_set_termios() local 442 baud = tty_termios_baud_rate(termios); in max3100_set_termios() 444 switch (baud) { in max3100_set_termios() 447 baud = s->baud; in max3100_set_termios() 482 baud = s->baud; in max3100_set_termios() 485 baud = s->baud; in max3100_set_termios() 487 tty_termios_encode_baud_rate(termios, baud, baud); in max3100_set_termios() 488 s->baud = baud; in max3100_set_termios() 537 uart_update_timeout(port, termios->c_cflag, baud); in max3100_set_termios() [all …]
|
D | m32r_sio.c | 138 static inline void sio_set_baud_rate(unsigned long baud) in sio_set_baud_rate() argument 141 sbaud = (boot_cpu_data.bus_clock / (baud * 4))-1; in sio_set_baud_rate() 181 static inline void sio_set_baud_rate(unsigned long baud) in sio_set_baud_rate() argument 185 i = boot_cpu_data.bus_clock / (baud * 16); in sio_set_baud_rate() 186 j = (boot_cpu_data.bus_clock - (i * baud * 16)) / baud; in sio_set_baud_rate() 684 unsigned int baud) in m32r_sio_get_divisor() argument 686 return uart_get_divisor(port, baud); in m32r_sio_get_divisor() 696 unsigned int baud, quot; in m32r_sio_set_termios() local 729 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/4); in m32r_sio_set_termios() 731 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in m32r_sio_set_termios() [all …]
|
D | timbuart.c | 280 static int get_bindex(int baud) in get_bindex() argument 285 if (baud <= baudrates[i]) in get_bindex() 295 unsigned int baud; in timbuart_set_termios() local 299 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in timbuart_set_termios() 300 bindex = get_bindex(baud); in timbuart_set_termios() 305 baud = baudrates[bindex]; in timbuart_set_termios() 311 tty_termios_encode_baud_rate(termios, baud, baud); in timbuart_set_termios() 315 uart_update_timeout(port, termios->c_cflag, baud); in timbuart_set_termios()
|
D | sccnxp.c | 251 int baud; member 284 static int sccnxp_set_baud(struct uart_port *port, int baud) in sccnxp_set_baud() argument 287 int div_std, tmp_baud, bestbaud = baud, besterr = -1; in sccnxp_set_baud() 292 for (i = 0; baud_std[i].baud && besterr; i++) { in sccnxp_set_baud() 295 div_std = DIV_ROUND_CLOSEST(chip->freq_std, baud_std[i].baud); in sccnxp_set_baud() 297 if (!sccnxp_update_best_err(baud, tmp_baud, &besterr)) { in sccnxp_set_baud() 316 if (baud != bestbaud) in sccnxp_set_baud() 318 baud, bestbaud); in sccnxp_set_baud() 613 int baud; in sccnxp_set_termios() local 676 baud = uart_get_baud_rate(port, termios, old, 50, in sccnxp_set_termios() [all …]
|
D | altera_uart.c | 171 unsigned int baud, baudclk; in altera_uart_set_termios() local 173 baud = uart_get_baud_rate(port, termios, old, 0, 4000000); in altera_uart_set_termios() 174 baudclk = port->uartclk / baud; in altera_uart_set_termios() 178 tty_termios_encode_baud_rate(termios, baud, baud); in altera_uart_set_termios() 181 uart_update_timeout(port, termios->c_cflag, baud); in altera_uart_set_termios() 453 int baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; in altera_uart_console_setup() local 465 uart_parse_options(options, &baud, &parity, &bits, &flow); in altera_uart_console_setup() 467 return uart_set_options(port, co, baud, parity, bits, flow); in altera_uart_console_setup()
|
D | sprd_serial.c | 374 unsigned int baud, quot; in sprd_set_termios() local 379 baud = uart_get_baud_rate(port, termios, old, 0, SPRD_BAUD_IO_LIMIT); in sprd_set_termios() 381 quot = (unsigned int)((port->uartclk + baud / 2) / baud); in sprd_set_termios() 421 uart_update_timeout(port, termios->c_cflag, baud); in sprd_set_termios() 465 tty_termios_encode_baud_rate(termios, baud, baud); in sprd_set_termios() 565 int baud = 115200; in sprd_console_setup() local 579 uart_parse_options(options, &baud, &parity, &bits, &flow); in sprd_console_setup() 581 return uart_set_options(port, co, baud, parity, bits, flow); in sprd_console_setup()
|
D | efm32-uart.c | 350 unsigned baud; in efm32_uart_set_termios() local 357 baud = uart_get_baud_rate(port, new, old, in efm32_uart_set_termios() 394 clkdiv = (DIV_ROUND_CLOSEST(4 * port->uartclk, 16 * baud) - 4) << 6; in efm32_uart_set_termios() 415 uart_update_timeout(port, new->c_cflag, baud); in efm32_uart_set_termios() 555 int *baud, int *parity, int *bits) in efm32_uart_console_get_options() argument 571 *baud = DIV_ROUND_CLOSEST(4 * efm_port->port.uartclk, in efm32_uart_console_get_options() 586 *baud, *parity, *bits); in efm32_uart_console_get_options() 592 int baud = 115200; in efm32_uart_console_setup() local 626 uart_parse_options(options, &baud, &parity, &bits, &flow); in efm32_uart_console_setup() 629 &baud, &parity, &bits); in efm32_uart_console_setup() [all …]
|
D | sunzilog.c | 949 int baud, brg; in sunzilog_set_termios() local 951 baud = uart_get_baud_rate(port, termios, old, 1200, 76800); in sunzilog_set_termios() 955 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_set_termios() 968 uart_update_timeout(port, termios->c_cflag, baud); in sunzilog_set_termios() 1224 int baud, brg; in sunzilog_console_setup() local 1239 case B150: baud = 150; break; in sunzilog_console_setup() 1240 case B300: baud = 300; break; in sunzilog_console_setup() 1241 case B600: baud = 600; break; in sunzilog_console_setup() 1242 case B1200: baud = 1200; break; in sunzilog_console_setup() 1243 case B2400: baud = 2400; break; in sunzilog_console_setup() [all …]
|
D | meson_uart.c | 271 static void meson_uart_change_speed(struct uart_port *port, unsigned long baud) in meson_uart_change_speed() argument 280 val = ((port->uartclk * 10 / (baud * 4) + 5) / 10) - 1; in meson_uart_change_speed() 289 unsigned int cflags, iflags, baud; in meson_uart_set_termios() local 339 baud = uart_get_baud_rate(port, termios, old, 9600, 115200); in meson_uart_set_termios() 340 meson_uart_change_speed(port, baud); in meson_uart_set_termios() 352 uart_update_timeout(port, termios->c_cflag, baud); in meson_uart_set_termios() 476 int baud = 115200; in meson_serial_console_setup() local 489 uart_parse_options(options, &baud, &parity, &bits, &flow); in meson_serial_console_setup() 491 return uart_set_options(port, co, baud, parity, bits, flow); in meson_serial_console_setup()
|
D | mcf.c | 202 unsigned int baud, baudclk; in mcf_set_termios() local 208 baud = uart_get_baud_rate(port, termios, old, 0, 230400); in mcf_set_termios() 210 baudclk = (MCF_BUSCLK / baud) / 32; in mcf_set_termios() 211 baudfr = (((MCF_BUSCLK / baud) + 1) / 2) % 16; in mcf_set_termios() 213 baudclk = ((MCF_BUSCLK / baud) + 16) / 32; in mcf_set_termios() 265 uart_update_timeout(port, termios->c_cflag, baud); in mcf_set_termios() 552 int baud = CONFIG_SERIAL_MCF_BAUDRATE; in mcf_console_setup() local 564 uart_parse_options(options, &baud, &parity, &bits, &flow); in mcf_console_setup() 566 return uart_set_options(port, co, baud, parity, bits, flow); in mcf_console_setup()
|
D | lpc32xx_hs.c | 167 int baud = 115200; in lpc32xx_hsuart_console_setup() local 180 uart_parse_options(options, &baud, &parity, &bits, &flow); in lpc32xx_hsuart_console_setup() 182 return uart_set_options(port, co, baud, parity, bits, flow); in lpc32xx_hsuart_console_setup() 539 unsigned int baud, quot; in serial_lpc32xx_set_termios() local 548 baud = uart_get_baud_rate(port, termios, old, 0, in serial_lpc32xx_set_termios() 551 quot = __serial_get_clock_div(port->uartclk, baud); in serial_lpc32xx_set_termios() 565 uart_update_timeout(port, termios->c_cflag, baud); in serial_lpc32xx_set_termios() 571 tty_termios_encode_baud_rate(termios, baud, baud); in serial_lpc32xx_set_termios()
|
D | lantiq.c | 394 unsigned int baud; in lqasc_set_termios() local 456 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in lqasc_set_termios() 457 divisor = uart_get_divisor(port, baud); in lqasc_set_termios() 482 tty_termios_encode_baud_rate(new, baud, baud); in lqasc_set_termios() 484 uart_update_timeout(port, cflag, baud); in lqasc_set_termios() 620 int baud = 115200; in lqasc_console_setup() local 640 uart_parse_options(options, &baud, &parity, &bits, &flow); in lqasc_console_setup() 641 return uart_set_options(port, co, baud, parity, bits, flow); in lqasc_console_setup()
|
D | clps711x.c | 265 unsigned int baud, quot; in uart_clps711x_set_termios() local 272 baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096, in uart_clps711x_set_termios() 274 quot = uart_get_divisor(port, baud); in uart_clps711x_set_termios() 315 uart_update_timeout(port, termios->c_cflag, baud); in uart_clps711x_set_termios() 389 int baud = 38400, bits = 8, parity = 'n', flow = 'n'; in uart_clps711x_console_setup() local 423 baud = port->uartclk / (16 * (quot + 1)); in uart_clps711x_console_setup() 426 uart_parse_options(options, &baud, &parity, &bits, &flow); in uart_clps711x_console_setup() 428 ret = uart_set_options(port, co, baud, parity, bits, flow); in uart_clps711x_console_setup()
|
D | amba-pl010.c | 401 unsigned int baud, quot; in pl010_set_termios() local 406 baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16); in pl010_set_termios() 407 quot = uart_get_divisor(port, baud); in pl010_set_termios() 438 uart_update_timeout(port, termios->c_cflag, baud); in pl010_set_termios() 624 pl010_console_get_options(struct uart_amba_port *uap, int *baud, in pl010_console_get_options() argument 646 *baud = uap->port.uartclk / (16 * (quot + 1)); in pl010_console_get_options() 653 int baud = 38400; in pl010_console_setup() local 677 uart_parse_options(options, &baud, &parity, &bits, &flow); in pl010_console_setup() 679 pl010_console_get_options(uap, &baud, &parity, &bits); in pl010_console_setup() 681 return uart_set_options(&uap->port, co, baud, parity, bits, flow); in pl010_console_setup()
|
D | digicolor-usart.c | 296 unsigned int baud, divisor; in digicolor_uart_set_termios() local 305 baud = uart_get_baud_rate(port, termios, old, in digicolor_uart_set_termios() 308 divisor = uart_get_divisor(port, baud) - 1; in digicolor_uart_set_termios() 342 uart_update_timeout(port, termios->c_cflag, baud); in digicolor_uart_set_termios() 422 int baud = 115200, bits = 8, parity = 'n', flow = 'n'; in digicolor_uart_console_setup() local 433 uart_parse_options(options, &baud, &parity, &bits, &flow); in digicolor_uart_console_setup() 435 return uart_set_options(port, co, baud, parity, bits, flow); in digicolor_uart_console_setup()
|
D | pmac_zilog.c | 1016 unsigned int iflag, unsigned long baud) in pmz_convert_to_zs() argument 1024 if (baud >= 115200 && ZS_IS_IRDA(uap)) { in pmz_convert_to_zs() 1032 switch (baud) { in pmz_convert_to_zs() 1046 brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); in pmz_convert_to_zs() 1118 static void pmz_irda_setup(struct uart_pmac_port *uap, unsigned long *baud) in pmz_irda_setup() argument 1123 switch (*baud) { in pmz_irda_setup() 1157 *baud = 9600; in pmz_irda_setup() 1230 *baud, version); in pmz_irda_setup() 1252 unsigned long baud; in __pmz_set_termios() local 1267 baud = uart_get_baud_rate(port, termios, old, 1200, 4000000); in __pmz_set_termios() [all …]
|
D | st-asc.c | 482 unsigned int baud; in asc_set_termios() local 493 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in asc_set_termios() 528 if ((baud < 19200) && !ascport->force_m1) { in asc_set_termios() 529 asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); in asc_set_termios() 540 u64 dividend = (u64)baud * (1 << 16); in asc_set_termios() 547 uart_update_timeout(port, cflag, baud); in asc_set_termios() 837 int baud = 9600; in asc_console_setup() local 857 uart_parse_options(options, &baud, &parity, &bits, &flow); in asc_console_setup() 859 return uart_set_options(&ascport->port, co, baud, parity, bits, flow); in asc_console_setup()
|
D | sa1100.c | 423 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local 452 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in sa1100_set_termios() 453 quot = uart_get_divisor(port, baud); in sa1100_set_termios() 490 uart_update_timeout(port, termios->c_cflag, baud); in sa1100_set_termios() 749 sa1100_console_get_options(struct sa1100_port *sport, int *baud, in sa1100_console_get_options() argument 776 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options() 784 int baud = 9600; in sa1100_console_setup() local 799 uart_parse_options(options, &baud, &parity, &bits, &flow); in sa1100_console_setup() 801 sa1100_console_get_options(sport, &baud, &parity, &bits); in sa1100_console_setup() 803 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in sa1100_console_setup()
|
D | msm_serial.c | 864 msm_find_best_baud(struct uart_port *port, unsigned int baud) in msm_find_best_baud() argument 888 divisor = uart_get_divisor(port, baud); in msm_find_best_baud() 897 static int msm_set_baud_rate(struct uart_port *port, unsigned int baud, in msm_set_baud_rate() argument 905 entry = msm_find_best_baud(port, baud); in msm_set_baud_rate() 909 if (baud > 460800) in msm_set_baud_rate() 910 port->uartclk = baud * 16; in msm_set_baud_rate() 959 return baud; in msm_set_baud_rate() 1035 unsigned int baud, mr; in msm_set_termios() local 1043 baud = uart_get_baud_rate(port, termios, old, 300, 4000000); in msm_set_termios() 1044 baud = msm_set_baud_rate(port, baud, &flags); in msm_set_termios() [all …]
|
D | omap-serial.c | 230 unsigned int baud, unsigned int mode) in calculate_baud_abs_diff() argument 232 unsigned int n = port->uartclk / (mode * baud); in calculate_baud_abs_diff() 238 abs_diff = baud - (port->uartclk / (mode * n)); in calculate_baud_abs_diff() 257 serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) in serial_omap_baud_is_mode16() argument 259 int abs_diff_13 = calculate_baud_abs_diff(port, baud, 13); in serial_omap_baud_is_mode16() 260 int abs_diff_16 = calculate_baud_abs_diff(port, baud, 16); in serial_omap_baud_is_mode16() 271 serial_omap_get_divisor(struct uart_port *port, unsigned int baud) in serial_omap_get_divisor() argument 275 if (!serial_omap_baud_is_mode16(port, baud)) in serial_omap_get_divisor() 279 return port->uartclk/(mode * baud); in serial_omap_get_divisor() 849 unsigned int baud, quot; in serial_omap_set_termios() local [all …]
|
D | fsl_lpuart.c | 1207 unsigned int baud; in lpuart_set_termios() local 1273 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); in lpuart_set_termios() 1298 uart_update_timeout(port, termios->c_cflag, baud); in lpuart_set_termios() 1319 sbr = sport->port.uartclk / (16 * baud); in lpuart_set_termios() 1320 brfa = ((sport->port.uartclk - (16 * sbr * baud)) * 2) / baud; in lpuart_set_termios() 1344 unsigned int baud; in lpuart32_set_termios() local 1408 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); in lpuart32_set_termios() 1433 uart_update_timeout(port, termios->c_cflag, baud); in lpuart32_set_termios() 1443 sbr = sport->port.uartclk / (16 * baud); in lpuart32_set_termios() 1601 lpuart_console_get_options(struct lpuart_port *sport, int *baud, in lpuart_console_get_options() argument [all …]
|
D | serial_core.c | 276 unsigned int baud) in uart_update_timeout() argument 310 port->timeout = (HZ * bits) / baud + HZ/50; in uart_update_timeout() 339 unsigned int baud; in uart_get_baud_rate() local 363 baud = tty_termios_baud_rate(termios); in uart_get_baud_rate() 369 if (try == 0 && baud == 38400) in uart_get_baud_rate() 370 baud = altbaud; in uart_get_baud_rate() 375 if (baud == 0) { in uart_get_baud_rate() 377 baud = 9600; in uart_get_baud_rate() 380 if (baud >= min && baud <= max) in uart_get_baud_rate() 381 return baud; in uart_get_baud_rate() [all …]
|
D | ioc3_serial.c | 184 #define TX_LOWAT_CHARS(baud) (baud / 10 / TX_LOWAT_HZ) argument 308 static int set_baud(struct ioc3_port *port, int baud) in set_baud() argument 317 divisor = SER_DIVISOR(baud, SER_CLK_SPEED(prediv)); in set_baud() 322 diff = actual_baud - baud; in set_baud() 591 int baud, int byte_size, int stop_bits, int parenb, int parodd) in config_port() argument 599 baud, byte_size, stop_bits, parenb, parodd)); in config_port() 601 if (set_baud(port, baud)) in config_port() 658 port->ip_baud = baud; in config_port() 664 port->ip_tx_lowat = (TX_LOWAT_CHARS(baud) + 3) / 4; in config_port() 959 int baud; in ioc3_change_speed() local [all …]
|
D | stm32-usart.c | 349 unsigned int baud; in stm32_set_termios() local 358 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 8); in stm32_set_termios() 387 usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); in stm32_set_termios() 407 uart_update_timeout(port, cflag, baud); in stm32_set_termios() 650 int baud = 9600; in stm32_console_setup() local 670 uart_parse_options(options, &baud, &parity, &bits, &flow); in stm32_console_setup() 672 return uart_set_options(&stm32port->port, co, baud, parity, bits, flow); in stm32_console_setup()
|
D | uartlite.c | 284 unsigned int baud; in ulite_set_termios() local 307 baud = uart_get_baud_rate(port, termios, old, 0, 460800); in ulite_set_termios() 308 uart_update_timeout(port, termios->c_cflag, baud); in ulite_set_termios() 474 int baud = 9600; in ulite_console_setup() local 497 uart_parse_options(options, &baud, &parity, &bits, &flow); in ulite_console_setup() 499 return uart_set_options(port, co, baud, parity, bits, flow); in ulite_console_setup()
|
D | max310x.c | 487 static int max310x_set_baud(struct uart_port *port, int baud) in max310x_set_baud() argument 489 unsigned int mode = 0, clk = port->uartclk, div = clk / baud; in max310x_set_baud() 495 if (clk % baud && (div / 16) < 0x8000) { in max310x_set_baud() 499 div = clk / baud; in max310x_set_baud() 501 if (clk % baud && (div / 16) < 0x8000) { in max310x_set_baud() 505 div = clk / baud; in max310x_set_baud() 800 int baud; in max310x_set_termios() local 869 baud = uart_get_baud_rate(port, termios, old, in max310x_set_termios() 874 baud = max310x_set_baud(port, baud); in max310x_set_termios() 877 uart_update_timeout(port, termios->c_cflag, baud); in max310x_set_termios()
|
D | pnx8xxx_uart.c | 449 unsigned int lcr_fcr, old_ien, baud, quot; in pnx8xxx_set_termios() local 478 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in pnx8xxx_set_termios() 479 quot = uart_get_divisor(port, baud); in pnx8xxx_set_termios() 526 uart_update_timeout(port, termios->c_cflag, baud); in pnx8xxx_set_termios() 728 int baud = 38400; in pnx8xxx_console_setup() local 743 uart_parse_options(options, &baud, &parity, &bits, &flow); in pnx8xxx_console_setup() 745 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in pnx8xxx_console_setup()
|
D | bcm63xx_uart.c | 508 unsigned int ctl, baud, quot, ier; in bcm_uart_set_termios() local 551 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in bcm_uart_set_termios() 552 quot = uart_get_divisor(port, baud) - 1; in bcm_uart_set_termios() 581 uart_update_timeout(port, new->c_cflag, baud); in bcm_uart_set_termios() 735 int baud = 9600; in bcm_console_setup() local 746 uart_parse_options(options, &baud, &parity, &bits, &flow); in bcm_console_setup() 748 return uart_set_options(port, co, baud, parity, bits, flow); in bcm_console_setup()
|
D | ioc4_serial.c | 508 #define TX_LOWAT_CHARS(baud) (baud / 10 / TX_LOWAT_HZ) argument 707 static int set_baud(struct ioc4_port *port, int baud) in set_baud() argument 715 divisor = SER_DIVISOR(baud, port->ip_pci_bus_speed); in set_baud() 720 diff = actual_baud - baud; in set_baud() 1316 int baud, int byte_size, int stop_bits, int parenb, int parodd) in config_port() argument 1322 __func__, baud, byte_size, stop_bits, parenb, parodd)); in config_port() 1324 if (set_baud(port, baud)) in config_port() 1381 port->ip_baud = baud; in config_port() 1387 port->ip_tx_lowat = (TX_LOWAT_CHARS(baud) + 3) / 4; in config_port() 1688 int baud, bits; in ioc4_change_speed() local [all …]
|
D | etraxfs-uart.c | 93 int baud = 115200; in cris_console_setup() local 106 uart_parse_options(options, &baud, &parity, &bits, &flow); in cris_console_setup() 107 console_baud = baud; in cris_console_setup() 109 uart_set_options(port, co, baud, parity, bits, flow); in cris_console_setup() 661 int baud; in etraxfs_uart_set_termios() local 707 baud = uart_get_baud_rate(port, termios, old, 0, in etraxfs_uart_set_termios() 710 baud = console_baud; in etraxfs_uart_set_termios() 712 tx_baud_div.div = 29493000 / (8 * baud); in etraxfs_uart_set_termios()
|
D | serial-tegra.c | 287 static int tegra_set_baudrate(struct tegra_uart_port *tup, unsigned int baud) in tegra_set_baudrate() argument 294 if (tup->current_baud == baud) in tegra_set_baudrate() 298 rate = baud * 16; in tegra_set_baudrate() 308 divisor = DIV_ROUND_CLOSEST(rate, baud * 16); in tegra_set_baudrate() 324 tup->current_baud = baud; in tegra_set_baudrate() 1080 unsigned int baud; in tegra_uart_set_termios() local 1155 baud = uart_get_baud_rate(u, termios, oldtermios, in tegra_uart_set_termios() 1159 tegra_set_baudrate(tup, baud); in tegra_uart_set_termios() 1161 tty_termios_encode_baud_rate(termios, baud, baud); in tegra_uart_set_termios() 1179 uart_update_timeout(u, termios->c_cflag, baud); in tegra_uart_set_termios()
|
D | bfin_uart.c | 787 unsigned int baud, quot; in bfin_serial_set_termios() local 857 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in bfin_serial_set_termios() 858 quot = uart_get_divisor(port, baud); in bfin_serial_set_termios() 864 UART_SET_ANOMALY_THRESHOLD(uart, USEC_PER_SEC / baud * 15); in bfin_serial_set_termios() 895 uart_update_timeout(port, termios->c_cflag, baud); in bfin_serial_set_termios() 1042 bfin_serial_console_get_options(struct bfin_serial_port *uart, int *baud, in bfin_serial_console_get_options() argument 1071 *baud = get_sclk() / (16*clk); in bfin_serial_console_get_options() 1073 pr_debug("%s:baud = %d, parity = %c, bits= %d\n", __func__, *baud, *parity, *bits); in bfin_serial_console_get_options() 1110 int baud = 57600; in bfin_serial_console_setup() local 1133 uart_parse_options(options, &baud, &parity, &bits, &flow); in bfin_serial_console_setup() [all …]
|
D | samsung.c | 1156 unsigned int cnt, baud, quot, clk_sel, best_quot = 0; in s3c24xx_serial_getclk() local 1187 baud = rate / div; in s3c24xx_serial_getclk() 1190 baud = rate / (quot * 16); in s3c24xx_serial_getclk() 1194 calc_deviation = req_baud - baud; in s3c24xx_serial_getclk() 1241 unsigned int baud, quot, clk_sel = 0; in s3c24xx_serial_set_termios() local 1256 baud = uart_get_baud_rate(port, termios, old, 0, 115200*8); in s3c24xx_serial_set_termios() 1257 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); in s3c24xx_serial_set_termios() 1258 if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) in s3c24xx_serial_set_termios() 1280 unsigned int div = ourport->baudclk_rate / baud; in s3c24xx_serial_set_termios() 1355 uart_update_timeout(port, termios->c_cflag, baud); in s3c24xx_serial_set_termios() [all …]
|
D | amba-pl011.c | 1808 unsigned int baud, quot, clkdiv; in pl011_set_termios() local 1818 baud = uart_get_baud_rate(port, termios, old, 0, in pl011_set_termios() 1825 uap->dmarx.poll_rate = DIV_ROUND_UP(10000000, baud); in pl011_set_termios() 1828 if (baud > port->uartclk/16) in pl011_set_termios() 1829 quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud); in pl011_set_termios() 1831 quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud); in pl011_set_termios() 1862 uart_update_timeout(port, termios->c_cflag, baud); in pl011_set_termios() 1885 if (baud > port->uartclk / 16) in pl011_set_termios() 1898 if ((baud >= 3000000) && (baud < 3250000) && (quot > 1)) in pl011_set_termios() 1900 else if ((baud > 3250000) && (quot > 2)) in pl011_set_termios() [all …]
|
D | mxs-auart.c | 664 unsigned int cflag, baud, baud_min, baud_max; in mxs_auart_settermios() local 759 baud = uart_get_baud_rate(u, termios, old, baud_min, baud_max); in mxs_auart_settermios() 760 div = u->uartclk * 32 / baud; in mxs_auart_settermios() 767 uart_update_timeout(u, termios->c_cflag, baud); in mxs_auart_settermios() 1072 auart_console_get_options(struct uart_port *port, int *baud, in auart_console_get_options() argument 1104 *baud = (port->uartclk << 2) / quot; in auart_console_get_options() 1111 int baud = 9600; in auart_console_setup() local 1133 uart_parse_options(options, &baud, &parity, &bits, &flow); in auart_console_setup() 1135 auart_console_get_options(&s->port, &baud, &parity, &bits); in auart_console_setup() 1137 ret = uart_set_options(&s->port, co, baud, parity, bits, flow); in auart_console_setup()
|
D | men_z135_uart.c | 657 unsigned int baud; in men_z135_set_termios() local 716 baud = uart_get_baud_rate(port, termios, old, 0, uart_freq / 16); in men_z135_set_termios() 720 tty_termios_encode_baud_rate(termios, baud, baud); in men_z135_set_termios() 722 bd_reg = uart_freq / (4 * baud); in men_z135_set_termios() 725 uart_update_timeout(port, termios->c_cflag, baud); in men_z135_set_termios()
|
D | vr41xx_siu.c | 520 unsigned int baud, quot; in siu_set_termios() local 548 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk/16); in siu_set_termios() 549 quot = uart_get_divisor(port, baud); in siu_set_termios() 555 uart_update_timeout(port, c_cflag, baud); in siu_set_termios() 788 int baud = 9600; in siu_console_setup() local 807 uart_parse_options(options, &baud, &parity, &bits, &flow); in siu_console_setup() 809 return uart_set_options(port, con, baud, parity, bits, flow); in siu_console_setup()
|
D | pxa.c | 439 unsigned int baud, quot; in serial_pxa_set_termios() local 468 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial_pxa_set_termios() 469 quot = uart_get_divisor(port, baud); in serial_pxa_set_termios() 493 uart_update_timeout(port, termios->c_cflag, baud); in serial_pxa_set_termios() 734 int baud = 9600; in serial_pxa_console_setup() local 746 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial_pxa_console_setup() 748 return uart_set_options(&up->port, co, baud, parity, bits, flow); in serial_pxa_console_setup()
|
D | sb1250-duart.c | 549 unsigned int baud, brg; in sbd_set_termios() local 587 baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000); in sbd_set_termios() 588 brg = V_DUART_BAUD_RATE(baud); in sbd_set_termios() 593 uart_update_timeout(uport, termios->c_cflag, baud); in sbd_set_termios() 878 int baud = 115200; in sbd_console_setup() local 894 uart_parse_options(options, &baud, &parity, &bits, &flow); in sbd_console_setup() 895 return uart_set_options(uport, co, baud, parity, bits, flow); in sbd_console_setup()
|
D | imx.c | 1287 unsigned int ucr2, old_ucr1, old_ucr2, baud, quot; in imx_set_termios() local 1345 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); in imx_set_termios() 1346 quot = uart_get_divisor(port, baud); in imx_set_termios() 1378 uart_update_timeout(port, termios->c_cflag, baud); in imx_set_termios() 1397 div = sport->port.uartclk / (baud * 16); in imx_set_termios() 1398 if (baud == 38400 && quot != div) in imx_set_termios() 1399 baud = sport->port.uartclk / (quot * 16); in imx_set_termios() 1401 div = sport->port.uartclk / (baud * 16); in imx_set_termios() 1407 rational_best_approximation(16 * div * baud, sport->port.uartclk, in imx_set_termios() 1686 imx_console_get_options(struct imx_port *sport, int *baud, in imx_console_get_options() argument [all …]
|
D | rp2.c | 383 unsigned int baud, baud_div; in rp2_uart_set_termios() local 385 baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); in rp2_uart_set_termios() 386 baud_div = uart_get_divisor(port, baud); in rp2_uart_set_termios() 389 tty_termios_encode_baud_rate(new, baud, baud); in rp2_uart_set_termios() 397 uart_update_timeout(port, new->c_cflag, baud); in rp2_uart_set_termios()
|
D | pch_uart.c | 454 static int pch_uart_hal_set_line(struct eg20t_port *priv, unsigned int baud, in pch_uart_hal_set_line() argument 461 div = DIV_ROUND_CLOSEST(priv->uartclk / 16, baud); in pch_uart_hal_set_line() 490 __func__, baud, div, lcr, jiffies); in pch_uart_hal_set_line() 1390 unsigned int baud, parity, bits, stb; in pch_uart_set_termios() local 1431 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in pch_uart_set_termios() 1436 uart_update_timeout(port, termios->c_cflag, baud); in pch_uart_set_termios() 1437 rtn = pch_uart_hal_set_line(priv, baud, parity, bits, stb); in pch_uart_set_termios() 1444 tty_termios_encode_baud_rate(termios, baud, baud); in pch_uart_set_termios() 1700 int baud = default_baud; in pch_console_setup() local 1720 uart_parse_options(options, &baud, &parity, &bits, &flow); in pch_console_setup() [all …]
|
D | serial_txx9.c | 635 unsigned int baud, quot; in serial_txx9_set_termios() local 672 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16/2); in serial_txx9_set_termios() 673 quot = uart_get_divisor(port, baud); in serial_txx9_set_termios() 688 uart_update_timeout(port, termios->c_cflag, baud); in serial_txx9_set_termios() 937 int baud = 9600; in serial_txx9_console_setup() local 957 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial_txx9_console_setup() 959 return uart_set_options(port, co, baud, parity, bits, flow); in serial_txx9_console_setup()
|
D | ip22zilog.c | 884 int baud, brg; in ip22zilog_set_termios() local 886 baud = uart_get_baud_rate(port, termios, old, 1200, 76800); in ip22zilog_set_termios() 890 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_set_termios() 900 uart_update_timeout(port, termios->c_cflag, baud); in ip22zilog_set_termios() 1034 int baud = 9600, bits = 8; in ip22zilog_console_setup() local 1051 uart_parse_options(options, &baud, &parity, &bits, &flow); in ip22zilog_console_setup() 1052 return uart_set_options(&up->port, con, baud, parity, bits, flow); in ip22zilog_console_setup()
|
D | crisv10.h | 40 int baud; member
|
D | ucc_uart.c | 859 unsigned int baud; in qe_uart_set_termios() local 953 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in qe_uart_set_termios() 959 uart_update_timeout(port, termios->c_cflag, baud); in qe_uart_set_termios() 967 qe_setbrg(qe_port->us_info.rx_clock, baud, 16); in qe_uart_set_termios() 968 qe_setbrg(qe_port->us_info.tx_clock, baud, 1); in qe_uart_set_termios() 970 qe_setbrg(qe_port->us_info.rx_clock, baud, 16); in qe_uart_set_termios() 971 qe_setbrg(qe_port->us_info.tx_clock, baud, 16); in qe_uart_set_termios()
|
D | sc16is7xx.c | 487 static int sc16is7xx_set_baud(struct uart_port *port, int baud) in sc16is7xx_set_baud() argument 492 unsigned long clk = port->uartclk, div = clk / 16 / baud; in sc16is7xx_set_baud() 832 int baud; in sc16is7xx_set_termios() local 906 baud = uart_get_baud_rate(port, termios, old, in sc16is7xx_set_termios() 911 baud = sc16is7xx_set_baud(port, baud); in sc16is7xx_set_termios() 914 uart_update_timeout(port, termios->c_cflag, baud); in sc16is7xx_set_termios()
|
D | zs.c | 858 unsigned int baud, brg; in zs_set_termios() local 914 baud = uart_get_baud_rate(uport, termios, old_termios, 0, in zs_set_termios() 917 brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); in zs_set_termios() 921 uart_update_timeout(uport, termios->c_cflag, baud); in zs_set_termios() 1199 int baud = 9600; in zs_console_setup() local 1213 uart_parse_options(options, &baud, &parity, &bits, &flow); in zs_console_setup() 1214 return uart_set_options(uport, co, baud, parity, bits, flow); in zs_console_setup()
|
D | sh-sci.c | 1948 unsigned int baud, smr_val = 0, max_baud, cks = 0; in sci_set_termios() local 1971 baud = uart_get_baud_rate(port, termios, old, 0, max_baud); in sci_set_termios() 1972 if (likely(baud && port->uartclk)) { in sci_set_termios() 1975 sci_baud_calc_hscif(baud, port->uartclk, &t, &srr, in sci_set_termios() 1978 t = sci_scbrr_calc(s, baud, port->uartclk); in sci_set_termios() 1990 uart_update_timeout(port, termios->c_cflag, baud); in sci_set_termios() 2001 udelay((1000000+(baud-1)) / baud); /* Wait one bit interval */ in sci_set_termios() 2065 (baud / 10), 10); in sci_set_termios() 2438 int baud = 115200; in serial_console_setup() local 2464 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial_console_setup() [all …]
|
D | mpsc.c | 380 static void mpsc_set_baudrate(struct mpsc_port_info *pi, u32 baud) in mpsc_set_baudrate() argument 382 u32 cdv = (pi->port.uartclk / (baud << 5)) - 1; in mpsc_set_baudrate() 1406 u32 baud; in mpsc_set_termios() local 1447 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk); in mpsc_set_termios() 1451 uart_update_timeout(port, termios->c_cflag, baud); in mpsc_set_termios() 1456 mpsc_set_baudrate(pi, baud); in mpsc_set_termios() 1773 int baud, bits, parity, flow; in mpsc_console_setup() local 1782 baud = pi->default_baud; in mpsc_console_setup() 1793 uart_parse_options(options, &baud, &parity, &bits, &flow); in mpsc_console_setup() 1795 return uart_set_options(&pi->port, co, baud, parity, bits, flow); in mpsc_console_setup()
|
D | sunsu.c | 910 unsigned int baud, quot; in sunsu_set_termios() local 915 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in sunsu_set_termios() 916 quot = uart_get_divisor(port, baud); in sunsu_set_termios() 1197 int quot, baud; in sunsu_kbd_ms_init() local 1204 baud = 1200; in sunsu_kbd_ms_init() 1207 baud = 4800; in sunsu_kbd_ms_init() 1209 quot = up->port.uartclk / (16 * baud); in sunsu_kbd_ms_init()
|
D | tilegx.c | 457 unsigned int baud; in tilegx_set_termios() local 479 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in tilegx_set_termios() 480 divisor.divisor = uart_get_divisor(port, baud); in tilegx_set_termios()
|
D | atmel_serial.c | 2077 unsigned int old_mode, mode, imr, quot, baud; in atmel_set_termios() local 2086 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in atmel_set_termios() 2087 quot = uart_get_divisor(port, baud); in atmel_set_termios() 2159 uart_update_timeout(port, termios->c_cflag, baud); in atmel_set_termios() 2492 static void __init atmel_console_get_options(struct uart_port *port, int *baud, in atmel_console_get_options() argument 2523 *baud = port->uartclk / (16 * (quot - 1)); in atmel_console_get_options() 2530 int baud = 115200; in atmel_console_setup() local 2549 uart_parse_options(options, &baud, &parity, &bits, &flow); in atmel_console_setup() 2551 atmel_console_get_options(port, &baud, &parity, &bits); in atmel_console_setup() 2553 return uart_set_options(port, co, baud, parity, bits, flow); in atmel_console_setup()
|
D | earlycon.c | 88 device->baud = simple_strtoul(options, NULL, 0); in parse_options()
|
D | sunhv.c | 327 unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); in sunhv_set_termios() local 328 unsigned int quot = uart_get_divisor(port, baud); in sunhv_set_termios()
|
D | icom.c | 1106 int baud; in icom_set_termios() local 1157 baud = uart_get_baud_rate(port, termios, old_termios, in icom_set_termios() 1160 if (!baud) in icom_set_termios() 1161 baud = 9600; /* B0 transition handled in rs_set_termios */ in icom_set_termios() 1164 if (icom_acfg_baud[index] == baud) { in icom_set_termios() 1170 uart_update_timeout(port, cflag, baud); in icom_set_termios()
|
D | bfin_sport_uart.c | 616 int baud = 57600; in sport_uart_console_setup() local 634 uart_parse_options(options, &baud, &parity, &bits, &flow); in sport_uart_console_setup() 636 return uart_set_options(&up->port, co, baud, parity, bits, flow); in sport_uart_console_setup()
|
D | 68328serial.c | 197 unsigned short int baud = uart_addr[ss->line].ubaud; in get_baud() local 198 if (GET_FIELD(baud, UBAUD_PRESCALER) == 0x38) result = 38400; in get_baud() 199 result >>= GET_FIELD(baud, UBAUD_DIVIDE); in get_baud()
|
/linux-4.4.14/drivers/net/hamradio/ |
D | baycom_ser_fdx.c | 129 unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; member 427 if (bc->baud < 300 || bc->baud > 4800) { in ser12_open() 438 bc->hdrv.par.bitrate = bc->baud; in ser12_open() 439 bc->baud_us = 1000000/bc->baud; in ser12_open() 440 bc->baud_uartdiv = (115200/8)/bc->baud; in ser12_open() 473 bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); in ser12_open() 521 unsigned int baud; in baycom_setmode() local 524 baud = simple_strtoul(modestr+3, NULL, 10); in baycom_setmode() 525 if (baud >= 3 && baud <= 48) in baycom_setmode() 526 bc->baud = baud*100; in baycom_setmode() [all …]
|
/linux-4.4.14/arch/mips/sgi-ip22/ |
D | ip22-setup.c | 68 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local 69 if (baud) in plat_mem_setup() 70 strcpy(options, baud); in plat_mem_setup() 72 baud ? options : NULL); in plat_mem_setup()
|
/linux-4.4.14/arch/x86/kernel/ |
D | early_printk.c | 152 unsigned long baud = DEFAULT_BAUD; in early_serial_init() local 178 baud = simple_strtoull(s, &e, 0); in early_serial_init() 180 if (baud == 0 || s == e) in early_serial_init() 181 baud = DEFAULT_BAUD; in early_serial_init() 185 divisor = 115200 / baud; in early_serial_init() 220 unsigned long baud = DEFAULT_BAUD; in early_pci_serial_init() local 300 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init() 301 baud = DEFAULT_BAUD; in early_pci_serial_init() 305 divisor = 115200 / baud; in early_pci_serial_init()
|
/linux-4.4.14/arch/mips/mti-malta/ |
D | malta-init.c | 45 int baud = 0; in console_config() local 52 baud = baud*10 + *s++ - '0'; in console_config() 66 if (baud == 0) in console_config() 67 baud = 38400; in console_config() 76 sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud, in console_config() 82 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
|
/linux-4.4.14/arch/mips/sgi-ip32/ |
D | ip32-setup.c | 94 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local 95 if (baud) in plat_mem_setup() 96 strcpy(options, baud); in plat_mem_setup() 98 baud ? options : NULL); in plat_mem_setup()
|
/linux-4.4.14/drivers/power/reset/ |
D | qnap-poweroff.c | 29 u32 baud; member 34 .baud = 19200, 39 .baud = 9600, 60 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()
|
/linux-4.4.14/arch/powerpc/boot/ |
D | cuboot-acadia.c | 56 unsigned long baud; in get_clocks() local 126 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) in get_clocks() 130 div = plloutb / (16 * baud); /* total divisor */ in get_clocks()
|
/linux-4.4.14/arch/mips/boot/dts/ingenic/ |
D | jz4780.dtsi | 55 clock-names = "baud", "module"; 68 clock-names = "baud", "module"; 81 clock-names = "baud", "module"; 94 clock-names = "baud", "module"; 107 clock-names = "baud", "module";
|
D | jz4740.dtsi | 55 clock-names = "baud", "module"; 66 clock-names = "baud", "module";
|
/linux-4.4.14/arch/mips/ar7/ |
D | prom.c | 202 int baud = 0; in console_config() local 211 baud = simple_strtoul(s, &p, 10); in console_config() 227 if (baud == 0) in console_config() 228 baud = 38400; in console_config() 235 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config() 238 sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity, in console_config()
|
/linux-4.4.14/Documentation/devicetree/bindings/serial/ |
D | ingenic,uart.txt | 8 - clocks : phandles to the module & baud clocks. 10 Required elements: "baud", "module" 22 clock-names = "baud", "module";
|
D | mtk-uart.txt | 22 - "baud": The clock the baudrate is derived from 26 baud clock if the baudclk does not exist. Do not use this for new designs. 35 clock-names = "baud", "bus";
|
D | samsung_uart.txt | 23 - "clk_uart_baudN" - Nth baud base clock input (N = 0, 1, ...), 25 internal baud clock mux).
|
D | brcm,bcm6345-uart.txt | 11 - clocks: Clock driving the hardware; used to figure out the baud rate
|
D | arm_sbsa_uart.txt | 10 - current-speed: the (fixed) baud rate set by the firmware
|
D | arc-uart.txt | 8 - current-speed : baud rate for UART
|
/linux-4.4.14/arch/cris/arch-v10/kernel/ |
D | debugport.c | 31 volatile char* baud; member 182 *p->baud = in start_port() 187 *p->baud = in start_port() 192 *p->baud = in start_port() 197 *p->baud = in start_port() 202 *p->baud = in start_port() 207 *p->baud = in start_port() 212 *p->baud = in start_port() 217 *p->baud = in start_port() 222 *p->baud = in start_port()
|
D | head.S | 455 ;; setup the serial port 0 at 115200 baud for debug purposes 489 ;; setup the serial port 1 at 115200 baud for debug purposes 524 ;; setup the serial port 2 at 115200 baud for debug purposes 560 ;; setup the serial port 3 at 115200 baud for debug purposes
|
/linux-4.4.14/arch/nios2/boot/compressed/ |
D | console.c | 99 unsigned int baud, baudclk; in console_init() local 102 baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; in console_init() 103 baudclk = UART0_FREQ / baud; in console_init()
|
/linux-4.4.14/drivers/tty/serial/cpm_uart/ |
D | cpm_uart_cpm1.h | 13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 15 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart_cpm2.h | 13 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument 15 cpm_setbrg(brg, baud); in cpm_set_brg()
|
D | cpm_uart_core.c | 501 int baud; in cpm_uart_set_termios() local 513 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in cpm_uart_set_termios() 514 if (baud < HW_BUF_SPD_THRESHOLD || in cpm_uart_set_termios() 525 maxidl = baud / 2400; in cpm_uart_set_termios() 579 uart_update_timeout(port, termios->c_cflag, baud); in cpm_uart_set_termios() 649 clk_set_rate(pinfo->clk, baud); in cpm_uart_set_termios() 651 cpm_set_brg(pinfo->brg - 1, baud); in cpm_uart_set_termios() 1297 int baud = 38400; in cpm_uart_console_setup() local 1337 uart_parse_options(options, &baud, &parity, &bits, &flow); in cpm_uart_console_setup() 1339 if ((baud = uart_baudrate()) == -1) in cpm_uart_console_setup() [all …]
|
/linux-4.4.14/arch/frv/kernel/ |
D | gdb-io.c | 81 void gdbstub_set_baud(unsigned baud) in gdbstub_set_baud() argument 87 value = __serial_clock_speed_HZ / 16 / baud; in gdbstub_set_baud() 94 if (low + (high - low) / 2 > baud) in gdbstub_set_baud()
|
D | debug-stub.c | 201 void __init console_set_baud(unsigned baud) in console_set_baud() argument 207 value = __serial_clock_speed_HZ / 16 / baud; in console_set_baud() 214 if (low + (high - low) / 2 > baud) in console_set_baud()
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | early_printk.c | 39 int baud, bit; in earlyserial_init() local 48 baud = simple_strtoul(buf, &buf, 10); in earlyserial_init() 49 switch (baud) { in earlyserial_init()
|
/linux-4.4.14/drivers/spi/ |
D | spi-oc-tiny.c | 49 unsigned int baud; member 86 unsigned int baud = hw->baud; in tiny_spi_setup_transfer() local 90 baud = tiny_spi_baud(spi, t->speed_hz); in tiny_spi_setup_transfer() 92 writel(baud, hw->base + TINY_SPI_BAUD); in tiny_spi_setup_transfer() 103 hw->baud = tiny_spi_baud(spi, hw->speed_hz); in tiny_spi_setup()
|
D | spi-st-ssc4.c | 67 unsigned int baud; member 249 spi_st->baud = spi_st_clk / (2 * sscbrg); in spi_st_setup() 257 hz, spi_st->baud, sscbrg); in spi_st_setup()
|
D | spi-bfin-sport.c | 102 u16 baud; member 259 bfin_write(&drv_data->regs->tclkdiv, chip->baud); in bfin_sport_spi_restore_state() 520 drv_data->cur_chip->baud, drv_data->cur_chip->cs_gpio, in bfin_sport_spi_pump_messages() 616 chip->baud = bfin_sport_hz_to_spi_baud(spi->max_speed_hz); in bfin_sport_spi_setup()
|
D | spi-bfin5xx.c | 114 u16 baud; member 215 bfin_write(&drv_data->regs->baud, chip->baud); in bfin_spi_restore_state() 664 bfin_write(&drv_data->regs->baud, hz_to_spi_baud(transfer->speed_hz)); in bfin_spi_pump_transfers() 911 drv_data->cur_chip->baud, drv_data->cur_chip->flag, in bfin_spi_pump_messages() 1038 chip->baud = hz_to_spi_baud(spi->max_speed_hz); in bfin_spi_setup()
|
/linux-4.4.14/Documentation/devicetree/bindings/spi/ |
D | spi_oc_tiny.txt | 8 - baud-width: width, in bits, of the programmable divider used to scale 11 The clock-frequency and baud-width properties are needed only if the divider
|
D | spi-meson.txt | 12 - clocks: phandle of the input clock for the baud rate generator
|
/linux-4.4.14/drivers/staging/dgnc/ |
D | dgnc_cls.c | 432 uint baud = 9600; in cls_param() local 474 baud = ch->ch_custom_speed; in cls_param() 522 baud = C_BAUD(ch->ch_pun.un_tty) & 0xff; in cls_param() 524 baud = C_BAUD(ch->ch_tun.un_tty) & 0xff; in cls_param() 532 jindex = baud; in cls_param() 536 baud = bauds[iindex][jindex]; in cls_param() 538 baud = 0; in cls_param() 541 if (baud == 0) in cls_param() 542 baud = 9600; in cls_param() 597 if (baud == 0) in cls_param() [all …]
|
D | dgnc_neo.c | 584 uint baud = 9600; in neo_param() local 627 baud = ch->ch_custom_speed; in neo_param() 670 baud = C_BAUD(ch->ch_pun.un_tty) & 0xff; in neo_param() 672 baud = C_BAUD(ch->ch_tun.un_tty) & 0xff; in neo_param() 680 jindex = baud; in neo_param() 683 baud = bauds[iindex][jindex]; in neo_param() 685 baud = 0; in neo_param() 687 if (baud == 0) in neo_param() 688 baud = 9600; in neo_param() 744 if (baud == 0) in neo_param() [all …]
|
D | digi.h | 170 unsigned int baud; member
|
D | dgnc_mgmt.c | 245 ni.baud = ch->ch_old_baud; in dgnc_mgmt_ioctl()
|
/linux-4.4.14/arch/arc/boot/dts/ |
D | vdk_axs10x_mb.dtsi | 52 baud = <115200>; 62 baud = <115200>; 72 baud = <115200>;
|
D | axs10x_mb.dtsi | 99 baud = <115200>; 109 baud = <115200>; 120 baud = <115200>;
|
D | vdk_axc003.dtsi | 38 baud = <115200>;
|
D | vdk_axc003_idu.dtsi | 53 baud = <115200>;
|
D | nsimosci_hs.dts | 49 baud = <115200>;
|
D | nsimosci.dts | 49 baud = <115200>;
|
D | nsimosci_hs_idu.dts | 68 baud = <115200>;
|
D | axc001.dtsi | 62 baud = <115200>;
|
D | axc003.dtsi | 61 baud = <115200>;
|
D | axc003_idu.dtsi | 84 baud = <115200>;
|
/linux-4.4.14/Documentation/devicetree/bindings/ |
D | chosen.txt | 32 <baud>{<parity>{<bits>{<flow>}}} 36 baud - baud rate in decimal
|
D | marvell.txt | 197 Represent baud rate generator hardware associated with the MPSC 204 source for the baud rate generator. This value corresponds 207 - clock-frequence : The frequency (in Hz) of the baud rate 210 firmware) of the baud rate generator.
|
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/ |
D | qnap-poweroff.txt | 5 Orion5x SoCs. Sending the character 'A', at 19200 baud, tells the 9 Synology NAS devices use a similar scheme, but a different baud rate,
|
/linux-4.4.14/Documentation/devicetree/bindings/clock/ |
D | clock-bindings.txt | 84 clock-names = "baud", "register"; 88 This represents a device with two clock inputs, named "baud" and "register". 89 The baud clock is connected to output 1 of the &osc device, and the register 113 /* UART, using the low frequency oscillator for the baud clock, 121 clock-names = "baud", "register"; 132 * The UART has its baud clock connected the external oscillator and its 154 clock-names = "baud", "register";
|
/linux-4.4.14/Documentation/serial/ |
D | driver | 351 uart_update_timeout(port,cflag,baud) 353 number of bits, parity, stop bits and baud rate. 359 Return the numeric baud rate for the specified termios, taking 360 account of the special 38400 baud "kludge". The B0 baud rate 361 is mapped to 9600 baud. 363 If the baud rate is not within min..max, then if old is non-NULL, 364 the original baud rate will be tried. If that exceeds the 365 min..max constraint, 9600 baud will be returned. termios will 366 be updated to the baud rate in use. 368 Note: min..max must always allow 9600 baud to be selected. [all …]
|
/linux-4.4.14/net/bluetooth/rfcomm/ |
D | tty.c | 876 u8 baud, data_bits, stop_bits, parity, x_on, x_off; in rfcomm_tty_set_termios() local 970 baud = RFCOMM_RPN_BR_2400; in rfcomm_tty_set_termios() 973 baud = RFCOMM_RPN_BR_4800; in rfcomm_tty_set_termios() 976 baud = RFCOMM_RPN_BR_7200; in rfcomm_tty_set_termios() 979 baud = RFCOMM_RPN_BR_9600; in rfcomm_tty_set_termios() 982 baud = RFCOMM_RPN_BR_19200; in rfcomm_tty_set_termios() 985 baud = RFCOMM_RPN_BR_38400; in rfcomm_tty_set_termios() 988 baud = RFCOMM_RPN_BR_57600; in rfcomm_tty_set_termios() 991 baud = RFCOMM_RPN_BR_115200; in rfcomm_tty_set_termios() 994 baud = RFCOMM_RPN_BR_230400; in rfcomm_tty_set_termios() [all …]
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | sysfs-platform-kim | 18 The maximum reliable baud-rate the host can support. 20 UART configurations, so the baud-rate needs to be set 43 configuring baud and install line discipline via this sysfs
|
/linux-4.4.14/net/irda/ircomm/ |
D | ircomm_tty_ioctl.c | 57 int baud; in ircomm_tty_change_speed() local 81 baud = tty_get_baud_rate(tty); in ircomm_tty_change_speed() 82 if (!baud) in ircomm_tty_change_speed() 83 baud = 9600; /* B0 transition handled in rs_set_termios */ in ircomm_tty_change_speed() 85 self->settings.data_rate = baud; in ircomm_tty_change_speed()
|
/linux-4.4.14/arch/frv/include/asm/ |
D | gdb-stub.h | 85 extern void gdbstub_set_baud(unsigned baud); 110 extern void console_set_baud(unsigned baud);
|
/linux-4.4.14/include/linux/ |
D | serial_core.h | 318 unsigned int baud); 322 unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud); 339 unsigned int baud; member 364 void uart_parse_options(char *options, int *baud, int *parity, int *bits, 366 int uart_set_options(struct uart_port *port, struct console *co, int baud,
|
D | ti_wilink_st.h | 339 u32 baud; member
|
D | cyclades.h | 140 int baud; member
|
/linux-4.4.14/drivers/tty/ |
D | isicom.c | 687 unsigned long baud; in isicom_config_port() local 694 baud = C_BAUD(tty); in isicom_config_port() 695 if (baud & CBAUDEX) { in isicom_config_port() 696 baud &= ~CBAUDEX; in isicom_config_port() 704 if (baud < 1 || baud > 4) in isicom_config_port() 707 baud += 15; in isicom_config_port() 709 if (baud == 15) { in isicom_config_port() 717 baud++; /* 57.6 Kbps */ in isicom_config_port() 719 baud += 2; /* 115 Kbps */ in isicom_config_port() 721 baud += 3; /* 230 kbps*/ in isicom_config_port() [all …]
|
D | amiserial.c | 662 int quot = 0, baud_base, baud; in change_speed() local 688 baud = tty_get_baud_rate(tty); in change_speed() 689 if (!baud) in change_speed() 690 baud = 9600; /* B0 transition handled in rs_set_termios */ in change_speed() 692 if (baud == 38400 && (port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) in change_speed() 695 if (baud == 134) in change_speed() 698 else if (baud) in change_speed() 699 quot = baud_base / baud; in change_speed() 706 baud = tty_get_baud_rate(tty); in change_speed() 707 if (!baud) in change_speed() [all …]
|
D | moxa.c | 1483 int rts, cts, txflow, rxflow, xany, baud; in moxa_set_tty_param() local 1498 baud = MoxaPortSetTermio(ch, ts, tty_get_baud_rate(tty)); in moxa_set_tty_param() 1499 if (baud == -1) in moxa_set_tty_param() 1500 baud = tty_termios_baud_rate(old_termios); in moxa_set_tty_param() 1502 tty_encode_baud_rate(tty, baud, baud); in moxa_set_tty_param() 1744 static speed_t MoxaPortSetBaud(struct moxa_port *port, speed_t baud) in MoxaPortSetBaud() argument 1751 if (baud < 50) in MoxaPortSetBaud() 1753 if (baud > max) in MoxaPortSetBaud() 1754 baud = max; in MoxaPortSetBaud() 1756 val = clock / baud; in MoxaPortSetBaud() [all …]
|
D | cyclades.c | 1936 static void cyy_baud_calc(struct cyclades_port *info, __u32 baud) in cyy_baud_calc() argument 1942 if (baud == 0) { in cyy_baud_calc() 1949 if (cy_clock / co_val / baud > 63) in cyy_baud_calc() 1953 bpr = (cy_clock / co_val * 2 / baud + 1) / 2; in cyy_baud_calc() 1971 int baud, baud_rate = 0; in cy_set_line_char() local 1999 baud = tty_get_baud_rate(tty); in cy_set_line_char() 2000 if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == in cy_set_line_char() 2003 baud_rate = info->baud / info->custom_divisor; in cy_set_line_char() 2005 baud_rate = info->baud; in cy_set_line_char() 2006 } else if (baud > CD1400_MAX_SPEED) { in cy_set_line_char() [all …]
|
D | rocket.c | 711 int bits, baud, divisor; in configure_r_port() local 746 baud = tty_get_baud_rate(tty); in configure_r_port() 747 if (!baud) in configure_r_port() 748 baud = 9600; in configure_r_port() 749 divisor = ((rp_baud_base[info->board] + (baud >> 1)) / baud) - 1; in configure_r_port() 751 baud = tty_termios_baud_rate(old_termios); in configure_r_port() 752 if (!baud) in configure_r_port() 753 baud = 9600; in configure_r_port() 754 divisor = (rp_baud_base[info->board] / baud) - 1; in configure_r_port() 757 baud = 9600; in configure_r_port() [all …]
|
D | mxser.c | 574 int quot = 0, baud; in mxser_set_baud() local 590 baud = info->baud_base/quot; in mxser_set_baud() 591 tty_encode_baud_rate(tty, baud, baud); in mxser_set_baud() 1239 speed_t baud; in mxser_set_serial_info() local 1278 baud = new_serial.baud_base / new_serial.custom_divisor; in mxser_set_serial_info() 1279 tty_encode_baud_rate(tty, baud, baud); in mxser_set_serial_info()
|
/linux-4.4.14/firmware/keyspan_pda/ |
D | keyspan_pda.S | 290 ;; using timer2, in 16-bit baud-rate-generator mode 292 ;; RCAP2H,RCAP2L = 65536 - fosc/(32*baud) 395 ;; 00 is set baud, wValue[0] has baud rate index 650 set_baud: ; baud index in r3 1021 ;; baud[0]: 110 1024 ;; baud[1]: 300 1027 ;; baud[2]: 1200 1030 ;; baud[3]: 2400 1033 ;; baud[4]: 4800 1036 ;; baud[5]: 9600 [all …]
|
D | xircom_pgs.S | 328 ;; using timer2, in 16-bit baud-rate-generator mode 330 ;; RCAP2H,RCAP2L = 65536 - fosc/(32*baud) 433 ;; 00 is set baud, wValue[0] has baud rate index 688 set_baud: ; baud index in r3 1089 ;; baud[0]: 110 1092 ;; baud[1]: 300 1095 ;; baud[2]: 1200 1098 ;; baud[3]: 2400 1101 ;; baud[4]: 4800 1104 ;; baud[5]: 9600 [all …]
|
/linux-4.4.14/drivers/firmware/ |
D | pcdp.c | 33 if (uart->baud) { in setup_serial_console() 34 p += sprintf(p, ",%llu", uart->baud); in setup_serial_console()
|
D | pcdp.h | 47 u64 baud; member
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | mt8135.dtsi | 234 clock-names = "baud", "bus"; 243 clock-names = "baud", "bus"; 252 clock-names = "baud", "bus"; 261 clock-names = "baud", "bus";
|
D | imx51.dtsi | 219 clock-names = "ipg", "baud"; 514 clock-names = "ipg", "baud"; 572 clock-names = "ipg", "baud";
|
/linux-4.4.14/drivers/mmc/card/ |
D | sdio_uart.c | 257 unsigned int baud, quot; in sdio_uart_change_speed() local 283 baud = tty_termios_baud_rate(termios); in sdio_uart_change_speed() 284 if (baud == 0) in sdio_uart_change_speed() 285 baud = 9600; /* Special case: B0 rate. */ in sdio_uart_change_speed() 286 if (baud <= port->uartclk) in sdio_uart_change_speed() 299 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed() 301 if (baud < 2400) in sdio_uart_change_speed()
|
/linux-4.4.14/drivers/staging/speakup/ |
D | serialio.c | 28 int baud = 9600, quot = 0; in spk_serial_init() local 41 quot = ser->baud_base / baud; in spk_serial_init()
|
/linux-4.4.14/Documentation/arm/SA1100/ |
D | Brutus | 32 baud 115200 44 you may use minicom configured with /dev/ttyS1, 9600 baud, 8N1, no flow
|
D | GraphicsClient | 43 baud 115200 55 and that minicom is preconfigured with /dev/ttyS1, 38400 baud, 8N1, no flow
|
/linux-4.4.14/Documentation/networking/ |
D | baycom.txt | 16 Its baud rate may be changed via the `baud' module parameter, 25 It only supports half duplex, and only 1200 baud. Its devices 40 ser12: This is a very simple 1200 baud AFSK modem. The modem consists only 48 par96: This is a modem for 9600 baud FSK compatible to the G3RUH standard.
|
/linux-4.4.14/Documentation/frv/ |
D | booting.txt | 86 (*) console=ttyS<x>[,<baud>[<parity>[<bits>[<flow>]]]] 91 <baud> is a standard baud rate between 1200 and 115200 (default 9600). 106 To use the first on-chip serial port at baud rate 115200, no parity, 8
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | bfin5xx_spi.h | 59 __BFP(baud);
|
/linux-4.4.14/drivers/ipack/devices/ |
D | ipoctal.c | 488 speed_t baud; in ipoctal_set_termios() local 553 baud = tty_get_baud_rate(tty); in ipoctal_set_termios() 554 tty_termios_encode_baud_rate(&tty->termios, baud, baud); in ipoctal_set_termios() 557 switch (baud) { in ipoctal_set_termios()
|
/linux-4.4.14/drivers/net/irda/ |
D | ali-ircc.c | 111 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); 948 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud) in ali_ircc_change_speed() argument 954 pr_debug("%s(), setting speed = %d\n", __func__, baud); in ali_ircc_change_speed() 964 if (baud > 115200) in ali_ircc_change_speed() 968 ali_ircc_fir_change_speed(self, baud); in ali_ircc_change_speed() 982 ali_ircc_sir_change_speed(self, baud); in ali_ircc_change_speed() 995 static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 baud) in ali_ircc_fir_change_speed() argument 1009 __func__, self->io.speed, baud); in ali_ircc_fir_change_speed() 1018 self->io.speed = baud; in ali_ircc_fir_change_speed() 1021 ali_ircc_change_dongle_speed(self, baud); in ali_ircc_fir_change_speed()
|
D | vlsi_ir.c | 278 seq_printf(seq, "IrPHY setup: %d baud - %s encoding\n", idev->baud, in vlsi_proc_ndev() 759 pr_debug("%s: %d -> %d\n", __func__, idev->baud, idev->new_baud); in vlsi_set_baud() 831 idev->baud = baudrate; in vlsi_set_baud() 859 if (speed != -1 && speed != idev->baud) { in vlsi_hard_start_xmit() 1369 idev->new_baud = idev->baud; /* keep current baudrate */ in vlsi_tx_timeout() 1744 idev->new_baud = idev->baud; in vlsi_irda_suspend()
|
D | vlsi_ir.h | 720 int baud, new_baud; member
|
/linux-4.4.14/arch/arm64/boot/dts/mediatek/ |
D | mt8173.dtsi | 295 clock-names = "baud", "bus"; 305 clock-names = "baud", "bus"; 315 clock-names = "baud", "bus"; 325 clock-names = "baud", "bus";
|
/linux-4.4.14/drivers/staging/fwserial/ |
D | fwserial.c | 941 unsigned baud, frame; in set_termios() local 943 baud = tty_termios_baud_rate(&tty->termios); in set_termios() 944 tty_termios_encode_baud_rate(&tty->termios, baud, baud); in set_termios() 964 port->cps = (baud << 1) / frame; in set_termios() 986 return baud; in set_termios() 993 unsigned baud; in fwtty_port_activate() local 1008 baud = set_termios(port, tty); in fwtty_port_activate() 1013 if (baud != 0) in fwtty_port_activate() 1302 unsigned baud; in fwtty_set_termios() local 1305 baud = set_termios(port, tty); in fwtty_set_termios() [all …]
|
/linux-4.4.14/drivers/tty/serial/jsm/ |
D | jsm_cls.c | 692 u32 baud = 9600; in cls_param() local 722 baud = 9600; in cls_param() 725 baud = baud_rates[i].rate; in cls_param() 770 quot = ch->ch_bd->bd_dividend / baud; in cls_param()
|
D | jsm_neo.c | 939 u32 baud; in neo_param() local 991 baud = 9600; in neo_param() 994 baud = baud_rates[i].rate; in neo_param() 1040 quot = ch->ch_bd->bd_dividend / baud; in neo_param() 1090 if (baud < 9600) { in neo_param()
|
/linux-4.4.14/Documentation/ |
D | braille-console.txt | 16 to the first serial port, and console=brl,ttyS0,115200 to override the baud rate
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | gdb-stub.h | 101 extern asmlinkage void gdbstub_io_set_baud(unsigned baud);
|
/linux-4.4.14/Documentation/devicetree/bindings/sound/ |
D | fsl,esai.txt | 26 "extal" The esai baud clock for esai controller used to
|
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/ |
D | cpm.txt | 27 - fsl,cpm-brg : Indicates which baud rate generator the device
|
/linux-4.4.14/arch/cris/boot/rescue/ |
D | kimagerescue.S | 75 ;; setup the serial port at 115200 baud
|
/linux-4.4.14/Documentation/isdn/ |
D | README | 131 This command enables V.110 protocol with 9600 baud 132 (x=9600), 19200 baud (x=19200) or 38400 baud 148 There is _NO_ common convention for 38400 baud. 236 7 = V.110, 9600 baud 237 8 = V.110, 19200 baud 238 9 = V.110, 38400 baud
|
/linux-4.4.14/drivers/net/wan/ |
D | sbni.c | 169 static u32 baud[ SBNI_MAX_NUM_CARDS ] __initdata; variable 176 static iarr *dest[5] __initdata = { &io, &irq, &baud, &rxl, &mac }; 400 nl->csr1.rate = baud[ num ]; in sbni_probe1() 1469 module_param_array(baud, int, NULL, 0);
|
/linux-4.4.14/Documentation/usb/ |
D | usb-serial.txt | 154 changing baud rates (up to 115200) 160 changing baud rates ought to flush tx/rx to avoid mangled half characters 178 have been pretty thoroughly tested at various baud rates with 8-N-1 241 $PSRF100,<protocol>,<baud>,<databits>,<stopbits>,<parity>*CHECKSUM 251 The hid->com adapter can run at a maximum baud of 115200bps. Please note
|
/linux-4.4.14/drivers/bluetooth/ |
D | bluecard_cs.c | 564 static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud) in bluecard_hci_set_baud_rate() argument 578 switch (baud) { in bluecard_hci_set_baud_rate()
|