Home
last modified time | relevance | path

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

12

/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 …]
/arch/mips/pic32/pic32mzda/
Dearly_console.c57 static void __init configure_uart(char port, int baud) in configure_uart() argument
64 __raw_writel(((pbclk / baud) / 16) - 1, uart_base + U_BRG(port)); in configure_uart()
70 static void __init setup_early_console(char port, int baud) in setup_early_console() argument
76 configure_uart(console_port, baud); in setup_early_console()
118 int baud = -1; in get_baud_from_cmdline() local
131 baud = 0; in get_baud_from_cmdline()
133 baud = baud * 10 + *s++ - '0'; in get_baud_from_cmdline()
137 return baud; in get_baud_from_cmdline()
143 int baud = -1; in fw_init_early_console() local
147 baud = get_baud_from_cmdline(arch_cmdline); in fw_init_early_console()
[all …]
/arch/x86/boot/
Dearly_serial_console.c25 static void early_serial_init(int port, int baud) in early_serial_init() argument
35 divisor = 115200 / baud; in early_serial_init()
47 int baud = DEFAULT_BAUD; in parse_earlyprintk() local
91 baud = simple_strtoull(arg + pos, &e, 0); in parse_earlyprintk()
92 if (baud == 0 || arg + pos == e) in parse_earlyprintk()
93 baud = DEFAULT_BAUD; in parse_earlyprintk()
97 early_serial_init(port, baud); in parse_earlyprintk()
119 int baud = DEFAULT_BAUD; in parse_console_uart8250() local
139 baud = simple_strtoull(options + 1, &options, 0); in parse_console_uart8250()
141 baud = probe_baud(port); in parse_console_uart8250()
[all …]
/arch/mn10300/kernel/
Dgdb-io-ttysm.c96 void gdbstub_io_set_baud(unsigned baud) in gdbstub_io_set_baud() argument
105 if (!baud) { in gdbstub_io_set_baud()
106 baud = 9600; in gdbstub_io_set_baud()
107 } else if (baud == 134) { in gdbstub_io_set_baud()
108 baud = 269; /* 134 is really 134.5 */ in gdbstub_io_set_baud()
118 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
123 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
128 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
136 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
141 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
[all …]
Dgdb-io-serial.c82 void gdbstub_io_set_baud(unsigned baud) in gdbstub_io_set_baud() argument
87 value = 18432000 / 16 / baud; in gdbstub_io_set_baud()
Dmn10300-serial.c1065 int baud, bits, xdiv, tmp; in mn10300_serial_change_speed() local
1162 baud = uart_get_baud_rate(&port->uart, new, old, 0, in mn10300_serial_change_speed()
1165 _debug("ALT %d [baud %d]", battempt, baud); in mn10300_serial_change_speed()
1167 if (!baud) in mn10300_serial_change_speed()
1168 baud = 9600; /* B0 transition handled in rs_set_termios */ in mn10300_serial_change_speed()
1170 if (baud == 134) { in mn10300_serial_change_speed()
1171 baud = 269; /* 134 is really 134.5 */ in mn10300_serial_change_speed()
1175 if (baud == 38400 && in mn10300_serial_change_speed()
1230 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in mn10300_serial_change_speed()
1236 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in mn10300_serial_change_speed()
[all …]
/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()
/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()
/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()
/arch/mips/sgi-ip32/
Dip32-setup.c94 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local
95 if (baud) in plat_mem_setup()
96 strcpy(options, baud); in plat_mem_setup()
98 baud ? options : NULL); in plat_mem_setup()
/arch/mips/mti-malta/
Dmalta-init.c46 int baud = 0; in console_config() local
53 baud = baud*10 + *s++ - '0'; in console_config()
67 if (baud == 0) in console_config()
68 baud = 38400; in console_config()
77 sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud, in console_config()
83 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
/arch/powerpc/boot/
Dcuboot-acadia.c56 unsigned long baud; in get_clocks() local
126 if (getprop(np, "current-speed", &baud, sizeof(baud)) != sizeof(baud)) in get_clocks()
130 div = plloutb / (16 * baud); /* total divisor */ in get_clocks()
/arch/x86/kernel/
Dearly_printk.c152 unsigned long baud = DEFAULT_BAUD; in early_serial_init() local
178 baud = simple_strtoull(s, &e, 0); in early_serial_init()
180 if (baud == 0 || s == e) in early_serial_init()
181 baud = DEFAULT_BAUD; in early_serial_init()
185 divisor = 115200 / baud; in early_serial_init()
220 unsigned long baud = DEFAULT_BAUD; in early_pci_serial_init() local
300 if (kstrtoul(s, 0, &baud) < 0 || baud == 0) in early_pci_serial_init()
301 baud = DEFAULT_BAUD; in early_pci_serial_init()
305 divisor = 115200 / baud; in early_pci_serial_init()
/arch/mips/ar7/
Dprom.c202 int baud = 0; in console_config() local
211 baud = simple_strtoul(s, &p, 10); in console_config()
227 if (baud == 0) in console_config()
228 baud = 38400; in console_config()
235 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, in console_config()
238 sprintf(console_string, " console=ttyS0,%d%c%c", baud, parity, in console_config()
/arch/mips/boot/dts/ingenic/
Djz4780.dtsi55 clock-names = "baud", "module";
68 clock-names = "baud", "module";
81 clock-names = "baud", "module";
94 clock-names = "baud", "module";
107 clock-names = "baud", "module";
Djz4740.dtsi55 clock-names = "baud", "module";
66 clock-names = "baud", "module";
/arch/nios2/boot/compressed/
Dconsole.c99 unsigned int baud, baudclk; in console_init() local
102 baud = CONFIG_SERIAL_ALTERA_UART_BAUDRATE; in console_init()
103 baudclk = UART0_FREQ / baud; in console_init()
/arch/mips/generic/
Dboard-sead3.c221 unsigned int uart, baud, stop_bits; in serial_config() local
236 baud = stop_bits = 0; in serial_config()
244 baud *= 10; in serial_config()
245 baud += mode_var[0] - '0'; in serial_config()
262 if (!baud) in serial_config()
263 baud = 38400; in serial_config()
272 uart, baud, parity, stop_bits, in serial_config()
/arch/cris/arch-v10/kernel/
Ddebugport.c31 volatile char* baud; member
182 *p->baud = in start_port()
187 *p->baud = in start_port()
192 *p->baud = in start_port()
197 *p->baud = in start_port()
202 *p->baud = in start_port()
207 *p->baud = in start_port()
212 *p->baud = in start_port()
217 *p->baud = in start_port()
222 *p->baud = in start_port()
/arch/frv/kernel/
Dgdb-io.c81 void gdbstub_set_baud(unsigned baud) in gdbstub_set_baud() argument
87 value = __serial_clock_speed_HZ / 16 / baud; in gdbstub_set_baud()
94 if (low + (high - low) / 2 > baud) in gdbstub_set_baud()
Ddebug-stub.c201 void __init console_set_baud(unsigned baud) in console_set_baud() argument
207 value = __serial_clock_speed_HZ / 16 / baud; in console_set_baud()
214 if (low + (high - low) / 2 > baud) in console_set_baud()
/arch/blackfin/kernel/
Dearly_printk.c39 int baud, bit; in earlyserial_init() local
48 baud = simple_strtoul(buf, &buf, 10); in earlyserial_init()
49 switch (baud) { in earlyserial_init()
/arch/arc/boot/dts/
Dvdk_axs10x_mb.dtsi57 baud = <115200>;
67 baud = <115200>;
77 baud = <115200>;
/arch/frv/include/asm/
Dgdb-stub.h85 extern void gdbstub_set_baud(unsigned baud);
110 extern void console_set_baud(unsigned baud);
/arch/arm/boot/dts/
Dmt8135.dtsi234 clock-names = "baud", "bus";
243 clock-names = "baud", "bus";
252 clock-names = "baud", "bus";
261 clock-names = "baud", "bus";

12