/drivers/staging/speakup/ |
H A D | serialio.c | 19 int baud = 9600, quot = 0; local 27 quot = ser->baud_base / baud; 53 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ 54 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */
|
/drivers/usb/serial/ |
H A D | ark3116.c | 78 int quot; /* baudrate divisor */ member in struct:ark3116_private 183 priv->quot = calc_divisor(9600); 184 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff); 185 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff); 235 int quot; local 272 quot = calc_divisor(9600); 277 quot = calc_divisor(bps); 281 quot = calc_divisor(bps); 285 quot = calc_divisor(bps); 295 dbg("%s - setting hcr:0x%02x,lcr:0x%02x,quot [all...] |
/drivers/tty/serial/ |
H A D | clps711x.c | 287 unsigned int ubrlcr, baud, quot; local 299 quot = uart_get_divisor(port, baud); 351 quot -= 1; 353 clps_writel(ubrlcr | quot, UBRLCR(port)); 467 unsigned int ubrlcr, quot; local 484 quot = ubrlcr & UBRLCR_BAUD_MASK; 485 *baud = port->uartclk / (16 * (quot + 1));
|
H A D | 21285.c | 217 unsigned int baud, quot, h_lcr, b; local 234 quot = uart_get_divisor(port, baud); 235 b = port->uartclk / (16 * quot); 293 quot -= 1; 296 *CSR_L_UBRLCR = quot & 0xff; 297 *CSR_M_UBRLCR = (quot >> 8) & 0x0f;
|
H A D | sunsu.c | 485 unsigned int iflag, unsigned int quot); 490 int quot, new_baud; local 495 quot = up->port.uartclk / (16 * new_baud); 497 sunsu_change_speed(&up->port, up->cflag, 0, quot); 768 unsigned int iflag, unsigned int quot) 806 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && 808 quot ++; 811 if ((up->port.uartclk / quot) < (2400 * 16)) 832 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); 876 serial_outp(up, UART_DLL, quot 767 sunsu_change_speed(struct uart_port *port, unsigned int cflag, unsigned int iflag, unsigned int quot) argument 899 unsigned int baud, quot; local 1184 int quot, baud; local [all...] |
H A D | apbuart.c | 244 unsigned int baud, quot; local 252 quot = (uart_get_divisor(port, baud)) * 2; 285 quot -= 1; 286 UART_PUT_SCAL(port, quot); 464 unsigned int quot, status; local 476 quot = UART_GET_SCAL(port) / 8; 477 *baud = port->uartclk / (16 * (quot + 1));
|
H A D | netx-serial.c | 340 unsigned int baud, quot; local 373 quot = baud * 4096; 374 quot /= 1000; 375 quot *= 256; 376 quot /= 100000; 399 writel((quot>>8) & 0xff, port->membase + UART_BAUDDIV_MSB); 400 writel(quot & 0xff, port->membase + UART_BAUDDIV_LSB);
|
H A D | serial_txx9.c | 209 sio_quot_set(struct uart_txx9_port *up, int quot) argument 211 quot >>= 1; 212 if (quot < 256) 213 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); 214 else if (quot < (256 << 2)) 215 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); 216 else if (quot < (256 << 4)) 217 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); 218 else if (quot < (256 << 6)) 219 sio_out(up, TXX9_SIBGR, (quot >> 647 unsigned int baud, quot; local [all...] |
H A D | mxs-auart.c | 585 unsigned int lcr_h, quot; local 605 quot = ((readl(port->membase + AUART_LINECTRL) 608 quot |= ((readl(port->membase + AUART_LINECTRL) 611 if (quot == 0) 612 quot = 1; 614 *baud = (port->uartclk << 2) / quot;
|
H A D | sa1100.c | 411 unsigned int utcr0, old_utcr3, baud, quot; local 441 quot = uart_get_divisor(port, baud); 496 quot -= 1; 497 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); 498 UART_PUT_UTCR2(sport, (quot & 0xff)); 736 unsigned int utcr0, quot; local 753 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; 754 quot &= 0xfff; 755 *baud = sport->port.uartclk / (16 * (quot + 1));
|
H A D | samsung.c | 603 unsigned int cnt, baud, quot, clk_sel, best_quot = 0; local 634 quot = div / 16; 637 quot = (rate + (8 * req_baud)) / (16 * req_baud); 638 baud = rate / (quot * 16); 640 quot--; 648 best_quot = quot; 689 unsigned int baud, quot, clk_sel = 0; local 705 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); 707 quot = port->custom_divisor; 779 ulcon, quot, udivslo [all...] |
H A D | amba-pl010.c | 389 unsigned int baud, quot; local 395 quot = uart_get_divisor(port, baud); 465 quot -= 1; 466 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); 467 writel(quot & 0xff, uap->port.membase + UART010_LCRL); 607 unsigned int lcr_h, quot; local 623 quot = readb(uap->port.membase + UART010_LCRL) | 625 *baud = uap->port.uartclk / (16 * (quot + 1));
|
H A D | pxa.c | 459 unsigned int baud, quot; local 489 quot = uart_get_divisor(port, baud); 491 if ((up->port.uartclk / quot) < (2400 * 16)) 493 else if ((up->port.uartclk / quot) < (230400 * 16)) 558 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ 565 WARN_ON(dll != (quot & 0xff)); 567 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
|
H A D | mfd.c | 889 unsigned int baud, quot; local 930 quot = 1; 947 /* mul/ps/quot = 0x9C4/0x10/0x1 will make a 500000 bps */ 951 /* Use uart_get_divisor to get quot for other baud rates */ 952 quot = 0; 955 if (!quot) 956 quot = uart_get_divisor(port, baud); 958 if ((up->port.uartclk / quot) < (2400 * 16)) 960 else if ((up->port.uartclk / quot) < (230400 * 16)) 1016 serial_out(up, UART_DLL, quot [all...] |
H A D | pnx8xxx_uart.c | 437 unsigned int lcr_fcr, old_ien, baud, quot; local 467 quot = uart_get_divisor(port, baud); 537 quot -= 1; 538 serial_out(sport, PNX8XXX_BAUD, quot);
|
H A D | sunsab.c | 670 unsigned int quot) 755 (up->port.uartclk / (16 * quot))); 773 unsigned int quot = uart_get_divisor(port, baud); local 776 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); 872 unsigned int baud, quot; local 928 quot = uart_get_divisor(&up->port, baud); 929 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); 668 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) argument
|
H A D | atmel_serial.c | 1127 unsigned int mode, imr, quot, baud; local 1136 quot = uart_get_divisor(port, baud); 1138 if (quot > 65535) { /* BRGR is 16-bit, so switch to slower clock */ 1139 quot /= 8; 1244 UART_PUT_BRGR(port, quot); 1582 unsigned int mr, quot; local 1588 quot = UART_GET_BRGR(port) & ATMEL_US_CD; 1589 if (!quot) 1610 *baud = port->uartclk / (16 * (quot - 1));
|
H A D | bcm63xx_uart.c | 509 unsigned int ctl, baud, quot, ier; local 553 quot = uart_get_divisor(port, baud) - 1; 554 bcm_uart_writel(port, quot, UART_BAUD_REG);
|
H A D | serial_ks8695.c | 387 unsigned int baud, quot; local 393 quot = uart_get_divisor(port, baud); 473 UART_PUT_BRDR(port, quot);
|
H A D | sunhv.c | 328 unsigned int quot = uart_get_divisor(port, baud); local 345 (port->uartclk / (16 * quot)));
|
/drivers/tty/serial/8250/ |
H A D | 8250_early.c | 120 unsigned int quot; local 128 quot = (dlm << 8) | dll; 129 return (port->uartclk / 16) / quot;
|
/drivers/tty/ |
H A D | amiserial.c | 697 int quot = 0, baud_base, baud; local 731 quot = info->state->custom_divisor; 735 quot = (2*baud_base / 269); 737 quot = baud_base / baud; 740 if (!quot && old_termios) { 749 quot = info->state->custom_divisor; 753 quot = (2*baud_base / 269); 755 quot = baud_base / baud; 759 if (!quot) 760 quot [all...] |
H A D | mxser.c | 575 int quot = 0, baud; local 585 quot = 2 * info->baud_base / 269; 588 quot = info->baud_base / newspd; 589 if (quot == 0) 590 quot = 1; 591 baud = info->baud_base/quot; 594 quot = 0; 597 info->timeout = ((info->xmit_fifo_size * HZ * 10 * quot) / info->baud_base); 600 if (quot) { 613 outb(quot [all...] |
/drivers/isdn/hisax/ |
H A D | elsa_ser.c | 110 int quot = 0, baud_base; local 118 quot = baud_base / baud; 120 if (!quot) 121 quot = baud_base / 9600; 124 if ((baud_base / quot) < 2400) 134 debugl1(cs,"modem quot=0x%x", quot); 136 serial_outp(cs, UART_DLL, quot & 0xff); /* LS of divisor */ 137 serial_outp(cs, UART_DLM, quot >> 8); /* MS of divisor */
|
/drivers/tty/serial/jsm/ |
H A D | jsm_neo.c | 938 int quot; local 1041 quot = ch->ch_bd->bd_dividend / baud; 1043 if (quot != 0) { 1045 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); 1046 writeb((quot >> 8), &ch->ch_neo_uart->ier);
|