baud 168 arch/m68k/atari/debug.c int baud = cflag & CBAUD; baud 173 arch/m68k/atari/debug.c baud += B38400; baud 174 arch/m68k/atari/debug.c if (baud < B1200 || baud > B38400+2) baud 175 arch/m68k/atari/debug.c baud = B9600; /* use default 9600bps for non-implemented rates */ baud 176 arch/m68k/atari/debug.c baud -= B1200; /* baud_table[] starts at 1200bps */ baud 181 arch/m68k/atari/debug.c st_mfp.tim_dt_d = baud_table[baud]; baud 218 arch/m68k/atari/debug.c int baud = cflag & CBAUD; baud 222 arch/m68k/atari/debug.c baud += B38400; baud 223 arch/m68k/atari/debug.c if (baud < B1200 || baud > B38400+2) baud 224 arch/m68k/atari/debug.c baud = B9600; /* use default 9600bps for non-implemented rates */ baud 225 arch/m68k/atari/debug.c baud -= B1200; /* tables starts at 1200bps */ baud 227 arch/m68k/atari/debug.c clksrc = clksrc_table[baud]; baud 228 arch/m68k/atari/debug.c clkmode = clkmode_table[baud]; baud 229 arch/m68k/atari/debug.c div = div_table[baud]; baud 230 arch/m68k/atari/debug.c if (ATARIHW_PRESENT(TT_MFP) && baud >= 6) { baud 233 arch/m68k/atari/debug.c clkmode = baud == 6 ? 0xc0 : baud 234 arch/m68k/atari/debug.c baud == 7 ? 0x80 : /* really 76800bps */ baud 255 arch/m68k/atari/debug.c SCC_WRITE(14, brgsrc_table[baud]); baud 256 arch/m68k/atari/debug.c SCC_WRITE(14, brgsrc_table[baud] | (div ? 1 : 0)); baud 265 arch/m68k/atari/debug.c int baud = cflag & CBAUD; baud 274 arch/m68k/atari/debug.c baud += B38400; baud 275 arch/m68k/atari/debug.c if (baud == B4800) baud 277 arch/m68k/atari/debug.c else if (baud == B38400+2 /* 115200 */) baud 191 arch/mips/ar7/prom.c int baud = 0; baud 200 arch/mips/ar7/prom.c baud = simple_strtoul(s, &p, 10); baud 216 arch/mips/ar7/prom.c if (baud == 0) baud 217 arch/mips/ar7/prom.c baud = 38400; baud 224 arch/mips/ar7/prom.c sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, baud 227 arch/mips/ar7/prom.c sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity, baud 161 arch/mips/generic/yamon-dt.c unsigned int uart, baud, stop_bits; baud 176 arch/mips/generic/yamon-dt.c baud = stop_bits = 0; baud 184 arch/mips/generic/yamon-dt.c baud *= 10; baud 185 arch/mips/generic/yamon-dt.c baud += mode_var[0] - '0'; baud 202 arch/mips/generic/yamon-dt.c if (!baud) baud 203 arch/mips/generic/yamon-dt.c baud = 38400; baud 212 arch/mips/generic/yamon-dt.c uart, baud, parity, stop_bits, baud 54 arch/mips/include/asm/netlogic/xlp-hal/uart.h #define BAUD_DIVISOR(baud) (BASE_BAUD / baud) baud 103 arch/mips/include/asm/netlogic/xlp-hal/uart.h nlm_uart_set_baudrate(uint64_t base, int baud) baud 112 arch/mips/include/asm/netlogic/xlp-hal/uart.h (BAUD_DIVISOR(baud) & 0xff)); baud 114 arch/mips/include/asm/netlogic/xlp-hal/uart.h ((BAUD_DIVISOR(baud) >> 8) & 0xff)); baud 155 arch/mips/include/asm/netlogic/xlp-hal/uart.h nlm_uart_init(uint64_t base, int baud, int databits, int stopbits, baud 181 arch/mips/include/asm/netlogic/xlp-hal/uart.h nlm_uart_set_baudrate(base, baud); baud 130 arch/mips/include/asm/sn/klconfig.h short baud; baud 45 arch/mips/mti-malta/malta-init.c int baud = 0; baud 52 arch/mips/mti-malta/malta-init.c baud = baud*10 + *s++ - '0'; baud 66 arch/mips/mti-malta/malta-init.c if (baud == 0) baud 67 arch/mips/mti-malta/malta-init.c baud = 38400; baud 76 arch/mips/mti-malta/malta-init.c sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud, baud 82 arch/mips/mti-malta/malta-init.c sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, baud 50 arch/mips/pic32/pic32mzda/early_console.c static void __init configure_uart(char port, int baud) baud 57 arch/mips/pic32/pic32mzda/early_console.c __raw_writel(((pbclk / baud) / 16) - 1, uart_base + U_BRG(port)); baud 63 arch/mips/pic32/pic32mzda/early_console.c static void __init setup_early_console(char port, int baud) baud 69 arch/mips/pic32/pic32mzda/early_console.c configure_uart(console_port, baud); baud 111 arch/mips/pic32/pic32mzda/early_console.c int baud = -1; baud 124 arch/mips/pic32/pic32mzda/early_console.c baud = 0; baud 126 arch/mips/pic32/pic32mzda/early_console.c baud = baud * 10 + *s++ - '0'; baud 130 arch/mips/pic32/pic32mzda/early_console.c return baud; baud 136 arch/mips/pic32/pic32mzda/early_console.c int baud = -1; baud 140 arch/mips/pic32/pic32mzda/early_console.c baud = get_baud_from_cmdline(arch_cmdline); baud 147 arch/mips/pic32/pic32mzda/early_console.c if (baud == -1) baud 148 arch/mips/pic32/pic32mzda/early_console.c baud = EARLY_CONSOLE_BAUDRATE; baud 150 arch/mips/pic32/pic32mzda/early_console.c setup_early_console(port, baud); baud 68 arch/mips/sgi-ip22/ip22-setup.c char *baud = ArcGetEnvironmentVariable("dbaud"); baud 69 arch/mips/sgi-ip22/ip22-setup.c if (baud) baud 70 arch/mips/sgi-ip22/ip22-setup.c strcpy(options, baud); baud 72 arch/mips/sgi-ip22/ip22-setup.c baud ? options : NULL); baud 94 arch/mips/sgi-ip32/ip32-setup.c char *baud = ArcGetEnvironmentVariable("dbaud"); baud 95 arch/mips/sgi-ip32/ip32-setup.c if (baud) baud 96 arch/mips/sgi-ip32/ip32-setup.c strcpy(options, baud); baud 98 arch/mips/sgi-ip32/ip32-setup.c baud ? options : NULL); baud 63 arch/mips/sni/setup.c char *baud; baud 74 arch/mips/sni/setup.c baud = prom_getenv("lbaud"); baud 78 arch/mips/sni/setup.c baud = prom_getenv("rbaud"); baud 81 arch/mips/sni/setup.c if (baud) baud 82 arch/mips/sni/setup.c strcpy(options, baud); baud 85 arch/mips/sni/setup.c baud ? options : NULL); baud 88 arch/mips/sni/setup.c baud ? options : NULL); baud 86 arch/nios2/boot/compressed/console.c unsigned int baud, baudclk; baud 89 arch/nios2/boot/compressed/console.c baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; baud 90 arch/nios2/boot/compressed/console.c baudclk = UART0_FREQ / baud; baud 53 arch/powerpc/boot/cuboot-acadia.c unsigned long baud; baud 123 arch/powerpc/boot/cuboot-acadia.c if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) baud 127 arch/powerpc/boot/cuboot-acadia.c div = plloutb / (16 * baud); /* total divisor */ baud 26 arch/x86/boot/early_serial_console.c static void early_serial_init(int port, int baud) baud 36 arch/x86/boot/early_serial_console.c divisor = 115200 / baud; baud 48 arch/x86/boot/early_serial_console.c int baud = DEFAULT_BAUD; baud 92 arch/x86/boot/early_serial_console.c baud = simple_strtoull(arg + pos, &e, 0); baud 93 arch/x86/boot/early_serial_console.c if (baud == 0 || arg + pos == e) baud 94 arch/x86/boot/early_serial_console.c baud = DEFAULT_BAUD; baud 98 arch/x86/boot/early_serial_console.c early_serial_init(port, baud); baud 120 arch/x86/boot/early_serial_console.c int baud = DEFAULT_BAUD; baud 140 arch/x86/boot/early_serial_console.c baud = simple_strtoull(options + 1, &options, 0); baud 142 arch/x86/boot/early_serial_console.c baud = probe_baud(port); baud 145 arch/x86/boot/early_serial_console.c early_serial_init(port, baud); baud 154 arch/x86/kernel/early_printk.c unsigned long baud = DEFAULT_BAUD; baud 180 arch/x86/kernel/early_printk.c baud = simple_strtoull(s, &e, 0); baud 182 arch/x86/kernel/early_printk.c if (baud == 0 || s == e) baud 183 arch/x86/kernel/early_printk.c baud = DEFAULT_BAUD; baud 187 arch/x86/kernel/early_printk.c divisor = 115200 / baud; baud 223 arch/x86/kernel/early_printk.c unsigned long baud = DEFAULT_BAUD; baud 311 arch/x86/kernel/early_printk.c if (kstrtoul(s, 0, &baud) < 0 || baud == 0) baud 312 arch/x86/kernel/early_printk.c baud = DEFAULT_BAUD; baud 316 arch/x86/kernel/early_printk.c divisor = 115200 / baud; baud 560 drivers/bluetooth/bluecard_cs.c static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud) baud 574 drivers/bluetooth/bluecard_cs.c switch (baud) { baud 85 drivers/bluetooth/hci_nokia.c u16 baud; baud 106 drivers/bluetooth/hci_nokia.c u16 baud; baud 269 drivers/bluetooth/hci_nokia.c u16 baud = DIV_ROUND_CLOSEST(btdev->sysclk_speed * 10, SETUP_BAUD_RATE); baud 284 drivers/bluetooth/hci_nokia.c neg_cmd->baud = cpu_to_le16(baud); baud 561 drivers/bluetooth/hci_nokia.c evt->baud, evt->sys_clk, evt->man_id, evt->ver_id); baud 30 drivers/firmware/pcdp.c if (uart->baud) { baud 31 drivers/firmware/pcdp.c p += sprintf(p, ",%llu", uart->baud); baud 44 drivers/firmware/pcdp.h u64 baud; baud 485 drivers/ipack/devices/ipoctal.c speed_t baud; baud 550 drivers/ipack/devices/ipoctal.c baud = tty_get_baud_rate(tty); baud 551 drivers/ipack/devices/ipoctal.c tty_termios_encode_baud_rate(&tty->termios, baud, baud); baud 554 drivers/ipack/devices/ipoctal.c switch (baud) { baud 773 drivers/mfd/rave-sp.c u32 baud; baud 776 drivers/mfd/rave-sp.c if (of_property_read_u32(dev->of_node, "current-speed", &baud)) { baud 802 drivers/mfd/rave-sp.c serdev_device_set_baudrate(serdev, baud); baud 251 drivers/mmc/core/sdio_uart.c unsigned int baud, quot; baud 277 drivers/mmc/core/sdio_uart.c baud = tty_termios_baud_rate(termios); baud 278 drivers/mmc/core/sdio_uart.c if (baud == 0) baud 279 drivers/mmc/core/sdio_uart.c baud = 9600; /* Special case: B0 rate. */ baud 280 drivers/mmc/core/sdio_uart.c if (baud <= port->uartclk) baud 293 drivers/mmc/core/sdio_uart.c quot = (2 * port->uartclk + baud) / (2 * baud); baud 295 drivers/mmc/core/sdio_uart.c if (baud < 2400) baud 157 drivers/net/can/usb/esd_usb2.c __le32 baud; baud 855 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.baud = cpu_to_le32(ESD_USB2_NO_BAUDRATE); baud 928 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.baud = cpu_to_le32(canbtr); baud 115 drivers/net/hamradio/baycom_ser_fdx.c unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; baud 388 drivers/net/hamradio/baycom_ser_fdx.c if (bc->baud < 300 || bc->baud > 4800) { baud 399 drivers/net/hamradio/baycom_ser_fdx.c bc->hdrv.par.bitrate = bc->baud; baud 400 drivers/net/hamradio/baycom_ser_fdx.c bc->baud_us = 1000000/bc->baud; baud 401 drivers/net/hamradio/baycom_ser_fdx.c bc->baud_uartdiv = (115200/8)/bc->baud; baud 434 drivers/net/hamradio/baycom_ser_fdx.c bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); baud 482 drivers/net/hamradio/baycom_ser_fdx.c unsigned int baud; baud 485 drivers/net/hamradio/baycom_ser_fdx.c baud = simple_strtoul(modestr+3, NULL, 10); baud 486 drivers/net/hamradio/baycom_ser_fdx.c if (baud >= 3 && baud <= 48) baud 487 drivers/net/hamradio/baycom_ser_fdx.c bc->baud = baud*100; baud 519 drivers/net/hamradio/baycom_ser_fdx.c sprintf(hi->data.modename, "ser%u", bc->baud / 100); baud 572 drivers/net/hamradio/baycom_ser_fdx.c static int baud[NR_PORTS] = { [0 ... NR_PORTS-1] = 1200 }; baud 580 drivers/net/hamradio/baycom_ser_fdx.c module_param_array(baud, int, NULL, 0); baud 581 drivers/net/hamradio/baycom_ser_fdx.c MODULE_PARM_DESC(baud, "baycom baud rate (300 to 4800)"); baud 619 drivers/net/hamradio/baycom_ser_fdx.c bc->baud = baud[i]; baud 669 drivers/net/hamradio/baycom_ser_fdx.c baud[nr_dev] = ints[3]; baud 170 drivers/net/wan/sbni.c static u32 baud[ SBNI_MAX_NUM_CARDS ] __initdata; baud 177 drivers/net/wan/sbni.c static iarr *dest[5] __initdata = { &io, &irq, &baud, &rxl, &mac }; baud 400 drivers/net/wan/sbni.c nl->csr1.rate = baud[ num ]; baud 1463 drivers/net/wan/sbni.c module_param_array(baud, int, NULL, 0); baud 25 drivers/power/reset/qnap-poweroff.c u32 baud; baud 30 drivers/power/reset/qnap-poweroff.c .baud = 19200, baud 35 drivers/power/reset/qnap-poweroff.c .baud = 9600, baud 56 drivers/power/reset/qnap-poweroff.c const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); baud 46 drivers/spi/spi-oc-tiny.c unsigned int baud; baud 83 drivers/spi/spi-oc-tiny.c unsigned int baud = hw->baud; baud 87 drivers/spi/spi-oc-tiny.c baud = tiny_spi_baud(spi, t->speed_hz); baud 89 drivers/spi/spi-oc-tiny.c writel(baud, hw->base + TINY_SPI_BAUD); baud 100 drivers/spi/spi-oc-tiny.c hw->baud = tiny_spi_baud(spi, hw->speed_hz); baud 37 drivers/spi/spi-pic32.c u32 baud; baud 143 drivers/spi/spi-pic32.c writel(div & BAUD_MASK, &pic32s->regs->baud); baud 65 drivers/spi/spi-st-ssc4.c unsigned int baud; baud 220 drivers/spi/spi-st-ssc4.c spi_st->baud = spi_st_clk / (2 * sscbrg); baud 228 drivers/spi/spi-st-ssc4.c hz, spi_st->baud, sscbrg); baud 927 drivers/staging/fwserial/fwserial.c unsigned int baud, frame; baud 929 drivers/staging/fwserial/fwserial.c baud = tty_termios_baud_rate(&tty->termios); baud 930 drivers/staging/fwserial/fwserial.c tty_termios_encode_baud_rate(&tty->termios, baud, baud); baud 950 drivers/staging/fwserial/fwserial.c port->cps = (baud << 1) / frame; baud 972 drivers/staging/fwserial/fwserial.c return baud; baud 979 drivers/staging/fwserial/fwserial.c unsigned int baud; baud 994 drivers/staging/fwserial/fwserial.c baud = set_termios(port, tty); baud 999 drivers/staging/fwserial/fwserial.c if (baud != 0) baud 1275 drivers/staging/fwserial/fwserial.c unsigned int baud; baud 1278 drivers/staging/fwserial/fwserial.c baud = set_termios(port, tty); baud 1280 drivers/staging/fwserial/fwserial.c if ((baud == 0) && (old->c_cflag & CBAUD)) { baud 1282 drivers/staging/fwserial/fwserial.c } else if ((baud != 0) && !(old->c_cflag & CBAUD)) { baud 48 drivers/staging/speakup/serialio.c int baud = 9600, quot = 0; baud 61 drivers/staging/speakup/serialio.c quot = ser->baud_base / baud; baud 650 drivers/tty/amiserial.c int quot = 0, baud_base, baud; baud 676 drivers/tty/amiserial.c baud = tty_get_baud_rate(tty); baud 677 drivers/tty/amiserial.c if (!baud) baud 678 drivers/tty/amiserial.c baud = 9600; /* B0 transition handled in rs_set_termios */ baud 680 drivers/tty/amiserial.c if (baud == 38400 && (port->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) baud 683 drivers/tty/amiserial.c if (baud == 134) baud 686 drivers/tty/amiserial.c else if (baud) baud 687 drivers/tty/amiserial.c quot = baud_base / baud; baud 694 drivers/tty/amiserial.c baud = tty_get_baud_rate(tty); baud 695 drivers/tty/amiserial.c if (!baud) baud 696 drivers/tty/amiserial.c baud = 9600; baud 697 drivers/tty/amiserial.c if (baud == 38400 && baud 701 drivers/tty/amiserial.c if (baud == 134) baud 704 drivers/tty/amiserial.c else if (baud) baud 705 drivers/tty/amiserial.c quot = baud_base / baud; baud 1932 drivers/tty/cyclades.c static void cyy_baud_calc(struct cyclades_port *info, __u32 baud) baud 1938 drivers/tty/cyclades.c if (baud == 0) { baud 1945 drivers/tty/cyclades.c if (cy_clock / co_val / baud > 63) baud 1949 drivers/tty/cyclades.c bpr = (cy_clock / co_val * 2 / baud + 1) / 2; baud 1967 drivers/tty/cyclades.c int baud, baud_rate = 0; baud 1983 drivers/tty/cyclades.c baud = tty_get_baud_rate(tty); baud 1984 drivers/tty/cyclades.c if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == baud 1987 drivers/tty/cyclades.c baud_rate = info->baud / info->custom_divisor; baud 1989 drivers/tty/cyclades.c baud_rate = info->baud; baud 1990 drivers/tty/cyclades.c } else if (baud > CD1400_MAX_SPEED) { baud 1991 drivers/tty/cyclades.c baud = CD1400_MAX_SPEED; baud 1995 drivers/tty/cyclades.c if (baud == baud_table[i]) baud 2001 drivers/tty/cyclades.c if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == baud 2022 drivers/tty/cyclades.c } else if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == baud 2148 drivers/tty/cyclades.c baud = tty_get_baud_rate(tty); baud 2149 drivers/tty/cyclades.c if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == baud 2152 drivers/tty/cyclades.c baud_rate = info->baud / info->custom_divisor; baud 2154 drivers/tty/cyclades.c baud_rate = info->baud; baud 2155 drivers/tty/cyclades.c } else if (baud > CYZ_MAX_SPEED) { baud 2156 drivers/tty/cyclades.c baud = CYZ_MAX_SPEED; baud 2158 drivers/tty/cyclades.c cy_writel(&ch_ctrl->comm_baud, baud); baud 2160 drivers/tty/cyclades.c if (baud == 134) { baud 2164 drivers/tty/cyclades.c } else if (baud == 38400 && (info->port.flags & ASYNC_SPD_MASK) == baud 2168 drivers/tty/cyclades.c } else if (baud) { baud 2170 drivers/tty/cyclades.c baud) + 2; baud 2236 drivers/tty/cyclades.c if (baud == 0) { /* baud rate is zero, turn off line */ baud 2276 drivers/tty/cyclades.c ss->baud_base = info->baud; baud 2297 drivers/tty/cyclades.c ss->baud_base != info->baud || baud 2307 drivers/tty/cyclades.c info->baud = ss->baud_base; baud 2317 drivers/tty/cyclades.c info->baud = ss->baud_base; baud 678 drivers/tty/isicom.c unsigned long baud; baud 685 drivers/tty/isicom.c baud = C_BAUD(tty); baud 686 drivers/tty/isicom.c if (baud & CBAUDEX) { baud 687 drivers/tty/isicom.c baud &= ~CBAUDEX; baud 695 drivers/tty/isicom.c if (baud < 1 || baud > 4) baud 698 drivers/tty/isicom.c baud += 15; baud 700 drivers/tty/isicom.c if (baud == 15) { baud 708 drivers/tty/isicom.c baud++; /* 57.6 Kbps */ baud 710 drivers/tty/isicom.c baud += 2; /* 115 Kbps */ baud 712 drivers/tty/isicom.c baud += 3; /* 230 kbps*/ baud 714 drivers/tty/isicom.c baud += 4; /* 460 kbps*/ baud 716 drivers/tty/isicom.c if (linuxb_to_isib[baud] == -1) { baud 725 drivers/tty/isicom.c outw(linuxb_to_isib[baud] << 8 | 0x03, base); baud 1470 drivers/tty/moxa.c int rts, cts, txflow, rxflow, xany, baud; baud 1483 drivers/tty/moxa.c baud = MoxaPortSetTermio(ch, ts, tty_get_baud_rate(tty)); baud 1484 drivers/tty/moxa.c if (baud == -1) baud 1485 drivers/tty/moxa.c baud = tty_termios_baud_rate(old_termios); baud 1487 drivers/tty/moxa.c tty_encode_baud_rate(tty, baud, baud); baud 1729 drivers/tty/moxa.c static speed_t MoxaPortSetBaud(struct moxa_port *port, speed_t baud) baud 1736 drivers/tty/moxa.c if (baud < 50) baud 1738 drivers/tty/moxa.c if (baud > max) baud 1739 drivers/tty/moxa.c baud = max; baud 1741 drivers/tty/moxa.c val = clock / baud; baud 1743 drivers/tty/moxa.c baud = clock / val; baud 1744 drivers/tty/moxa.c return baud; baud 1748 drivers/tty/moxa.c speed_t baud) baud 1790 drivers/tty/moxa.c if (MOXA_IS_320(port->board) && baud >= 921600) baud 1793 drivers/tty/moxa.c baud = MoxaPortSetBaud(port, baud); baud 1804 drivers/tty/moxa.c return baud; baud 571 drivers/tty/mxser.c unsigned int quot = 0, baud; baud 588 drivers/tty/mxser.c baud = info->baud_base/quot; baud 589 drivers/tty/mxser.c tty_encode_baud_rate(tty, baud, baud); baud 1237 drivers/tty/mxser.c speed_t baud; baud 1288 drivers/tty/mxser.c baud = ss->baud_base / ss->custom_divisor; baud 1289 drivers/tty/mxser.c tty_encode_baud_rate(tty, baud, baud); baud 701 drivers/tty/rocket.c int bits, baud, divisor; baud 736 drivers/tty/rocket.c baud = tty_get_baud_rate(tty); baud 737 drivers/tty/rocket.c if (!baud) baud 738 drivers/tty/rocket.c baud = 9600; baud 739 drivers/tty/rocket.c divisor = ((rp_baud_base[info->board] + (baud >> 1)) / baud) - 1; baud 741 drivers/tty/rocket.c baud = tty_termios_baud_rate(old_termios); baud 742 drivers/tty/rocket.c if (!baud) baud 743 drivers/tty/rocket.c baud = 9600; baud 744 drivers/tty/rocket.c divisor = (rp_baud_base[info->board] / baud) - 1; baud 747 drivers/tty/rocket.c baud = 9600; baud 748 drivers/tty/rocket.c divisor = (rp_baud_base[info->board] / baud) - 1; baud 750 drivers/tty/rocket.c info->cps = baud / bits; baud 754 drivers/tty/rocket.c tty_encode_baud_rate(tty, baud, baud); baud 214 drivers/tty/serial/21285.c unsigned int baud, quot, h_lcr, b; baud 230 drivers/tty/serial/21285.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 231 drivers/tty/serial/21285.c quot = uart_get_divisor(port, baud); baud 266 drivers/tty/serial/21285.c uart_update_timeout(port, termios->c_cflag, baud); baud 386 drivers/tty/serial/21285.c serial21285_get_options(struct uart_port *port, int *baud, baud 417 drivers/tty/serial/21285.c *baud = port->uartclk / (16 * (tmp + 1)); baud 424 drivers/tty/serial/21285.c int baud = 9600; baud 430 drivers/tty/serial/21285.c baud = 57600; baud 438 drivers/tty/serial/21285.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 440 drivers/tty/serial/21285.c serial21285_get_options(port, &baud, &parity, &bits); baud 442 drivers/tty/serial/21285.c return uart_set_options(port, co, baud, parity, bits, flow); baud 278 drivers/tty/serial/8250/8250_dw.c unsigned int baud = tty_termios_baud_rate(termios); baud 287 drivers/tty/serial/8250/8250_dw.c rate = clk_round_rate(d->clk, baud * 16); baud 60 drivers/tty/serial/8250/8250_dwlib.c static unsigned int dw8250_get_divisor(struct uart_port *p, unsigned int baud, baud 63 drivers/tty/serial/8250/8250_dwlib.c unsigned int quot, rem, base_baud = baud * 16; baud 73 drivers/tty/serial/8250/8250_dwlib.c static void dw8250_set_divisor(struct uart_port *p, unsigned int baud, baud 77 drivers/tty/serial/8250/8250_dwlib.c serial8250_do_set_divisor(p, baud, quot, quot_frac); baud 126 drivers/tty/serial/8250/8250_early.c divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud); baud 141 drivers/tty/serial/8250/8250_early.c if (!device->baud) { baud 156 drivers/tty/serial/8250/8250_exar.c static unsigned int xr17v35x_get_divisor(struct uart_port *p, unsigned int baud, baud 161 drivers/tty/serial/8250/8250_exar.c quot_16 = DIV_ROUND_CLOSEST(p->uartclk, baud); baud 167 drivers/tty/serial/8250/8250_exar.c static void xr17v35x_set_divisor(struct uart_port *p, unsigned int baud, baud 170 drivers/tty/serial/8250/8250_exar.c serial8250_do_set_divisor(p, baud, quot, quot_frac); baud 238 drivers/tty/serial/8250/8250_exar.c unsigned int baud = 1843200; baud 242 drivers/tty/serial/8250/8250_exar.c port->port.uartclk = baud * 16; baud 286 drivers/tty/serial/8250/8250_exar.c unsigned int baud = 1843200; baud 288 drivers/tty/serial/8250/8250_exar.c port->port.uartclk = baud * 16; baud 297 drivers/tty/serial/8250/8250_exar.c unsigned int baud = 921600; baud 299 drivers/tty/serial/8250/8250_exar.c port->port.uartclk = baud * 16; baud 474 drivers/tty/serial/8250/8250_exar.c unsigned int baud = 7812500; baud 484 drivers/tty/serial/8250/8250_exar.c port->port.uartclk = baud * 16; baud 311 drivers/tty/serial/8250/8250_fintek.c unsigned int baud = tty_termios_baud_rate(termios); baud 323 drivers/tty/serial/8250/8250_fintek.c if (!baud) baud 342 drivers/tty/serial/8250/8250_fintek.c if (baud > baudrate_table[i] || baudrate_table[i] % baud != 0) baud 362 drivers/tty/serial/8250/8250_fintek.c baud = tty_termios_baud_rate(old); baud 363 drivers/tty/serial/8250/8250_fintek.c tty_termios_encode_baud_rate(termios, baud, baud); baud 95 drivers/tty/serial/8250/8250_ingenic.c int baud = 115200; baud 103 drivers/tty/serial/8250/8250_ingenic.c uart_parse_options(opt, &baud, &parity, &bits, &flow); baud 108 drivers/tty/serial/8250/8250_ingenic.c if (dev->baud) baud 109 drivers/tty/serial/8250/8250_ingenic.c baud = dev->baud; baud 110 drivers/tty/serial/8250/8250_ingenic.c divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); baud 75 drivers/tty/serial/8250/8250_lpss.c unsigned int baud = tty_termios_baud_rate(termios); baud 77 drivers/tty/serial/8250/8250_lpss.c unsigned long fref = lpss->board->freq, fuart = baud * 16; baud 203 drivers/tty/serial/8250/8250_mid.c unsigned int baud = tty_termios_baud_rate(termios); baud 206 drivers/tty/serial/8250/8250_mid.c unsigned long fuart = baud * ps; baud 215 drivers/tty/serial/8250/8250_mid.c if (mid->board->freq > baud) baud 216 drivers/tty/serial/8250/8250_mid.c ps = mid->board->freq / baud; /* baud rate too high */ baud 219 drivers/tty/serial/8250/8250_mid.c fuart = baud * ps; baud 293 drivers/tty/serial/8250/8250_mtk.c unsigned int baud, quot, fraction; baud 323 drivers/tty/serial/8250/8250_mtk.c baud = uart_get_baud_rate(port, termios, old, baud 327 drivers/tty/serial/8250/8250_mtk.c if (baud < 115200) { baud 329 drivers/tty/serial/8250/8250_mtk.c quot = uart_get_divisor(port, baud); baud 332 drivers/tty/serial/8250/8250_mtk.c quot = DIV_ROUND_UP(port->uartclk, 256 * baud); baud 348 drivers/tty/serial/8250/8250_mtk.c if (baud >= 115200) { baud 351 drivers/tty/serial/8250/8250_mtk.c tmp = (port->uartclk / (baud * quot)) - 1; baud 357 drivers/tty/serial/8250/8250_mtk.c fraction = ((port->uartclk * 100) / baud / quot) % 100; baud 385 drivers/tty/serial/8250/8250_mtk.c tty_termios_encode_baud_rate(termios, baud, baud); baud 200 drivers/tty/serial/8250/8250_omap.c static void omap_8250_get_divisor(struct uart_port *port, unsigned int baud, baud 210 drivers/tty/serial/8250/8250_omap.c if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) { baud 223 drivers/tty/serial/8250/8250_omap.c div_13 = DIV_ROUND_CLOSEST(uartclk, 13 * baud); baud 224 drivers/tty/serial/8250/8250_omap.c div_16 = DIV_ROUND_CLOSEST(uartclk, 16 * baud); baud 231 drivers/tty/serial/8250/8250_omap.c abs_d13 = abs(baud - uartclk / 13 / div_13); baud 232 drivers/tty/serial/8250/8250_omap.c abs_d16 = abs(baud - uartclk / 16 / div_16); baud 339 drivers/tty/serial/8250/8250_omap.c unsigned int baud; baud 369 drivers/tty/serial/8250/8250_omap.c baud = uart_get_baud_rate(port, termios, old, baud 372 drivers/tty/serial/8250/8250_omap.c omap_8250_get_divisor(port, baud, priv); baud 384 drivers/tty/serial/8250/8250_omap.c uart_update_timeout(port, termios->c_cflag, baud); baud 487 drivers/tty/serial/8250/8250_omap.c priv->calc_latency = USEC_PER_SEC * 64 * 8 / baud; baud 494 drivers/tty/serial/8250/8250_omap.c tty_termios_encode_baud_rate(termios, baud, baud); baud 1345 drivers/tty/serial/8250/8250_pci.c pericom_do_set_divisor(struct uart_port *port, unsigned int baud, baud 1357 drivers/tty/serial/8250/8250_pci.c if ((baud < actual_baud + tolerance) && baud 1358 drivers/tty/serial/8250/8250_pci.c (baud > actual_baud - tolerance)) { baud 1368 drivers/tty/serial/8250/8250_pci.c } else if (baud > actual_baud) { baud 1372 drivers/tty/serial/8250/8250_pci.c serial8250_do_set_divisor(port, baud, quot, quot_frac); baud 2415 drivers/tty/serial/8250/8250_port.c unsigned int baud) baud 2419 drivers/tty/serial/8250/8250_port.c return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; baud 2423 drivers/tty/serial/8250/8250_port.c unsigned int baud, baud 2435 drivers/tty/serial/8250/8250_port.c baud == (port->uartclk/4)) baud 2438 drivers/tty/serial/8250/8250_port.c baud == (port->uartclk/8)) baud 2441 drivers/tty/serial/8250/8250_port.c quot = npcm_get_divisor(up, baud); baud 2443 drivers/tty/serial/8250/8250_port.c quot = uart_get_divisor(port, baud); baud 2455 drivers/tty/serial/8250/8250_port.c unsigned int baud, baud 2459 drivers/tty/serial/8250/8250_port.c return port->get_divisor(port, baud, frac); baud 2461 drivers/tty/serial/8250/8250_port.c return serial8250_do_get_divisor(port, baud, frac); baud 2502 drivers/tty/serial/8250/8250_port.c void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, baud 2509 drivers/tty/serial/8250/8250_port.c if (baud == 115200) { baud 2529 drivers/tty/serial/8250/8250_port.c static void serial8250_set_divisor(struct uart_port *port, unsigned int baud, baud 2533 drivers/tty/serial/8250/8250_port.c port->set_divisor(port, baud, quot, quot_frac); baud 2535 drivers/tty/serial/8250/8250_port.c serial8250_do_set_divisor(port, baud, quot, quot_frac); baud 2560 drivers/tty/serial/8250/8250_port.c unsigned int baud, quot, frac = 0; baud 2570 drivers/tty/serial/8250/8250_port.c baud = serial8250_get_baud_rate(port, termios, old); baud 2571 drivers/tty/serial/8250/8250_port.c quot = serial8250_get_divisor(port, baud, &frac); baud 2584 drivers/tty/serial/8250/8250_port.c if ((baud < 2400 && !up->dma) || up->fifo_bug) { baud 2604 drivers/tty/serial/8250/8250_port.c uart_update_timeout(port, termios->c_cflag, baud); baud 2665 drivers/tty/serial/8250/8250_port.c serial8250_set_divisor(port, baud, quot, frac); baud 2687 drivers/tty/serial/8250/8250_port.c tty_termios_encode_baud_rate(termios, baud, baud); baud 3125 drivers/tty/serial/8250/8250_port.c unsigned int baud, quot, frac = 0; baud 3131 drivers/tty/serial/8250/8250_port.c baud = serial8250_get_baud_rate(port, &termios, NULL); baud 3132 drivers/tty/serial/8250/8250_port.c quot = serial8250_get_divisor(port, baud, &frac); baud 3134 drivers/tty/serial/8250/8250_port.c serial8250_set_divisor(port, baud, quot, frac); baud 3219 drivers/tty/serial/8250/8250_port.c int baud = 9600; baud 3228 drivers/tty/serial/8250/8250_port.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 3230 drivers/tty/serial/8250/8250_port.c baud = probe_baud(port); baud 3232 drivers/tty/serial/8250/8250_port.c return uart_set_options(port, port->cons, baud, parity, bits, flow); baud 54 drivers/tty/serial/8250/8250_uniphier.c device->baud = 0; baud 181 drivers/tty/serial/altera_uart.c unsigned int baud, baudclk; baud 183 drivers/tty/serial/altera_uart.c baud = uart_get_baud_rate(port, termios, old, 0, 4000000); baud 184 drivers/tty/serial/altera_uart.c baudclk = port->uartclk / baud; baud 188 drivers/tty/serial/altera_uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 191 drivers/tty/serial/altera_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 463 drivers/tty/serial/altera_uart.c int baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; baud 475 drivers/tty/serial/altera_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 477 drivers/tty/serial/altera_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 522 drivers/tty/serial/altera_uart.c if (dev->baud) { baud 523 drivers/tty/serial/altera_uart.c unsigned int baudclk = port->uartclk / dev->baud; baud 388 drivers/tty/serial/amba-pl010.c unsigned int baud, quot; baud 393 drivers/tty/serial/amba-pl010.c baud = uart_get_baud_rate(port, termios, old, 0, uap->port.uartclk/16); baud 394 drivers/tty/serial/amba-pl010.c quot = uart_get_divisor(port, baud); baud 425 drivers/tty/serial/amba-pl010.c uart_update_timeout(port, termios->c_cflag, baud); baud 611 drivers/tty/serial/amba-pl010.c pl010_console_get_options(struct uart_amba_port *uap, int *baud, baud 633 drivers/tty/serial/amba-pl010.c *baud = uap->port.uartclk / (16 * (quot + 1)); baud 640 drivers/tty/serial/amba-pl010.c int baud = 38400; baud 664 drivers/tty/serial/amba-pl010.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 666 drivers/tty/serial/amba-pl010.c pl010_console_get_options(uap, &baud, &parity, &bits); baud 668 drivers/tty/serial/amba-pl010.c return uart_set_options(&uap->port, co, baud, parity, bits, flow); baud 1953 drivers/tty/serial/amba-pl011.c unsigned int baud, quot, clkdiv; baud 1963 drivers/tty/serial/amba-pl011.c baud = uart_get_baud_rate(port, termios, old, 0, baud 1970 drivers/tty/serial/amba-pl011.c uap->dmarx.poll_rate = DIV_ROUND_UP(10000000, baud); baud 1973 drivers/tty/serial/amba-pl011.c if (baud > port->uartclk/16) baud 1974 drivers/tty/serial/amba-pl011.c quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud); baud 1976 drivers/tty/serial/amba-pl011.c quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud); baud 2009 drivers/tty/serial/amba-pl011.c uart_update_timeout(port, termios->c_cflag, baud); baud 2032 drivers/tty/serial/amba-pl011.c if (baud > port->uartclk / 16) baud 2045 drivers/tty/serial/amba-pl011.c if ((baud >= 3000000) && (baud < 3250000) && (quot > 1)) baud 2047 drivers/tty/serial/amba-pl011.c else if ((baud > 3250000) && (quot > 2)) baud 2256 drivers/tty/serial/amba-pl011.c pl011_console_get_options(struct uart_amba_port *uap, int *baud, baud 2280 drivers/tty/serial/amba-pl011.c *baud = uap->port.uartclk * 4 / (64 * ibrd + fbrd); baud 2285 drivers/tty/serial/amba-pl011.c *baud *= 2; baud 2293 drivers/tty/serial/amba-pl011.c int baud = 38400; baud 2328 drivers/tty/serial/amba-pl011.c baud = uap->fixed_baud; baud 2332 drivers/tty/serial/amba-pl011.c &baud, &parity, &bits, &flow); baud 2334 drivers/tty/serial/amba-pl011.c pl011_console_get_options(uap, &baud, &parity, &bits); baud 2337 drivers/tty/serial/amba-pl011.c return uart_set_options(&uap->port, co, baud, parity, bits, flow); baud 241 drivers/tty/serial/apbuart.c unsigned int baud, quot; baud 244 drivers/tty/serial/apbuart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 245 drivers/tty/serial/apbuart.c if (baud == 0) baud 249 drivers/tty/serial/apbuart.c quot = (uart_get_divisor(port, baud)) * 2; baud 266 drivers/tty/serial/apbuart.c uart_update_timeout(port, termios->c_cflag, baud); baud 455 drivers/tty/serial/apbuart.c apbuart_console_get_options(struct uart_port *port, int *baud, baud 473 drivers/tty/serial/apbuart.c *baud = port->uartclk / (16 * (quot + 1)); baud 480 drivers/tty/serial/apbuart.c int baud = 38400; baud 501 drivers/tty/serial/apbuart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 503 drivers/tty/serial/apbuart.c apbuart_console_get_options(port, &baud, &parity, &bits); baud 505 drivers/tty/serial/apbuart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 196 drivers/tty/serial/ar933x_uart.c unsigned int baud, baud 206 drivers/tty/serial/ar933x_uart.c min_diff = baud; baud 211 drivers/tty/serial/ar933x_uart.c tstep = baud * (tscale + 1); baud 218 drivers/tty/serial/ar933x_uart.c diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); baud 235 drivers/tty/serial/ar933x_uart.c unsigned int baud, scale, step; baud 257 drivers/tty/serial/ar933x_uart.c baud = uart_get_baud_rate(port, new, old, up->min_baud, up->max_baud); baud 258 drivers/tty/serial/ar933x_uart.c ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); baud 271 drivers/tty/serial/ar933x_uart.c uart_update_timeout(port, new->c_cflag, baud); baud 301 drivers/tty/serial/ar933x_uart.c tty_termios_encode_baud_rate(new, baud, baud); baud 584 drivers/tty/serial/ar933x_uart.c int baud = 115200; baud 597 drivers/tty/serial/ar933x_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 599 drivers/tty/serial/ar933x_uart.c return uart_set_options(&up->port, co, baud, parity, bits, flow); baud 628 drivers/tty/serial/ar933x_uart.c unsigned int baud; baud 694 drivers/tty/serial/ar933x_uart.c baud = ar933x_uart_get_baud(port->uartclk, AR933X_UART_MAX_SCALE, 1); baud 695 drivers/tty/serial/ar933x_uart.c up->min_baud = max_t(unsigned int, baud, AR933X_UART_MIN_BAUD); baud 697 drivers/tty/serial/ar933x_uart.c baud = ar933x_uart_get_baud(port->uartclk, 0, AR933X_UART_MAX_STEP); baud 698 drivers/tty/serial/ar933x_uart.c up->max_baud = min_t(unsigned int, baud, AR933X_UART_MAX_BAUD); baud 101 drivers/tty/serial/arc_uart.c unsigned long baud; baud 363 drivers/tty/serial/arc_uart.c unsigned int baud, uartl, uarth, hw_val; baud 373 drivers/tty/serial/arc_uart.c baud = uart_get_baud_rate(port, new, old, 0, 460800); baud 375 drivers/tty/serial/arc_uart.c hw_val = port->uartclk / (uart->baud * 4) - 1; baud 400 drivers/tty/serial/arc_uart.c tty_termios_encode_baud_rate(new, baud, baud); baud 402 drivers/tty/serial/arc_uart.c uart_update_timeout(port, new->c_cflag, baud); baud 491 drivers/tty/serial/arc_uart.c int baud = 115200; baud 508 drivers/tty/serial/arc_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 514 drivers/tty/serial/arc_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 566 drivers/tty/serial/arc_uart.c hw_val = port->uartclk / (dev->baud * 4) - 1; baud 614 drivers/tty/serial/arc_uart.c uart->baud = val; baud 2137 drivers/tty/serial/atmel_serial.c unsigned int old_mode, mode, imr, quot, baud, div, cd, fp = 0; baud 2146 drivers/tty/serial/atmel_serial.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 2213 drivers/tty/serial/atmel_serial.c uart_update_timeout(port, termios->c_cflag, baud); baud 2285 drivers/tty/serial/atmel_serial.c div = DIV_ROUND_CLOSEST(port->uartclk, baud * 2); baud 2289 drivers/tty/serial/atmel_serial.c cd = uart_get_divisor(port, baud); baud 2598 drivers/tty/serial/atmel_serial.c static void __init atmel_console_get_options(struct uart_port *port, int *baud, baud 2629 drivers/tty/serial/atmel_serial.c *baud = port->uartclk / (16 * (quot - 1)); baud 2637 drivers/tty/serial/atmel_serial.c int baud = 115200; baud 2657 drivers/tty/serial/atmel_serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2659 drivers/tty/serial/atmel_serial.c atmel_console_get_options(port, &baud, &parity, &bits); baud 2661 drivers/tty/serial/atmel_serial.c return uart_set_options(port, co, baud, parity, bits, flow); baud 505 drivers/tty/serial/bcm63xx_uart.c unsigned int ctl, baud, quot, ier; baud 553 drivers/tty/serial/bcm63xx_uart.c baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); baud 554 drivers/tty/serial/bcm63xx_uart.c quot = uart_get_divisor(port, baud) - 1; baud 583 drivers/tty/serial/bcm63xx_uart.c uart_update_timeout(port, new->c_cflag, baud); baud 737 drivers/tty/serial/bcm63xx_uart.c int baud = 9600; baud 748 drivers/tty/serial/bcm63xx_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 750 drivers/tty/serial/bcm63xx_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 261 drivers/tty/serial/clps711x.c unsigned int baud, quot; baud 268 drivers/tty/serial/clps711x.c baud = uart_get_baud_rate(port, termios, old, port->uartclk / 4096, baud 270 drivers/tty/serial/clps711x.c quot = uart_get_divisor(port, baud); baud 311 drivers/tty/serial/clps711x.c uart_update_timeout(port, termios->c_cflag, baud); baud 385 drivers/tty/serial/clps711x.c int baud = 38400, bits = 8, parity = 'n', flow = 'n'; baud 419 drivers/tty/serial/clps711x.c baud = port->uartclk / (16 * (quot + 1)); baud 422 drivers/tty/serial/clps711x.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 424 drivers/tty/serial/clps711x.c ret = uart_set_options(port, co, baud, parity, bits, flow); baud 496 drivers/tty/serial/cpm_uart/cpm_uart_core.c int baud; baud 508 drivers/tty/serial/cpm_uart/cpm_uart_core.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 509 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (baud < HW_BUF_SPD_THRESHOLD || baud 520 drivers/tty/serial/cpm_uart/cpm_uart_core.c maxidl = baud / 2400; baud 574 drivers/tty/serial/cpm_uart/cpm_uart_core.c uart_update_timeout(port, termios->c_cflag, baud); baud 642 drivers/tty/serial/cpm_uart/cpm_uart_core.c clk_set_rate(pinfo->clk, baud); baud 644 drivers/tty/serial/cpm_uart/cpm_uart_core.c cpm_set_brg(pinfo->brg - 1, baud); baud 1290 drivers/tty/serial/cpm_uart/cpm_uart_core.c int baud = 38400; baud 1332 drivers/tty/serial/cpm_uart/cpm_uart_core.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1334 drivers/tty/serial/cpm_uart/cpm_uart_core.c if ((baud = uart_baudrate()) == -1) baud 1335 drivers/tty/serial/cpm_uart/cpm_uart_core.c baud = 9600; baud 1362 drivers/tty/serial/cpm_uart/cpm_uart_core.c uart_set_options(port, co, baud, parity, bits, flow); baud 14 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h static inline void cpm_set_brg(int brg, int baud) baud 16 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h cpm_setbrg(brg, baud); baud 14 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h static inline void cpm_set_brg(int brg, int baud) baud 16 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h cpm_setbrg(brg, baud); baud 292 drivers/tty/serial/digicolor-usart.c unsigned int baud, divisor; baud 301 drivers/tty/serial/digicolor-usart.c baud = uart_get_baud_rate(port, termios, old, baud 304 drivers/tty/serial/digicolor-usart.c divisor = uart_get_divisor(port, baud) - 1; baud 338 drivers/tty/serial/digicolor-usart.c uart_update_timeout(port, termios->c_cflag, baud); baud 418 drivers/tty/serial/digicolor-usart.c int baud = 115200, bits = 8, parity = 'n', flow = 'n'; baud 429 drivers/tty/serial/digicolor-usart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 431 drivers/tty/serial/digicolor-usart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 509 drivers/tty/serial/dz.c static int dz_encode_baud_rate(unsigned int baud) baud 511 drivers/tty/serial/dz.c switch (baud) { baud 570 drivers/tty/serial/dz.c unsigned int cflag, baud; baud 597 drivers/tty/serial/dz.c baud = uart_get_baud_rate(uport, termios, old_termios, 50, 9600); baud 598 drivers/tty/serial/dz.c bflag = dz_encode_baud_rate(baud); baud 600 drivers/tty/serial/dz.c baud = uart_get_baud_rate(uport, old_termios, NULL, 50, 9600); baud 601 drivers/tty/serial/dz.c bflag = dz_encode_baud_rate(baud); baud 603 drivers/tty/serial/dz.c baud = 9600; baud 606 drivers/tty/serial/dz.c tty_termios_encode_baud_rate(termios, baud, baud); baud 615 drivers/tty/serial/dz.c uart_update_timeout(uport, termios->c_cflag, baud); baud 868 drivers/tty/serial/dz.c int baud = 9600; baud 884 drivers/tty/serial/dz.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 886 drivers/tty/serial/dz.c return uart_set_options(&dport->port, co, baud, parity, bits, flow); baud 118 drivers/tty/serial/earlycon.c device->baud = simple_strtoul(options, NULL, 0); baud 281 drivers/tty/serial/earlycon.c early_console_dev.baud = be32_to_cpu(*val); baud 288 drivers/tty/serial/earlycon.c early_console_dev.baud = simple_strtoul(options, NULL, 0); baud 352 drivers/tty/serial/efm32-uart.c unsigned baud; baud 359 drivers/tty/serial/efm32-uart.c baud = uart_get_baud_rate(port, new, old, baud 396 drivers/tty/serial/efm32-uart.c clkdiv = (DIV_ROUND_CLOSEST(4 * port->uartclk, 16 * baud) - 4) << 6; baud 417 drivers/tty/serial/efm32-uart.c uart_update_timeout(port, new->c_cflag, baud); baud 557 drivers/tty/serial/efm32-uart.c int *baud, int *parity, int *bits) baud 573 drivers/tty/serial/efm32-uart.c *baud = DIV_ROUND_CLOSEST(4 * efm_port->port.uartclk, baud 592 drivers/tty/serial/efm32-uart.c *baud, *parity, *bits); baud 598 drivers/tty/serial/efm32-uart.c int baud = 115200; baud 632 drivers/tty/serial/efm32-uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 635 drivers/tty/serial/efm32-uart.c &baud, &parity, &bits); baud 637 drivers/tty/serial/efm32-uart.c return uart_set_options(&efm_port->port, co, baud, parity, bits, flow); baud 716 drivers/tty/serial/fsl_linflexuart.c int baud = 115200; baud 736 drivers/tty/serial/fsl_linflexuart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 756 drivers/tty/serial/fsl_linflexuart.c ret = uart_set_options(sport, co, baud, parity, bits, flow); baud 1145 drivers/tty/serial/fsl_lpuart.c int bits, baud; baud 1150 drivers/tty/serial/fsl_lpuart.c baud = tty_get_baud_rate(tty); baud 1160 drivers/tty/serial/fsl_lpuart.c sport->rx_dma_rng_buf_len = (DMA_RX_TIMEOUT * baud / bits / 1000) * 2; baud 1634 drivers/tty/serial/fsl_lpuart.c unsigned int baud; baud 1710 drivers/tty/serial/fsl_lpuart.c baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); baud 1747 drivers/tty/serial/fsl_lpuart.c uart_update_timeout(port, termios->c_cflag, baud); baud 1756 drivers/tty/serial/fsl_lpuart.c sbr = sport->port.uartclk / (16 * baud); baud 1757 drivers/tty/serial/fsl_lpuart.c brfa = ((sport->port.uartclk - (16 * sbr * baud)) * 2) / baud; baud 1861 drivers/tty/serial/fsl_lpuart.c unsigned int baud; baud 1925 drivers/tty/serial/fsl_lpuart.c baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4); baud 1962 drivers/tty/serial/fsl_lpuart.c uart_update_timeout(port, termios->c_cflag, baud); baud 1971 drivers/tty/serial/fsl_lpuart.c lpuart32_serial_setbrg(sport, baud); baud 2155 drivers/tty/serial/fsl_lpuart.c lpuart_console_get_options(struct lpuart_port *sport, int *baud, baud 2198 drivers/tty/serial/fsl_lpuart.c if (*baud != baud_raw) baud 2200 drivers/tty/serial/fsl_lpuart.c "from %d to %d\n", baud_raw, *baud); baud 2204 drivers/tty/serial/fsl_lpuart.c lpuart32_console_get_options(struct lpuart_port *sport, int *baud, baud 2241 drivers/tty/serial/fsl_lpuart.c if (*baud != baud_raw) baud 2243 drivers/tty/serial/fsl_lpuart.c "from %d to %d\n", baud_raw, *baud); baud 2249 drivers/tty/serial/fsl_lpuart.c int baud = 115200; baud 2267 drivers/tty/serial/fsl_lpuart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2270 drivers/tty/serial/fsl_lpuart.c lpuart32_console_get_options(sport, &baud, &parity, &bits); baud 2272 drivers/tty/serial/fsl_lpuart.c lpuart_console_get_options(sport, &baud, &parity, &bits); baud 2279 drivers/tty/serial/fsl_lpuart.c return uart_set_options(&sport->port, co, baud, parity, bits, flow); baud 1089 drivers/tty/serial/icom.c int baud; baud 1140 drivers/tty/serial/icom.c baud = uart_get_baud_rate(port, termios, old_termios, baud 1143 drivers/tty/serial/icom.c if (!baud) baud 1144 drivers/tty/serial/icom.c baud = 9600; /* B0 transition handled in rs_set_termios */ baud 1147 drivers/tty/serial/icom.c if (icom_acfg_baud[index] == baud) { baud 1153 drivers/tty/serial/icom.c uart_update_timeout(port, cflag, baud); baud 1570 drivers/tty/serial/imx.c unsigned int baud, quot; baud 1591 drivers/tty/serial/imx.c baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); baud 1592 drivers/tty/serial/imx.c quot = uart_get_divisor(port, baud); baud 1669 drivers/tty/serial/imx.c uart_update_timeout(port, termios->c_cflag, baud); baud 1672 drivers/tty/serial/imx.c div = sport->port.uartclk / (baud * 16); baud 1673 drivers/tty/serial/imx.c if (baud == 38400 && quot != div) baud 1674 drivers/tty/serial/imx.c baud = sport->port.uartclk / (quot * 16); baud 1676 drivers/tty/serial/imx.c div = sport->port.uartclk / (baud * 16); baud 1682 drivers/tty/serial/imx.c rational_best_approximation(16 * div * baud, sport->port.uartclk, baud 1994 drivers/tty/serial/imx.c imx_uart_console_get_options(struct imx_port *sport, int *baud, baud 2043 drivers/tty/serial/imx.c *baud = (baud_raw + 50) / 100 * 100; baud 2046 drivers/tty/serial/imx.c if (*baud != baud_raw) baud 2048 drivers/tty/serial/imx.c baud_raw, *baud); baud 2056 drivers/tty/serial/imx.c int baud = 9600; baud 2079 drivers/tty/serial/imx.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2081 drivers/tty/serial/imx.c imx_uart_console_get_options(sport, &baud, &parity, &bits); baud 2085 drivers/tty/serial/imx.c retval = uart_set_options(&sport->port, co, baud, parity, bits, flow); baud 885 drivers/tty/serial/ip22zilog.c int baud, brg; baud 887 drivers/tty/serial/ip22zilog.c baud = uart_get_baud_rate(port, termios, old, 1200, 76800); baud 891 drivers/tty/serial/ip22zilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); baud 901 drivers/tty/serial/ip22zilog.c uart_update_timeout(port, termios->c_cflag, baud); baud 1035 drivers/tty/serial/ip22zilog.c int baud = 9600, bits = 8; baud 1052 drivers/tty/serial/ip22zilog.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1053 drivers/tty/serial/ip22zilog.c return uart_set_options(&up->port, con, baud, parity, bits, flow); baud 683 drivers/tty/serial/jsm/jsm_cls.c u32 baud = 9600; baud 713 drivers/tty/serial/jsm/jsm_cls.c baud = 9600; baud 716 drivers/tty/serial/jsm/jsm_cls.c baud = baud_rates[i].rate; baud 761 drivers/tty/serial/jsm/jsm_cls.c quot = ch->ch_bd->bd_dividend / baud; baud 927 drivers/tty/serial/jsm/jsm_neo.c u32 baud; baud 979 drivers/tty/serial/jsm/jsm_neo.c baud = 9600; baud 982 drivers/tty/serial/jsm/jsm_neo.c baud = baud_rates[i].rate; baud 1028 drivers/tty/serial/jsm/jsm_neo.c quot = ch->ch_bd->bd_dividend / baud; baud 1078 drivers/tty/serial/jsm/jsm_neo.c if (baud < 9600) { baud 416 drivers/tty/serial/lantiq.c unsigned int baud; baud 479 drivers/tty/serial/lantiq.c baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); baud 480 drivers/tty/serial/lantiq.c divisor = uart_get_divisor(port, baud); baud 505 drivers/tty/serial/lantiq.c tty_termios_encode_baud_rate(new, baud, baud); baud 507 drivers/tty/serial/lantiq.c uart_update_timeout(port, cflag, baud); baud 645 drivers/tty/serial/lantiq.c int baud = 115200; baud 665 drivers/tty/serial/lantiq.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 666 drivers/tty/serial/lantiq.c return uart_set_options(port, co, baud, parity, bits, flow); baud 160 drivers/tty/serial/lpc32xx_hs.c int baud = 115200; baud 173 drivers/tty/serial/lpc32xx_hs.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 177 drivers/tty/serial/lpc32xx_hs.c return uart_set_options(port, co, baud, parity, bits, flow); baud 505 drivers/tty/serial/lpc32xx_hs.c unsigned int baud, quot; baud 514 drivers/tty/serial/lpc32xx_hs.c baud = uart_get_baud_rate(port, termios, old, 0, baud 517 drivers/tty/serial/lpc32xx_hs.c quot = __serial_get_clock_div(port->uartclk, baud); baud 531 drivers/tty/serial/lpc32xx_hs.c uart_update_timeout(port, termios->c_cflag, baud); baud 537 drivers/tty/serial/lpc32xx_hs.c tty_termios_encode_baud_rate(termios, baud, baud); baud 105 drivers/tty/serial/max3100.c int baud; /* current baud rate */ baud 426 drivers/tty/serial/max3100.c int baud = 0; baud 435 drivers/tty/serial/max3100.c baud = tty_termios_baud_rate(termios); baud 437 drivers/tty/serial/max3100.c switch (baud) { baud 440 drivers/tty/serial/max3100.c baud = s->baud; baud 475 drivers/tty/serial/max3100.c baud = s->baud; baud 478 drivers/tty/serial/max3100.c baud = s->baud; baud 480 drivers/tty/serial/max3100.c tty_termios_encode_baud_rate(termios, baud, baud); baud 481 drivers/tty/serial/max3100.c s->baud = baud; baud 530 drivers/tty/serial/max3100.c uart_update_timeout(port, termios->c_cflag, baud); baud 588 drivers/tty/serial/max3100.c s->baud = s->crystal ? 230400 : 115200; baud 502 drivers/tty/serial/max310x.c static int max310x_set_baud(struct uart_port *port, int baud) baud 511 drivers/tty/serial/max310x.c div = port->uartclk / baud; baud 526 drivers/tty/serial/max310x.c F = c*baud; baud 902 drivers/tty/serial/max310x.c int baud; baud 996 drivers/tty/serial/max310x.c baud = uart_get_baud_rate(port, termios, old, baud 1001 drivers/tty/serial/max310x.c baud = max310x_set_baud(port, baud); baud 1004 drivers/tty/serial/max310x.c uart_update_timeout(port, termios->c_cflag, baud); baud 198 drivers/tty/serial/mcf.c unsigned int baud, baudclk; baud 204 drivers/tty/serial/mcf.c baud = uart_get_baud_rate(port, termios, old, 0, 230400); baud 206 drivers/tty/serial/mcf.c baudclk = (MCF_BUSCLK / baud) / 32; baud 207 drivers/tty/serial/mcf.c baudfr = (((MCF_BUSCLK / baud) + 1) / 2) % 16; baud 209 drivers/tty/serial/mcf.c baudclk = ((MCF_BUSCLK / baud) + 16) / 32; baud 261 drivers/tty/serial/mcf.c uart_update_timeout(port, termios->c_cflag, baud); baud 548 drivers/tty/serial/mcf.c int baud = CONFIG_SERIAL_MCF_BAUDRATE; baud 560 drivers/tty/serial/mcf.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 562 drivers/tty/serial/mcf.c return uart_set_options(port, co, baud, parity, bits, flow); baud 653 drivers/tty/serial/men_z135_uart.c unsigned int baud; baud 712 drivers/tty/serial/men_z135_uart.c baud = uart_get_baud_rate(port, termios, old, 0, uart_freq / 16); baud 716 drivers/tty/serial/men_z135_uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 718 drivers/tty/serial/men_z135_uart.c bd_reg = uart_freq / (4 * baud); baud 721 drivers/tty/serial/men_z135_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 297 drivers/tty/serial/meson_uart.c static void meson_uart_change_speed(struct uart_port *port, unsigned long baud) baud 305 drivers/tty/serial/meson_uart.c val = ((port->uartclk / 3) / baud) - 1; baud 308 drivers/tty/serial/meson_uart.c val = ((port->uartclk * 10 / (baud * 4) + 5) / 10) - 1; baud 318 drivers/tty/serial/meson_uart.c unsigned int cflags, iflags, baud; baud 368 drivers/tty/serial/meson_uart.c baud = uart_get_baud_rate(port, termios, old, 50, 4000000); baud 369 drivers/tty/serial/meson_uart.c meson_uart_change_speed(port, baud); baud 381 drivers/tty/serial/meson_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 511 drivers/tty/serial/meson_uart.c int baud = 115200; baud 526 drivers/tty/serial/meson_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 528 drivers/tty/serial/meson_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 308 drivers/tty/serial/milbeaut_usio.c unsigned long flags, baud, quot; baud 339 drivers/tty/serial/milbeaut_usio.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk); baud 340 drivers/tty/serial/milbeaut_usio.c if (baud > 1) baud 341 drivers/tty/serial/milbeaut_usio.c quot = port->uartclk / baud - 1; baud 346 drivers/tty/serial/milbeaut_usio.c uart_update_timeout(port, termios->c_cflag, baud); baud 426 drivers/tty/serial/milbeaut_usio.c int baud = 115200; baud 440 drivers/tty/serial/milbeaut_usio.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 445 drivers/tty/serial/milbeaut_usio.c return uart_set_options(port, co, baud, parity, bits, flow); baud 294 drivers/tty/serial/mpc52xx_uart.c unsigned int baud; baud 298 drivers/tty/serial/mpc52xx_uart.c baud = uart_get_baud_rate(port, new, old, baud 301 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 16 * baud) / (32 * baud); baud 305 drivers/tty/serial/mpc52xx_uart.c return baud; baud 312 drivers/tty/serial/mpc52xx_uart.c unsigned int baud; baud 318 drivers/tty/serial/mpc52xx_uart.c baud = uart_get_baud_rate(port, new, old, baud 321 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 2 * baud) / (4 * baud); baud 325 drivers/tty/serial/mpc52xx_uart.c if (divisor > 0xffff || baud <= 115200) { baud 331 drivers/tty/serial/mpc52xx_uart.c return baud; baud 540 drivers/tty/serial/mpc52xx_uart.c unsigned int baud; baud 557 drivers/tty/serial/mpc52xx_uart.c baud = uart_get_baud_rate(port, new, old, baud 560 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 8 * baud) / (16 * baud); baud 564 drivers/tty/serial/mpc52xx_uart.c return baud; baud 890 drivers/tty/serial/mpc52xx_uart.c unsigned int baud; baud 898 drivers/tty/serial/mpc52xx_uart.c baud = uart_get_baud_rate(port, new, old, baud 901 drivers/tty/serial/mpc52xx_uart.c divisor = (port->uartclk + 8 * baud) / (16 * baud); baud 905 drivers/tty/serial/mpc52xx_uart.c return baud; baud 1180 drivers/tty/serial/mpc52xx_uart.c unsigned int baud; baud 1245 drivers/tty/serial/mpc52xx_uart.c baud = psc_ops->set_baudrate(port, new, old); baud 1248 drivers/tty/serial/mpc52xx_uart.c uart_update_timeout(port, new->c_cflag, baud); baud 1539 drivers/tty/serial/mpc52xx_uart.c int *baud, int *parity, int *bits, int *flow) baud 1549 drivers/tty/serial/mpc52xx_uart.c *baud = CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD; baud 1616 drivers/tty/serial/mpc52xx_uart.c int baud = CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD; baud 1668 drivers/tty/serial/mpc52xx_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1670 drivers/tty/serial/mpc52xx_uart.c mpc52xx_console_get_options(port, &baud, &parity, &bits, &flow); baud 1673 drivers/tty/serial/mpc52xx_uart.c baud, bits, parity, flow); baud 1675 drivers/tty/serial/mpc52xx_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 364 drivers/tty/serial/mps2-uart.c unsigned int baud, bauddiv; baud 372 drivers/tty/serial/mps2-uart.c baud = uart_get_baud_rate(port, termios, old, baud 376 drivers/tty/serial/mps2-uart.c bauddiv = DIV_ROUND_CLOSEST(port->uartclk, baud); baud 380 drivers/tty/serial/mps2-uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 386 drivers/tty/serial/mps2-uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 454 drivers/tty/serial/mps2-uart.c int baud = 9600; baud 468 drivers/tty/serial/mps2-uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 470 drivers/tty/serial/mps2-uart.c return uart_set_options(&mps_port->port, co, baud, parity, bits, flow); baud 1032 drivers/tty/serial/msm_serial.c msm_find_best_baud(struct uart_port *port, unsigned int baud, baud 1059 drivers/tty/serial/msm_serial.c target = clk_round_rate(msm_port->clk, 16 * baud); baud 1060 drivers/tty/serial/msm_serial.c divisor = DIV_ROUND_CLOSEST(target, 16 * baud); baud 1067 drivers/tty/serial/msm_serial.c diff = abs(result - baud); baud 1076 drivers/tty/serial/msm_serial.c if (result == baud) baud 1090 drivers/tty/serial/msm_serial.c divisor = DIV_ROUND_CLOSEST(target, 16 * baud); baud 1100 drivers/tty/serial/msm_serial.c static int msm_set_baud_rate(struct uart_port *port, unsigned int baud, baud 1111 drivers/tty/serial/msm_serial.c entry = msm_find_best_baud(port, baud, &rate); baud 1113 drivers/tty/serial/msm_serial.c baud = rate / 16 / entry->divisor; baud 1160 drivers/tty/serial/msm_serial.c return baud; baud 1245 drivers/tty/serial/msm_serial.c unsigned int baud, mr; baud 1253 drivers/tty/serial/msm_serial.c baud = uart_get_baud_rate(port, termios, old, 300, 4000000); baud 1254 drivers/tty/serial/msm_serial.c baud = msm_set_baud_rate(port, baud, &flags); baud 1256 drivers/tty/serial/msm_serial.c tty_termios_encode_baud_rate(termios, baud, baud); baud 1314 drivers/tty/serial/msm_serial.c uart_update_timeout(port, termios->c_cflag, baud); baud 1660 drivers/tty/serial/msm_serial.c int baud = 115200; baud 1676 drivers/tty/serial/msm_serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1680 drivers/tty/serial/msm_serial.c return uart_set_options(port, co, baud, parity, bits, flow); baud 446 drivers/tty/serial/mvebu-uart.c static int mvebu_uart_baud_rate_set(struct uart_port *port, unsigned int baud) baud 466 drivers/tty/serial/mvebu-uart.c d_divisor = DIV_ROUND_UP(port->uartclk, baud * m_divisor); baud 485 drivers/tty/serial/mvebu-uart.c unsigned int baud; baud 509 drivers/tty/serial/mvebu-uart.c baud = uart_get_baud_rate(port, termios, old, 0, 230400); baud 510 drivers/tty/serial/mvebu-uart.c if (mvebu_uart_baud_rate_set(port, baud)) { baud 513 drivers/tty/serial/mvebu-uart.c baud = uart_get_baud_rate(port, old, NULL, 0, 230400); baud 515 drivers/tty/serial/mvebu-uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 516 drivers/tty/serial/mvebu-uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 695 drivers/tty/serial/mvebu-uart.c int baud = 9600; baud 711 drivers/tty/serial/mvebu-uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 713 drivers/tty/serial/mvebu-uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 980 drivers/tty/serial/mxs-auart.c unsigned int cflag, baud, baud_min, baud_max; baud 1076 drivers/tty/serial/mxs-auart.c baud = uart_get_baud_rate(u, termios, old, baud 1079 drivers/tty/serial/mxs-auart.c div = u->uartclk * 4 / baud; baud 1084 drivers/tty/serial/mxs-auart.c baud = uart_get_baud_rate(u, termios, old, baud_min, baud_max); baud 1085 drivers/tty/serial/mxs-auart.c div = DIV_ROUND_CLOSEST(u->uartclk * 32, baud); baud 1094 drivers/tty/serial/mxs-auart.c uart_update_timeout(u, termios->c_cflag, baud); baud 1401 drivers/tty/serial/mxs-auart.c auart_console_get_options(struct mxs_auart_port *s, int *baud, baud 1432 drivers/tty/serial/mxs-auart.c *baud = (port->uartclk << 2) / quot; baud 1439 drivers/tty/serial/mxs-auart.c int baud = 9600; baud 1461 drivers/tty/serial/mxs-auart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1463 drivers/tty/serial/mxs-auart.c auart_console_get_options(s, &baud, &parity, &bits); baud 1465 drivers/tty/serial/mxs-auart.c ret = uart_set_options(&s->port, co, baud, parity, bits, flow); baud 226 drivers/tty/serial/omap-serial.c unsigned int baud, unsigned int mode) baud 228 drivers/tty/serial/omap-serial.c unsigned int n = port->uartclk / (mode * baud); baud 234 drivers/tty/serial/omap-serial.c abs_diff = baud - (port->uartclk / (mode * n)); baud 253 drivers/tty/serial/omap-serial.c serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) baud 255 drivers/tty/serial/omap-serial.c int abs_diff_13 = calculate_baud_abs_diff(port, baud, 13); baud 256 drivers/tty/serial/omap-serial.c int abs_diff_16 = calculate_baud_abs_diff(port, baud, 16); baud 267 drivers/tty/serial/omap-serial.c serial_omap_get_divisor(struct uart_port *port, unsigned int baud) baud 271 drivers/tty/serial/omap-serial.c if (!serial_omap_baud_is_mode16(port, baud)) baud 275 drivers/tty/serial/omap-serial.c return port->uartclk/(mode * baud); baud 845 drivers/tty/serial/omap-serial.c unsigned int baud, quot; baud 876 drivers/tty/serial/omap-serial.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/13); baud 877 drivers/tty/serial/omap-serial.c quot = serial_omap_get_divisor(port, baud); baud 880 drivers/tty/serial/omap-serial.c up->calc_latency = (USEC_PER_SEC * up->port.fifosize) / (baud / 8); baud 901 drivers/tty/serial/omap-serial.c uart_update_timeout(port, termios->c_cflag, baud); baud 1019 drivers/tty/serial/omap-serial.c if (!serial_omap_baud_is_mode16(port, baud)) baud 1353 drivers/tty/serial/omap-serial.c int baud = 115200; baud 1363 drivers/tty/serial/omap-serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1365 drivers/tty/serial/omap-serial.c return uart_set_options(&up->port, co, baud, parity, bits, flow); baud 322 drivers/tty/serial/owl-uart.c unsigned long baud) baud 324 drivers/tty/serial/owl-uart.c clk_set_rate(owl_port->clk, baud * 8); baud 332 drivers/tty/serial/owl-uart.c unsigned int baud; baud 383 drivers/tty/serial/owl-uart.c baud = uart_get_baud_rate(port, termios, old, 9600, 3200000); baud 384 drivers/tty/serial/owl-uart.c owl_uart_change_baudrate(owl_port, baud); baud 388 drivers/tty/serial/owl-uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 394 drivers/tty/serial/owl-uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 552 drivers/tty/serial/owl-uart.c int baud = 115200; baud 565 drivers/tty/serial/owl-uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 567 drivers/tty/serial/owl-uart.c return uart_set_options(&owl_port->port, co, baud, parity, bits, flow); baud 438 drivers/tty/serial/pch_uart.c static int pch_uart_hal_set_line(struct eg20t_port *priv, unsigned int baud, baud 445 drivers/tty/serial/pch_uart.c div = DIV_ROUND_CLOSEST(priv->uartclk / 16, baud); baud 474 drivers/tty/serial/pch_uart.c __func__, baud, div, lcr, jiffies); baud 1372 drivers/tty/serial/pch_uart.c unsigned int baud, parity, bits, stb; baud 1413 drivers/tty/serial/pch_uart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 1418 drivers/tty/serial/pch_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 1419 drivers/tty/serial/pch_uart.c rtn = pch_uart_hal_set_line(priv, baud, parity, bits, stb); baud 1426 drivers/tty/serial/pch_uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 1682 drivers/tty/serial/pch_uart.c int baud = default_baud; baud 1702 drivers/tty/serial/pch_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1704 drivers/tty/serial/pch_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 532 drivers/tty/serial/pic32_uart.c unsigned int baud; baud 593 drivers/tty/serial/pic32_uart.c baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); baud 594 drivers/tty/serial/pic32_uart.c quot = uart_get_divisor(port, baud) - 1; baud 596 drivers/tty/serial/pic32_uart.c uart_update_timeout(port, new->c_cflag, baud); baud 599 drivers/tty/serial/pic32_uart.c tty_termios_encode_baud_rate(new, baud, baud); baud 728 drivers/tty/serial/pic32_uart.c int baud = 115200; baud 747 drivers/tty/serial/pic32_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 749 drivers/tty/serial/pic32_uart.c return uart_set_options(port, co, baud, parity, bits, flow); baud 24 drivers/tty/serial/pic32_uart.h int baud; baud 1001 drivers/tty/serial/pmac_zilog.c unsigned int iflag, unsigned long baud) baud 1009 drivers/tty/serial/pmac_zilog.c if (baud >= 115200 && ZS_IS_IRDA(uap)) { baud 1017 drivers/tty/serial/pmac_zilog.c switch (baud) { baud 1031 drivers/tty/serial/pmac_zilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / 16); baud 1103 drivers/tty/serial/pmac_zilog.c static void pmz_irda_setup(struct uart_pmac_port *uap, unsigned long *baud) baud 1108 drivers/tty/serial/pmac_zilog.c switch (*baud) { baud 1142 drivers/tty/serial/pmac_zilog.c *baud = 9600; baud 1215 drivers/tty/serial/pmac_zilog.c *baud, version); baud 1237 drivers/tty/serial/pmac_zilog.c unsigned long baud; baud 1252 drivers/tty/serial/pmac_zilog.c baud = uart_get_baud_rate(port, termios, old, 1200, 4000000); baud 1253 drivers/tty/serial/pmac_zilog.c pmz_debug("pmz: switch IRDA to %ld bauds\n", baud); baud 1255 drivers/tty/serial/pmac_zilog.c pmz_irda_setup(uap, &baud); baud 1257 drivers/tty/serial/pmac_zilog.c pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud); baud 1261 drivers/tty/serial/pmac_zilog.c baud = uart_get_baud_rate(port, termios, old, 1200, 230400); baud 1262 drivers/tty/serial/pmac_zilog.c pmz_convert_to_zs(uap, termios->c_cflag, termios->c_iflag, baud); baud 1275 drivers/tty/serial/pmac_zilog.c uart_update_timeout(port, termios->c_cflag, baud); baud 1983 drivers/tty/serial/pmac_zilog.c int baud = 38400; baud 1995 drivers/tty/serial/pmac_zilog.c baud = 57600; baud 2032 drivers/tty/serial/pmac_zilog.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2034 drivers/tty/serial/pmac_zilog.c return uart_set_options(port, co, baud, parity, bits, flow); baud 445 drivers/tty/serial/pnx8xxx_uart.c unsigned int lcr_fcr, old_ien, baud, quot; baud 474 drivers/tty/serial/pnx8xxx_uart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 475 drivers/tty/serial/pnx8xxx_uart.c quot = uart_get_divisor(port, baud); baud 522 drivers/tty/serial/pnx8xxx_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 722 drivers/tty/serial/pnx8xxx_uart.c int baud = 38400; baud 737 drivers/tty/serial/pnx8xxx_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 739 drivers/tty/serial/pnx8xxx_uart.c return uart_set_options(&sport->port, co, baud, parity, bits, flow); baud 434 drivers/tty/serial/pxa.c unsigned int baud, quot; baud 463 drivers/tty/serial/pxa.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 464 drivers/tty/serial/pxa.c quot = uart_get_divisor(port, baud); baud 488 drivers/tty/serial/pxa.c uart_update_timeout(port, termios->c_cflag, baud); baud 729 drivers/tty/serial/pxa.c int baud = 9600; baud 741 drivers/tty/serial/pxa.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 743 drivers/tty/serial/pxa.c return uart_set_options(&up->port, co, baud, parity, bits, flow); baud 110 drivers/tty/serial/qcom_geni_serial.c unsigned int baud; baud 269 drivers/tty/serial/qcom_geni_serial.c unsigned int baud; baud 275 drivers/tty/serial/qcom_geni_serial.c baud = port->baud; baud 276 drivers/tty/serial/qcom_geni_serial.c if (!baud) baud 277 drivers/tty/serial/qcom_geni_serial.c baud = 115200; baud 283 drivers/tty/serial/qcom_geni_serial.c timeout_us = ((fifo_bits * USEC_PER_SEC) / baud) + 500; baud 931 drivers/tty/serial/qcom_geni_serial.c static unsigned long get_clk_div_rate(unsigned int baud, baud 937 drivers/tty/serial/qcom_geni_serial.c desired_clk = baud * sampling_rate; baud 941 drivers/tty/serial/qcom_geni_serial.c __func__, baud); baud 952 drivers/tty/serial/qcom_geni_serial.c unsigned int baud; baud 967 drivers/tty/serial/qcom_geni_serial.c baud = uart_get_baud_rate(uport, termios, old, 300, 4000000); baud 968 drivers/tty/serial/qcom_geni_serial.c port->baud = baud; baud 976 drivers/tty/serial/qcom_geni_serial.c clk_rate = get_clk_div_rate(baud, sampling_rate, &clk_div); baud 1041 drivers/tty/serial/qcom_geni_serial.c if (baud) baud 1042 drivers/tty/serial/qcom_geni_serial.c uart_update_timeout(uport, termios->c_cflag, baud); baud 1070 drivers/tty/serial/qcom_geni_serial.c int baud = 9600; baud 1097 drivers/tty/serial/qcom_geni_serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1099 drivers/tty/serial/qcom_geni_serial.c return uart_set_options(uport, co, baud, parity, bits, flow); baud 234 drivers/tty/serial/rda-uart.c unsigned long baud) baud 236 drivers/tty/serial/rda-uart.c clk_set_rate(rda_port->clk, baud * 8); baud 246 drivers/tty/serial/rda-uart.c unsigned int baud; baud 251 drivers/tty/serial/rda-uart.c baud = uart_get_baud_rate(port, termios, old, 9600, port->uartclk / 4); baud 252 drivers/tty/serial/rda-uart.c rda_uart_change_baudrate(rda_port, baud); baud 321 drivers/tty/serial/rda-uart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 324 drivers/tty/serial/rda-uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 639 drivers/tty/serial/rda-uart.c int baud = 921600; baud 652 drivers/tty/serial/rda-uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 654 drivers/tty/serial/rda-uart.c return uart_set_options(&rda_port->port, co, baud, parity, bits, flow); baud 380 drivers/tty/serial/rp2.c unsigned int baud, baud_div; baud 382 drivers/tty/serial/rp2.c baud = uart_get_baud_rate(port, new, old, 0, port->uartclk / 16); baud 383 drivers/tty/serial/rp2.c baud_div = uart_get_divisor(port, baud); baud 386 drivers/tty/serial/rp2.c tty_termios_encode_baud_rate(new, baud, baud); baud 394 drivers/tty/serial/rp2.c uart_update_timeout(port, new->c_cflag, baud); baud 425 drivers/tty/serial/sa1100.c unsigned int utcr0, old_utcr3, baud, quot; baud 454 drivers/tty/serial/sa1100.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 455 drivers/tty/serial/sa1100.c quot = uart_get_divisor(port, baud); baud 492 drivers/tty/serial/sa1100.c uart_update_timeout(port, termios->c_cflag, baud); baud 749 drivers/tty/serial/sa1100.c sa1100_console_get_options(struct sa1100_port *sport, int *baud, baud 776 drivers/tty/serial/sa1100.c *baud = sport->port.uartclk / (16 * (quot + 1)); baud 784 drivers/tty/serial/sa1100.c int baud = 9600; baud 799 drivers/tty/serial/sa1100.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 801 drivers/tty/serial/sa1100.c sa1100_console_get_options(sport, &baud, &parity, &bits); baud 803 drivers/tty/serial/sa1100.c return uart_set_options(&sport->port, co, baud, parity, bits, flow); baud 1190 drivers/tty/serial/samsung.c unsigned int cnt, baud, quot, clk_sel, best_quot = 0; baud 1221 drivers/tty/serial/samsung.c baud = rate / div; baud 1224 drivers/tty/serial/samsung.c baud = rate / (quot * 16); baud 1228 drivers/tty/serial/samsung.c calc_deviation = req_baud - baud; baud 1275 drivers/tty/serial/samsung.c unsigned int baud, quot, clk_sel = 0; baud 1290 drivers/tty/serial/samsung.c baud = uart_get_baud_rate(port, termios, old, 0, 3000000); baud 1291 drivers/tty/serial/samsung.c quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); baud 1292 drivers/tty/serial/samsung.c if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) baud 1314 drivers/tty/serial/samsung.c unsigned int div = ourport->baudclk_rate / baud; baud 1392 drivers/tty/serial/samsung.c uart_update_timeout(port, termios->c_cflag, baud); baud 2131 drivers/tty/serial/samsung.c s3c24xx_serial_get_options(struct uart_port *port, int *baud, baud 2192 drivers/tty/serial/samsung.c *baud = rate / (16 * (ubrdiv + 1)); baud 2193 drivers/tty/serial/samsung.c dbg("calculated baud %d\n", *baud); baud 2202 drivers/tty/serial/samsung.c int baud = 9600; baud 2232 drivers/tty/serial/samsung.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2234 drivers/tty/serial/samsung.c s3c24xx_serial_get_options(port, &baud, &parity, &bits); baud 2236 drivers/tty/serial/samsung.c dbg("s3c24xx_serial_console_setup: baud %d\n", baud); baud 2238 drivers/tty/serial/samsung.c return uart_set_options(port, co, baud, parity, bits, flow); baud 545 drivers/tty/serial/sb1250-duart.c unsigned int baud, brg; baud 583 drivers/tty/serial/sb1250-duart.c baud = uart_get_baud_rate(uport, termios, old_termios, 1200, 5000000); baud 584 drivers/tty/serial/sb1250-duart.c brg = V_DUART_BAUD_RATE(baud); baud 589 drivers/tty/serial/sb1250-duart.c uart_update_timeout(uport, termios->c_cflag, baud); baud 870 drivers/tty/serial/sb1250-duart.c int baud = 115200; baud 886 drivers/tty/serial/sb1250-duart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 887 drivers/tty/serial/sb1250-duart.c return uart_set_options(uport, co, baud, parity, bits, flow); baud 491 drivers/tty/serial/sc16is7xx.c static int sc16is7xx_set_baud(struct uart_port *port, int baud) baud 496 drivers/tty/serial/sc16is7xx.c unsigned long clk = port->uartclk, div = clk / 16 / baud; baud 872 drivers/tty/serial/sc16is7xx.c int baud; baud 951 drivers/tty/serial/sc16is7xx.c baud = uart_get_baud_rate(port, termios, old, baud 956 drivers/tty/serial/sc16is7xx.c baud = sc16is7xx_set_baud(port, baud); baud 959 drivers/tty/serial/sc16is7xx.c uart_update_timeout(port, termios->c_cflag, baud); baud 274 drivers/tty/serial/sccnxp.c int baud; baud 307 drivers/tty/serial/sccnxp.c static int sccnxp_set_baud(struct uart_port *port, int baud) baud 315 drivers/tty/serial/sccnxp.c div_std = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * baud); baud 318 drivers/tty/serial/sccnxp.c sccnxp_update_best_err(baud, bestbaud, &besterr); baud 327 drivers/tty/serial/sccnxp.c for (i = 0; baud_std[i].baud && besterr; i++) { baud 330 drivers/tty/serial/sccnxp.c div_std = DIV_ROUND_CLOSEST(chip->freq_std, baud_std[i].baud); baud 332 drivers/tty/serial/sccnxp.c if (!sccnxp_update_best_err(baud, tmp_baud, &besterr)) { baud 351 drivers/tty/serial/sccnxp.c if (baud != bestbaud) baud 353 drivers/tty/serial/sccnxp.c baud, bestbaud); baud 648 drivers/tty/serial/sccnxp.c int baud; baud 711 drivers/tty/serial/sccnxp.c baud = uart_get_baud_rate(port, termios, old, 50, baud 714 drivers/tty/serial/sccnxp.c baud = sccnxp_set_baud(port, baud); baud 717 drivers/tty/serial/sccnxp.c uart_update_timeout(port, termios->c_cflag, baud); baud 721 drivers/tty/serial/sccnxp.c tty_termios_encode_baud_rate(termios, baud, baud); baud 863 drivers/tty/serial/sccnxp.c int baud = 9600, bits = 8, parity = 'n', flow = 'n'; baud 866 drivers/tty/serial/sccnxp.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 868 drivers/tty/serial/sccnxp.c return uart_set_options(port, co, baud, parity, bits, flow); baud 345 drivers/tty/serial/serial-tegra.c unsigned int baud, long rate) baud 350 drivers/tty/serial/serial-tegra.c if (baud >= tup->baud_tolerance[i].lower_range_baud && baud 351 drivers/tty/serial/serial-tegra.c baud <= tup->baud_tolerance[i].upper_range_baud) baud 375 drivers/tty/serial/serial-tegra.c static int tegra_set_baudrate(struct tegra_uart_port *tup, unsigned int baud) baud 383 drivers/tty/serial/serial-tegra.c if (tup->current_baud == baud) baud 387 drivers/tty/serial/serial-tegra.c rate = baud * 16; baud 391 drivers/tty/serial/serial-tegra.c rate = tegra_get_tolerance_rate(tup, baud, rate); baud 406 drivers/tty/serial/serial-tegra.c divisor = DIV_ROUND_CLOSEST(rate, baud * 16); baud 424 drivers/tty/serial/serial-tegra.c tup->current_baud = baud; baud 1260 drivers/tty/serial/serial-tegra.c unsigned int baud; baud 1336 drivers/tty/serial/serial-tegra.c baud = uart_get_baud_rate(u, termios, oldtermios, baud 1340 drivers/tty/serial/serial-tegra.c ret = tegra_set_baudrate(tup, baud); baud 1346 drivers/tty/serial/serial-tegra.c tty_termios_encode_baud_rate(termios, baud, baud); baud 1364 drivers/tty/serial/serial-tegra.c uart_update_timeout(u, termios->c_cflag, baud); baud 333 drivers/tty/serial/serial_core.c unsigned int baud) baud 367 drivers/tty/serial/serial_core.c port->timeout = (HZ * bits) / baud + HZ/50; baud 396 drivers/tty/serial/serial_core.c unsigned int baud; baud 420 drivers/tty/serial/serial_core.c baud = tty_termios_baud_rate(termios); baud 426 drivers/tty/serial/serial_core.c if (try == 0 && baud == 38400) baud 427 drivers/tty/serial/serial_core.c baud = altbaud; baud 432 drivers/tty/serial/serial_core.c if (baud == 0) { baud 434 drivers/tty/serial/serial_core.c baud = 9600; baud 437 drivers/tty/serial/serial_core.c if (baud >= min && baud <= max) baud 438 drivers/tty/serial/serial_core.c return baud; baud 446 drivers/tty/serial/serial_core.c baud = tty_termios_baud_rate(old); baud 449 drivers/tty/serial/serial_core.c baud, baud); baud 459 drivers/tty/serial/serial_core.c if (baud <= min) baud 482 drivers/tty/serial/serial_core.c uart_get_divisor(struct uart_port *port, unsigned int baud) baud 489 drivers/tty/serial/serial_core.c if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) baud 492 drivers/tty/serial/serial_core.c quot = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); baud 2030 drivers/tty/serial/serial_core.c uart_parse_options(const char *options, int *baud, int *parity, baud 2035 drivers/tty/serial/serial_core.c *baud = simple_strtoul(s, NULL, 10); baud 2058 drivers/tty/serial/serial_core.c int baud, int parity, int bits, int flow) baud 2077 drivers/tty/serial/serial_core.c tty_termios_encode_baud_rate(&termios, baud, baud); baud 2397 drivers/tty/serial/serial_core.c int baud = 9600; baud 2422 drivers/tty/serial/serial_core.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 2423 drivers/tty/serial/serial_core.c ret = uart_set_options(port, NULL, baud, parity, bits, flow); baud 631 drivers/tty/serial/serial_txx9.c unsigned int baud, quot; baud 668 drivers/tty/serial/serial_txx9.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16/2); baud 669 drivers/tty/serial/serial_txx9.c quot = uart_get_divisor(port, baud); baud 684 drivers/tty/serial/serial_txx9.c uart_update_timeout(port, termios->c_cflag, baud); baud 933 drivers/tty/serial/serial_txx9.c int baud = 9600; baud 953 drivers/tty/serial/serial_txx9.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 955 drivers/tty/serial/serial_txx9.c return uart_set_options(port, co, baud, parity, bits, flow); baud 2375 drivers/tty/serial/sh-sci.c unsigned int baud, smr_val = SCSMR_ASYNC, scr_val = 0, i, bits; baud 2403 drivers/tty/serial/sh-sci.c baud = uart_get_baud_rate(port, termios, old, 0, 115200); baud 2410 drivers/tty/serial/sh-sci.c baud = uart_get_baud_rate(port, termios, old, 0, max_freq / min_sr(s)); baud 2411 drivers/tty/serial/sh-sci.c if (!baud) baud 2422 drivers/tty/serial/sh-sci.c err = sci_sck_calc(s, baud, &srr1); baud 2436 drivers/tty/serial/sh-sci.c err = sci_brg_calc(s, baud, s->clk_rates[SCI_SCIF_CLK], &dl1, baud 2452 drivers/tty/serial/sh-sci.c err = sci_brg_calc(s, baud, s->clk_rates[SCI_BRG_INT], &dl1, baud 2467 drivers/tty/serial/sh-sci.c err = sci_scbrr_calc(s, baud, &brr1, &srr1, &cks1); baud 2480 drivers/tty/serial/sh-sci.c s->clks[best_clk], baud, min_err); baud 2497 drivers/tty/serial/sh-sci.c uart_update_timeout(port, termios->c_cflag, baud); baud 2544 drivers/tty/serial/sh-sci.c 2 * (int)baud); baud 2561 drivers/tty/serial/sh-sci.c udelay((1000000 + (baud - 1)) / baud); baud 2612 drivers/tty/serial/sh-sci.c udelay(DIV_ROUND_UP(10 * 1000000, baud)); baud 2625 drivers/tty/serial/sh-sci.c s->rx_frame = (10000 * bits) / (baud / 100); baud 3059 drivers/tty/serial/sh-sci.c int baud = 115200; baud 3085 drivers/tty/serial/sh-sci.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 3087 drivers/tty/serial/sh-sci.c return uart_set_options(port, co, baud, parity, bits, flow); baud 803 drivers/tty/serial/sifive.c int baud = SIFIVE_DEFAULT_BAUD_RATE; baud 816 drivers/tty/serial/sifive.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 818 drivers/tty/serial/sifive.c return uart_set_options(&ssp->port, co, baud, parity, bits, flow); baud 1086 drivers/tty/serial/sirfsoc_uart.c unsigned int baud = 115200; baud 1106 drivers/tty/serial/sirfsoc_uart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1112 drivers/tty/serial/sirfsoc_uart.c return uart_set_options(&sirfport->port, co, baud, parity, bits, flow); baud 782 drivers/tty/serial/sprd_serial.c unsigned int baud, quot; baud 787 drivers/tty/serial/sprd_serial.c baud = uart_get_baud_rate(port, termios, old, 0, SPRD_BAUD_IO_LIMIT); baud 789 drivers/tty/serial/sprd_serial.c quot = port->uartclk / baud; baud 829 drivers/tty/serial/sprd_serial.c uart_update_timeout(port, termios->c_cflag, baud); baud 874 drivers/tty/serial/sprd_serial.c tty_termios_encode_baud_rate(termios, baud, baud); baud 990 drivers/tty/serial/sprd_serial.c int baud = 115200; baud 1005 drivers/tty/serial/sprd_serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1007 drivers/tty/serial/sprd_serial.c return uart_set_options(&sprd_uart_port->port, co, baud, baud 513 drivers/tty/serial/st-asc.c unsigned int baud; baud 524 drivers/tty/serial/st-asc.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 583 drivers/tty/serial/st-asc.c if ((baud < 19200) && !ascport->force_m1) { baud 584 drivers/tty/serial/st-asc.c asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); baud 595 drivers/tty/serial/st-asc.c u64 dividend = (u64)baud * (1 << 16); baud 602 drivers/tty/serial/st-asc.c uart_update_timeout(port, cflag, baud); baud 915 drivers/tty/serial/st-asc.c int baud = 115200; baud 935 drivers/tty/serial/st-asc.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 937 drivers/tty/serial/st-asc.c return uart_set_options(&ascport->port, co, baud, parity, bits, flow); baud 67 drivers/tty/serial/stm32-usart.c u32 delay_DDE, u32 baud) baud 77 drivers/tty/serial/stm32-usart.c rs485_deat_dedt = delay_ADE * baud * 8; baud 79 drivers/tty/serial/stm32-usart.c rs485_deat_dedt = delay_ADE * baud * 16; baud 89 drivers/tty/serial/stm32-usart.c rs485_deat_dedt = delay_DDE * baud * 8; baud 91 drivers/tty/serial/stm32-usart.c rs485_deat_dedt = delay_DDE * baud * 16; baud 107 drivers/tty/serial/stm32-usart.c u32 usartdiv, baud, cr1, cr3; baud 127 drivers/tty/serial/stm32-usart.c baud = DIV_ROUND_CLOSEST(port->uartclk, usartdiv); baud 130 drivers/tty/serial/stm32-usart.c rs485conf->delay_rts_after_send, baud); baud 688 drivers/tty/serial/stm32-usart.c unsigned int baud, bits; baud 697 drivers/tty/serial/stm32-usart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 8); baud 771 drivers/tty/serial/stm32-usart.c usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); baud 793 drivers/tty/serial/stm32-usart.c uart_update_timeout(port, cflag, baud); baud 825 drivers/tty/serial/stm32-usart.c rs485conf->delay_rts_after_send, baud); baud 1295 drivers/tty/serial/stm32-usart.c int baud = 9600; baud 1315 drivers/tty/serial/stm32-usart.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1317 drivers/tty/serial/stm32-usart.c return uart_set_options(&stm32port->port, co, baud, parity, bits, flow); baud 89 drivers/tty/serial/suncore.c int baud, bits, stop, cflag; baud 121 drivers/tty/serial/suncore.c baud = simple_strtoul(s, NULL, 0); baud 131 drivers/tty/serial/suncore.c switch (baud) { baud 145 drivers/tty/serial/suncore.c default: baud = 9600; cflag |= B9600; break; baud 172 drivers/tty/serial/suncore.c int baud; baud 187 drivers/tty/serial/suncore.c for (i = 0; mouse_baud_table[i].baud != -1; i++) baud 192 drivers/tty/serial/suncore.c if (mouse_baud_table[i].baud == -1) baud 195 drivers/tty/serial/suncore.c *new_baud = mouse_baud_table[i].baud; baud 332 drivers/tty/serial/sunhv.c unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); baud 333 drivers/tty/serial/sunhv.c unsigned int quot = uart_get_divisor(port, baud); baud 648 drivers/tty/serial/sunsab.c static void calc_ebrg(int baud, int *n_ret, int *m_ret) baud 652 drivers/tty/serial/sunsab.c if (baud == 0) { baud 663 drivers/tty/serial/sunsab.c n = (SAB_BASE_BAUD * 10) / baud; baud 684 drivers/tty/serial/sunsab.c unsigned int iflag, unsigned int baud, baud 717 drivers/tty/serial/sunsab.c calc_ebrg(baud, &n, &m); baud 721 drivers/tty/serial/sunsab.c up->tec_timeout = (10 * 1000000) / baud; baud 788 drivers/tty/serial/sunsab.c unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); baud 789 drivers/tty/serial/sunsab.c unsigned int quot = uart_get_divisor(port, baud); baud 792 drivers/tty/serial/sunsab.c sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); baud 884 drivers/tty/serial/sunsab.c unsigned int baud, quot; baud 901 drivers/tty/serial/sunsab.c case B150: baud = 150; break; baud 902 drivers/tty/serial/sunsab.c case B300: baud = 300; break; baud 903 drivers/tty/serial/sunsab.c case B600: baud = 600; break; baud 904 drivers/tty/serial/sunsab.c case B1200: baud = 1200; break; baud 905 drivers/tty/serial/sunsab.c case B2400: baud = 2400; break; baud 906 drivers/tty/serial/sunsab.c case B4800: baud = 4800; break; baud 907 drivers/tty/serial/sunsab.c default: case B9600: baud = 9600; break; baud 908 drivers/tty/serial/sunsab.c case B19200: baud = 19200; break; baud 909 drivers/tty/serial/sunsab.c case B38400: baud = 38400; break; baud 910 drivers/tty/serial/sunsab.c case B57600: baud = 57600; break; baud 911 drivers/tty/serial/sunsab.c case B115200: baud = 115200; break; baud 912 drivers/tty/serial/sunsab.c case B230400: baud = 230400; break; baud 913 drivers/tty/serial/sunsab.c case B460800: baud = 460800; break; baud 940 drivers/tty/serial/sunsab.c quot = uart_get_divisor(&up->port, baud); baud 941 drivers/tty/serial/sunsab.c sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); baud 911 drivers/tty/serial/sunsu.c unsigned int baud, quot; baud 916 drivers/tty/serial/sunsu.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); baud 917 drivers/tty/serial/sunsu.c quot = uart_get_divisor(port, baud); baud 1198 drivers/tty/serial/sunsu.c int quot, baud; baud 1205 drivers/tty/serial/sunsu.c baud = 1200; baud 1208 drivers/tty/serial/sunsu.c baud = 4800; baud 1210 drivers/tty/serial/sunsu.c quot = up->port.uartclk / (16 * baud); baud 950 drivers/tty/serial/sunzilog.c int baud, brg; baud 952 drivers/tty/serial/sunzilog.c baud = uart_get_baud_rate(port, termios, old, 1200, 76800); baud 956 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); baud 969 drivers/tty/serial/sunzilog.c uart_update_timeout(port, termios->c_cflag, baud); baud 1225 drivers/tty/serial/sunzilog.c int baud, brg; baud 1240 drivers/tty/serial/sunzilog.c case B150: baud = 150; break; baud 1241 drivers/tty/serial/sunzilog.c case B300: baud = 300; break; baud 1242 drivers/tty/serial/sunzilog.c case B600: baud = 600; break; baud 1243 drivers/tty/serial/sunzilog.c case B1200: baud = 1200; break; baud 1244 drivers/tty/serial/sunzilog.c case B2400: baud = 2400; break; baud 1245 drivers/tty/serial/sunzilog.c case B4800: baud = 4800; break; baud 1246 drivers/tty/serial/sunzilog.c default: case B9600: baud = 9600; break; baud 1247 drivers/tty/serial/sunzilog.c case B19200: baud = 19200; break; baud 1248 drivers/tty/serial/sunzilog.c case B38400: baud = 38400; break; baud 1251 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); baud 1287 drivers/tty/serial/sunzilog.c int baud, brg; baud 1291 drivers/tty/serial/sunzilog.c baud = 1200; baud 1294 drivers/tty/serial/sunzilog.c baud = 4800; baud 1298 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); baud 1338 drivers/tty/serial/sunzilog.c int baud, brg; baud 1376 drivers/tty/serial/sunzilog.c baud = 9600; baud 1377 drivers/tty/serial/sunzilog.c brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); baud 268 drivers/tty/serial/timbuart.c static int get_bindex(int baud) baud 273 drivers/tty/serial/timbuart.c if (baud <= baudrates[i]) baud 283 drivers/tty/serial/timbuart.c unsigned int baud; baud 287 drivers/tty/serial/timbuart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 288 drivers/tty/serial/timbuart.c bindex = get_bindex(baud); baud 293 drivers/tty/serial/timbuart.c baud = baudrates[bindex]; baud 299 drivers/tty/serial/timbuart.c tty_termios_encode_baud_rate(termios, baud, baud); baud 303 drivers/tty/serial/timbuart.c uart_update_timeout(port, termios->c_cflag, baud); baud 309 drivers/tty/serial/uartlite.c unsigned int baud; baud 332 drivers/tty/serial/uartlite.c baud = uart_get_baud_rate(port, termios, old, 0, 460800); baud 333 drivers/tty/serial/uartlite.c uart_update_timeout(port, termios->c_cflag, baud); baud 512 drivers/tty/serial/uartlite.c int baud = 9600; baud 533 drivers/tty/serial/uartlite.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 535 drivers/tty/serial/uartlite.c return uart_set_options(port, co, baud, parity, bits, flow); baud 857 drivers/tty/serial/ucc_uart.c unsigned int baud; baud 951 drivers/tty/serial/ucc_uart.c baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); baud 957 drivers/tty/serial/ucc_uart.c uart_update_timeout(port, termios->c_cflag, baud); baud 965 drivers/tty/serial/ucc_uart.c qe_setbrg(qe_port->us_info.rx_clock, baud, 16); baud 966 drivers/tty/serial/ucc_uart.c qe_setbrg(qe_port->us_info.tx_clock, baud, 1); baud 968 drivers/tty/serial/ucc_uart.c qe_setbrg(qe_port->us_info.rx_clock, baud, 16); baud 969 drivers/tty/serial/ucc_uart.c qe_setbrg(qe_port->us_info.tx_clock, baud, 16); baud 507 drivers/tty/serial/vr41xx_siu.c unsigned int baud, quot; baud 535 drivers/tty/serial/vr41xx_siu.c baud = uart_get_baud_rate(port, new, old, 0, port->uartclk/16); baud 536 drivers/tty/serial/vr41xx_siu.c quot = uart_get_divisor(port, baud); baud 542 drivers/tty/serial/vr41xx_siu.c uart_update_timeout(port, c_cflag, baud); baud 775 drivers/tty/serial/vr41xx_siu.c int baud = 9600; baud 794 drivers/tty/serial/vr41xx_siu.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 796 drivers/tty/serial/vr41xx_siu.c return uart_set_options(port, con, baud, parity, bits, flow); baud 306 drivers/tty/serial/vt8500_serial.c static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) baud 314 drivers/tty/serial/vt8500_serial.c div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; baud 317 drivers/tty/serial/vt8500_serial.c baud = port->uartclk / 16 / ((div & 0x3ff) + 1); baud 325 drivers/tty/serial/vt8500_serial.c vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); baud 327 drivers/tty/serial/vt8500_serial.c return baud; baud 369 drivers/tty/serial/vt8500_serial.c unsigned int baud, lcr; baud 375 drivers/tty/serial/vt8500_serial.c baud = uart_get_baud_rate(port, termios, old, 900, 921600); baud 376 drivers/tty/serial/vt8500_serial.c baud = vt8500_set_baud_rate(port, baud); baud 378 drivers/tty/serial/vt8500_serial.c tty_termios_encode_baud_rate(termios, baud, baud); baud 420 drivers/tty/serial/vt8500_serial.c uart_update_timeout(port, termios->c_cflag, baud); baud 524 drivers/tty/serial/vt8500_serial.c int baud = 9600; baud 538 drivers/tty/serial/vt8500_serial.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 541 drivers/tty/serial/vt8500_serial.c co, baud, parity, bits, flow); baud 195 drivers/tty/serial/xilinx_uartps.c unsigned int baud; baud 405 drivers/tty/serial/xilinx_uartps.c unsigned int baud, u32 *rbdiv, u32 *rcd, int *div8) baud 413 drivers/tty/serial/xilinx_uartps.c if (baud < clk / ((CDNS_UART_BDIV_MAX + 1) * CDNS_UART_CD_MAX)) { baud 421 drivers/tty/serial/xilinx_uartps.c cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1)); baud 427 drivers/tty/serial/xilinx_uartps.c if (baud > calc_baud) baud 428 drivers/tty/serial/xilinx_uartps.c bauderror = baud - calc_baud; baud 430 drivers/tty/serial/xilinx_uartps.c bauderror = calc_baud - baud; baud 440 drivers/tty/serial/xilinx_uartps.c if (((besterror * 100) / baud) < 3) baud 441 drivers/tty/serial/xilinx_uartps.c bestbaud = baud; baud 454 drivers/tty/serial/xilinx_uartps.c unsigned int baud) baud 462 drivers/tty/serial/xilinx_uartps.c calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, baud 474 drivers/tty/serial/xilinx_uartps.c cdns_uart->baud = baud; baud 511 drivers/tty/serial/xilinx_uartps.c if (!cdns_uart_calc_baud_divs(ndata->new_rate, cdns_uart->baud, baud 539 drivers/tty/serial/xilinx_uartps.c cdns_uart->baud = cdns_uart_set_baud_rate(cdns_uart->port, baud 540 drivers/tty/serial/xilinx_uartps.c cdns_uart->baud); baud 688 drivers/tty/serial/xilinx_uartps.c unsigned int baud, minbaud, maxbaud; baud 719 drivers/tty/serial/xilinx_uartps.c baud = uart_get_baud_rate(port, termios, old, minbaud, maxbaud); baud 720 drivers/tty/serial/xilinx_uartps.c baud = cdns_uart_set_baud_rate(port, baud); baud 722 drivers/tty/serial/xilinx_uartps.c tty_termios_encode_baud_rate(termios, baud, baud); baud 725 drivers/tty/serial/xilinx_uartps.c uart_update_timeout(port, termios->c_cflag, baud); baud 1160 drivers/tty/serial/xilinx_uartps.c if (port->uartclk && device->baud) { baud 1165 drivers/tty/serial/xilinx_uartps.c cdns_uart_calc_baud_divs(port->uartclk, device->baud, baud 1247 drivers/tty/serial/xilinx_uartps.c int baud = 9600; baud 1259 drivers/tty/serial/xilinx_uartps.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1261 drivers/tty/serial/xilinx_uartps.c return uart_set_options(port, co, baud, parity, bits, flow); baud 859 drivers/tty/serial/zs.c unsigned int baud, brg; baud 915 drivers/tty/serial/zs.c baud = uart_get_baud_rate(uport, termios, old_termios, 0, baud 918 drivers/tty/serial/zs.c brg = ZS_BPS_TO_BRG(baud, uport->uartclk / zport->clk_mode); baud 922 drivers/tty/serial/zs.c uart_update_timeout(uport, termios->c_cflag, baud); baud 1204 drivers/tty/serial/zs.c int baud = 9600; baud 1218 drivers/tty/serial/zs.c uart_parse_options(options, &baud, &parity, &bits, &flow); baud 1219 drivers/tty/serial/zs.c return uart_set_options(uport, co, baud, parity, bits, flow); baud 290 drivers/usb/serial/belkin_sa.c speed_t baud; baud 322 drivers/usb/serial/belkin_sa.c baud = tty_get_baud_rate(tty); baud 323 drivers/usb/serial/belkin_sa.c if (baud) { baud 324 drivers/usb/serial/belkin_sa.c urb_value = BELKIN_SA_BAUD(baud); baud 329 drivers/usb/serial/belkin_sa.c baud = BELKIN_SA_BAUD(urb_value); baud 332 drivers/usb/serial/belkin_sa.c tty_encode_baud_rate(tty, baud, baud); baud 58 drivers/usb/serial/console.c int baud = 9600; baud 71 drivers/usb/serial/console.c baud = simple_strtoul(options, NULL, 10); baud 84 drivers/usb/serial/console.c if (baud == 0) baud 85 drivers/usb/serial/console.c baud = 9600; baud 161 drivers/usb/serial/console.c tty_termios_encode_baud_rate(&tty->termios, baud, baud); baud 892 drivers/usb/serial/cp210x.c unsigned int baud; baud 896 drivers/usb/serial/cp210x.c &tty->termios.c_cflag, &baud); baud 897 drivers/usb/serial/cp210x.c tty_encode_baud_rate(tty, baud, baud); baud 901 drivers/usb/serial/cp210x.c cp210x_get_termios_port(port, &cflag, &baud); baud 915 drivers/usb/serial/cp210x.c u32 baud; baud 919 drivers/usb/serial/cp210x.c cp210x_read_u32_reg(port, CP210X_GET_BAUDRATE, &baud); baud 921 drivers/usb/serial/cp210x.c dev_dbg(dev, "%s - baud rate = %d\n", __func__, baud); baud 922 drivers/usb/serial/cp210x.c *baudp = baud; baud 1067 drivers/usb/serial/cp210x.c static speed_t cp210x_get_an205_rate(speed_t baud) baud 1072 drivers/usb/serial/cp210x.c if (baud <= cp210x_an205_table1[i].high) baud 1079 drivers/usb/serial/cp210x.c static speed_t cp210x_get_actual_rate(speed_t baud) baud 1084 drivers/usb/serial/cp210x.c if (baud <= 365) baud 1087 drivers/usb/serial/cp210x.c div = DIV_ROUND_CLOSEST(48000000, 2 * prescale * baud); baud 1088 drivers/usb/serial/cp210x.c baud = 48000000 / (2 * prescale * div); baud 1090 drivers/usb/serial/cp210x.c return baud; baud 1124 drivers/usb/serial/cp210x.c u32 baud; baud 1132 drivers/usb/serial/cp210x.c baud = clamp(tty->termios.c_ospeed, priv->min_speed, priv->max_speed); baud 1135 drivers/usb/serial/cp210x.c baud = cp210x_get_actual_rate(baud); baud 1136 drivers/usb/serial/cp210x.c else if (baud < 1000000) baud 1137 drivers/usb/serial/cp210x.c baud = cp210x_get_an205_rate(baud); baud 1139 drivers/usb/serial/cp210x.c dev_dbg(&port->dev, "%s - setting baud rate to %u\n", __func__, baud); baud 1140 drivers/usb/serial/cp210x.c if (cp210x_write_u32_reg(port, CP210X_SET_BAUDRATE, baud)) { baud 1141 drivers/usb/serial/cp210x.c dev_warn(&port->dev, "failed to set baud rate to %u\n", baud); baud 1143 drivers/usb/serial/cp210x.c baud = old_termios->c_ospeed; baud 1145 drivers/usb/serial/cp210x.c baud = 9600; baud 1148 drivers/usb/serial/cp210x.c tty_encode_baud_rate(tty, baud, baud); baud 687 drivers/usb/serial/digi_acceleport.c speed_t baud; baud 694 drivers/usb/serial/digi_acceleport.c baud = tty_get_baud_rate(tty); baud 695 drivers/usb/serial/digi_acceleport.c if (baud != tty_termios_baud_rate(old_termios)) { baud 707 drivers/usb/serial/digi_acceleport.c switch (baud) { baud 730 drivers/usb/serial/digi_acceleport.c baud = 9600; baud 859 drivers/usb/serial/digi_acceleport.c tty_encode_baud_rate(tty, baud, baud); baud 954 drivers/usb/serial/f81534.c u32 baud; baud 991 drivers/usb/serial/f81534.c baud = tty_get_baud_rate(tty); baud 992 drivers/usb/serial/f81534.c if (!baud) baud 1000 drivers/usb/serial/f81534.c dev_dbg(&port->dev, "%s: baud: %d\n", __func__, baud); baud 1002 drivers/usb/serial/f81534.c status = f81534_set_port_config(port, tty, baud, old_baud, new_lcr); baud 1088 drivers/usb/serial/ftdi_sio.c static unsigned short int ftdi_232am_baud_base_to_divisor(int baud, int base); baud 1089 drivers/usb/serial/ftdi_sio.c static unsigned short int ftdi_232am_baud_to_divisor(int baud); baud 1090 drivers/usb/serial/ftdi_sio.c static u32 ftdi_232bm_baud_base_to_divisor(int baud, int base); baud 1091 drivers/usb/serial/ftdi_sio.c static u32 ftdi_232bm_baud_to_divisor(int baud); baud 1092 drivers/usb/serial/ftdi_sio.c static u32 ftdi_2232h_baud_base_to_divisor(int baud, int base); baud 1093 drivers/usb/serial/ftdi_sio.c static u32 ftdi_2232h_baud_to_divisor(int baud); baud 1140 drivers/usb/serial/ftdi_sio.c static unsigned short int ftdi_232am_baud_base_to_divisor(int baud, int base) baud 1144 drivers/usb/serial/ftdi_sio.c int divisor3 = DIV_ROUND_CLOSEST(base, 2 * baud); baud 1160 drivers/usb/serial/ftdi_sio.c static unsigned short int ftdi_232am_baud_to_divisor(int baud) baud 1162 drivers/usb/serial/ftdi_sio.c return ftdi_232am_baud_base_to_divisor(baud, 48000000); baud 1165 drivers/usb/serial/ftdi_sio.c static u32 ftdi_232bm_baud_base_to_divisor(int baud, int base) baud 1170 drivers/usb/serial/ftdi_sio.c int divisor3 = DIV_ROUND_CLOSEST(base, 2 * baud); baud 1181 drivers/usb/serial/ftdi_sio.c static u32 ftdi_232bm_baud_to_divisor(int baud) baud 1183 drivers/usb/serial/ftdi_sio.c return ftdi_232bm_baud_base_to_divisor(baud, 48000000); baud 1186 drivers/usb/serial/ftdi_sio.c static u32 ftdi_2232h_baud_base_to_divisor(int baud, int base) baud 1193 drivers/usb/serial/ftdi_sio.c divisor3 = DIV_ROUND_CLOSEST(8 * base, 10 * baud); baud 1211 drivers/usb/serial/ftdi_sio.c static u32 ftdi_2232h_baud_to_divisor(int baud) baud 1213 drivers/usb/serial/ftdi_sio.c return ftdi_2232h_baud_base_to_divisor(baud, 120000000); baud 1272 drivers/usb/serial/ftdi_sio.c int baud; baud 1274 drivers/usb/serial/ftdi_sio.c baud = tty_get_baud_rate(tty); baud 1275 drivers/usb/serial/ftdi_sio.c dev_dbg(dev, "%s - tty_get_baud_rate reports speed %d\n", __func__, baud); baud 1281 drivers/usb/serial/ftdi_sio.c if (baud == 38400 && baud 1284 drivers/usb/serial/ftdi_sio.c baud = priv->baud_base / priv->custom_divisor; baud 1286 drivers/usb/serial/ftdi_sio.c __func__, priv->custom_divisor, baud); baud 1289 drivers/usb/serial/ftdi_sio.c if (!baud) baud 1290 drivers/usb/serial/ftdi_sio.c baud = 9600; baud 1293 drivers/usb/serial/ftdi_sio.c switch (baud) { baud 1307 drivers/usb/serial/ftdi_sio.c __func__, baud); baud 1309 drivers/usb/serial/ftdi_sio.c baud = 9600; baud 1314 drivers/usb/serial/ftdi_sio.c if (baud <= 3000000) { baud 1315 drivers/usb/serial/ftdi_sio.c div_value = ftdi_232am_baud_to_divisor(baud); baud 1318 drivers/usb/serial/ftdi_sio.c baud = 9600; baud 1327 drivers/usb/serial/ftdi_sio.c if (baud <= 3000000) { baud 1335 drivers/usb/serial/ftdi_sio.c (baud == 19200)) { baud 1336 drivers/usb/serial/ftdi_sio.c baud = 1200000; baud 1338 drivers/usb/serial/ftdi_sio.c div_value = ftdi_232bm_baud_to_divisor(baud); baud 1343 drivers/usb/serial/ftdi_sio.c baud = 9600; baud 1349 drivers/usb/serial/ftdi_sio.c if ((baud <= 12000000) && (baud >= 1200)) { baud 1350 drivers/usb/serial/ftdi_sio.c div_value = ftdi_2232h_baud_to_divisor(baud); baud 1351 drivers/usb/serial/ftdi_sio.c } else if (baud < 1200) { baud 1352 drivers/usb/serial/ftdi_sio.c div_value = ftdi_232bm_baud_to_divisor(baud); baud 1357 drivers/usb/serial/ftdi_sio.c baud = 9600; baud 1364 drivers/usb/serial/ftdi_sio.c __func__, baud, (unsigned long)div_value, baud 1368 drivers/usb/serial/ftdi_sio.c tty_encode_baud_rate(tty, baud, baud); baud 2452 drivers/usb/serial/io_edgeport.c int baud; baud 2593 drivers/usb/serial/io_edgeport.c baud = tty_get_baud_rate(tty); baud 2594 drivers/usb/serial/io_edgeport.c if (!baud) { baud 2596 drivers/usb/serial/io_edgeport.c baud = 9600; baud 2599 drivers/usb/serial/io_edgeport.c dev_dbg(dev, "%s - baud rate = %d\n", __func__, baud); baud 2600 drivers/usb/serial/io_edgeport.c status = send_cmd_write_baud_rate(edge_port, baud); baud 2603 drivers/usb/serial/io_edgeport.c baud = tty_termios_baud_rate(old_termios); baud 2604 drivers/usb/serial/io_edgeport.c tty_encode_baud_rate(tty, baud, baud); baud 2233 drivers/usb/serial/io_ti.c int baud; baud 2332 drivers/usb/serial/io_ti.c baud = tty_get_baud_rate(tty); baud 2333 drivers/usb/serial/io_ti.c if (!baud) { baud 2335 drivers/usb/serial/io_ti.c baud = 9600; baud 2338 drivers/usb/serial/io_ti.c baud = min(baud, 461550); baud 2339 drivers/usb/serial/io_ti.c tty_encode_baud_rate(tty, baud, baud); baud 2342 drivers/usb/serial/io_ti.c edge_port->baud_rate = baud; baud 2343 drivers/usb/serial/io_ti.c config->wBaudRate = (__u16)((461550L + baud/2) / baud); baud 2347 drivers/usb/serial/io_ti.c dev_dbg(dev, "%s - baud rate = %d, wBaudRate = %d\n", __func__, baud, config->wBaudRate); baud 394 drivers/usb/serial/ir-usb.c speed_t baud; baud 397 drivers/usb/serial/ir-usb.c baud = tty_get_baud_rate(tty); baud 405 drivers/usb/serial/ir-usb.c switch (baud) { baud 435 drivers/usb/serial/ir-usb.c baud = 9600; baud 445 drivers/usb/serial/ir-usb.c tty_encode_baud_rate(tty, baud, baud); baud 784 drivers/usb/serial/iuu_phoenix.c u32 baud; baud 797 drivers/usb/serial/iuu_phoenix.c baud = baud_base; baud 799 drivers/usb/serial/iuu_phoenix.c if (baud < 1200 || baud > 230400) { baud 803 drivers/usb/serial/iuu_phoenix.c if (baud > 977) { baud 808 drivers/usb/serial/iuu_phoenix.c if (baud > 3906) { baud 813 drivers/usb/serial/iuu_phoenix.c if (baud > 11718) { baud 818 drivers/usb/serial/iuu_phoenix.c if (baud > 46875) { baud 823 drivers/usb/serial/iuu_phoenix.c T1reload = 256 - (u8) (T1FrekvensHZ / (baud * 2)); baud 887 drivers/usb/serial/iuu_phoenix.c int baud; baud 891 drivers/usb/serial/iuu_phoenix.c baud = tty->termios.c_ospeed; baud 893 drivers/usb/serial/iuu_phoenix.c dev_dbg(&port->dev, "%s - enter c_ospeed or baud=%d\n", __func__, baud); baud 914 drivers/usb/serial/iuu_phoenix.c baud * priv->boost / 100, baud 926 drivers/usb/serial/iuu_phoenix.c tty_encode_baud_rate(tty, baud, baud); baud 958 drivers/usb/serial/iuu_phoenix.c int baud; baud 962 drivers/usb/serial/iuu_phoenix.c baud = tty->termios.c_ospeed; baud 964 drivers/usb/serial/iuu_phoenix.c dev_dbg(dev, "%s - baud %d\n", __func__, baud); baud 993 drivers/usb/serial/iuu_phoenix.c iuu_uart_baud(port, baud * boost / 100, &actual, baud 1008 drivers/usb/serial/iuu_phoenix.c iuu_uart_baud(port, baud * boost / 100, &actual, baud 594 drivers/usb/serial/keyspan.c int baud; baud 659 drivers/usb/serial/keyspan.c p_priv->baud = baud_rate; baud 1286 drivers/usb/serial/keyspan.c if (p_priv->baud > 57600) baud 1527 drivers/usb/serial/keyspan.c p_priv->baud = 9600; baud 1572 drivers/usb/serial/keyspan.c p_priv->baud = baud_rate; baud 2087 drivers/usb/serial/keyspan.c if (p_priv->old_baud != p_priv->baud) { baud 2088 drivers/usb/serial/keyspan.c p_priv->old_baud = p_priv->baud; baud 2090 drivers/usb/serial/keyspan.c if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2094 drivers/usb/serial/keyspan.c __func__, p_priv->baud); baud 2228 drivers/usb/serial/keyspan.c if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2232 drivers/usb/serial/keyspan.c __func__, p_priv->baud); baud 2357 drivers/usb/serial/keyspan.c if (p_priv->old_baud != p_priv->baud) { baud 2358 drivers/usb/serial/keyspan.c p_priv->old_baud = p_priv->baud; baud 2360 drivers/usb/serial/keyspan.c if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2364 drivers/usb/serial/keyspan.c __func__, p_priv->baud); baud 2524 drivers/usb/serial/keyspan.c if (p_priv->old_baud != p_priv->baud) { baud 2525 drivers/usb/serial/keyspan.c p_priv->old_baud = p_priv->baud; baud 2527 drivers/usb/serial/keyspan.c if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2530 drivers/usb/serial/keyspan.c __func__, p_priv->baud); baud 2531 drivers/usb/serial/keyspan.c p_priv->baud = 9600; baud 2532 drivers/usb/serial/keyspan.c d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2540 drivers/usb/serial/keyspan.c if (p_priv->baud > 57600) { baud 2659 drivers/usb/serial/keyspan.c if (p_priv->old_baud != p_priv->baud) { baud 2660 drivers/usb/serial/keyspan.c p_priv->old_baud = p_priv->baud; baud 2662 drivers/usb/serial/keyspan.c if (d_details->calculate_baud_rate(port, p_priv->baud, d_details->baudclk, baud 2666 drivers/usb/serial/keyspan.c __func__, p_priv->baud); baud 229 drivers/usb/serial/keyspan_pda.c static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) baud 234 drivers/usb/serial/keyspan_pda.c switch (baud) { baud 267 drivers/usb/serial/keyspan_pda.c baud = 9600; baud 284 drivers/usb/serial/keyspan_pda.c return baud; baud 410 drivers/usb/serial/kl5kusb105.c speed_t baud; baud 422 drivers/usb/serial/kl5kusb105.c baud = tty_get_baud_rate(tty); baud 424 drivers/usb/serial/kl5kusb105.c switch (baud) { baud 454 drivers/usb/serial/kl5kusb105.c baud = 9600; baud 465 drivers/usb/serial/kl5kusb105.c tty_encode_baud_rate(tty, baud, baud); baud 1345 drivers/usb/serial/mos7720.c unsigned int baud) baud 1379 drivers/usb/serial/mos7720.c write_mos_reg(serial, dummy, sp_reg, baud * 0x10); baud 1528 drivers/usb/serial/mos7720.c int baud; baud 1644 drivers/usb/serial/mos7720.c baud = tty_get_baud_rate(tty); baud 1645 drivers/usb/serial/mos7720.c if (!baud) { baud 1648 drivers/usb/serial/mos7720.c baud = 9600; baud 1651 drivers/usb/serial/mos7720.c if (baud >= 230400) { baud 1652 drivers/usb/serial/mos7720.c set_higher_rates(mos7720_port, baud); baud 1658 drivers/usb/serial/mos7720.c dev_dbg(&port->dev, "%s - baud rate = %d\n", __func__, baud); baud 1659 drivers/usb/serial/mos7720.c status = send_cmd_write_baud_rate(mos7720_port, baud); baud 1663 drivers/usb/serial/mos7720.c tty_encode_baud_rate(tty, baud, baud); baud 1689 drivers/usb/serial/mos7840.c int baud; baud 1809 drivers/usb/serial/mos7840.c baud = tty_get_baud_rate(tty); baud 1811 drivers/usb/serial/mos7840.c if (!baud) { baud 1814 drivers/usb/serial/mos7840.c baud = 9600; baud 1817 drivers/usb/serial/mos7840.c dev_dbg(&port->dev, "%s - baud rate = %d\n", __func__, baud); baud 1818 drivers/usb/serial/mos7840.c status = mos7840_send_cmd_write_baud_rate(mos7840_port, baud); baud 851 drivers/usb/serial/mxuport.c int baud; baud 919 drivers/usb/serial/mxuport.c baud = tty_get_baud_rate(tty); baud 920 drivers/usb/serial/mxuport.c if (!baud) baud 921 drivers/usb/serial/mxuport.c baud = 9600; baud 924 drivers/usb/serial/mxuport.c put_unaligned_le32(baud, buf); baud 932 drivers/usb/serial/mxuport.c dev_dbg(&port->dev, "baud_rate : %d\n", baud); baud 424 drivers/usb/serial/pl2303.c static speed_t pl2303_get_supported_baud_rate(speed_t baud) baud 435 drivers/usb/serial/pl2303.c if (baud_sup[i] > baud) baud 440 drivers/usb/serial/pl2303.c baud = baud_sup[i - 1]; baud 441 drivers/usb/serial/pl2303.c else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) baud 442 drivers/usb/serial/pl2303.c baud = baud_sup[i - 1]; baud 444 drivers/usb/serial/pl2303.c baud = baud_sup[i]; baud 446 drivers/usb/serial/pl2303.c return baud; baud 454 drivers/usb/serial/pl2303.c speed_t baud) baud 456 drivers/usb/serial/pl2303.c put_unaligned_le32(baud, buf); baud 458 drivers/usb/serial/pl2303.c return baud; baud 462 drivers/usb/serial/pl2303.c speed_t baud) baud 474 drivers/usb/serial/pl2303.c mantissa = baseline / baud; baud 495 drivers/usb/serial/pl2303.c baud = (baseline / mantissa) >> (exponent << 1); baud 497 drivers/usb/serial/pl2303.c return baud; baud 507 drivers/usb/serial/pl2303.c speed_t baud; baud 509 drivers/usb/serial/pl2303.c baud = tty_get_baud_rate(tty); baud 510 drivers/usb/serial/pl2303.c dev_dbg(&port->dev, "baud requested = %u\n", baud); baud 511 drivers/usb/serial/pl2303.c if (!baud) baud 515 drivers/usb/serial/pl2303.c baud = min_t(speed_t, baud, spriv->type->max_baud_rate); baud 519 drivers/usb/serial/pl2303.c baud_sup = pl2303_get_supported_baud_rate(baud); baud 521 drivers/usb/serial/pl2303.c if (baud == baud_sup) baud 522 drivers/usb/serial/pl2303.c baud = pl2303_encode_baud_rate_direct(buf, baud); baud 524 drivers/usb/serial/pl2303.c baud = pl2303_encode_baud_rate_divisor(buf, baud); baud 527 drivers/usb/serial/pl2303.c tty_encode_baud_rate(tty, baud, baud); baud 528 drivers/usb/serial/pl2303.c dev_dbg(&port->dev, "baud set = %u\n", baud); baud 270 drivers/usb/serial/quatech2.c u16 baud; baud 300 drivers/usb/serial/quatech2.c baud = tty_get_baud_rate(tty); baud 301 drivers/usb/serial/quatech2.c if (!baud) baud 302 drivers/usb/serial/quatech2.c baud = 9600; baud 304 drivers/usb/serial/quatech2.c status = qt2_set_port_config(dev, port_priv->device_port, baud, baud 296 drivers/usb/serial/spcp8x5.c int baud; baud 321 drivers/usb/serial/spcp8x5.c baud = tty_get_baud_rate(tty); baud 322 drivers/usb/serial/spcp8x5.c switch (baud) { baud 222 drivers/usb/serial/ssu100.c u16 baud, divisor, remainder; baud 250 drivers/usb/serial/ssu100.c baud = tty_get_baud_rate(tty); baud 251 drivers/usb/serial/ssu100.c if (!baud) baud 252 drivers/usb/serial/ssu100.c baud = 9600; baud 254 drivers/usb/serial/ssu100.c dev_dbg(&port->dev, "%s - got baud = %d\n", __func__, baud); baud 257 drivers/usb/serial/ssu100.c divisor = MAX_BAUD_RATE / baud; baud 258 drivers/usb/serial/ssu100.c remainder = MAX_BAUD_RATE % baud; baud 259 drivers/usb/serial/ssu100.c if (((remainder * 2) >= baud) && (baud != 110)) baud 906 drivers/usb/serial/ti_usb_3410_5052.c int baud; baud 981 drivers/usb/serial/ti_usb_3410_5052.c baud = tty_get_baud_rate(tty); baud 982 drivers/usb/serial/ti_usb_3410_5052.c if (!baud) baud 983 drivers/usb/serial/ti_usb_3410_5052.c baud = 9600; baud 985 drivers/usb/serial/ti_usb_3410_5052.c wbaudrate = (923077 + baud/2) / baud; baud 987 drivers/usb/serial/ti_usb_3410_5052.c wbaudrate = (461538 + baud/2) / baud; baud 991 drivers/usb/serial/ti_usb_3410_5052.c tty_encode_baud_rate(tty, baud, baud); baud 995 drivers/usb/serial/ti_usb_3410_5052.c __func__, baud, wbaudrate, wflags, baud 639 drivers/usb/serial/whiteheat.c speed_t baud; baud 700 drivers/usb/serial/whiteheat.c baud = tty_get_baud_rate(tty); baud 701 drivers/usb/serial/whiteheat.c port_settings.baud = cpu_to_le32(baud); baud 702 drivers/usb/serial/whiteheat.c dev_dbg(dev, "%s - baud rate = %u\n", __func__, baud); baud 705 drivers/usb/serial/whiteheat.c tty_encode_baud_rate(tty, baud, baud); baud 90 drivers/usb/serial/whiteheat.h __le32 baud; /* any value 7 - 460800, firmware calculates baud 141 include/linux/cyclades.h int baud; baud 164 include/linux/serial_8250.h extern void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, baud 119 include/linux/serial_core.h unsigned int baud, baud 122 include/linux/serial_core.h unsigned int baud, baud 326 include/linux/serial_core.h unsigned int baud); baud 330 include/linux/serial_core.h unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud); baud 347 include/linux/serial_core.h unsigned int baud; baud 398 include/linux/serial_core.h void uart_parse_options(const char *options, int *baud, int *parity, int *bits, baud 400 include/linux/serial_core.h int uart_set_options(struct uart_port *port, struct console *co, int baud, baud 326 include/linux/ti_wilink_st.h u32 baud; baud 862 net/bluetooth/rfcomm/tty.c u8 baud, data_bits, stop_bits, parity, x_on, x_off; baud 956 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_2400; baud 959 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_4800; baud 962 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_7200; baud 965 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_9600; baud 968 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_19200; baud 971 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_38400; baud 974 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_57600; baud 977 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_115200; baud 980 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_230400; baud 984 net/bluetooth/rfcomm/tty.c baud = RFCOMM_RPN_BR_9600; baud 990 net/bluetooth/rfcomm/tty.c rfcomm_send_rpn(dev->dlc->session, 1, dev->dlc->dlci, baud,