Home
last modified time | relevance | path

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

12345678

/linux-2.6.39/drivers/usb/serial/
Dcp210x.c351 static unsigned int cp210x_quantise_baudrate(unsigned int baud) { in cp210x_quantise_baudrate() argument
352 if (baud <= 56) baud = 0; in cp210x_quantise_baudrate()
353 else if (baud <= 300) baud = 300; in cp210x_quantise_baudrate()
354 else if (baud <= 600) baud = 600; in cp210x_quantise_baudrate()
355 else if (baud <= 1200) baud = 1200; in cp210x_quantise_baudrate()
356 else if (baud <= 1800) baud = 1800; in cp210x_quantise_baudrate()
357 else if (baud <= 2400) baud = 2400; in cp210x_quantise_baudrate()
358 else if (baud <= 4000) baud = 4000; in cp210x_quantise_baudrate()
359 else if (baud <= 4803) baud = 4800; in cp210x_quantise_baudrate()
360 else if (baud <= 7207) baud = 7200; in cp210x_quantise_baudrate()
[all …]
Dpl2303.c258 int baud; in pl2303_set_termios() local
317 baud = tty_get_baud_rate(tty); in pl2303_set_termios()
318 dbg("%s - baud requested = %d", __func__, baud); in pl2303_set_termios()
319 if (baud) { in pl2303_set_termios()
322 if (baud_sup[k] / baud) { in pl2303_set_termios()
325 baud = baud_ceil; in pl2303_set_termios()
328 if ((baud_ceil % baud) in pl2303_set_termios()
329 > (baud % baud_floor)) in pl2303_set_termios()
330 baud = baud_floor; in pl2303_set_termios()
332 baud = baud_ceil; in pl2303_set_termios()
[all …]
Diuu_phoenix.c86 u32 baud; member
863 u32 baud; in iuu_uart_baud() local
876 baud = baud_base; in iuu_uart_baud()
878 if (baud < 1200 || baud > 230400) { in iuu_uart_baud()
882 if (baud > 977) { in iuu_uart_baud()
887 if (baud > 3906) { in iuu_uart_baud()
892 if (baud > 11718) { in iuu_uart_baud()
897 if (baud > 46875) { in iuu_uart_baud()
902 T1reload = 256 - (u8) (T1FrekvensHZ / (baud * 2)); in iuu_uart_baud()
966 int baud; in iuu_set_termios() local
[all …]
/linux-2.6.39/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()
219 int baud = cflag & CBAUD; in atari_init_scc_port() local
223 baud += B38400; in atari_init_scc_port()
224 if (baud < B1200 || baud > B38400+2) in atari_init_scc_port()
225 baud = B9600; /* use default 9600bps for non-implemented rates */ in atari_init_scc_port()
[all …]
/linux-2.6.39/arch/x86/boot/
Dearly_serial_console.c23 static void early_serial_init(int port, int baud) in early_serial_init() argument
33 divisor = 115200 / baud; in early_serial_init()
45 int baud = DEFAULT_BAUD; in parse_earlyprintk() local
89 baud = simple_strtoull(arg + pos, &e, 0); in parse_earlyprintk()
90 if (baud == 0 || arg + pos == e) in parse_earlyprintk()
91 baud = DEFAULT_BAUD; in parse_earlyprintk()
95 early_serial_init(port, baud); in parse_earlyprintk()
117 int baud = DEFAULT_BAUD; in parse_console_uart8250() local
137 baud = simple_strtoull(options + 1, &options, 0); in parse_console_uart8250()
139 baud = probe_baud(port); in parse_console_uart8250()
[all …]
/linux-2.6.39/arch/mn10300/kernel/
Dgdb-io-ttysm.c97 void gdbstub_io_set_baud(unsigned baud) in gdbstub_io_set_baud() argument
106 if (!baud) { in gdbstub_io_set_baud()
107 baud = 9600; in gdbstub_io_set_baud()
108 } else if (baud == 134) { in gdbstub_io_set_baud()
109 baud = 269; /* 134 is really 134.5 */ in gdbstub_io_set_baud()
119 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
124 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
129 tmxbr = tmp = (ioclk / (baud * 32 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
137 tmxbr = tmp = (ioclk / (baud * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
142 tmxbr = tmp = (ioclk / (baud * 8 * xdiv) + 4) / 8 - 1; in gdbstub_io_set_baud()
[all …]
/linux-2.6.39/arch/mips/sni/
Dsetup.c61 char *baud; in sni_console_setup() local
72 baud = prom_getenv("lbaud"); in sni_console_setup()
76 baud = prom_getenv("rbaud"); in sni_console_setup()
79 if (baud) in sni_console_setup()
80 strcpy(options, baud); in sni_console_setup()
83 baud ? options : NULL); in sni_console_setup()
86 baud ? options : NULL); in sni_console_setup()
/linux-2.6.39/drivers/tty/serial/
Dsuncore.c89 int baud, bits, stop, cflag; in sunserial_console_termios() local
120 baud = simple_strtoul(s, NULL, 0); in sunserial_console_termios()
130 switch (baud) { in sunserial_console_termios()
144 default: baud = 9600; cflag |= B9600; break; in sunserial_console_termios()
171 int baud; member
186 for (i = 0; mouse_baud_table[i].baud != -1; i++) in suncore_mouse_baud_cflag_next()
191 if (mouse_baud_table[i].baud == -1) in suncore_mouse_baud_cflag_next()
194 *new_baud = mouse_baud_table[i].baud; in suncore_mouse_baud_cflag_next()
Dmrst_max3110.c61 u32 baud; member
98 else if (max->baud) in max3110_write_then_read()
99 x.speed_hz = max->baud; in max3110_write_then_read()
217 int baud = 115200; in serial_m3110_con_setup() local
233 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial_m3110_con_setup()
235 return uart_set_options(&max->port, co, baud, parity, bits, flow); in serial_m3110_con_setup()
600 unsigned int baud, parity = 0; in serial_m3110_set_termios() local
619 baud = uart_get_baud_rate(port, termios, old, 0, 230400); in serial_m3110_set_termios()
622 switch (baud) { in serial_m3110_set_termios()
658 baud = max->baud; in serial_m3110_set_termios()
[all …]
D21285.c219 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
235 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
236 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
271 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios()
392 serial21285_get_options(struct uart_port *port, int *baud, in serial21285_get_options() argument
423 *baud = port->uartclk / (16 * (tmp + 1)); in serial21285_get_options()
430 int baud = 9600; in serial21285_console_setup() local
436 baud = 57600; in serial21285_console_setup()
444 uart_parse_options(options, &baud, &parity, &bits, &flow); in serial21285_console_setup()
446 serial21285_get_options(port, &baud, &parity, &bits); in serial21285_console_setup()
[all …]
Dvt8500_serial.c277 static int vt8500_set_baud_rate(struct uart_port *port, unsigned int baud) in vt8500_set_baud_rate() argument
284 if (unlikely((baud < 900) || (baud > 921600))) in vt8500_set_baud_rate()
287 div |= (921600 / baud) - 1; in vt8500_set_baud_rate()
293 return baud; in vt8500_set_baud_rate()
335 unsigned int baud, lcr; in vt8500_set_termios() local
341 baud = uart_get_baud_rate(port, termios, old, 900, 921600); in vt8500_set_termios()
342 baud = vt8500_set_baud_rate(port, baud); in vt8500_set_termios()
344 tty_termios_encode_baud_rate(termios, baud, baud); in vt8500_set_termios()
382 uart_update_timeout(port, termios->c_cflag, baud); in vt8500_set_termios()
486 int baud = 9600; in vt8500_console_setup() local
[all …]
Dnetx-serial.c342 unsigned int baud, quot; in netx_set_termios() local
374 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in netx_set_termios()
375 quot = baud * 4096; in netx_set_termios()
382 uart_update_timeout(port, termios->c_cflag, baud); in netx_set_termios()
553 netx_console_get_options(struct uart_port *port, int *baud, in netx_console_get_options() argument
558 *baud = (readl(port->membase + UART_BAUDDIV_MSB) << 8) | in netx_console_get_options()
560 *baud *= 1000; in netx_console_get_options()
561 *baud /= 4096; in netx_console_get_options()
562 *baud *= 1000; in netx_console_get_options()
563 *baud /= 256; in netx_console_get_options()
[all …]
Dsunsab.c633 static void calc_ebrg(int baud, int *n_ret, int *m_ret) in calc_ebrg() argument
637 if (baud == 0) { in calc_ebrg()
648 n = (SAB_BASE_BAUD * 10) / baud; in calc_ebrg()
669 unsigned int iflag, unsigned int baud, in sunsab_convert_to_sab() argument
702 calc_ebrg(baud, &n, &m); in sunsab_convert_to_sab()
706 up->tec_timeout = (10 * 1000000) / baud; in sunsab_convert_to_sab()
772 unsigned int baud = uart_get_baud_rate(port, termios, old, 0, 4000000); in sunsab_set_termios() local
773 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios()
776 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); in sunsab_set_termios()
872 unsigned int baud, quot; in sunsab_console_setup() local
[all …]
Dmsm_serial.c318 static int msm_set_baud_rate(struct uart_port *port, unsigned int baud) in msm_set_baud_rate() argument
323 switch (baud) { in msm_set_baud_rate()
371 baud = 115200; in msm_set_baud_rate()
400 return baud; in msm_set_baud_rate()
495 unsigned int baud, mr; in msm_set_termios() local
500 baud = uart_get_baud_rate(port, termios, old, 300, 115200); in msm_set_termios()
501 baud = msm_set_baud_rate(port, baud); in msm_set_termios()
503 tty_termios_encode_baud_rate(termios, baud, baud); in msm_set_termios()
561 uart_update_timeout(port, termios->c_cflag, baud); in msm_set_termios()
796 int baud, flow, bits, parity; in msm_console_setup() local
[all …]
Dmpc52xx_uart.c235 unsigned int baud; in mpc5200_psc_set_baudrate() local
239 baud = uart_get_baud_rate(port, new, old, in mpc5200_psc_set_baudrate()
242 divisor = (port->uartclk + 16 * baud) / (32 * baud); in mpc5200_psc_set_baudrate()
246 return baud; in mpc5200_psc_set_baudrate()
253 unsigned int baud; in mpc5200b_psc_set_baudrate() local
259 baud = uart_get_baud_rate(port, new, old, in mpc5200b_psc_set_baudrate()
262 divisor = (port->uartclk + 2 * baud) / (4 * baud); in mpc5200b_psc_set_baudrate()
271 return baud; in mpc5200b_psc_set_baudrate()
461 unsigned int baud; in mpc512x_psc_set_baudrate() local
478 baud = uart_get_baud_rate(port, new, old, in mpc512x_psc_set_baudrate()
[all …]
Dsamsung.c519 unsigned int baud) in s3c24xx_serial_calcbaud() argument
534 unsigned long div = rate / baud; in s3c24xx_serial_calcbaud()
547 calc->quot = (rate + (8 * baud)) / (16 * baud); in s3c24xx_serial_calcbaud()
558 unsigned int baud) in s3c24xx_serial_getclk() argument
594 s3c24xx_serial_calcbaud(res, port, clkp, baud); in s3c24xx_serial_getclk()
601 if (s3c24xx_serial_calcbaud(resptr, port, clkp, baud)) in s3c24xx_serial_getclk()
613 calc_deviation = baud - sptr->calc; in s3c24xx_serial_getclk()
665 unsigned int baud, quot; in s3c24xx_serial_set_termios() local
680 baud = uart_get_baud_rate(port, termios, old, 0, 115200*8); in s3c24xx_serial_set_termios()
682 if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) in s3c24xx_serial_set_termios()
[all …]
Dclps711x.c289 unsigned int ubrlcr, baud, quot; in clps711xuart_set_termios() local
300 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in clps711xuart_set_termios()
301 quot = uart_get_divisor(port, baud); in clps711xuart_set_termios()
332 uart_update_timeout(port, termios->c_cflag, baud); in clps711xuart_set_termios()
465 clps711xuart_console_get_options(struct uart_port *port, int *baud, in clps711xuart_console_get_options() argument
487 *baud = port->uartclk / (16 * (quot + 1)); in clps711xuart_console_get_options()
494 int baud = 38400; in clps711xuart_console_setup() local
507 uart_parse_options(options, &baud, &parity, &bits, &flow); in clps711xuart_console_setup()
509 clps711xuart_console_get_options(port, &baud, &parity, &bits); in clps711xuart_console_setup()
511 return uart_set_options(port, co, baud, parity, bits, flow); in clps711xuart_console_setup()
Dserial_ks8695.c388 unsigned int baud, quot; in ks8695uart_set_termios() local
393 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in ks8695uart_set_termios()
394 quot = uart_get_divisor(port, baud); in ks8695uart_set_termios()
437 uart_update_timeout(port, termios->c_cflag, baud); in ks8695uart_set_termios()
580 static void __init ks8695_console_get_options(struct uart_port *port, int *baud, int *parity, int *… in ks8695_console_get_options() argument
611 *baud = port->uartclk / (UART_GET_BRDR(port) & 0x0FFF); in ks8695_console_get_options()
612 *baud /= 16; in ks8695_console_get_options()
613 *baud &= 0xFFFFFFF0; in ks8695_console_get_options()
619 int baud = 115200; in ks8695_console_setup() local
632 uart_parse_options(options, &baud, &parity, &bits, &flow); in ks8695_console_setup()
[all …]
/linux-2.6.39/drivers/net/hamradio/
Dbaycom_ser_fdx.c128 unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; member
426 if (bc->baud < 300 || bc->baud > 4800) { in ser12_open()
437 bc->hdrv.par.bitrate = bc->baud; in ser12_open()
438 bc->baud_us = 1000000/bc->baud; in ser12_open()
439 bc->baud_uartdiv = (115200/8)/bc->baud; in ser12_open()
472 bc_drvname, dev->base_addr, dev->irq, bc->baud, uart_str[u]); in ser12_open()
520 unsigned int baud; in baycom_setmode() local
523 baud = simple_strtoul(modestr+3, NULL, 10); in baycom_setmode()
524 if (baud >= 3 && baud <= 48) in baycom_setmode()
525 bc->baud = baud*100; in baycom_setmode()
[all …]
/linux-2.6.39/arch/mips/sgi-ip22/
Dip22-setup.c71 char *baud = ArcGetEnvironmentVariable("dbaud"); in plat_mem_setup() local
72 if (baud) in plat_mem_setup()
73 strcpy(options, baud); in plat_mem_setup()
75 baud ? options : NULL); in plat_mem_setup()
/linux-2.6.39/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()
/linux-2.6.39/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()
/linux-2.6.39/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()
/linux-2.6.39/arch/mips/mti-malta/
Dmalta-init.c137 int baud = 0; in console_config() local
145 baud = baud*10 + *s++ - '0'; in console_config()
153 if (baud == 0) in console_config()
154 baud = 38400; in console_config()
161 sprintf(console_string, " console=ttyS0,%d%c%c%c", baud, parity, bits, flow); in console_config()
/linux-2.6.39/arch/cris/arch-v10/kernel/
Ddebugport.c33 volatile char* baud; member
184 *p->baud = in start_port()
189 *p->baud = in start_port()
194 *p->baud = in start_port()
199 *p->baud = in start_port()
204 *p->baud = in start_port()
209 *p->baud = in start_port()
214 *p->baud = in start_port()
219 *p->baud = in start_port()
224 *p->baud = in start_port()

12345678