/linux-master/arch/mips/pic32/pic32mzda/ |
H A D | early_console.c | 50 static void __init configure_uart(int port, int baud) argument 57 __raw_writel(((pbclk / baud) / 16) - 1, uart_base + U_BRG(port)); 63 static void __init setup_early_console(int port, int baud) argument 69 configure_uart(console_port, baud); 111 int baud = -1; local 124 baud = 0; 126 baud = baud * 10 + *s++ - '0'; 130 return baud; 136 int baud, por local [all...] |
/linux-master/arch/m68k/atari/ |
H A D | debug.c | 168 int baud = cflag & CBAUD; local 173 baud += B38400; 174 if (baud < B1200 || baud > B38400+2) 175 baud = B9600; /* use default 9600bps for non-implemented rates */ 176 baud -= B1200; /* baud_table[] starts at 1200bps */ 181 st_mfp.tim_dt_d = baud_table[baud]; 218 int baud = cflag & CBAUD; local 222 baud += B38400; 223 if (baud < B120 265 int baud = cflag & CBAUD; local [all...] |
/linux-master/arch/x86/boot/ |
H A D | early_serial_console.c | 26 static void early_serial_init(int port, int baud) argument 36 divisor = 115200 / baud; 48 int baud = DEFAULT_BAUD; local 92 baud = simple_strtoull(arg + pos, &e, 0); 93 if (baud == 0 || arg + pos == e) 94 baud = DEFAULT_BAUD; 98 early_serial_init(port, baud); 120 int baud = DEFAULT_BAUD; local 140 baud = simple_strtoull(options + 1, &options, 0); 142 baud [all...] |
/linux-master/arch/mips/sgi-ip22/ |
H A D | ip22-setup.c | 68 char *baud = ArcGetEnvironmentVariable("dbaud"); local 69 if (baud) 70 strcpy(options, baud); 72 baud ? options : NULL);
|
/linux-master/arch/mips/sgi-ip32/ |
H A D | ip32-setup.c | 91 char *baud = ArcGetEnvironmentVariable("dbaud"); local 92 if (baud) 93 strcpy(options, baud); 95 baud ? options : NULL);
|
/linux-master/drivers/tty/serial/ |
H A D | suncore.c | 89 int baud, bits, stop, cflag; local 121 baud = simple_strtoul(s, NULL, 0); 131 switch (baud) { 145 default: baud = 9600; cflag |= B9600; break; 170 /* Sun serial MOUSE auto baud rate detection. */ 172 int baud; member in struct:mouse_baud_cflag 187 for (i = 0; mouse_baud_table[i].baud != -1; i++) 192 if (mouse_baud_table[i].baud == -1) 195 *new_baud = mouse_baud_table[i].baud; 201 /* Basically, when the baud rat [all...] |
H A D | esp32_uart.c | 362 static bool esp32_uart_set_baud(struct uart_port *port, u32 baud) argument 365 u32 div = sclk / baud; 372 div = sclk / baud; 380 u32 frag = (sclk * 16) / baud - div * 16; 396 u32 baud; local 405 baud = uart_get_baud_rate(port, termios, old, 449 if (baud) { 450 esp32_uart_set_baud(port, baud); 451 uart_update_timeout(port, termios->c_cflag, baud); 454 baud 555 int baud = 115200; local [all...] |
H A D | arc_uart.c | 97 unsigned long baud; member in struct:arc_uart_port 353 unsigned int baud, uartl, uarth, hw_val; local 357 * Use the generic handler so that any specially encoded baud rates 363 baud = uart_get_baud_rate(port, new, old, 0, 460800); 365 hw_val = port->uartclk / (uart->baud * 4) - 1; 390 tty_termios_encode_baud_rate(new, baud, baud); 392 uart_update_timeout(port, new->c_cflag, baud); 481 int baud = 115200; local 498 uart_parse_options(options, &baud, [all...] |
H A D | apbuart.c | 209 unsigned int baud, quot; local 212 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 213 if (baud == 0) 217 quot = (uart_get_divisor(port, baud)) * 2; 234 uart_update_timeout(port, termios->c_cflag, baud); 249 /* Set baud rate */ 423 apbuart_console_get_options(struct uart_port *port, int *baud, argument 441 *baud = port->uartclk / (16 * (quot + 1)); 448 int baud = 38400; local 469 uart_parse_options(options, &baud, [all...] |
H A D | vt8500_serial.c | 279 static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) argument 287 div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; 289 /* Effective baud rate */ 290 baud = port->uartclk / 16 / ((div & 0x3ff) + 1); 297 /* Break signal timing depends on baud rate, update accordingly */ 298 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); 300 return baud; 342 unsigned int baud, lcr; local 347 /* calculate and set baud rate */ 348 baud 497 int baud = 9600; local [all...] |
H A D | 21285.c | 84 * BAUD_BASE / baud - 1 85 * However, typically BAUD_BASE is not divisible by baud, so 88 * int(BAUD_BASE / baud - 0.5) -> 89 * int(BAUD_BASE / baud - (baud >> 1) / baud) -> 90 * int((BAUD_BASE - (baud >> 1)) / baud) 228 unsigned int baud, quot, h_lcr, b; local 244 baud 400 serial21285_get_options(struct uart_port *port, int *baud, int *parity, int *bits) argument 438 int baud = 9600; local [all...] |
H A D | dz.c | 504 static int dz_encode_baud_rate(unsigned int baud) argument 506 switch (baud) { 565 unsigned int cflag, baud; local 592 baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); 593 bflag = dz_encode_baud_rate(baud); 597 baud = tty_termios_baud_rate(old_termios); 598 bflag = dz_encode_baud_rate(baud); 601 baud = 9600; 604 tty_termios_encode_baud_rate(termios, baud, baud); 867 int baud = 9600; local [all...] |
/linux-master/arch/nios2/boot/compressed/ |
H A D | console.c | 86 unsigned int baud, baudclk; local 89 baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; 90 baudclk = UART0_FREQ / baud;
|
/linux-master/arch/powerpc/boot/ |
H A D | cuboot-acadia.c | 53 unsigned long baud; local 123 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) 127 div = plloutb / (16 * baud); /* total divisor */
|
/linux-master/drivers/power/reset/ |
H A D | qnap-poweroff.c | 24 u32 baud; member in struct:power_off_cfg 29 .baud = 19200, 34 .baud = 9600, 55 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud));
|
/linux-master/arch/mips/generic/ |
H A D | yamon-dt.c | 161 unsigned int uart, baud, stop_bits; local 176 baud = stop_bits = 0; 184 baud *= 10; 185 baud += mode_var[0] - '0'; 202 if (!baud) 203 baud = 38400; 212 uart, baud, parity, stop_bits,
|
/linux-master/arch/mips/mti-malta/ |
H A D | malta-init.c | 45 int baud = 0; local 52 baud = baud*10 + *s++ - '0'; 66 if (baud == 0) 67 baud = 38400; 76 sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud, 82 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud,
|
/linux-master/arch/mips/sni/ |
H A D | setup.c | 65 char *baud; local 76 baud = prom_getenv("lbaud"); 80 baud = prom_getenv("rbaud"); 83 if (baud) 84 strcpy(options, baud); 87 baud ? options : NULL); 90 baud ? options : NULL);
|
/linux-master/drivers/usb/serial/ |
H A D | pl2303.c | 569 * Returns the nearest supported baud rate that can be set directly without 572 static speed_t pl2303_get_supported_baud_rate(speed_t baud) argument 583 if (baud_sup[i] > baud) 588 baud = baud_sup[i - 1]; 589 else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) 590 baud = baud_sup[i - 1]; 592 baud = baud_sup[i]; 594 return baud; 598 * NOTE: If unsupported baud rate 601 pl2303_encode_baud_rate_direct(unsigned char buf[4], speed_t baud) argument 609 pl2303_encode_baud_rate_divisor(unsigned char buf[4], speed_t baud) argument 648 pl2303_encode_baud_rate_divisor_alt(unsigned char buf[4], speed_t baud) argument 694 speed_t baud; local [all...] |
H A D | console.c | 58 int baud = 9600; local 71 baud = simple_strtoul(options, NULL, 10); 84 if (baud == 0) 85 baud = 9600; 164 tty_termios_encode_baud_rate(&tty->termios, baud, baud);
|
H A D | ssu100.c | 222 u16 baud, divisor, remainder; local 236 baud = tty_get_baud_rate(tty); 237 if (!baud) 238 baud = 9600; 240 dev_dbg(&port->dev, "%s - got baud = %d\n", __func__, baud); 243 divisor = MAX_BAUD_RATE / baud; 244 remainder = MAX_BAUD_RATE % baud; 245 if (((remainder * 2) >= baud) && (baud ! [all...] |
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_pericom.c | 51 static void pericom_do_set_divisor(struct uart_port *port, unsigned int baud, argument 58 unsigned int divisor = max(maxrate / baud, 1U); 59 int delta = maxrate / divisor - baud; 61 if (baud > maxrate + baud / 50) 64 if (delta > baud / 50) 71 delta = maxrate / divisor - baud; 72 if (abs(delta) < baud / 50) {
|
H A D | 8250_mtk.c | 312 unsigned int baud, quot, fraction; local 328 * Store the requested baud rate before calling the generic 8250 330 * no higher than (uartclk / 16) so the baud will be clamped if it 332 * higher than that, therefore we'll get original baud rate back 336 baud = tty_termios_baud_rate(termios); 340 tty_termios_encode_baud_rate(termios, baud, baud); 355 baud = uart_get_baud_rate(port, termios, old, 359 if (baud < 115200) { 361 quot = uart_get_divisor(port, baud); [all...] |
/linux-master/drivers/net/hamradio/ |
H A D | baycom_ser_fdx.c | 15 * ser12: This is a very simple 1200 baud AFSK modem. The modem consists only 27 * hsk: This is a 4800 baud FSK modem, designed for TNC use. It works fine 37 * '#' denotes the baud rate / 100, eg. ser12* is '1200 baud, soft DCD' 39 * baud baud rate (between 300 and 4800) 115 unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; member in struct:baycom_state 388 if (bc->baud < 300 || bc->baud > 4800) { 399 bc->hdrv.par.bitrate = bc->baud; 482 unsigned int baud; local 572 static int baud[NR_PORTS] = { [0 ... NR_PORTS-1] = 1200 }; variable [all...] |
/linux-master/arch/x86/kernel/ |
H A D | early_printk.c | 151 unsigned long baud = DEFAULT_BAUD; local 177 baud = simple_strtoull(s, &e, 0); 179 if (baud == 0 || s == e) 180 baud = DEFAULT_BAUD; 183 /* Convert from baud to divisor value */ 184 divisor = 115200 / baud; 213 * The rest of the param should be "[force],B:D.F,baud", where B, D & F describe 220 unsigned long baud = DEFAULT_BAUD; local 255 /* A baud might be following */ 308 if (kstrtoul(s, 0, &baud) < [all...] |