Searched defs:quot (Results 1 - 25 of 43) sorted by relevance

12

/drivers/staging/speakup/
H A Dserialio.c23 int baud = 9600, quot = 0; local
30 quot = ser->baud_base / baud;
56 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */
57 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */
/drivers/tty/serial/8250/
H A D8250_early.c110 unsigned int quot; local
118 quot = (dlm << 8) | dll;
119 return (port->uartclk / 16) / quot;
H A D8250_mtk.c44 unsigned int baud, quot; local
54 * We need to recalcualte the quot register, as the claculation depends
70 quot = uart_get_divisor(port, baud);
77 quot = DIV_ROUND_CLOSEST(port->uartclk, 4 * baud);
84 quot = (port->uartclk / (256 * baud)) + 1;
95 serial_dl_write(up, quot);
103 tmp = DIV_ROUND_CLOSEST(port->uartclk, quot * baud);
/drivers/isdn/hisax/
H A Delsa_ser.c110 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/net/irda/
H A Dbfin_sir.c96 unsigned int quot; local
115 quot = (port->clk + (8 * speed)) / (16 * speed);
136 UART_PUT_DLL(port, quot & 0xFF);
137 UART_PUT_DLH(port, (quot >> 8) & 0xFF);
/drivers/net/wireless/iwlwifi/dvm/
H A Ddevices.c102 u32 quot; local
109 quot = (usec / interval) &
115 return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem;
/drivers/staging/dgnc/
H A Ddgnc_cls.c472 int quot = 0; local
640 quot = ch->ch_bd->bd_dividend / baud;
642 if (quot != 0 && ch->ch_old_baud != baud) {
645 writeb((quot & 0xff), &ch->ch_cls_uart->txrx);
646 writeb((quot >> 8), &ch->ch_cls_uart->ier);
H A Ddgnc_neo.c617 int quot = 0; local
780 quot = ch->ch_bd->bd_dividend / baud;
782 if (quot != 0 && ch->ch_old_baud != baud) {
785 writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
786 writeb((quot >> 8), &ch->ch_neo_uart->ier);
/drivers/tty/serial/
H A D21285.c213 unsigned int baud, quot, h_lcr, b; local
230 quot = uart_get_divisor(port, baud);
231 b = port->uartclk / (16 * quot);
289 quot -= 1;
292 *CSR_L_UBRLCR = quot & 0xff;
293 *CSR_M_UBRLCR = (quot >> 8) & 0x0f;
H A Dapbuart.c240 unsigned int baud, quot; local
248 quot = (uart_get_divisor(port, baud)) * 2;
281 quot -= 1;
282 UART_PUT_SCAL(port, quot);
459 unsigned int quot, status; local
471 quot = UART_GET_SCAL(port) / 8;
472 *baud = port->uartclk / (16 * (quot + 1));
H A Damba-pl010.c380 unsigned int baud, quot; local
386 quot = uart_get_divisor(port, baud);
456 quot -= 1;
457 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM);
458 writel(quot & 0xff, uap->port.membase + UART010_LCRL);
598 unsigned int lcr_h, quot; local
614 quot = readb(uap->port.membase + UART010_LCRL) |
616 *baud = uap->port.uartclk / (16 * (quot + 1));
H A Dbcm63xx_uart.c508 unsigned int ctl, baud, quot, ier; local
552 quot = uart_get_divisor(port, baud) - 1;
553 bcm_uart_writel(port, quot, UART_BAUD_REG);
H A Dclps711x.c264 unsigned int baud, quot; local
273 quot = uart_get_divisor(port, baud);
316 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET);
392 unsigned int quot; local
421 quot = ubrlcr & UBRLCR_BAUD_MASK;
422 baud = port->uartclk / (16 * (quot + 1));
H A Dpnx8xxx_uart.c439 unsigned int lcr_fcr, old_ien, baud, quot; local
469 quot = uart_get_divisor(port, baud);
539 quot -= 1;
540 serial_out(sport, PNX8XXX_BAUD, quot);
H A Dpxa.c436 unsigned int baud, quot; local
466 quot = uart_get_divisor(port, baud);
468 if ((up->port.uartclk / quot) < (2400 * 16))
470 else if ((up->port.uartclk / quot) < (230400 * 16))
535 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */
542 WARN_ON(dll != (quot & 0xff));
544 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
H A Dsa1100.c414 unsigned int utcr0, old_utcr3, baud, quot; local
444 quot = uart_get_divisor(port, baud);
499 quot -= 1;
500 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8));
501 UART_PUT_UTCR2(sport, (quot & 0xff));
742 unsigned int utcr0, quot; local
759 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8;
760 quot &= 0xfff;
761 *baud = sport->port.uartclk / (16 * (quot + 1));
H A Dserial_ks8695.c386 unsigned int baud, quot; local
392 quot = uart_get_divisor(port, baud);
472 UART_PUT_BRDR(port, quot);
H A Dsunhv.c327 unsigned int quot = uart_get_divisor(port, baud); local
344 (port->uartclk / (16 * quot)));
H A Dsunsab.c674 unsigned int quot)
759 (up->port.uartclk / (16 * quot)));
777 unsigned int quot = uart_get_divisor(port, baud); local
780 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
871 unsigned int baud, quot; local
927 quot = uart_get_divisor(&up->port, baud);
928 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot);
672 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) argument
H A Dvr41xx_siu.c520 unsigned int baud, quot; local
549 quot = uart_get_divisor(port, baud);
585 siu_write(port, UART_DLL, (uint8_t)quot);
586 siu_write(port, UART_DLM, (uint8_t)(quot >> 8));
H A Dbfin_uart.c785 unsigned int baud, quot; local
856 quot = uart_get_divisor(port, baud);
860 quot -= ANOMALY_05000230;
880 UART_PUT_CLK(uart, quot);
/drivers/tty/serial/jsm/
H A Djsm_neo.c945 int quot; local
1048 quot = ch->ch_bd->bd_dividend / baud;
1050 if (quot != 0) {
1052 writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
1053 writeb((quot >> 8), &ch->ch_neo_uart->ier);
/drivers/usb/serial/
H A Dark3116.c69 int quot; /* baudrate divisor */ member in struct:ark3116_private
177 priv->quot = calc_divisor(9600);
178 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff);
179 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff);
226 int quot; local
263 quot = calc_divisor(9600);
268 quot = calc_divisor(bps);
272 quot = calc_divisor(bps);
276 quot = calc_divisor(bps);
286 dev_dbg(&port->dev, "%s - setting hcr:0x%02x,lcr:0x%02x,quot
[all...]
/drivers/mmc/card/
H A Dsdio_uart.c257 unsigned int baud, quot; local
299 quot = (2 * port->uartclk + baud) / (2 * baud);
345 sdio_out(port, UART_DLL, quot & 0xff);
346 sdio_out(port, UART_DLM, quot >> 8);
/drivers/tty/
H A Damiserial.c106 int quot; member in struct:serial_state
662 int quot = 0, baud_base, baud; local
693 quot = info->custom_divisor;
697 quot = (2*baud_base / 269);
699 quot = baud_base / baud;
702 if (!quot && old_termios) {
711 quot = info->custom_divisor;
715 quot = (2*baud_base / 269);
717 quot = baud_base / baud;
721 if (!quot)
[all...]

Completed in 565 milliseconds

12