| /linux/lib/mpi/ |
| A D | mpi-div.c | 63 mpi_sub_ui(quot, quot, 1); in mpi_fdiv_qr() 111 if (quot) { in mpi_tdiv_qr() 115 quot->nlimbs = 0; in mpi_tdiv_qr() 116 quot->sign = 0; in mpi_tdiv_qr() 121 if (quot) in mpi_tdiv_qr() 132 if (quot) { in mpi_tdiv_qr() 133 qp = quot->d; in mpi_tdiv_qr() 148 if (quot) { in mpi_tdiv_qr() 149 qp = quot->d; in mpi_tdiv_qr() 209 if (quot) { in mpi_tdiv_qr() [all …]
|
| /linux/lib/math/ |
| A D | div64.c | 107 u64 quot; in div64_u64_rem() local 117 if (quot != 0) in div64_u64_rem() 118 quot--; in div64_u64_rem() 122 quot++; in div64_u64_rem() 127 return quot; in div64_u64_rem() 147 u64 quot; in div64_u64() local 155 if (quot != 0) in div64_u64() 156 quot--; in div64_u64() 158 quot++; in div64_u64() 161 return quot; in div64_u64() [all …]
|
| /linux/drivers/usb/serial/ |
| A D | ark3116.c | 65 int quot; /* baudrate divisor */ member 164 priv->quot = calc_divisor(9600); in ark3116_port_probe() 199 int quot; in ark3116_set_termios() local 236 quot = calc_divisor(9600); in ark3116_set_termios() 241 quot = calc_divisor(bps); in ark3116_set_termios() 245 quot = calc_divisor(bps); in ark3116_set_termios() 249 quot = calc_divisor(bps); in ark3116_set_termios() 260 __func__, hcr, lcr, quot); in ark3116_set_termios() 269 if (priv->quot != quot) { in ark3116_set_termios() 270 priv->quot = quot; in ark3116_set_termios() [all …]
|
| /linux/tools/perf/util/ |
| A D | tsc.c | 20 u64 t, quot, rem; in perf_time_to_tsc() local 23 quot = t / tc->time_mult; in perf_time_to_tsc() 25 return (quot << tc->time_shift) + in perf_time_to_tsc() 31 u64 quot, rem; in tsc_to_perf_time() local 37 quot = cyc >> tc->time_shift; in tsc_to_perf_time() 39 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time()
|
| /linux/drivers/tty/serial/8250/ |
| A 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()
|
| A D | 8250_port.c | 1108 unsigned short quot; in autoconfig_16550a() local 1113 quot <<= 3; in autoconfig_16550a() 2518 unsigned int quot; in serial8250_do_get_divisor() local 2553 quot = 0x8001; in serial8250_do_get_divisor() 2555 quot = 0x8002; in serial8250_do_get_divisor() 2565 quot++; in serial8250_do_get_divisor() 2567 return quot; in serial8250_do_get_divisor() 2626 quot = 1; in serial8250_do_set_divisor() 2641 serial_dl_write(up, quot); in serial8250_do_set_divisor() 3408 unsigned int quot; in probe_baud() local [all …]
|
| A D | 8250_mtk.c | 299 unsigned int baud, quot, fraction; in mtk8250_set_termios() local 348 quot = uart_get_divisor(port, baud); in mtk8250_set_termios() 351 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios() 367 serial_dl_write(up, quot); in mtk8250_set_termios() 375 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios() 381 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
|
| /linux/tools/perf/arch/x86/tests/ |
| A 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()
|
| /linux/tools/include/linux/ |
| A D | math64.h | 66 u64 quot, rem; in mul_u64_u64_div64() local 68 quot = a / c; in mul_u64_u64_div64() 71 return quot * b + (rem * b) / c; in mul_u64_u64_div64()
|
| /linux/drivers/tty/ |
| A D | amiserial.c | 80 int quot; member 604 quot = info->custom_divisor; in change_speed() 608 quot = (2*baud_base / 269); in change_speed() 610 quot = baud_base / baud; in change_speed() 613 if (!quot && old_termios) { in change_speed() 628 quot = baud_base / baud; in change_speed() 632 if (!quot) in change_speed() 633 quot = baud_base / 9600; in change_speed() 634 info->quot = quot; in change_speed() 688 serper = quot - 1; in change_speed() [all …]
|
| A D | mxser.c | 474 unsigned int quot = 0, baud; in mxser_set_baud() local 485 quot = MXSER_BAUD_BASE / newspd; in mxser_set_baud() 486 if (quot == 0) in mxser_set_baud() 487 quot = 1; in mxser_set_baud() 488 baud = MXSER_BAUD_BASE / quot; in mxser_set_baud() 491 quot = 0; in mxser_set_baud() 502 if (quot) { in mxser_set_baud() 522 quot *= 8; in mxser_set_baud() 524 quot /= newspd; in mxser_set_baud() 525 quot++; in mxser_set_baud() [all …]
|
| /linux/drivers/tty/serial/ |
| A D | sunsu.c | 482 unsigned int iflag, unsigned int quot); 487 int quot, new_baud; in sunsu_change_mouse_baud() local 492 quot = up->port.uartclk / (16 * new_baud); in sunsu_change_mouse_baud() 494 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud() 771 unsigned int iflag, unsigned int quot) in sunsu_change_speed() argument 812 quot ++; in sunsu_change_speed() 815 if ((up->port.uartclk / quot) < (2400 * 16)) in sunsu_change_speed() 903 unsigned int baud, quot; in sunsu_set_termios() local 909 quot = uart_get_divisor(port, baud); in sunsu_set_termios() 1190 int quot, baud; in sunsu_kbd_ms_init() local [all …]
|
| A 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()
|
| A 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() 210 else if (quot < (256 << 6)) in sio_quot_set() 627 unsigned int baud, quot; in serial_txx9_set_termios() local 665 quot = uart_get_divisor(port, baud); in serial_txx9_set_termios() [all …]
|
| A D | apbuart.c | 235 unsigned int baud, quot; in apbuart_set_termios() local 243 quot = (uart_get_divisor(port, baud)) * 2; in apbuart_set_termios() 276 quot -= 1; in apbuart_set_termios() 277 UART_PUT_SCAL(port, quot); in apbuart_set_termios() 454 unsigned int quot, status; in apbuart_console_get_options() local 466 quot = UART_GET_SCAL(port) / 8; in apbuart_console_get_options() 467 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options()
|
| A 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()
|
| A D | sa1100.c | 417 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local 447 quot = uart_get_divisor(port, baud); in sa1100_set_termios() 502 quot -= 1; in sa1100_set_termios() 503 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); in sa1100_set_termios() 504 UART_PUT_UTCR2(sport, (quot & 0xff)); in sa1100_set_termios() 749 unsigned int utcr0, quot; in sa1100_console_get_options() local 766 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; in sa1100_console_get_options() 767 quot &= 0xfff; in sa1100_console_get_options() 768 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options()
|
| A D | amba-pl010.c | 382 unsigned int baud, quot; in pl010_set_termios() local 388 quot = uart_get_divisor(port, baud); in pl010_set_termios() 458 quot -= 1; in pl010_set_termios() 459 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); in pl010_set_termios() 460 writel(quot & 0xff, uap->port.membase + UART010_LCRL); in pl010_set_termios() 609 unsigned int lcr_h, quot; in pl010_console_get_options() local 625 quot = readb(uap->port.membase + UART010_LCRL) | in pl010_console_get_options() 627 *baud = uap->port.uartclk / (16 * (quot + 1)); in pl010_console_get_options()
|
| A 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()
|
| /linux/arch/x86/boot/ |
| A 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()
|
| /linux/arch/powerpc/platforms/embedded6xx/ |
| A 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()
|
| /linux/drivers/phy/intel/ |
| A 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()
|
| /linux/drivers/accessibility/speakup/ |
| A 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()
|
| /linux/arch/m68k/math-emu/ |
| A 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()
|
| /linux/include/linux/ |
| A D | math.h | 115 typeof(x) quot = (x) / (denom); \ 117 (quot * (numer)) + ((rem * (numer)) / (denom)); \
|