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

123

/linux-master/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
217 btst &0x1f, %d6 # will (+quot) fit in 32 bits?
/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/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;
H A Dmulti_arith.h132 #define fp_div64(quot, rem, srch, srcl, div) \
133 asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
/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/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/mmc/core/
H A Dsdio_uart.c250 unsigned int baud, quot; local
278 quot = (2 * port->uartclk + baud) / (2 * baud);
324 sdio_out(port, UART_DLL, quot & 0xff);
325 sdio_out(port, UART_DLM, quot >> 8);
/linux-master/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.c4878 u32 quot; local
4885 quot =
4896 return (quot << il->hw_params.beacon_time_tsf_bits) + rem;
/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;
/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/pmdomain/qcom/
H A Dcpr.c145 /* fuse quot */
204 int quot; member in struct:fuse_corner
372 gcnt |= fuse->quot - corner->quot_adjust;
901 ret = nvmem_cell_read_variable_le_u32(drv->dev, fuses->quotient, &fuse->quot);
905 fuse->quot *= fdata->quot_scale;
906 fuse->quot += fdata->quot_offset;
907 fuse->quot += fdata->quot_adjust;
947 "fuse corner %d: [%d %d %d] RO%hhu quot %d squot %d\n",
949 fuse->ring_osc_idx, fuse->quot, fuse->step_quot);
977 quot_diff = fuse->quot
[all...]
/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/tty/serial/
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 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 Damba-pl011.c2036 unsigned int baud, quot, clkdiv; local
2058 quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud);
2060 quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud);
2139 if (baud >= 3000000 && baud < 3250000 && quot > 1)
2140 quot -= 1;
2141 else if (baud > 3250000 && quot > 2)
2142 quot -= 2;
2145 pl011_write(quot & 0x3f, uap, REG_FBRD);
2146 pl011_write(quot >> 6, uap, REG_IBRD);
/linux-master/drivers/tty/serial/8250/
H A D8250_bcm7271.c683 u32 quot; local
703 quot = DIV_ROUND_CLOSEST(rate, baud);
704 if (!quot)
711 hires_err = div_u64(hires_rate, (u64)quot);
727 best_quot = quot;
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_exar.c183 unsigned int quot, unsigned int quot_frac)
185 serial8250_do_set_divisor(p, baud, quot, quot_frac);
182 xr17v35x_set_divisor(struct uart_port *p, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
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_omap.c137 u16 quot; member in struct:omap8250_priv
248 priv->quot = port->custom_divisor & UART_DIV_MAX;
273 priv->quot = div_16;
276 priv->quot = div_13;
354 serial_dl_write(up, priv->quot);
861 if (priv->quot) {
863 baud = port->uartclk / (16 * priv->quot);
865 baud = port->uartclk / (13 * priv->quot);
H A D8250_pci.c1193 unsigned int quot; local
1202 quot = cust_div & UART_DIV_MAX;
1227 quot = sdiv / spre;
1233 quot = DIV_ROUND_CLOSEST(sdiv, spre);
1237 quot % 2 == 0) {
1238 quot >>= 1;
1241 while (quot > UART_DIV_MAX) {
1243 quot >>= 1;
1246 quot >>= 1;
1249 quot
1267 pci_oxsemi_tornado_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) argument
[all...]
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
H A D8250_pericom.c52 unsigned int quot, unsigned int quot_frac)
51 pericom_do_set_divisor(struct uart_port *port, 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...]

Completed in 336 milliseconds

123