Home
last modified time | relevance | path

Searched refs:quot (Results 1 – 25 of 37) sorted by relevance

12

/drivers/serial/
Dclps711x.c289 unsigned int ubrlcr, baud, quot; in clps711xuart_set_termios() local
301 quot = uart_get_divisor(port, baud); in clps711xuart_set_termios()
353 quot -= 1; in clps711xuart_set_termios()
355 clps_writel(ubrlcr | quot, UBRLCR(port)); in clps711xuart_set_termios()
469 unsigned int ubrlcr, quot; in clps711xuart_console_get_options() local
486 quot = ubrlcr & UBRLCR_BAUD_MASK; in clps711xuart_console_get_options()
487 *baud = port->uartclk / (16 * (quot + 1)); in clps711xuart_console_get_options()
D21285.c219 unsigned int baud, quot, h_lcr; in serial21285_set_termios() local
236 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
240 unsigned int b = port->uartclk / (16 * quot); in serial21285_set_termios()
299 quot -= 1; in serial21285_set_termios()
302 *CSR_L_UBRLCR = quot & 0xff; in serial21285_set_termios()
303 *CSR_M_UBRLCR = (quot >> 8) & 0x0f; in serial21285_set_termios()
Dsunsu.c484 unsigned int iflag, unsigned int quot);
489 int quot, new_baud; in sunsu_change_mouse_baud() local
494 quot = up->port.uartclk / (16 * new_baud); in sunsu_change_mouse_baud()
496 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud()
767 unsigned int iflag, unsigned int quot) in sunsu_change_speed() argument
805 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && in sunsu_change_speed()
807 quot ++; in sunsu_change_speed()
810 if ((up->port.uartclk / quot) < (2400 * 16)) in sunsu_change_speed()
831 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); in sunsu_change_speed()
875 serial_outp(up, UART_DLL, quot & 0xff); /* LS of divisor */ in sunsu_change_speed()
[all …]
Dserial_txx9.c209 sio_quot_set(struct uart_txx9_port *up, int quot) in sio_quot_set() argument
211 quot >>= 1; in sio_quot_set()
212 if (quot < 256) in sio_quot_set()
213 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); in sio_quot_set()
214 else if (quot < (256 << 2)) in sio_quot_set()
215 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); in sio_quot_set()
216 else if (quot < (256 << 4)) in sio_quot_set()
217 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); in sio_quot_set()
218 else if (quot < (256 << 6)) in sio_quot_set()
219 sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6); in sio_quot_set()
[all …]
Dsa1100.c413 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local
443 quot = uart_get_divisor(port, baud); in sa1100_set_termios()
498 quot -= 1; in sa1100_set_termios()
499 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); in sa1100_set_termios()
500 UART_PUT_UTCR2(sport, (quot & 0xff)); in sa1100_set_termios()
738 unsigned int utcr0, quot; in sa1100_console_get_options() local
755 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; in sa1100_console_get_options()
756 quot &= 0xfff; in sa1100_console_get_options()
757 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options()
Dnetx-serial.c342 unsigned int baud, quot; in netx_set_termios() local
375 quot = baud * 4096; in netx_set_termios()
376 quot /= 1000; in netx_set_termios()
377 quot *= 256; in netx_set_termios()
378 quot /= 100000; in netx_set_termios()
401 writel((quot>>8) & 0xff, port->membase + UART_BAUDDIV_MSB); in netx_set_termios()
402 writel(quot & 0xff, port->membase + UART_BAUDDIV_LSB); in netx_set_termios()
Damba-pl010.c383 unsigned int baud, quot; in pl010_set_termios() local
389 quot = uart_get_divisor(port, baud); in pl010_set_termios()
459 quot -= 1; in pl010_set_termios()
460 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); in pl010_set_termios()
461 writel(quot & 0xff, uap->port.membase + UART010_LCRL); in pl010_set_termios()
591 unsigned int lcr_h, quot; in pl010_console_get_options() local
607 quot = readb(uap->port.membase + UART010_LCRL) | in pl010_console_get_options()
609 *baud = uap->port.uartclk / (16 * (quot + 1)); in pl010_console_get_options()
Dsamsung.c511 unsigned int quot; member
530 calc->quot = (rate + (8 * baud)) / (16 * baud); in s3c24xx_serial_calcbaud()
531 calc->calc = (rate / (calc->quot * 16)); in s3c24xx_serial_calcbaud()
533 calc->quot--; in s3c24xx_serial_calcbaud()
611 return best->quot; in s3c24xx_serial_getclk()
623 unsigned int baud, quot; in s3c24xx_serial_set_termios() local
640 quot = port->custom_divisor; in s3c24xx_serial_set_termios()
642 quot = s3c24xx_serial_getclk(port, &clksrc, &clk, baud); in s3c24xx_serial_set_termios()
700 dbg("setting ulcon to %08x, brddiv to %d\n", ulcon, quot); in s3c24xx_serial_set_termios()
703 wr_regl(port, S3C2410_UBRDIV, quot); in s3c24xx_serial_set_termios()
D8250_early.c105 unsigned int quot; in probe_baud() local
113 quot = (dlm << 8) | dll; in probe_baud()
114 return (port->uartclk / 16) / quot; in probe_baud()
Dserial_lh7a40x.c360 unsigned int quot; in lh7a40xuart_set_termios() local
363 quot = uart_get_divisor (port, baud); /* -1 performed elsewhere */ in lh7a40xuart_set_termios()
424 UR (port, UART_R_BRCON) = quot - 1; /* Set baud rate divisor */ in lh7a40xuart_set_termios()
574 unsigned int quot = UR (port, UART_R_BRCON) + 1; in lh7a40xuart_console_get_options() local
590 *baud = port->uartclk/(16*quot); in lh7a40xuart_console_get_options()
Datmel_serial.c1019 unsigned int mode, imr, quot, baud; in atmel_set_termios() local
1026 quot = uart_get_divisor(port, baud); in atmel_set_termios()
1028 if (quot > 65535) { /* BRGR is 16-bit, so switch to slower clock */ in atmel_set_termios()
1029 quot /= 8; in atmel_set_termios()
1113 UART_PUT_BRGR(port, quot); in atmel_set_termios()
1344 unsigned int mr, quot; in atmel_console_get_options() local
1350 quot = UART_GET_BRGR(port) & ATMEL_US_CD; in atmel_console_get_options()
1351 if (!quot) in atmel_console_get_options()
1372 *baud = port->uartclk / (16 * (quot - 1)); in atmel_console_get_options()
Dpxa.c446 unsigned int baud, quot; in serial_pxa_set_termios() local
475 quot = uart_get_divisor(port, baud); in serial_pxa_set_termios()
477 if ((up->port.uartclk / quot) < (2400 * 16)) in serial_pxa_set_termios()
479 else if ((up->port.uartclk / quot) < (230400 * 16)) in serial_pxa_set_termios()
544 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ in serial_pxa_set_termios()
545 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ in serial_pxa_set_termios()
Dsunsab.c670 unsigned int quot) in sunsab_convert_to_sab() argument
755 (up->port.uartclk / (16 * quot))); in sunsab_convert_to_sab()
773 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios() local
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
928 quot = uart_get_divisor(&up->port, baud); in sunsab_console_setup()
929 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); in sunsab_console_setup()
D8250.c980 unsigned short quot; in autoconfig_16550a() local
984 quot = serial_dl_read(up); in autoconfig_16550a()
985 quot <<= 3; in autoconfig_16550a()
992 serial_dl_write(up, quot); in autoconfig_16550a()
2204 unsigned int quot; in serial8250_get_divisor() local
2212 quot = 0x8001; in serial8250_get_divisor()
2215 quot = 0x8002; in serial8250_get_divisor()
2217 quot = uart_get_divisor(port, baud); in serial8250_get_divisor()
2219 return quot; in serial8250_get_divisor()
2229 unsigned int baud, quot; in serial8250_set_termios() local
[all …]
Dpnx8xxx_uart.c437 unsigned int lcr_fcr, old_ien, baud, quot; in pnx8xxx_set_termios() local
467 quot = uart_get_divisor(port, baud); in pnx8xxx_set_termios()
537 quot -= 1; in pnx8xxx_set_termios()
538 serial_out(sport, PNX8XXX_BAUD, quot); in pnx8xxx_set_termios()
Damba-pl011.c445 unsigned int baud, quot; in pl011_set_termios() local
451 quot = port->uartclk * 4 / baud; in pl011_set_termios()
520 writew(quot & 0x3f, port->membase + UART011_FBRD); in pl011_set_termios()
521 writew(quot >> 6, port->membase + UART011_IBRD); in pl011_set_termios()
Dserial_ks8695.c384 unsigned int baud, quot; in ks8695uart_set_termios() local
390 quot = uart_get_divisor(port, baud); in ks8695uart_set_termios()
470 UART_PUT_BRDR(port, quot); in ks8695uart_set_termios()
Dvr41xx_siu.c522 unsigned int baud, quot; in siu_set_termios() local
551 quot = uart_get_divisor(port, baud); in siu_set_termios()
587 siu_write(port, UART_DLL, (uint8_t)quot); in siu_set_termios()
588 siu_write(port, UART_DLM, (uint8_t)(quot >> 8)); in siu_set_termios()
/drivers/char/
Damiserial.c697 int quot = 0, baud_base, baud; in change_speed() local
731 quot = info->state->custom_divisor; in change_speed()
735 quot = (2*baud_base / 269); in change_speed()
737 quot = baud_base / baud; in change_speed()
740 if (!quot && old_termios) { in change_speed()
749 quot = info->state->custom_divisor; in change_speed()
753 quot = (2*baud_base / 269); in change_speed()
755 quot = baud_base / baud; in change_speed()
759 if (!quot) in change_speed()
760 quot = baud_base / 9600; in change_speed()
[all …]
Dmxser.c564 int quot = 0, baud; in mxser_set_baud() local
574 quot = 2 * info->baud_base / 269; in mxser_set_baud()
577 quot = info->baud_base / newspd; in mxser_set_baud()
578 if (quot == 0) in mxser_set_baud()
579 quot = 1; in mxser_set_baud()
580 baud = info->baud_base/quot; in mxser_set_baud()
583 quot = 0; in mxser_set_baud()
586 info->timeout = ((info->xmit_fifo_size * HZ * 10 * quot) / info->baud_base); in mxser_set_baud()
589 if (quot) { in mxser_set_baud()
602 outb(quot & 0xff, info->ioaddr + UART_DLL); /* LS of divisor */ in mxser_set_baud()
[all …]
Desp.c999 int quot = 0; in change_speed() local
1035 quot = info->custom_divisor; in change_speed()
1038 quot = (2*BASE_BAUD / 269); in change_speed()
1040 quot = BASE_BAUD / baud; in change_speed()
1043 if (!quot) in change_speed()
1044 quot = BASE_BAUD / 9600; in change_speed()
1048 baud = BASE_BAUD/quot; in change_speed()
1051 info->timeout = ((1024 * HZ * bits * quot) / BASE_BAUD) + (HZ / 50); in change_speed()
1105 serial_out(info, UART_ESI_CMD2, quot >> 8); in change_speed()
1106 serial_out(info, UART_ESI_CMD2, quot & 0xff); in change_speed()
/drivers/net/wireless/iwlwifi/
Diwl-spectrum.c62 u32 quot;
69 quot = (usec / interval) & (BEACON_TIME_MASK_HIGH >> 24);
72 return (quot << 24) + rem;
/drivers/isdn/hisax/
Delsa_ser.c109 int quot = 0, baud_base; in change_speed() local
118 quot = baud_base / baud; in change_speed()
120 if (!quot) in change_speed()
121 quot = baud_base / 9600; in change_speed()
124 if ((baud_base / quot) < 2400) in change_speed()
134 debugl1(cs,"modem quot=0x%x", quot); in change_speed()
136 serial_outp(cs, UART_DLL, quot & 0xff); /* LS of divisor */ in change_speed()
137 serial_outp(cs, UART_DLM, quot >> 8); /* MS of divisor */ in change_speed()
/drivers/media/dvb/frontends/
Ddrx397xD.c420 int quot, rem, i, rc = -EINVAL; in SetCfgIfAgc() local
453 quot = w0C / 113; in SetCfgIfAgc()
455 if (quot <= 8) { in SetCfgIfAgc()
456 quot = 8 - quot; in SetCfgIfAgc()
458 quot = 0; in SetCfgIfAgc()
462 EXIT_RC(WR16(s, 0x0c20024, quot)); in SetCfgIfAgc()
/drivers/serial/jsm/
Djsm_neo.c942 int quot = 0; in neo_param() local
1051 quot = ch->ch_bd->bd_dividend / baud; in neo_param()
1053 if (quot != 0) { in neo_param()
1056 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); in neo_param()
1057 writeb((quot >> 8), &ch->ch_neo_uart->ier); in neo_param()

12