Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/lib/mpi/
H A Dmpi-div.c17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor);
43 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor) in mpi_fdiv_q() argument
45 MPI tmp = mpi_alloc(mpi_get_nlimbs(quot)); in mpi_fdiv_q()
46 mpi_fdiv_qr(quot, tmp, dividend, divisor); in mpi_fdiv_q()
50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() argument
55 if (quot == divisor || rem == divisor) { in mpi_fdiv_qr()
60 mpi_tdiv_qr(quot, rem, dividend, divisor); in mpi_fdiv_qr()
63 mpi_sub_ui(quot, quot, 1); in mpi_fdiv_qr()
83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr() argument
[all …]
/OK3568_Linux_fs/u-boot/lib/
H A Ddiv64.c98 u64 quot; in div64_u64_rem() local
102 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
106 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
108 if (quot != 0) in div64_u64_rem()
109 quot--; in div64_u64_rem()
111 *remainder = dividend - quot * divisor; in div64_u64_rem()
113 quot++; in div64_u64_rem()
118 return quot; in div64_u64_rem()
138 u64 quot; in div64_u64() local
141 quot = div_u64(dividend, divisor); in div64_u64()
[all …]
H A Dldiv.c8 long quot; member
17 result.quot = numer / denom; in ldiv()
38 ++result.quot; in ldiv()
/OK3568_Linux_fs/kernel/lib/math/
H A Ddiv64.c105 u64 quot; in div64_u64_rem() local
109 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
113 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
115 if (quot != 0) in div64_u64_rem()
116 quot--; in div64_u64_rem()
118 *remainder = dividend - quot * divisor; in div64_u64_rem()
120 quot++; in div64_u64_rem()
125 return quot; in div64_u64_rem()
145 u64 quot; in div64_u64() local
148 quot = div_u64(dividend, divisor); in div64_u64()
[all …]
/OK3568_Linux_fs/buildroot/package/gettext-tiny/
H A Dgettext-tiny.mk24 gettext-runtime/po/en@quot.header \
26 gettext-runtime/po/quot.sed \
28 gettext-runtime/po/Rules-quot \
88 $(INSTALL) -m 0644 -D $(@D)/extra/en@quot.header $(HOST_DIR)/share/gettext-tiny/po/en@quot.header
90 $(INSTALL) -m 0644 -D $(@D)/extra/quot.sed $(HOST_DIR)/share/gettext-tiny/po/quot.sed
92 $(INSTALL) -m 0644 -D $(@D)/extra/Rules-quot $(HOST_DIR)/share/gettext-tiny/po/Rules-quot
/OK3568_Linux_fs/kernel/drivers/usb/serial/
H A Dark3116.c65 int quot; /* baudrate divisor */ member
164 priv->quot = calc_divisor(9600); in ark3116_port_probe()
165 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff); in ark3116_port_probe()
166 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff); in ark3116_port_probe()
201 int quot; in ark3116_set_termios() local
238 quot = calc_divisor(9600); in ark3116_set_termios()
243 quot = calc_divisor(bps); in ark3116_set_termios()
247 quot = calc_divisor(bps); in ark3116_set_termios()
251 quot = calc_divisor(bps); in ark3116_set_termios()
262 __func__, hcr, lcr, quot); in ark3116_set_termios()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dtsc.c18 u64 t, quot, rem; in perf_time_to_tsc() local
21 quot = t / tc->time_mult; in perf_time_to_tsc()
23 return (quot << tc->time_shift) + in perf_time_to_tsc()
29 u64 quot, rem; in tsc_to_perf_time() local
35 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
37 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time()
/OK3568_Linux_fs/kernel/drivers/tty/serial/8250/
H A D8250_dwlib.c63 unsigned int quot, rem, base_baud = baud * 16; in dw8250_get_divisor() local
66 quot = p->uartclk / base_baud; in dw8250_get_divisor()
70 return quot; in dw8250_get_divisor()
74 unsigned int quot, unsigned int quot_frac) in dw8250_set_divisor() argument
77 serial8250_do_set_divisor(p, baud, quot, quot_frac); in dw8250_set_divisor()
H A D8250_port.c1083 unsigned short quot; in autoconfig_16550a() local
1087 quot = serial_dl_read(up); in autoconfig_16550a()
1088 quot <<= 3; in autoconfig_16550a()
1091 serial_dl_write(up, quot); in autoconfig_16550a()
2567 unsigned int quot; in serial8250_do_get_divisor() local
2576 quot = 0x8001; in serial8250_do_get_divisor()
2579 quot = 0x8002; in serial8250_do_get_divisor()
2581 quot = npcm_get_divisor(up, baud); in serial8250_do_get_divisor()
2583 quot = uart_get_divisor(port, baud); in serial8250_do_get_divisor()
2588 if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0) in serial8250_do_get_divisor()
[all …]
/OK3568_Linux_fs/kernel/tools/perf/arch/x86/tests/
H A Drdpmc.c66 u64 quot, rem; in mmap_read_self() local
68 quot = (cyc >> time_shift); in mmap_read_self()
70 delta = time_offset + quot * time_mult + in mmap_read_self()
77 quot = count / running; in mmap_read_self()
79 count = quot * enabled + (rem * enabled) / running; in mmap_read_self()
/OK3568_Linux_fs/u-boot/disk/
H A Dpart_mac.c27 long int quot; /* Quotient */ member
92 gb = ldiv(10 * mb.quot + mb.rem, 10240); in part_print_mac()
104 mb.quot, mb.rem, gb.quot, gb.rem, in part_print_mac()
/OK3568_Linux_fs/kernel/drivers/tty/
H A Damiserial.c96 int quot; member
612 int quot = 0, baud_base, baud; in change_speed() local
643 quot = info->custom_divisor; in change_speed()
647 quot = (2*baud_base / 269); in change_speed()
649 quot = baud_base / baud; in change_speed()
652 if (!quot && old_termios) { in change_speed()
661 quot = info->custom_divisor; in change_speed()
665 quot = (2*baud_base / 269); in change_speed()
667 quot = baud_base / baud; in change_speed()
671 if (!quot) in change_speed()
[all …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Dsunsu.c486 unsigned int iflag, unsigned int quot);
491 int quot, new_baud; in sunsu_change_mouse_baud() local
496 quot = up->port.uartclk / (16 * new_baud); in sunsu_change_mouse_baud()
498 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud()
775 unsigned int iflag, unsigned int quot) in sunsu_change_speed() argument
814 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && in sunsu_change_speed()
816 quot ++; in sunsu_change_speed()
819 if ((up->port.uartclk / quot) < (2400 * 16)) in sunsu_change_speed()
840 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); in sunsu_change_speed()
884 serial_outp(up, UART_DLL, quot & 0xff); /* LS of divisor */ in sunsu_change_speed()
[all …]
H A D21285.c249 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
266 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
267 b = port->uartclk / (16 * quot); in serial21285_set_termios()
325 quot -= 1; in serial21285_set_termios()
328 *CSR_L_UBRLCR = quot & 0xff; in serial21285_set_termios()
329 *CSR_M_UBRLCR = (quot >> 8) & 0x0f; in serial21285_set_termios()
H A Dapbuart.c237 unsigned int baud, quot; in apbuart_set_termios() local
245 quot = (uart_get_divisor(port, baud)) * 2; in apbuart_set_termios()
278 quot -= 1; in apbuart_set_termios()
279 UART_PUT_SCAL(port, quot); in apbuart_set_termios()
456 unsigned int quot, status; in apbuart_console_get_options() local
468 quot = UART_GET_SCAL(port) / 8; in apbuart_console_get_options()
469 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options()
H A Dserial_txx9.c201 sio_quot_set(struct uart_txx9_port *up, int quot) in sio_quot_set() argument
203 quot >>= 1; in sio_quot_set()
204 if (quot < 256) in sio_quot_set()
205 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); in sio_quot_set()
206 else if (quot < (256 << 2)) in sio_quot_set()
207 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); in sio_quot_set()
208 else if (quot < (256 << 4)) in sio_quot_set()
209 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); in sio_quot_set()
210 else if (quot < (256 << 6)) in sio_quot_set()
211 sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6); in sio_quot_set()
[all …]
H A Dsa1100.c419 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local
449 quot = uart_get_divisor(port, baud); in sa1100_set_termios()
504 quot -= 1; in sa1100_set_termios()
505 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); in sa1100_set_termios()
506 UART_PUT_UTCR2(sport, (quot & 0xff)); in sa1100_set_termios()
751 unsigned int utcr0, quot; in sa1100_console_get_options() local
768 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; in sa1100_console_get_options()
769 quot &= 0xfff; in sa1100_console_get_options()
770 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options()
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 Damba-pl010.c384 unsigned int baud, quot; in pl010_set_termios() local
390 quot = uart_get_divisor(port, baud); in pl010_set_termios()
457 quot -= 1; in pl010_set_termios()
458 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); in pl010_set_termios()
459 writel(quot & 0xff, uap->port.membase + UART010_LCRL); in pl010_set_termios()
608 unsigned int lcr_h, quot; in pl010_console_get_options() local
624 quot = readb(uap->port.membase + UART010_LCRL) | in pl010_console_get_options()
626 *baud = uap->port.uartclk / (16 * (quot + 1)); in pl010_console_get_options()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c61 unsigned int quot = AVR_QUOT(avr_clock); in avr_uart_configure() local
75 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ in avr_uart_configure()
76 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ in avr_uart_configure()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/rapidjson/1.1.0/include/rapidjson/msinttypes/
H A Dinttypes.h58 intmax_t quot; member
294 result.quot = numer / denom; in imaxdiv()
299 ++result.quot; in imaxdiv()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/m68k/math-emu/
H A Dfp_arith.c370 unsigned long quot, rem; in fp_fsgldiv() local
421 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
422 dest->mant.m32[0] = 0x80000000 | (quot >> 1); in fp_fsgldiv()
423 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ in fp_fsgldiv()
425 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
426 dest->mant.m32[0] = quot; in fp_fsgldiv()

1234