/linux-6.3-rc2/arch/m68k/atari/ |
A 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() 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() 227 clksrc = clksrc_table[baud]; in atari_init_scc_port() 229 div = div_table[baud]; in atari_init_scc_port() 265 int baud = cflag & CBAUD; in atari_init_midi_port() local 274 baud += B38400; in atari_init_midi_port() [all …]
|
/linux-6.3-rc2/arch/mips/pic32/pic32mzda/ |
A D | early_console.c | 50 static void __init configure_uart(int port, int baud) in configure_uart() argument 69 configure_uart(console_port, baud); in setup_early_console() 111 int baud = -1; in get_baud_from_cmdline() local 124 baud = 0; in get_baud_from_cmdline() 126 baud = baud * 10 + *s++ - '0'; in get_baud_from_cmdline() 130 return baud; in get_baud_from_cmdline() 136 int baud, port; in fw_init_early_console() local 140 baud = get_baud_from_cmdline(arch_cmdline); in fw_init_early_console() 146 if (baud == -1) in fw_init_early_console() 147 baud = EARLY_CONSOLE_BAUDRATE; in fw_init_early_console() [all …]
|
/linux-6.3-rc2/arch/x86/boot/ |
A D | early_serial_console.c | 26 static void early_serial_init(int port, int baud) in early_serial_init() argument 36 divisor = 115200 / baud; in early_serial_init() 48 int baud = DEFAULT_BAUD; in parse_earlyprintk() local 92 baud = simple_strtoull(arg + pos, &e, 0); in parse_earlyprintk() 93 if (baud == 0 || arg + pos == e) in parse_earlyprintk() 94 baud = DEFAULT_BAUD; in parse_earlyprintk() 98 early_serial_init(port, baud); in parse_earlyprintk() 120 int baud = DEFAULT_BAUD; in parse_console_uart8250() local 140 baud = simple_strtoull(options + 1, &options, 0); in parse_console_uart8250() 142 baud = probe_baud(port); in parse_console_uart8250() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/serial/ |
A D | nvidia,tegra20-hsuart.txt | 27 - nvidia,adjust-baud-rates: List of entries providing percentage of baud rate 31 When baud rate set on controller falls within the range mentioned in this 32 field, baud rate will be adjusted by percentage mentioned here. 34 Increase baud rate by 2% when set baud rate falls within range 9600 to 115200 37 Standard UART devices are expected to have tolerance for baud rate error by 39 Tegra186 chip has a known hardware issue. UART Rx baud rate tolerance level 41 corruption/invalid framing errors. Parker errata suggests adjusting baud 45 its spec) for valid range and Tegra baud rate has to be set above actual 46 Tx baud rate observed. To do this we use nvidia,adjust-baud-rates 56 nvidia,adjust-baud-rates = <0 9600 100>, [all …]
|
/linux-6.3-rc2/drivers/usb/serial/ |
A D | pl2303.c | 594 return baud; in pl2303_get_supported_baud_rate() 606 return baud; in pl2303_encode_baud_rate_direct() 645 return baud; in pl2303_encode_baud_rate_divisor() 684 return baud; in pl2303_encode_baud_rate_divisor_alt() 694 speed_t baud; in pl2303_encode_baud_rate() local 698 if (!baud) in pl2303_encode_baud_rate() 702 baud = min_t(speed_t, baud, spriv->type->max_baud_rate); in pl2303_encode_baud_rate() 713 baud = pl2303_encode_baud_rate_direct(buf, baud); in pl2303_encode_baud_rate() 715 baud = pl2303_encode_baud_rate_divisor_alt(buf, baud); in pl2303_encode_baud_rate() 717 baud = pl2303_encode_baud_rate_divisor(buf, baud); in pl2303_encode_baud_rate() [all …]
|
/linux-6.3-rc2/drivers/net/hamradio/ |
A D | baycom_ser_fdx.c | 388 if (bc->baud < 300 || bc->baud > 4800) { in ser12_open() 399 bc->hdrv.par.bitrate = bc->baud; in ser12_open() 400 bc->baud_us = 1000000/bc->baud; in ser12_open() 401 bc->baud_uartdiv = (115200/8)/bc->baud; in ser12_open() 482 unsigned int baud; in baycom_setmode() local 485 baud = simple_strtoul(modestr+3, NULL, 10); in baycom_setmode() 486 if (baud >= 3 && baud <= 48) in baycom_setmode() 487 bc->baud = baud*100; in baycom_setmode() 580 module_param_array(baud, int, NULL, 0); 619 bc->baud = baud[i]; in init_baycomserfdx() [all …]
|
/linux-6.3-rc2/arch/mips/sni/ |
A 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-6.3-rc2/drivers/tty/serial/ |
A D | suncore.c | 89 int baud, bits, stop, cflag; in sunserial_console_termios() local 121 baud = simple_strtoul(s, NULL, 0); in sunserial_console_termios() 131 switch (baud) { in sunserial_console_termios() 145 default: baud = 9600; cflag |= B9600; break; in sunserial_console_termios() 172 int baud; member 187 for (i = 0; mouse_baud_table[i].baud != -1; i++) in suncore_mouse_baud_cflag_next() 192 if (mouse_baud_table[i].baud == -1) in suncore_mouse_baud_cflag_next() 195 *new_baud = mouse_baud_table[i].baud; in suncore_mouse_baud_cflag_next()
|
A D | ar933x_uart.c | 253 unsigned int baud, in ar933x_uart_get_scale_step() argument 263 min_diff = baud; in ar933x_uart_get_scale_step() 268 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step() 275 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step() 292 unsigned int baud, scale, step; in ar933x_uart_set_termios() local 315 ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); in ar933x_uart_set_termios() 328 uart_update_timeout(port, new->c_cflag, baud); in ar933x_uart_set_termios() 358 tty_termios_encode_baud_rate(new, baud, baud); in ar933x_uart_set_termios() 665 int baud = 115200; in ar933x_uart_console_setup() local 678 uart_parse_options(options, &baud, &parity, &bits, &flow); in ar933x_uart_console_setup() [all …]
|
A D | vt8500_serial.c | 287 div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; in vt8500_set_baud_rate() 290 baud = port->uartclk / 16 / ((div & 0x3ff) + 1); in vt8500_set_baud_rate() 300 return baud; in vt8500_set_baud_rate() 342 unsigned int baud, lcr; in vt8500_set_termios() local 348 baud = uart_get_baud_rate(port, termios, old, 900, 921600); in vt8500_set_termios() 349 baud = vt8500_set_baud_rate(port, baud); in vt8500_set_termios() 351 tty_termios_encode_baud_rate(termios, baud, baud); in vt8500_set_termios() 393 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios() 497 int baud = 9600; in vt8500_console_setup() local 511 uart_parse_options(options, &baud, &parity, &bits, &flow); in vt8500_console_setup() [all …]
|
A D | xilinx_uartps.c | 202 unsigned int baud; member 419 if (baud > calc_baud) in cdns_uart_calc_baud_divs() 420 bauderror = baud - calc_baud; in cdns_uart_calc_baud_divs() 422 bauderror = calc_baud - baud; in cdns_uart_calc_baud_divs() 433 bestbaud = baud; in cdns_uart_calc_baud_divs() 446 unsigned int baud) in cdns_uart_set_baud_rate() argument 466 cdns_uart->baud = baud; in cdns_uart_set_baud_rate() 532 cdns_uart->baud); in cdns_uart_clk_notifier_cb() 702 baud = cdns_uart_set_baud_rate(port, baud); in cdns_uart_set_termios() 704 tty_termios_encode_baud_rate(termios, baud, baud); in cdns_uart_set_termios() [all …]
|
A D | 21285.c | 227 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local 243 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios() 244 quot = uart_get_divisor(port, baud); in serial21285_set_termios() 279 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios() 399 serial21285_get_options(struct uart_port *port, int *baud, in serial21285_get_options() argument 430 *baud = port->uartclk / (16 * (tmp + 1)); in serial21285_get_options() 437 int baud = 9600; in serial21285_console_setup() local 448 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup() 450 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup() 452 return uart_set_options(port, co, baud, parity, bits, flow); in serial21285_console_setup()
|
A D | arc_uart.c | 97 unsigned long baud; member 356 unsigned int baud, uartl, uarth, hw_val; in arc_serial_set_termios() local 366 baud = uart_get_baud_rate(port, new, old, 0, 460800); in arc_serial_set_termios() 368 hw_val = port->uartclk / (uart->baud * 4) - 1; in arc_serial_set_termios() 393 tty_termios_encode_baud_rate(new, baud, baud); in arc_serial_set_termios() 395 uart_update_timeout(port, new->c_cflag, baud); in arc_serial_set_termios() 484 int baud = 115200; in arc_serial_console_setup() local 501 uart_parse_options(options, &baud, &parity, &bits, &flow); in arc_serial_console_setup() 507 return uart_set_options(port, co, baud, parity, bits, flow); in arc_serial_console_setup() 559 hw_val = port->uartclk / (dev->baud * 4) - 1; in arc_early_console_setup() [all …]
|
A D | sunsab.c | 646 if (baud == 0) { in calc_ebrg() 657 n = (SAB_BASE_BAUD * 10) / baud; in calc_ebrg() 707 calc_ebrg(baud, &n, &m); in sunsab_convert_to_sab() 874 unsigned int baud, quot; in sunsab_console_setup() local 891 case B150: baud = 150; break; in sunsab_console_setup() 892 case B300: baud = 300; break; in sunsab_console_setup() 893 case B600: baud = 600; break; in sunsab_console_setup() 894 case B1200: baud = 1200; break; in sunsab_console_setup() 895 case B2400: baud = 2400; break; in sunsab_console_setup() 896 case B4800: baud = 4800; break; in sunsab_console_setup() [all …]
|
A D | mpc52xx_uart.c | 292 unsigned int baud; in mpc5200_psc_set_baudrate() local 299 divisor = (port->uartclk + 16 * baud) / (32 * baud); in mpc5200_psc_set_baudrate() 303 return baud; in mpc5200_psc_set_baudrate() 310 unsigned int baud; in mpc5200b_psc_set_baudrate() local 319 divisor = (port->uartclk + 2 * baud) / (4 * baud); in mpc5200b_psc_set_baudrate() 329 return baud; in mpc5200b_psc_set_baudrate() 538 unsigned int baud; in mpc512x_psc_set_baudrate() local 558 divisor = (port->uartclk + 8 * baud) / (16 * baud); in mpc512x_psc_set_baudrate() 562 return baud; in mpc512x_psc_set_baudrate() 896 divisor = (port->uartclk + 8 * baud) / (16 * baud); in mpc5125_psc_set_baudrate() [all …]
|
/linux-6.3-rc2/arch/mips/sgi-ip22/ |
A 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-6.3-rc2/arch/x86/kernel/ |
A D | early_printk.c | 151 unsigned long baud = DEFAULT_BAUD; in early_serial_init() local 177 baud = simple_strtoull(s, &e, 0); in early_serial_init() 179 if (baud == 0 || s == e) in early_serial_init() 180 baud = DEFAULT_BAUD; in early_serial_init() 184 divisor = 115200 / baud; in early_serial_init() 220 unsigned long baud = DEFAULT_BAUD; in early_pci_serial_init() local 308 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init() 309 baud = DEFAULT_BAUD; in early_pci_serial_init() 313 divisor = 115200 / baud; in early_pci_serial_init()
|
/linux-6.3-rc2/arch/mips/mti-malta/ |
A 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-6.3-rc2/arch/mips/generic/ |
A D | yamon-dt.c | 161 unsigned int uart, baud, stop_bits; in yamon_dt_serial_config() local 176 baud = stop_bits = 0; in yamon_dt_serial_config() 184 baud *= 10; in yamon_dt_serial_config() 185 baud += mode_var[0] - '0'; in yamon_dt_serial_config() 202 if (!baud) in yamon_dt_serial_config() 203 baud = 38400; in yamon_dt_serial_config() 212 uart, baud, parity, stop_bits, in yamon_dt_serial_config()
|
/linux-6.3-rc2/drivers/tty/serial/8250/ |
A D | 8250_pericom.c | 51 static void pericom_do_set_divisor(struct uart_port *port, unsigned int baud, in pericom_do_set_divisor() argument 58 unsigned int divisor = max(maxrate / baud, 1U); in pericom_do_set_divisor() 59 int delta = maxrate / divisor - baud; in pericom_do_set_divisor() 61 if (baud > maxrate + baud / 50) in pericom_do_set_divisor() 64 if (delta > baud / 50) in pericom_do_set_divisor() 71 delta = maxrate / divisor - baud; in pericom_do_set_divisor() 72 if (abs(delta) < baud / 50) { in pericom_do_set_divisor()
|
/linux-6.3-rc2/arch/mips/sgi-ip32/ |
A D | ip32-setup.c | 92 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local 93 if (baud) in plat_mem_setup() 94 strcpy(options, baud); in plat_mem_setup() 96 baud ? options : NULL); in plat_mem_setup()
|
/linux-6.3-rc2/drivers/power/reset/ |
A D | qnap-poweroff.c | 24 u32 baud; member 29 .baud = 19200, 34 .baud = 9600, 55 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()
|
/linux-6.3-rc2/arch/powerpc/boot/ |
A D | cuboot-acadia.c | 53 unsigned long baud; in get_clocks() local 123 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) in get_clocks() 127 div = plloutb / (16 * baud); /* total divisor */ in get_clocks()
|
/linux-6.3-rc2/arch/mips/ar7/ |
A D | prom.c | 191 int baud = 0; in console_config() local 200 baud = simple_strtoul(s, &p, 10); in console_config() 216 if (baud == 0) in console_config() 217 baud = 38400; in console_config() 224 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config() 227 sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity, in console_config()
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | meson6.dtsi | 57 clock-names = "xtal", "pclk", "baud"; 62 clock-names = "xtal", "pclk", "baud"; 67 clock-names = "xtal", "pclk", "baud"; 72 clock-names = "xtal", "pclk", "baud";
|