Home
last modified time | relevance | path

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

12

/linux/lib/crypto/mpi/
H A Dmpi-div.c17 int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
61 int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument
92 if (quot) { in mpi_tdiv_qr()
96 quot->nlimbs = 0; in mpi_tdiv_qr()
97 quot->sign = 0; in mpi_tdiv_qr()
102 if (quot) { in mpi_tdiv_qr()
103 err = mpi_resize(quot, qsize); in mpi_tdiv_qr()
116 if (quot) { in mpi_tdiv_qr()
117 qp = quot->d; in mpi_tdiv_qr()
120 quot->nlimbs = qsize; in mpi_tdiv_qr()
[all …]
/linux/lib/math/
H A Ddiv64.c102 u64 quot; in div64_u64_rem() local
106 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
110 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
112 if (quot != 0) in div64_u64_rem()
113 quot--; in div64_u64_rem()
115 *remainder = dividend - quot * divisor; in div64_u64_rem()
117 quot++; in div64_u64_rem()
122 return quot; in div64_u64_rem()
142 u64 quot; in div64_u64() local
145 quot in div64_u64()
164 s64 quot, t; div64_s64() local
[all...]
/linux/drivers/tty/serial/8250/
H A D8250_loongson.c88 unsigned int quot; in loongson_frac_get_divisor() local
90 quot = DIV_ROUND_CLOSEST((port->uartclk << 4), baud); in loongson_frac_get_divisor()
91 *frac = FIELD_GET(LOONGSON_QUOT_FRAC_MASK, quot); in loongson_frac_get_divisor()
93 return FIELD_GET(LOONGSON_QUOT_DIV_MASK, quot); in loongson_frac_get_divisor()
97 unsigned int quot, unsigned int quot_frac) in loongson_frac_set_divisor() argument
102 serial_dl_write(up, quot); in loongson_frac_set_divisor()
H A D8250_pci1xxxx.c240 unsigned int quot; in pci1xxxx_get_divisor() local
251 quot = NSEC_PER_SEC / (baud * uart_sample_cnt); in pci1xxxx_get_divisor()
252 *frac = (NSEC_PER_SEC - quot * baud * uart_sample_cnt) * in pci1xxxx_get_divisor()
255 return quot; in pci1xxxx_get_divisor()
259 unsigned int quot, unsigned int frac) in pci1xxxx_set_divisor() argument
266 writel(FIELD_PREP(BAUD_CLOCK_DIV_INT_MSK, quot) | frac, in pci1xxxx_set_divisor()
H A D8250_omap.c137 u16 quot; member
259 priv->quot = div_16; in omap_8250_get_divisor()
262 priv->quot = div_13; in omap_8250_get_divisor()
341 serial_dl_write(up, priv->quot); in omap8250_restore_regs()
849 if (priv->quot) { in omap8250_rs485_config()
851 baud = port->uartclk / (16 * priv->quot); in omap8250_rs485_config()
853 baud = port->uartclk / (13 * priv->quot); in omap8250_rs485_config()
H A D8250_pericom.c52 unsigned int quot, unsigned int quot_frac) in pericom_do_set_divisor() argument
H A D8250_dw.c189 unsigned int quot, unsigned int quot_frac) in dw8250_set_divisor() argument
202 serial_dl_write(up, quot); in dw8250_set_divisor()
/linux/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c62 unsigned int quot = AVR_QUOT(avr_clock); in avr_uart_configure() local
76 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ in avr_uart_configure()
77 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ in avr_uart_configure()
/linux/arch/x86/boot/
H A Dearly_serial_console.c105 unsigned int quot; in probe_baud() local
112 quot = (dlh << 8) | dll; in probe_baud()
114 return BASE_BAUD / quot; in probe_baud()
/linux/drivers/tty/serial/
H A D21285.c228 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
245 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
246 b = port->uartclk / (16 * quot); in serial21285_set_termios()
304 quot -= 1; in serial21285_set_termios()
307 *CSR_L_UBRLCR = quot & 0xff; in serial21285_set_termios()
308 *CSR_M_UBRLCR = (quot >> 8) & 0x0f; in serial21285_set_termios()
H A Dclps711x.c257 unsigned int baud, quot; in uart_clps711x_set_termios() local
266 quot = uart_get_divisor(port, baud); in uart_clps711x_set_termios()
309 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET); in uart_clps711x_set_termios()
385 unsigned int quot; in uart_clps711x_console_setup() local
414 quot = ubrlcr & UBRLCR_BAUD_MASK; in uart_clps711x_console_setup()
415 baud = port->uartclk / (16 * (quot + 1)); in uart_clps711x_console_setup()
H A Dsa1100.c392 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local
422 quot = uart_get_divisor(port, baud); in sa1100_set_termios()
477 quot -= 1; in sa1100_set_termios()
478 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); in sa1100_set_termios()
479 UART_PUT_UTCR2(sport, (quot & 0xff)); in sa1100_set_termios()
724 unsigned int utcr0, quot; in sa1100_console_get_options() local
741 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; in sa1100_console_get_options()
742 quot &= 0xfff; in sa1100_console_get_options()
743 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options()
H A Dsunsab.c682 unsigned int quot) in sunsab_convert_to_sab() argument
763 (up->port.uartclk / (16 * quot))); in sunsab_convert_to_sab()
782 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios() local
785 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); in sunsab_set_termios()
877 unsigned int baud, quot; in sunsab_console_setup() local
933 quot = uart_get_divisor(&up->port, baud); in sunsab_console_setup()
934 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); in sunsab_console_setup()
H A Dmilbeaut_usio.c304 unsigned long flags, baud, quot; in mlb_usio_set_termios() local
337 quot = port->uartclk / baud - 1; in mlb_usio_set_termios()
339 quot = 0; in mlb_usio_set_termios()
362 writew(quot, port->membase + MLB_USIO_REG_BGR); in mlb_usio_set_termios()
H A Dlpc32xx_hs.c475 unsigned int baud, quot; in serial_lpc32xx_set_termios() local
487 quot = __serial_get_clock_div(port->uartclk, baud); in serial_lpc32xx_set_termios()
499 writel(quot, LPC32XX_HSUART_RATE(port->membase)); in serial_lpc32xx_set_termios()
H A Dsunhv.c332 unsigned int quot = uart_get_divisor(port, baud); in sunhv_set_termios() local
349 (port->uartclk / (16 * quot))); in sunhv_set_termios()
/linux/drivers/phy/intel/
H A Dphy-intel-lgm-emmc.c58 int ret, quot; in intel_emmc_phy_power() local
76 quot = DIV_ROUND_CLOSEST(rate, 50000000); in intel_emmc_phy_power()
77 if (quot > FRQSEL_150M) in intel_emmc_phy_power()
79 freqsel = clamp_t(int, quot, FRQSEL_25M, FRQSEL_150M); in intel_emmc_phy_power()
/linux/drivers/accessibility/speakup/
H A Dserialio.c50 int baud = 9600, quot = 0; in spk_serial_init() local
63 quot = ser->baud_base / baud; in spk_serial_init()
90 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ in spk_serial_init()
91 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */ in spk_serial_init()
/linux/arch/m68k/math-emu/
H A Dfp_arith.c360 unsigned long quot, rem; in fp_fsgldiv() local
411 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
412 dest->mant.m32[0] = 0x80000000 | (quot >> 1); in fp_fsgldiv()
413 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ in fp_fsgldiv()
415 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
416 dest->mant.m32[0] = quot; in fp_fsgldiv()
H A Dmulti_arith.h132 #define fp_div64(quot, rem, srch, srcl, div) \ argument
133 asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Ddevices.c87 u32 quot; in iwl_usecs_to_beacons() local
94 quot = (usec / interval) & in iwl_usecs_to_beacons()
100 return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem; in iwl_usecs_to_beacons()
/linux/drivers/usb/host/
H A Disp116x-hcd.c95 int quot = len % 4; in write_ptddata_to_fifo() local
120 if (quot == 1 || quot == 2) in write_ptddata_to_fifo()
132 int quot = len % 4; in read_ptddata_from_fifo() local
158 if (quot == 1 || quot == 2) in read_ptddata_from_fifo()
/linux/drivers/mmc/core/
H A Dsdio_uart.c250 unsigned int baud, quot; in sdio_uart_change_speed() local
278 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
324 sdio_out(port, UART_DLL, quot & 0xff); in sdio_uart_change_speed()
325 sdio_out(port, UART_DLM, quot >> 8); in sdio_uart_change_speed()
/linux/arch/m68k/ifpsp060/src/
H A Dilsp.S205 beq.b ldqpos # branch to quot positive
209 cmpi.l %d6, &0x80000000 # will (-quot) fit in 32 bits?
212 neg.l %d6 # make (-quot) 2's comp
/linux/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.c4853 u32 quot; in il_usecs_to_beacons() local
4860 quot = in il_usecs_to_beacons()
4871 return (quot << il->hw_params.beacon_time_tsf_bits) + rem; in il_usecs_to_beacons()

12