Searched refs:quot (Results 26 - 50 of 57) sorted by path

123

/linux-master/drivers/tty/serial/
H A Dapbuart.c209 unsigned int baud, quot; local
217 quot = (uart_get_divisor(port, baud)) * 2;
250 quot -= 1;
251 UART_PUT_SCAL(port, quot);
428 unsigned int quot, status; local
440 quot = UART_GET_SCAL(port) / 8;
441 *baud = port->uartclk / (16 * (quot + 1));
H A Datmel_serial.c2135 unsigned int old_mode, mode, imr, quot, div, cd, fp = 0; local
2349 quot = cd | fp << ATMEL_US_FP_OFFSET;
2352 atmel_uart_writel(port, ATMEL_US_BRGR, quot);
2645 unsigned int mr, quot; local
2651 quot = atmel_uart_readl(port, ATMEL_US_BRGR) & ATMEL_US_CD;
2652 if (!quot)
2667 *baud = port->uartclk / (16 * quot);
H A Dbcm63xx_uart.c468 unsigned int ctl, baud, quot, ier; local
517 quot = uart_get_divisor(port, baud) - 1;
518 bcm_uart_writel(port, quot, UART_BAUD_REG);
H A Dclps711x.c257 unsigned int baud, quot; local
266 quot = uart_get_divisor(port, baud);
309 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET);
385 unsigned int quot; local
414 quot = ubrlcr & UBRLCR_BAUD_MASK;
415 baud = port->uartclk / (16 * (quot + 1));
H A Dimx.c1662 unsigned int baud, quot; local
1684 quot = uart_get_divisor(port, baud);
1764 if (baud == 38400 && quot != div)
1765 baud = sport->port.uartclk / (quot * 16);
H A Dlpc32xx_hs.c475 unsigned int baud, quot; local
487 quot = __serial_get_clock_div(port->uartclk, baud);
499 writel(quot, LPC32XX_HSUART_RATE(port->membase));
H A Dma35d1_serial.c419 u32 baud, quot; local
437 /* MA35D1 UART baud rate equation: baudrate = UART_CLK / (quot + 2) */
438 quot = (port->uartclk / baud) - 2;
474 serial_out(up, MA35_BAUD_REG, MA35_BAUD_MODE2 | FIELD_PREP(MA35_BAUD_MASK, quot));
H A Dmilbeaut_usio.c303 unsigned long flags, baud, quot; local
336 quot = port->uartclk / baud - 1;
338 quot = 0;
361 writew(quot, port->membase + MLB_USIO_REG_BGR);
H A Dmxs-auart.c1369 unsigned int lcr_h, quot; local
1389 quot = ((mxs_read(s, REG_LINECTRL) & AUART_LINECTRL_BAUD_DIVINT_MASK))
1391 quot |= ((mxs_read(s, REG_LINECTRL) & AUART_LINECTRL_BAUD_DIVFRAC_MASK))
1393 if (quot == 0)
1394 quot = 1;
1396 *baud = (port->uartclk << 2) / quot;
H A Domap-serial.c782 unsigned int baud, quot; local
800 quot = serial_omap_get_divisor(port, baud);
807 up->dll = quot & 0xff;
808 up->dlh = quot >> 8;
H A Dpic32_uart.c604 unsigned int quot; local
665 quot = uart_get_divisor(port, baud) - 1;
666 pic32_uart_writel(sport, PIC32_UART_BRG, quot);
H A Dpxa.c408 unsigned int baud, quot; local
424 quot = uart_get_divisor(port, baud);
426 if ((up->port.uartclk / quot) < (2400 * 16))
428 else if ((up->port.uartclk / quot) < (230400 * 16))
493 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */
500 WARN_ON(dll != (quot & 0xff));
502 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
H A Dsa1100.c392 unsigned int utcr0, old_utcr3, baud, quot; local
422 quot = uart_get_divisor(port, baud);
477 quot -= 1;
478 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8));
479 UART_PUT_UTCR2(sport, (quot & 0xff));
724 unsigned int utcr0, quot; local
741 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8;
742 quot &= 0xfff;
743 *baud = sport->port.uartclk / (16 * (quot + 1));
H A Dsamsung_tty.c1379 unsigned int baud, quot, best_quot = 0; local
1414 quot = div / 16;
1417 quot = (rate + (8 * req_baud)) / (16 * req_baud);
1418 baud = rate / (quot * 16);
1420 quot--;
1432 best_quot = quot;
1475 unsigned int baud, quot; local
1491 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel);
1493 quot = port->custom_divisor;
1565 ulcon, quot, udivslo
[all...]
H A Dserial_core.c550 unsigned int quot; local
556 quot = port->custom_divisor;
558 quot = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud);
560 return quot;
H A Dserial_txx9.c194 sio_quot_set(struct uart_port *up, int quot) argument
196 quot >>= 1;
197 if (quot < 256)
198 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0);
199 else if (quot < (256 << 2))
200 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2);
201 else if (quot < (256 << 4))
202 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4);
203 else if (quot < (256 << 6))
204 sio_out(up, TXX9_SIBGR, (quot >>
579 unsigned int baud, quot; local
[all...]
H A Dsprd_serial.c752 unsigned int baud, quot; local
759 quot = port->uartclk / baud;
831 serial_out(port, SPRD_CLKD0, quot & SPRD_CLKD0_MASK);
835 (quot & SPRD_CLKD1_MASK) >> SPRD_CLKD1_SHIFT);
H A Dsunhv.c327 unsigned int quot = uart_get_divisor(port, baud); local
344 (port->uartclk / (16 * quot)));
H A Dsunsab.c680 unsigned int quot)
761 (up->port.uartclk / (16 * quot)));
780 unsigned int quot = uart_get_divisor(port, baud); local
783 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
875 unsigned int baud, quot; local
931 quot = uart_get_divisor(&up->port, baud);
932 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot);
678 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) argument
H A Dsunsu.c482 unsigned int iflag, unsigned int quot);
487 int quot, new_baud; local
492 quot = up->port.uartclk / (16 * new_baud);
494 sunsu_change_speed(&up->port, up->cflag, 0, quot);
771 unsigned int iflag, unsigned int quot)
808 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 &&
810 quot ++;
813 if ((up->port.uartclk / quot) < (2400 * 16))
834 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot)));
878 serial_outp(up, UART_DLL, quot
770 sunsu_change_speed(struct uart_port *port, unsigned int cflag, unsigned int iflag, unsigned int quot) argument
901 unsigned int baud, quot; local
1188 int quot, baud; local
[all...]
/linux-master/drivers/tty/serial/jsm/
H A Djsm_cls.c679 int quot = 0; local
736 quot = ch->ch_bd->bd_dividend / baud;
738 if (quot != 0) {
740 writeb((quot & 0xff), &ch->ch_cls_uart->txrx);
741 writeb((quot >> 8), &ch->ch_cls_uart->ier);
H A Djsm_neo.c931 int quot; local
1011 quot = ch->ch_bd->bd_dividend / baud;
1013 if (quot != 0) {
1015 writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
1016 writeb((quot >> 8), &ch->ch_neo_uart->ier);
/linux-master/drivers/usb/host/
H A Disp116x-hcd.c95 int quot = len % 4; local
120 if (quot == 1 || quot == 2)
132 int quot = len % 4; local
158 if (quot == 1 || quot == 2)
/linux-master/drivers/usb/serial/
H A Dark3116.c65 int quot; /* baudrate divisor */ member in struct:ark3116_private
164 priv->quot = calc_divisor(9600);
165 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff);
166 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff);
199 int quot; local
222 quot = calc_divisor(9600);
227 quot = calc_divisor(bps);
231 quot = calc_divisor(bps);
235 quot = calc_divisor(bps);
245 dev_dbg(&port->dev, "%s - setting hcr:0x%02x,lcr:0x%02x,quot
[all...]
/linux-master/include/linux/
H A Dmpi.h155 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor);

Completed in 310 milliseconds

123