Searched refs:quot (Results 1 - 25 of 57) sorted by relevance

123

/linux-master/lib/math/
H A Ddiv64.c102 u64 quot; local
106 quot = div_u64_rem(dividend, divisor, &rem32);
110 quot = div_u64(dividend >> n, divisor >> n);
112 if (quot != 0)
113 quot--;
115 *remainder = dividend - quot * divisor;
117 quot++;
122 return quot;
142 u64 quot; local
145 quot
164 s64 quot, t; local
[all...]
/linux-master/lib/crypto/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) argument
45 MPI tmp = mpi_alloc(mpi_get_nlimbs(quot));
46 mpi_fdiv_qr(quot, tmp, dividend, divisor);
50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) argument
55 if (quot == divisor || rem == divisor) {
60 mpi_tdiv_qr(quot, rem, dividend, divisor);
63 mpi_sub_ui(quot, quot,
83 mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) argument
[all...]
/linux-master/tools/include/linux/
H A Dmath64.h66 u64 quot, rem; local
68 quot = a / c;
71 return quot * b + (rem * b) / c;
/linux-master/tools/perf/util/
H A Dtsc.c20 u64 t, quot, rem; local
23 quot = t / tc->time_mult;
25 return (quot << tc->time_shift) +
31 u64 quot, rem; local
37 quot = cyc >> tc->time_shift;
39 return tc->time_zero + quot * tc->time_mult +
/linux-master/arch/x86/boot/
H A Dearly_serial_console.c105 unsigned int quot; local
112 quot = (dlh << 8) | dll;
114 return BASE_BAUD / quot;
/linux-master/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c62 unsigned int quot = AVR_QUOT(avr_clock); local
76 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */
77 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */
/linux-master/drivers/usb/serial/
H A Dark3116.c65 int quot; /* baudrate divisor */ member in struct:ark3116_private
164 priv->quot = calc_divisor(9600);
165 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff);
166 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff);
199 int quot; local
222 quot = calc_divisor(9600);
227 quot = calc_divisor(bps);
231 quot = calc_divisor(bps);
235 quot = calc_divisor(bps);
245 dev_dbg(&port->dev, "%s - setting hcr:0x%02x,lcr:0x%02x,quot
[all...]
/linux-master/drivers/tty/serial/8250/
H A D8250_dwlib.c68 * quot = div(I) = clk / (16 * baud)
78 unsigned int quot, rem, base_baud = baud * 16; local
81 quot = p->uartclk / base_baud;
85 return quot;
89 unsigned int quot, unsigned int quot_frac)
92 serial8250_do_set_divisor(p, baud, quot, quot_frac);
88 dw8250_set_divisor(struct uart_port *p, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
H A D8250_port.c1045 unsigned short quot; local
1049 quot = serial_dl_read(up);
1050 quot <<= 3;
1053 serial_dl_write(up, quot);
2535 unsigned int quot; local
2570 quot = 0x8001;
2572 quot = 0x8002;
2574 quot = uart_get_divisor(port, baud);
2579 if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0)
2580 quot
2614 serial8250_do_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
2641 serial8250_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
2725 unsigned int baud, quot, frac = 0; local
3284 unsigned int baud, quot, frac = 0; local
3431 unsigned int quot; local
[all...]
H A D8250_mtk.c312 unsigned int baud, quot, fraction; local
345 * We need to recalcualte the quot register, as the claculation depends
361 quot = uart_get_divisor(port, baud);
364 quot = DIV_ROUND_UP(port->uartclk, 256 * baud);
380 serial_dl_write(up, quot);
388 tmp = (port->uartclk / (baud * quot)) - 1;
394 fraction = ((port->uartclk * 100) / baud / quot) % 100;
H A D8250_pci1xxxx.c227 unsigned int quot; local
238 quot = NSEC_PER_SEC / (baud * uart_sample_cnt);
239 *frac = (NSEC_PER_SEC - quot * baud * uart_sample_cnt) *
242 return quot;
246 unsigned int quot, unsigned int frac)
253 writel(FIELD_PREP(BAUD_CLOCK_DIV_INT_MSK, quot) | frac,
245 pci1xxxx_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int frac) argument
/linux-master/drivers/phy/intel/
H A Dphy-intel-lgm-emmc.c58 int ret, quot; local
76 quot = DIV_ROUND_CLOSEST(rate, 50000000);
77 if (quot > FRQSEL_150M)
79 freqsel = clamp_t(int, quot, FRQSEL_25M, FRQSEL_150M);
/linux-master/drivers/accessibility/speakup/
H A Dserialio.c50 int baud = 9600, quot = 0; local
63 quot = ser->baud_base / baud;
90 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */
91 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */
/linux-master/drivers/tty/serial/
H A Dapbuart.c209 unsigned int baud, quot; local
217 quot = (uart_get_divisor(port, baud)) * 2;
250 quot -= 1;
251 UART_PUT_SCAL(port, quot);
428 unsigned int quot, status; local
440 quot = UART_GET_SCAL(port) / 8;
441 *baud = port->uartclk / (16 * (quot + 1));
H A D21285.c228 unsigned int baud, quot, h_lcr, b; local
245 quot = uart_get_divisor(port, baud);
246 b = port->uartclk / (16 * quot);
304 quot -= 1;
307 *CSR_L_UBRLCR = quot & 0xff;
308 *CSR_M_UBRLCR = (quot >> 8) & 0x0f;
H A Dsunsu.c482 unsigned int iflag, unsigned int quot);
487 int quot, new_baud; local
492 quot = up->port.uartclk / (16 * new_baud);
494 sunsu_change_speed(&up->port, up->cflag, 0, quot);
771 unsigned int iflag, unsigned int quot)
808 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 &&
810 quot ++;
813 if ((up->port.uartclk / quot) < (2400 * 16))
834 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot)));
878 serial_outp(up, UART_DLL, quot
770 sunsu_change_speed(struct uart_port *port, unsigned int cflag, unsigned int iflag, unsigned int quot) argument
901 unsigned int baud, quot; local
1188 int quot, baud; local
[all...]
H A Dserial_txx9.c194 sio_quot_set(struct uart_port *up, int quot) argument
196 quot >>= 1;
197 if (quot < 256)
198 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0);
199 else if (quot < (256 << 2))
200 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2);
201 else if (quot < (256 << 4))
202 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4);
203 else if (quot < (256 << 6))
204 sio_out(up, TXX9_SIBGR, (quot >>
579 unsigned int baud, quot; local
[all...]
H A Damba-pl010.c356 unsigned int baud, quot; local
362 quot = uart_get_divisor(port, baud);
429 quot -= 1;
430 writel((quot & 0xf00) >> 8, port->membase + UART010_LCRM);
431 writel(quot & 0xff, port->membase + UART010_LCRL);
579 unsigned int lcr_h, quot; local
595 quot = readb(uap->port.membase + UART010_LCRL) |
597 *baud = uap->port.uartclk / (16 * (quot + 1));
H A Dclps711x.c257 unsigned int baud, quot; local
266 quot = uart_get_divisor(port, baud);
309 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET);
385 unsigned int quot; local
414 quot = ubrlcr & UBRLCR_BAUD_MASK;
415 baud = port->uartclk / (16 * (quot + 1));
H A Dsa1100.c392 unsigned int utcr0, old_utcr3, baud, quot; local
422 quot = uart_get_divisor(port, baud);
477 quot -= 1;
478 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8));
479 UART_PUT_UTCR2(sport, (quot & 0xff));
724 unsigned int utcr0, quot; local
741 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8;
742 quot &= 0xfff;
743 *baud = sport->port.uartclk / (16 * (quot + 1));
H A Dpxa.c408 unsigned int baud, quot; local
424 quot = uart_get_divisor(port, baud);
426 if ((up->port.uartclk / quot) < (2400 * 16))
428 else if ((up->port.uartclk / quot) < (230400 * 16))
493 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */
500 WARN_ON(dll != (quot & 0xff));
502 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
/linux-master/arch/m68k/math-emu/
H A Dfp_arith.c360 unsigned long quot, rem; local
411 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]);
412 dest->mant.m32[0] = 0x80000000 | (quot >> 1);
413 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */
415 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]);
416 dest->mant.m32[0] = quot;
/linux-master/drivers/tty/
H A Damiserial.c81 int quot; member in struct:serial_state
570 int quot = 0, baud_base, baud; local
599 quot = info->custom_divisor;
603 quot = (2*baud_base / 269);
605 quot = baud_base / baud;
608 if (!quot && old_termios) {
617 quot = info->custom_divisor;
621 quot = (2*baud_base / 269);
623 quot = baud_base / baud;
627 if (!quot)
[all...]
H A Dmxser.c487 unsigned int quot = 0, baud; local
495 quot = 2 * MXSER_BAUD_BASE / 269;
498 quot = MXSER_BAUD_BASE / newspd;
499 if (quot == 0)
500 quot = 1;
501 baud = MXSER_BAUD_BASE / quot;
504 quot = 0;
511 timeout = (u64)info->xmit_fifo_size * HZ * 10 * quot;
515 if (quot) {
528 outb(quot
[all...]
/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;

Completed in 527 milliseconds

123