/kernel/linux/linux-5.10/lib/mpi/ |
D | mpi-div.c | 17 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 …]
|
/kernel/linux/linux-5.10/lib/math/ |
D | div64.c | 105 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 …]
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | tsc.c | 18 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()
|
/kernel/linux/linux-5.10/drivers/usb/serial/ |
D | ark3116.c | 65 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 …]
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
D | 8250_dwlib.c | 63 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()
|
D | 8250_port.c | 1076 unsigned short quot; in autoconfig_16550a() local 1080 quot = serial_dl_read(up); in autoconfig_16550a() 1081 quot <<= 3; in autoconfig_16550a() 1084 serial_dl_write(up, quot); in autoconfig_16550a() 2510 unsigned int quot; in serial8250_do_get_divisor() local 2519 quot = 0x8001; in serial8250_do_get_divisor() 2522 quot = 0x8002; in serial8250_do_get_divisor() 2524 quot = npcm_get_divisor(up, baud); in serial8250_do_get_divisor() 2526 quot = uart_get_divisor(port, baud); in serial8250_do_get_divisor() 2531 if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0) in serial8250_do_get_divisor() [all …]
|
D | 8250_mtk.c | 303 unsigned int baud, quot, fraction; in mtk8250_set_termios() local 352 quot = uart_get_divisor(port, baud); in mtk8250_set_termios() 355 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios() 371 serial_dl_write(up, quot); in mtk8250_set_termios() 379 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios() 385 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/ |
D | rdpmc.c | 66 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()
|
/kernel/linux/linux-5.10/arch/x86/boot/ |
D | early_serial_console.c | 105 unsigned int quot; in probe_baud() local 112 quot = (dlh << 8) | dll; in probe_baud() 114 return BASE_BAUD / quot; in probe_baud()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/embedded6xx/ |
D | ls_uart.c | 61 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()
|
/kernel/linux/linux-5.10/drivers/phy/intel/ |
D | phy-intel-lgm-emmc.c | 58 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()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | 21285.c | 249 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()
|
D | sunsu.c | 486 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 …]
|
D | apbuart.c | 237 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()
|
D | serial_txx9.c | 201 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 …]
|
D | clps711x.c | 257 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()
|
D | sa1100.c | 419 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()
|
D | amba-pl010.c | 384 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()
|
D | pxa.c | 430 unsigned int baud, quot; in serial_pxa_set_termios() local 460 quot = uart_get_divisor(port, baud); in serial_pxa_set_termios() 462 if ((up->port.uartclk / quot) < (2400 * 16)) in serial_pxa_set_termios() 464 else if ((up->port.uartclk / quot) < (230400 * 16)) in serial_pxa_set_termios() 529 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ in serial_pxa_set_termios() 536 WARN_ON(dll != (quot & 0xff)); in serial_pxa_set_termios() 538 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ in serial_pxa_set_termios()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | amiserial.c | 96 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 …]
|
D | mxser.c | 571 unsigned int quot = 0, baud; in mxser_set_baud() local 582 quot = 2 * info->baud_base / 269; in mxser_set_baud() 585 quot = info->baud_base / newspd; in mxser_set_baud() 586 if (quot == 0) in mxser_set_baud() 587 quot = 1; in mxser_set_baud() 588 baud = info->baud_base/quot; in mxser_set_baud() 591 quot = 0; in mxser_set_baud() 598 timeout = (u64)info->xmit_fifo_size * HZ * 10 * quot; in mxser_set_baud() 602 if (quot) { in mxser_set_baud() 615 outb(quot & 0xff, info->ioaddr + UART_DLL); /* LS of divisor */ in mxser_set_baud() [all …]
|
/kernel/linux/linux-5.10/drivers/accessibility/speakup/ |
D | serialio.c | 50 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()
|
/kernel/linux/linux-5.10/arch/m68k/math-emu/ |
D | fp_arith.c | 370 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()
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
D | cpr.c | 205 int quot; member 373 gcnt |= fuse->quot - corner->quot_adjust; in cpr_corner_restore() 935 ret = cpr_read_efuse(drv->dev, fuses->quotient, &fuse->quot); in cpr_fuse_corner_init() 939 fuse->quot *= fdata->quot_scale; in cpr_fuse_corner_init() 940 fuse->quot += fdata->quot_offset; in cpr_fuse_corner_init() 941 fuse->quot += fdata->quot_adjust; in cpr_fuse_corner_init() 983 fuse->ring_osc_idx, fuse->quot, fuse->step_quot); in cpr_fuse_corner_init() 1011 quot_diff = fuse->quot - prev_fuse->quot; in cpr_calculate_scaling() 1254 fuse->quot - corner->quot_adjust); in cpr_corner_init()
|
/kernel/linux/linux-5.10/drivers/tty/serial/jsm/ |
D | jsm_cls.c | 684 int quot = 0; in cls_param() local 761 quot = ch->ch_bd->bd_dividend / baud; in cls_param() 763 if (quot != 0) { in cls_param() 765 writeb((quot & 0xff), &ch->ch_cls_uart->txrx); in cls_param() 766 writeb((quot >> 8), &ch->ch_cls_uart->ier); in cls_param()
|