Home
last modified time | relevance | path

Searched full:baud (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/linux/arch/mips/pic32/pic32mzda/
H A Dearly_console.c50 static void __init configure_uart(int port, int baud) in configure_uart() argument
57 __raw_writel(((pbclk / baud) / 16) - 1, uart_base + U_BRG(port)); in configure_uart()
63 static void __init setup_early_console(int port, int baud) in setup_early_console() argument
69 configure_uart(console_port, baud); in setup_early_console()
111 int baud = -1; in get_baud_from_cmdline() local
124 baud = 0; in get_baud_from_cmdline()
126 baud = baud * 10 + *s++ - '0'; in get_baud_from_cmdline()
130 return baud; in get_baud_from_cmdline()
136 int baud, port; in fw_init_early_console() local
140 baud = get_baud_from_cmdline(arch_cmdline); in fw_init_early_console()
[all …]
/linux/arch/m68k/atari/
H A Ddebug.c168 int baud = cflag & CBAUD; in atari_init_mfp_port() local
173 baud += B38400; in atari_init_mfp_port()
174 if (baud < B1200 || baud > B38400+2) in atari_init_mfp_port()
175 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_mfp_port()
176 baud -= B1200; /* baud_table[] starts at 1200bps */ in atari_init_mfp_port()
181 st_mfp.tim_dt_d = baud_table[baud]; in atari_init_mfp_port()
218 int baud = cflag & CBAUD; in atari_init_scc_port() local
222 baud += B38400; in atari_init_scc_port()
223 if (baud < B1200 || baud > B38400+2) in atari_init_scc_port()
224 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_scc_port()
[all …]
/linux/arch/x86/boot/
H A Dearly_serial_console.c26 static void early_serial_init(int port, int baud) in early_serial_init() argument
36 divisor = 115200 / baud; in early_serial_init()
48 int baud = DEFAULT_BAUD; in parse_earlyprintk() local
92 baud = simple_strtoull(arg + pos, &e, 0); in parse_earlyprintk()
93 if (baud == 0 || arg + pos == e) in parse_earlyprintk()
94 baud = DEFAULT_BAUD; in parse_earlyprintk()
98 early_serial_init(port, baud); in parse_earlyprintk()
120 int baud = DEFAULT_BAUD; in parse_console_uart8250() local
140 baud = simple_strtoull(options + 1, &options, 0); in parse_console_uart8250()
142 baud = probe_baud(port); in parse_console_uart8250()
[all …]
/linux/drivers/tty/serial/
H A Dsuncore.c89 int baud, bits, stop, cflag; in sunserial_console_termios() local
121 baud = simple_strtoul(s, NULL, 0); in sunserial_console_termios()
131 switch (baud) { in sunserial_console_termios()
145 default: baud = 9600; cflag |= B9600; break; in sunserial_console_termios()
170 /* Sun serial MOUSE auto baud rate detection. */
172 int baud; member
187 for (i = 0; mouse_baud_table[i].baud != -1; i++) in suncore_mouse_baud_cflag_next()
192 if (mouse_baud_table[i].baud == -1) in suncore_mouse_baud_cflag_next()
195 *new_baud = mouse_baud_table[i].baud; in suncore_mouse_baud_cflag_next()
201 /* Basically, when the baud rate is wrong the mouse spits out
[all …]
H A D21285.c84 * BAUD_BASE / baud - 1
85 * However, typically BAUD_BASE is not divisible by baud, so
88 * int(BAUD_BASE / baud - 0.5) ->
89 * int(BAUD_BASE / baud - (baud >> 1) / baud) ->
90 * int((BAUD_BASE - (baud >> 1)) / baud)
228 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
244 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
245 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
280 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios()
400 serial21285_get_options(struct uart_port *port, int *baud, in serial21285_get_options() argument
[all …]
H A Desp32_uart.c362 static bool esp32_uart_set_baud(struct uart_port *port, u32 baud) in esp32_uart_set_baud() argument
365 u32 div = sclk / baud; in esp32_uart_set_baud()
372 div = sclk / baud; in esp32_uart_set_baud()
380 u32 frag = (sclk * 16) / baud - div * 16; in esp32_uart_set_baud()
396 u32 baud; in esp32_uart_set_termios() local
405 baud = uart_get_baud_rate(port, termios, old, in esp32_uart_set_termios()
449 if (baud) { in esp32_uart_set_termios()
450 esp32_uart_set_baud(port, baud); in esp32_uart_set_termios()
451 uart_update_timeout(port, termios->c_cflag, baud); in esp32_uart_set_termios()
454 baud = 115200; in esp32_uart_set_termios()
[all …]
H A Dvt8500_serial.c33 #define VT8500_URDIV 0x0008 /* Clock/Baud rate divisor */
279 static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) in vt8500_set_baud_rate() argument
287 div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; in vt8500_set_baud_rate()
289 /* Effective baud rate */ in vt8500_set_baud_rate()
290 baud = port->uartclk / 16 / ((div & 0x3ff) + 1); in vt8500_set_baud_rate()
297 /* Break signal timing depends on baud rate, update accordingly */ in vt8500_set_baud_rate()
298 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
300 return baud; in vt8500_set_baud_rate()
342 unsigned int baud, lcr; in vt8500_set_termios() local
347 /* calculate and set baud rate */ in vt8500_set_termios()
[all …]
H A Dapbuart.c209 unsigned int baud, quot; in apbuart_set_termios() local
212 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in apbuart_set_termios()
213 if (baud == 0) in apbuart_set_termios()
217 quot = (uart_get_divisor(port, baud)) * 2; in apbuart_set_termios()
234 uart_update_timeout(port, termios->c_cflag, baud); in apbuart_set_termios()
249 /* Set baud rate */ in apbuart_set_termios()
423 apbuart_console_get_options(struct uart_port *port, int *baud, in apbuart_console_get_options() argument
441 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options()
448 int baud = 38400; in apbuart_console_setup() local
469 uart_parse_options(options, &baud, &parity, &bits, &flow); in apbuart_console_setup()
[all …]
/linux/drivers/net/hamradio/
H A Dbaycom_ser_fdx.c15 * ser12: This is a very simple 1200 baud AFSK modem. The modem consists only
27 * hsk: This is a 4800 baud FSK modem, designed for TNC use. It works fine
37 * '#' denotes the baud rate / 100, eg. ser12* is '1200 baud, soft DCD'
39 * baud baud rate (between 300 and 4800)
115 unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; member
388 if (bc->baud < 300 || bc->baud > 4800) { in ser12_open()
399 bc->hdrv.par.bitrate = bc->baud; in ser12_open()
400 bc->baud_us = 1000000/bc->baud; in ser12_open()
401 bc->baud_uartdiv = (115200/8)/bc->baud; in ser12_open()
416 * the baud rate is set to produce 100 ints/sec in ser12_open()
[all …]
/linux/Documentation/devicetree/bindings/w1/
H A Dw1-uart.yaml18 baud-rate and transmitted byte, which corresponds to a 1-Wire read bit,
21 The default baud-rate for reset and presence detection is 9600 and for
22 a 1-Wire read or write operation 115200. In case the actual baud-rate
35 The baud rate for the 1-Wire reset and presence detect.
40 The baud rate for the 1-Wire write-0 cycle.
45 The baud rate for the 1-Wire write-1 and read cycle.
/linux/arch/x86/kernel/
H A Dearly_printk.c151 unsigned long baud = DEFAULT_BAUD; in early_serial_init() local
177 baud = simple_strtoull(s, &e, 0); in early_serial_init()
179 if (baud == 0 || s == e) in early_serial_init()
180 baud = DEFAULT_BAUD; in early_serial_init()
183 /* Convert from baud to divisor value */ in early_serial_init()
184 divisor = 115200 / baud; in early_serial_init()
213 * The rest of the param should be "[force],B:D.F,baud", where B, D & F describe
220 unsigned long baud = DEFAULT_BAUD; in early_pci_serial_init() local
255 /* A baud might be following */ in early_pci_serial_init()
308 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init()
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_bcm7271.c7 * optional features including the ability to use a baud rate clock
8 * mux for more accurate high speed baud rate selection and also
666 dev_err(dev, "Error selecting BAUD MUX clock for %u\n", in init_real_clk_rates()
676 static u32 find_quot(struct device *dev, u32 freq, u32 baud, u32 *percent) in find_quot() argument
685 quot = DIV_ROUND_CLOSEST(rate, baud); in find_quot()
691 hires_baud = (u64)baud * 10000; in find_quot()
699 *percent = (unsigned long)DIV_ROUND_CLOSEST_ULL(hires_err, baud); in find_quot()
701 dev_dbg(dev, "Baud rate: %u, MUX Clk: %u, Error: %u.%u%%\n", in find_quot()
702 baud, freq, *percent / 100, *percent % 100); in find_quot()
708 u32 baud) in set_clock_mux() argument
[all …]
H A D8250_mtk.c316 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
332 * Store the requested baud rate before calling the generic 8250 in mtk8250_set_termios()
334 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
336 * higher than that, therefore we'll get original baud rate back in mtk8250_set_termios()
340 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
344 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
359 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
363 if (baud < 115200) { in mtk8250_set_termios()
365 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
368 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
[all …]
H A D8250_pericom.c51 static void pericom_do_set_divisor(struct uart_port *port, unsigned int baud, in pericom_do_set_divisor() argument
58 unsigned int divisor = max(maxrate / baud, 1U); in pericom_do_set_divisor()
59 int delta = maxrate / divisor - baud; in pericom_do_set_divisor()
61 if (baud > maxrate + baud / 50) in pericom_do_set_divisor()
64 if (delta > baud / 50) in pericom_do_set_divisor()
71 delta = maxrate / divisor - baud; in pericom_do_set_divisor()
72 if (abs(delta) < baud / 50) { in pericom_do_set_divisor()
H A D8250_ingenic.c94 int baud = 115200; in ingenic_earlycon_setup_tail() local
102 uart_parse_options(opt, &baud, &parity, &bits, &flow); in ingenic_earlycon_setup_tail()
105 if (dev->baud) in ingenic_earlycon_setup_tail()
106 baud = dev->baud; in ingenic_earlycon_setup_tail()
107 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); in ingenic_earlycon_setup_tail()
282 data->clk_baud = devm_clk_get(&pdev->dev, "baud"); in ingenic_uart_probe()
285 "unable to get baud clock\n"); in ingenic_uart_probe()
295 dev_err(&pdev->dev, "could not enable baud clock: %d\n", err); in ingenic_uart_probe()
H A D8250_fintek.c284 unsigned int baud = tty_termios_baud_rate(termios); in fintek_8250_set_termios() local
293 * We'll use serial8250_do_set_termios() for baud = 0, otherwise It'll in fintek_8250_set_termios()
294 * crash on baudrate_table[i] % baud with "division by zero". in fintek_8250_set_termios()
296 if (!baud) in fintek_8250_set_termios()
316 if (baud > baudrate_table[i] || baudrate_table[i] % baud != 0) in fintek_8250_set_termios()
336 baud = tty_termios_baud_rate(old); in fintek_8250_set_termios()
337 tty_termios_encode_baud_rate(termios, baud, baud); in fintek_8250_set_termios()
/linux/Documentation/misc-devices/
H A Doxsemi-tornado.rst10 The baud rate produced by the baud generator is obtained from this input
16 determine the actual baud rate used. Baud rates from 15625000bps down
23 used for the divisor to obtain the requested baud rates by software that
41 Here are the figures for the standard and some non-standard baud rates
88 With the baud base set to 15625000 and the unsigned 16-bit UART_DIV_MAX
89 limitation imposed by ``serial8250_get_baud_rate`` standard baud rates
91 200bps requires the baud base to be divided by 78125 and that is beyond
108 the baud rate of 38400bps. Note that the value of 0 in TCR sets the
115 respectively. These parameters will set the baud rate for the serial
/linux/drivers/tty/
H A Dtty_baudrate.c15 * Routine which returns the baud rate of the tty
50 * Convert termios baud rate data into a speed. This should be called
80 * Convert termios baud rate data into a speed. This should be called
163 * Our goal is to find a close match to the standard baud rate in tty_termios_encode_baud_rate()
164 * returned. Walk the baud rate table and if we get a very close in tty_termios_encode_baud_rate()
201 * tty_encode_baud_rate - set baud rate of the tty
203 * @ibaud: input baud rate
204 * @obaud: output baud rate
/linux/Documentation/w1/masters/
H A Dw1-uart.rst21 combination of baud-rate and transmitted byte, which corresponds to a
25 the baud-rate 9600, i.e. 104.2 us per bit. The transmitted byte 0xf0 over
31 Similar for a 1-Wire read bit or write bit, which uses the baud-rate
36 The default baud-rate for reset and presence detection is 9600 and for
37 a 1-Wire read or write operation 115200. In case the actual baud-rate
/linux/arch/mips/sni/
H A Dsetup.c65 char *baud; in sni_console_setup() local
76 baud = prom_getenv("lbaud"); in sni_console_setup()
80 baud = prom_getenv("rbaud"); in sni_console_setup()
83 if (baud) in sni_console_setup()
84 strcpy(options, baud); in sni_console_setup()
87 baud ? options : NULL); in sni_console_setup()
90 baud ? options : NULL); in sni_console_setup()
/linux/arch/mips/mti-malta/
H A Dmalta-init.c45 int baud = 0; in console_config() local
52 baud = baud*10 + *s++ - '0'; in console_config()
66 if (baud == 0) in console_config()
67 baud = 38400; in console_config()
76 sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud, in console_config()
82 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
/linux/arch/mips/generic/
H A Dyamon-dt.c161 unsigned int uart, baud, stop_bits; in yamon_dt_serial_config() local
176 baud = stop_bits = 0; in yamon_dt_serial_config()
184 baud *= 10; in yamon_dt_serial_config()
185 baud += mode_var[0] - '0'; in yamon_dt_serial_config()
202 if (!baud) in yamon_dt_serial_config()
203 baud = 38400; in yamon_dt_serial_config()
212 uart, baud, parity, stop_bits, in yamon_dt_serial_config()
/linux/include/soc/fsl/qe/
H A Dqe.h35 QE_BRG1, /* Baud Rate Generator 1 */
36 QE_BRG2, /* Baud Rate Generator 2 */
37 QE_BRG3, /* Baud Rate Generator 3 */
38 QE_BRG4, /* Baud Rate Generator 4 */
39 QE_BRG5, /* Baud Rate Generator 5 */
40 QE_BRG6, /* Baud Rate Generator 6 */
41 QE_BRG7, /* Baud Rate Generator 7 */
42 QE_BRG8, /* Baud Rate Generator 8 */
43 QE_BRG9, /* Baud Rate Generator 9 */
44 QE_BRG10, /* Baud Rat
[all...]
/linux/arch/arm/boot/dts/amlogic/
H A Dmeson6.dtsi57 clock-names = "xtal", "pclk", "baud";
62 clock-names = "xtal", "pclk", "baud";
67 clock-names = "xtal", "pclk", "baud";
72 clock-names = "xtal", "pclk", "baud";
/linux/drivers/power/reset/
H A Dqnap-poweroff.c24 u32 baud; member
29 .baud = 19200,
34 .baud = 9600,
55 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()

12345678910>>...12