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

123

/linux-master/drivers/net/wireless/intel/iwlwifi/dvm/
H A Ddevices.c85 u32 quot; local
92 quot = (usec / interval) &
98 return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem;
/linux-master/include/linux/
H A Dserial_8250.h196 unsigned int quot, unsigned int quot_frac);
H A Dmpi.h155 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor);
/linux-master/drivers/tty/serial/
H A Dmilbeaut_usio.c304 unsigned long flags, baud, quot; local
337 quot = port->uartclk / baud - 1;
339 quot = 0;
362 writew(quot, port->membase + MLB_USIO_REG_BGR);
H A Dsunsab.c682 unsigned int quot)
763 (up->port.uartclk / (16 * quot)));
782 unsigned int quot = uart_get_divisor(port, baud); local
785 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
877 unsigned int baud, quot; local
933 quot = uart_get_divisor(&up->port, baud);
934 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot);
680 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) argument
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 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 Dmxs-auart.c1358 unsigned int lcr_h, quot; local
1378 quot = ((mxs_read(s, REG_LINECTRL) & AUART_LINECTRL_BAUD_DIVINT_MASK))
1380 quot |= ((mxs_read(s, REG_LINECTRL) & AUART_LINECTRL_BAUD_DIVFRAC_MASK))
1382 if (quot == 0)
1383 quot = 1;
1385 *baud = (port->uartclk << 2) / quot;
H A Dsunhv.c332 unsigned int quot = uart_get_divisor(port, baud); local
349 (port->uartclk / (16 * quot)));
H A Dsamsung_tty.c1381 unsigned int baud, quot, best_quot = 0; local
1416 quot = div / 16;
1419 quot = (rate + (8 * req_baud)) / (16 * req_baud);
1420 baud = rate / (quot * 16);
1422 quot--;
1434 best_quot = quot;
1477 unsigned int baud, quot; local
1493 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel);
1495 quot = port->custom_divisor;
1567 ulcon, quot, udivslo
[all...]
H A Damba-pl011.c2028 unsigned int baud, quot, clkdiv; local
2050 quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud);
2052 quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud);
2131 if (baud >= 3000000 && baud < 3250000 && quot > 1)
2132 quot -= 1;
2133 else if (baud > 3250000 && quot > 2)
2134 quot -= 2;
2137 pl011_write(quot & 0x3f, uap, REG_FBRD);
2138 pl011_write(quot >> 6, uap, REG_IBRD);
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 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 Dpic32_uart.c603 unsigned int quot; local
664 quot = uart_get_divisor(port, baud) - 1;
665 pic32_uart_writel(sport, PIC32_UART_BRG, quot);
H A Datmel_serial.c2119 unsigned int old_mode, mode, imr, quot, div, cd, fp = 0; local
2333 quot = cd | fp << ATMEL_US_FP_OFFSET;
2336 atmel_uart_writel(port, ATMEL_US_BRGR, quot);
2629 unsigned int mr, quot; local
2635 quot = atmel_uart_readl(port, ATMEL_US_BRGR) & ATMEL_US_CD;
2636 if (!quot)
2651 *baud = port->uartclk / (16 * 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;
/linux-master/arch/m68k/math-emu/
H A Dmulti_arith.h132 #define fp_div64(quot, rem, srch, srcl, div) \
133 asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
/linux-master/drivers/pmdomain/qcom/
H A Dcpr.c145 /* fuse quot */
204 int quot; member in struct:fuse_corner
372 gcnt |= fuse->quot - corner->quot_adjust;
901 ret = nvmem_cell_read_variable_le_u32(drv->dev, fuses->quotient, &fuse->quot);
905 fuse->quot *= fdata->quot_scale;
906 fuse->quot += fdata->quot_offset;
907 fuse->quot += fdata->quot_adjust;
947 "fuse corner %d: [%d %d %d] RO%hhu quot %d squot %d\n",
949 fuse->ring_osc_idx, fuse->quot, fuse->step_quot);
977 quot_diff = fuse->quot
[all...]
/linux-master/drivers/tty/serial/jsm/
H A Djsm_neo.c919 int quot; local
999 quot = ch->ch_bd->bd_dividend / baud;
1001 if (quot != 0) {
1003 writeb((quot & 0xff), &ch->ch_neo_uart->txrx);
1004 writeb((quot >> 8), &ch->ch_neo_uart->ier);
H A Djsm_cls.c666 int quot = 0; local
723 quot = ch->ch_bd->bd_dividend / baud;
725 if (quot != 0) {
727 writeb((quot & 0xff), &ch->ch_cls_uart->txrx);
728 writeb((quot >> 8), &ch->ch_cls_uart->ier);
/linux-master/drivers/tty/serial/8250/
H A D8250_omap.c136 u16 quot; member in struct:omap8250_priv
247 priv->quot = port->custom_divisor & UART_DIV_MAX;
272 priv->quot = div_16;
275 priv->quot = div_13;
353 serial_dl_write(up, priv->quot);
860 if (priv->quot) {
862 baud = port->uartclk / (16 * priv->quot);
864 baud = port->uartclk / (13 * priv->quot);
H A D8250_pericom.c52 unsigned int quot, unsigned int quot_frac)
51 pericom_do_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
H A D8250_pci.c1193 unsigned int quot; local
1202 quot = cust_div & UART_DIV_MAX;
1227 quot = sdiv / spre;
1233 quot = DIV_ROUND_CLOSEST(sdiv, spre);
1237 quot % 2 == 0) {
1238 quot >>= 1;
1241 while (quot > UART_DIV_MAX) {
1243 quot >>= 1;
1246 quot >>= 1;
1249 quot
1267 pci_oxsemi_tornado_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
[all...]
/linux-master/drivers/mmc/core/
H A Dsdio_uart.c250 unsigned int baud, quot; local
278 quot = (2 * port->uartclk + baud) / (2 * baud);
324 sdio_out(port, UART_DLL, quot & 0xff);
325 sdio_out(port, UART_DLM, quot >> 8);
/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)

Completed in 506 milliseconds

123