/drivers/tty/serial/cpm_uart/ |
H A D | cpm_uart_cpm1.h | 13 static inline void cpm_set_brg(int brg, int baud) argument 15 cpm_setbrg(brg, baud);
|
H A D | cpm_uart_cpm2.h | 13 static inline void cpm_set_brg(int brg, int baud) argument 15 cpm_setbrg(brg, baud);
|
/drivers/staging/speakup/ |
H A D | serialio.c | 19 int baud = 9600, quot = 0; local 27 quot = ser->baud_base / baud;
|
/drivers/tty/serial/8250/ |
H A D | 8250_early.c | 46 unsigned int baud; member in struct:early_serial8250_device 143 divisor = port->uartclk / (16 * device->baud); 195 device->baud = simple_strtoul(options, NULL, 0); 199 device->baud = probe_baud(port); 201 device->baud);
|
/drivers/tty/serial/ |
H A D | suncore.c | 89 int baud, bits, stop, cflag; local 120 baud = simple_strtoul(s, NULL, 0); 130 switch (baud) { 144 default: baud = 9600; cflag |= B9600; break; 169 /* Sun serial MOUSE auto baud rate detection. */ 171 int baud; member in struct:mouse_baud_cflag 186 for (i = 0; mouse_baud_table[i].baud != -1; i++) 191 if (mouse_baud_table[i].baud == -1) 194 *new_baud = mouse_baud_table[i].baud; 200 /* Basically, when the baud rat [all...] |
H A D | timbuart.c | 123 "%s - total written %d bytes, CTL: %x, RTS: %x, baud: %x\n", 283 static int get_bindex(int baud) argument 288 if (baud <= baudrates[i]) 298 unsigned int baud; local 302 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); 303 bindex = get_bindex(baud); 308 baud = baudrates[bindex]; 314 tty_termios_encode_baud_rate(termios, baud, baud); 318 uart_update_timeout(port, termios->c_cflag, baud); [all...] |
H A D | 21285.c | 47 * BAUD_BASE / baud - 1 48 * However, typically BAUD_BASE is not divisible by baud, so 51 * int(BAUD_BASE / baud - 0.5) -> 52 * int(BAUD_BASE / baud - (baud >> 1) / baud) -> 53 * int((BAUD_BASE - (baud >> 1)) / baud) 217 unsigned int baud, quot, h_lcr, b; local 233 baud 390 serial21285_get_options(struct uart_port *port, int *baud, int *parity, int *bits) argument 428 int baud = 9600; local [all...] |
H A D | 68328serial.h | 96 * at least at 115200 baud 135 int baud; member in struct:m68k_serial
|
H A D | clps711x.c | 287 unsigned int ubrlcr, baud, quot; local 298 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); 299 quot = uart_get_divisor(port, baud); 330 uart_update_timeout(port, termios->c_cflag, baud); 463 clps711xuart_console_get_options(struct uart_port *port, int *baud, argument 485 *baud = port->uartclk / (16 * (quot + 1)); 492 int baud = 38400; local 505 uart_parse_options(options, &baud, &parity, &bits, &flow); 507 clps711xuart_console_get_options(port, &baud, &parity, &bits); 509 return uart_set_options(port, co, baud, parit [all...] |
H A D | crisv10.h | 40 int baud; member in struct:e100_serial
|
H A D | max3107.c | 74 static u32 get_new_brg(int baud, struct max3107_port *s) argument 80 if (baud == baud_tbl[i].baud) 522 /* 1. Configure baud rate, 9600 as default */ 523 s->baud = 9600; 735 int baud; local 778 /* Get new baud rate generator configuration */ 779 baud = tty_get_baud_rate(tty); 782 new_brg = get_new_brg(baud, s); 785 baud [all...] |
H A D | mcf.c | 200 unsigned int baud, baudclk; local 206 baud = uart_get_baud_rate(port, termios, old, 0, 230400); 208 baudclk = (MCF_BUSCLK / baud) / 32; 209 baudfr = (((MCF_BUSCLK / baud) + 1) / 2) % 16; 211 baudclk = ((MCF_BUSCLK / baud) + 16) / 32; 252 uart_update_timeout(port, termios->c_cflag, baud); 508 int baud = CONFIG_SERIAL_MCF_BAUDRATE; local 520 uart_parse_options(options, &baud, &parity, &bits, &flow); 522 return uart_set_options(port, co, baud, parity, bits, flow);
|
/drivers/usb/serial/ |
H A D | console.c | 59 int baud = 9600; local 74 baud = simple_strtoul(options, NULL, 10); 87 if (baud == 0) 88 baud = 9600; 168 tty_termios_encode_baud_rate(tty->termios, baud, baud);
|
H A D | belkin_sa.c | 320 speed_t baud; local 337 /* Set the baud rate */ 352 baud = tty_get_baud_rate(tty); 353 if (baud) { 354 urb_value = BELKIN_SA_BAUD(baud); 358 /* Turn it back into a resulting real baud rate */ 359 baud = BELKIN_SA_BAUD(urb_value); 361 /* Report the actual baud rate back to the caller */ 362 tty_encode_baud_rate(tty, baud, baud); [all...] |
H A D | ir-usb.c | 283 * a baud rate change. 304 * contains a busy indicator and baud rate change. 340 speed_t baud; local 345 baud = tty_get_baud_rate(tty); 348 * FIXME, we should compare the baud request against the 353 switch (baud) { 383 baud = 9600; 393 tty_encode_baud_rate(tty, baud, baud); 396 * send the baud chang [all...] |
H A D | kl5kusb105.c | 302 * Set up sane default baud rate and send the 'READ_ON' 465 speed_t baud; local 478 * Update baud rate 480 baud = tty_get_baud_rate(tty); 485 dbg("%s: baud was B0", __func__); 495 switch (baud) { 526 baud = 9600; 530 dbg("%s: baud is B0", __func__); 541 tty_encode_baud_rate(tty, baud, baud); [all...] |
H A D | keyspan_pda.c | 245 static speed_t keyspan_pda_setbaud(struct usb_serial *serial, speed_t baud) argument 250 switch (baud) { 283 baud = 9600; 289 0, /* set baud */ 300 return baud; 336 of data bits, baud. What can the device actually handle?: 353 For now, just do baud. */ 359 dbg("can't handle requested baud rate");
|
/drivers/spi/ |
H A D | spi-oc-tiny.c | 50 unsigned int baud; member in struct:tiny_spi 87 unsigned int baud = hw->baud; local 91 baud = tiny_spi_baud(spi, t->speed_hz); 93 writel(baud, hw->base + TINY_SPI_BAUD); 104 hw->baud = tiny_spi_baud(spi, hw->speed_hz); 274 val = of_get_property(pdev->dev.of_node, "baud-width", &len);
|
H A D | spi-bfin-sport.c | 103 u16 baud; member in struct:bfin_sport_spi_slave_data 262 bfin_write(&drv_data->regs->tclkdiv, chip->baud); 363 transfer_speed = chip->baud; 524 "state is set to: baud %d, cs_gpio %i, ctl 0x%x\n", 525 drv_data->cur_chip->baud, drv_data->cur_chip->cs_gpio, 627 chip->baud = bfin_sport_hz_to_spi_baud(spi->max_speed_hz);
|
/drivers/firmware/ |
H A D | pcdp.h | 47 u64 baud; member in struct:pcdp_uart
|
/drivers/isdn/hisax/ |
H A D | elsa_ser.c | 106 * the specified baud rate for a serial port. 108 static void change_speed(struct IsdnCardState *cs, int baud) argument 116 /* Determine divisor based on baud rate */ 118 quot = baud_base / baud;
|
/drivers/tty/serial/jsm/ |
H A D | jsm_neo.c | 937 u32 baud; local 946 * If baud rate is zero, flush queues, and set mval to drop DTR. 989 baud = 9600; 992 baud = baud_rates[i].rate; 1038 if (baud == 0) 1039 baud = 9600; 1041 quot = ch->ch_bd->bd_dividend / baud; 1087 * Adjust the RX FIFO Trigger level if baud is less than 9600. 1089 * delay on firing off the RX FIFO interrupt on slower baud rates. 1091 if (baud < 960 [all...] |
/drivers/bluetooth/ |
H A D | bluecard_cs.c | 90 /* Default baud rate: 57600, 115200, 230400 or 460800 */ 309 /* Set baud on baseband */ 562 static int bluecard_hci_set_baud_rate(struct hci_dev *hdev, int baud) argument 567 /* Ericsson baud rate command */ 575 switch (baud) { 787 /* Set baud rate */
|
/drivers/net/hamradio/ |
H A D | baycom_ser_fdx.c | 29 * ser12: This is a very simple 1200 baud AFSK modem. The modem consists only 41 * hsk: This is a 4800 baud FSK modem, designed for TNC use. It works fine 51 * '#' denotes the baud rate / 100, eg. ser12* is '1200 baud, soft DCD' 53 * baud baud rate (between 300 and 4800) 129 unsigned int baud, baud_us, baud_arbdiv, baud_uartdiv, baud_dcdtimeout; member in struct:baycom_state 427 if (bc->baud < 300 || bc->baud > 4800) { 438 bc->hdrv.par.bitrate = bc->baud; 521 unsigned int baud; local 611 static int baud[NR_PORTS] = { [0 ... NR_PORTS-1] = 1200 }; variable [all...] |
/drivers/net/irda/ |
H A D | ali-ircc.c | 112 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud); 967 static void ali_ircc_change_speed(struct ali_ircc_cb *self, __u32 baud) argument 974 IRDA_DEBUG(2, "%s(), setting speed = %d\n", __func__ , baud); 984 if (baud > 115200) 988 ali_ircc_fir_change_speed(self, baud); 1002 ali_ircc_sir_change_speed(self, baud); 1016 static void ali_ircc_fir_change_speed(struct ali_ircc_cb *priv, __u32 baud) argument 1030 IRDA_DEBUG(1, "%s(), self->io.speed = %d, change to speed = %d\n", __func__ ,self->io.speed,baud); 1039 self->io.speed = baud; 1042 ali_ircc_change_dongle_speed(self, baud); [all...] |