Home
last modified time | relevance | path

Searched refs:baud (Results 1 – 25 of 233) sorted by relevance

12345678910

/Linux-v5.10/arch/m68k/atari/
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-v5.10/arch/mips/pic32/pic32mzda/
Dearly_console.c50 static void __init configure_uart(char 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(char 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 = -1; in fw_init_early_console() local
140 baud = get_baud_from_cmdline(arch_cmdline); in fw_init_early_console()
[all …]
/Linux-v5.10/arch/x86/boot/
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-v5.10/Documentation/devicetree/bindings/serial/
Dnvidia,tegra20-hsuart.txt27 - nvidia,adjust-baud-rates: List of entries providing percentage of baud rate
31 When baud rate set on controller falls within the range mentioned in this
32 field, baud rate will be adjusted by percentage mentioned here.
34 Increase baud rate by 2% when set baud rate falls within range 9600 to 115200
37 Standard UART devices are expected to have tolerance for baud rate error by
39 Tegra186 chip has a known hardware issue. UART Rx baud rate tolerance level
41 corruption/invalid framing errors. Parker errata suggests adjusting baud
45 its spec) for valid range and Tegra baud rate has to be set above actual
46 Tx baud rate observed. To do this we use nvidia,adjust-baud-rates
48 As an example, consider there is deviation observed in Tx for baud rates as
[all …]
/Linux-v5.10/arch/mips/include/asm/netlogic/xlp-hal/
Duart.h54 #define BAUD_DIVISOR(baud) (BASE_BAUD / baud) argument
103 nlm_uart_set_baudrate(uint64_t base, int baud) in nlm_uart_set_baudrate() argument
112 (BAUD_DIVISOR(baud) & 0xff)); in nlm_uart_set_baudrate()
114 ((BAUD_DIVISOR(baud) >> 8) & 0xff)); in nlm_uart_set_baudrate()
155 nlm_uart_init(uint64_t base, int baud, int databits, int stopbits, in nlm_uart_init() argument
181 nlm_uart_set_baudrate(base, baud); in nlm_uart_init()
/Linux-v5.10/arch/mips/sni/
Dsetup.c63 char *baud; in sni_console_setup() local
74 baud = prom_getenv("lbaud"); in sni_console_setup()
78 baud = prom_getenv("rbaud"); in sni_console_setup()
81 if (baud) in sni_console_setup()
82 strcpy(options, baud); in sni_console_setup()
85 baud ? options : NULL); in sni_console_setup()
88 baud ? options : NULL); in sni_console_setup()
/Linux-v5.10/drivers/tty/serial/
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()
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()
D21285.c249 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
265 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
266 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
301 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios()
421 serial21285_get_options(struct uart_port *port, int *baud, in serial21285_get_options() argument
452 *baud = port->uartclk / (16 * (tmp + 1)); in serial21285_get_options()
459 int baud = 9600; in serial21285_console_setup() local
465 baud = 57600; in serial21285_console_setup()
473 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup()
475 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup()
[all …]
Dxilinx_uartps.c201 unsigned int baud; member
411 unsigned int baud, u32 *rbdiv, u32 *rcd, int *div8) in cdns_uart_calc_baud_divs() argument
419 if (baud < clk / ((CDNS_UART_BDIV_MAX + 1) * CDNS_UART_CD_MAX)) { in cdns_uart_calc_baud_divs()
427 cd = DIV_ROUND_CLOSEST(clk, baud * (bdiv + 1)); in cdns_uart_calc_baud_divs()
433 if (baud > calc_baud) in cdns_uart_calc_baud_divs()
434 bauderror = baud - calc_baud; in cdns_uart_calc_baud_divs()
436 bauderror = calc_baud - baud; in cdns_uart_calc_baud_divs()
446 if (((besterror * 100) / baud) < 3) in cdns_uart_calc_baud_divs()
447 bestbaud = baud; in cdns_uart_calc_baud_divs()
460 unsigned int baud) in cdns_uart_set_baud_rate() argument
[all …]
Darc_uart.c97 unsigned long baud; member
359 unsigned int baud, uartl, uarth, hw_val; in arc_serial_set_termios() local
369 baud = uart_get_baud_rate(port, new, old, 0, 460800); in arc_serial_set_termios()
371 hw_val = port->uartclk / (uart->baud * 4) - 1; in arc_serial_set_termios()
396 tty_termios_encode_baud_rate(new, baud, baud); in arc_serial_set_termios()
398 uart_update_timeout(port, new->c_cflag, baud); in arc_serial_set_termios()
487 int baud = 115200; in arc_serial_console_setup() local
504 uart_parse_options(options, &baud, &parity, &bits, &flow); in arc_serial_console_setup()
510 return uart_set_options(port, co, baud, parity, bits, flow); in arc_serial_console_setup()
562 hw_val = port->uartclk / (dev->baud * 4) - 1; in arc_early_console_setup()
[all …]
Dvt8500_serial.c302 static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) in vt8500_set_baud_rate() argument
310 div |= (uart_get_divisor(port, baud) - 1) & 0x3ff; in vt8500_set_baud_rate()
313 baud = port->uartclk / 16 / ((div & 0x3ff) + 1); in vt8500_set_baud_rate()
321 vt8500_write(port, mult_frac(baud, 4096, 1000000), VT8500_URBKR); in vt8500_set_baud_rate()
323 return baud; in vt8500_set_baud_rate()
365 unsigned int baud, lcr; in vt8500_set_termios() local
371 baud = uart_get_baud_rate(port, termios, old, 900, 921600); in vt8500_set_termios()
372 baud = vt8500_set_baud_rate(port, baud); in vt8500_set_termios()
374 tty_termios_encode_baud_rate(termios, baud, baud); in vt8500_set_termios()
416 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios()
[all …]
Dar933x_uart.c253 unsigned int baud, in ar933x_uart_get_scale_step() argument
263 min_diff = baud; in ar933x_uart_get_scale_step()
268 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step()
275 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step()
292 unsigned int baud, scale, step; in ar933x_uart_set_termios() local
314 baud = uart_get_baud_rate(port, new, old, up->min_baud, up->max_baud); in ar933x_uart_set_termios()
315 ar933x_uart_get_scale_step(port->uartclk, baud, &scale, &step); in ar933x_uart_set_termios()
328 uart_update_timeout(port, new->c_cflag, baud); in ar933x_uart_set_termios()
358 tty_termios_encode_baud_rate(new, baud, baud); in ar933x_uart_set_termios()
670 int baud = 115200; in ar933x_uart_console_setup() local
[all …]
Dsunsab.c644 static void calc_ebrg(int baud, int *n_ret, int *m_ret) in calc_ebrg() argument
648 if (baud == 0) { in calc_ebrg()
659 n = (SAB_BASE_BAUD * 10) / baud; in calc_ebrg()
680 unsigned int iflag, unsigned int baud, in sunsab_convert_to_sab() argument
713 calc_ebrg(baud, &n, &m); in sunsab_convert_to_sab()
717 up->tec_timeout = (10 * 1000000) / baud; in sunsab_convert_to_sab()
784 unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); in sunsab_set_termios() local
785 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios()
788 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); in sunsab_set_termios()
880 unsigned int baud, quot; in sunsab_console_setup() local
[all …]
/Linux-v5.10/drivers/net/hamradio/
Dbaycom_ser_fdx.c115 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()
434 bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); in ser12_open()
482 unsigned int baud; in baycom_setmode() local
485 baud = simple_strtoul(modestr+3, NULL, 10); in baycom_setmode()
486 if (baud >= 3 && baud <= 48) in baycom_setmode()
487 bc->baud = baud*100; in baycom_setmode()
[all …]
/Linux-v5.10/drivers/usb/serial/
Dpl2303.c480 static speed_t pl2303_get_supported_baud_rate(speed_t baud) in pl2303_get_supported_baud_rate() argument
491 if (baud_sup[i] > baud) in pl2303_get_supported_baud_rate()
496 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
497 else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) in pl2303_get_supported_baud_rate()
498 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
500 baud = baud_sup[i]; in pl2303_get_supported_baud_rate()
502 return baud; in pl2303_get_supported_baud_rate()
510 speed_t baud) in pl2303_encode_baud_rate_direct() argument
512 put_unaligned_le32(baud, buf); in pl2303_encode_baud_rate_direct()
514 return baud; in pl2303_encode_baud_rate_direct()
[all …]
/Linux-v5.10/arch/mips/sgi-ip22/
Dip22-setup.c68 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local
69 if (baud) in plat_mem_setup()
70 strcpy(options, baud); in plat_mem_setup()
72 baud ? options : NULL); in plat_mem_setup()
/Linux-v5.10/arch/mips/mti-malta/
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-v5.10/arch/x86/kernel/
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()
184 divisor = 115200 / baud; in early_serial_init()
220 unsigned long baud = DEFAULT_BAUD; in early_pci_serial_init() local
308 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init()
309 baud = DEFAULT_BAUD; in early_pci_serial_init()
313 divisor = 115200 / baud; in early_pci_serial_init()
/Linux-v5.10/arch/mips/generic/
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-v5.10/arch/mips/sgi-ip32/
Dip32-setup.c92 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local
93 if (baud) in plat_mem_setup()
94 strcpy(options, baud); in plat_mem_setup()
96 baud ? options : NULL); in plat_mem_setup()
/Linux-v5.10/drivers/power/reset/
Dqnap-poweroff.c25 u32 baud; member
30 .baud = 19200,
35 .baud = 9600,
56 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()
/Linux-v5.10/arch/powerpc/boot/
Dcuboot-acadia.c53 unsigned long baud; in get_clocks() local
123 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) in get_clocks()
127 div = plloutb / (16 * baud); /* total divisor */ in get_clocks()
/Linux-v5.10/arch/mips/ar7/
Dprom.c191 int baud = 0; in console_config() local
200 baud = simple_strtoul(s, &p, 10); in console_config()
216 if (baud == 0) in console_config()
217 baud = 38400; in console_config()
224 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
227 sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity, in console_config()
/Linux-v5.10/arch/arm/boot/dts/
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-v5.10/drivers/tty/serial/8250/
D8250_mtk.c294 unsigned int baud, quot, fraction; in mtk8250_set_termios() local
318 baud = tty_termios_baud_rate(termios); in mtk8250_set_termios()
322 tty_termios_encode_baud_rate(termios, baud, baud); in mtk8250_set_termios()
337 baud = uart_get_baud_rate(port, termios, old, in mtk8250_set_termios()
341 if (baud < 115200) { in mtk8250_set_termios()
343 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
346 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
358 uart_update_timeout(port, termios->c_cflag, baud); in mtk8250_set_termios()
367 if (baud >= 115200) { in mtk8250_set_termios()
370 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
[all …]

12345678910