/linux-4.1.27/tools/perf/util/ |
H A D | tsc.c | 8 u64 t, quot, rem; perf_time_to_tsc() local 11 quot = t / tc->time_mult; perf_time_to_tsc() 13 return (quot << tc->time_shift) + perf_time_to_tsc() 19 u64 quot, rem; tsc_to_perf_time() local 21 quot = cyc >> tc->time_shift; tsc_to_perf_time() 23 return tc->time_zero + quot * tc->time_mult + tsc_to_perf_time()
|
/linux-4.1.27/lib/ |
H A D | div64.c | 96 u64 quot; div64_u64_rem() local 100 quot = div_u64_rem(dividend, divisor, &rem32); div64_u64_rem() 104 quot = div_u64(dividend >> n, divisor >> n); div64_u64_rem() 106 if (quot != 0) div64_u64_rem() 107 quot--; div64_u64_rem() 109 *remainder = dividend - quot * divisor; div64_u64_rem() 111 quot++; div64_u64_rem() 116 return quot; div64_u64_rem() 136 u64 quot; div64_u64() local 139 quot = div_u64(dividend, divisor); div64_u64() 142 quot = div_u64(dividend >> n, divisor >> n); div64_u64() 144 if (quot != 0) div64_u64() 145 quot--; div64_u64() 146 if ((dividend - quot * divisor) >= divisor) div64_u64() 147 quot++; div64_u64() 150 return quot; div64_u64() 163 s64 quot, t; div64_s64() local 165 quot = div64_u64(abs64(dividend), abs64(divisor)); div64_s64() 168 return (quot ^ t) - t; div64_s64()
|
/linux-4.1.27/tools/perf/tests/ |
H A D | rdpmc.c | 60 u64 quot, rem; mmap_read_self() local 62 quot = (cyc >> time_shift); mmap_read_self() 64 delta = time_offset + quot * time_mult + mmap_read_self() 71 quot = count / running; mmap_read_self() 73 count = quot * enabled + (rem * enabled) / running; mmap_read_self()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | ark3116.c | 69 int quot; /* baudrate divisor */ member in struct:ark3116_private 177 priv->quot = calc_divisor(9600); ark3116_port_probe() 178 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff); ark3116_port_probe() 179 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff); ark3116_port_probe() 226 int quot; ark3116_set_termios() local 263 quot = calc_divisor(9600); ark3116_set_termios() 268 quot = calc_divisor(bps); ark3116_set_termios() 272 quot = calc_divisor(bps); ark3116_set_termios() 276 quot = calc_divisor(bps); ark3116_set_termios() 286 dev_dbg(&port->dev, "%s - setting hcr:0x%02x,lcr:0x%02x,quot:%d\n", ark3116_set_termios() 287 __func__, hcr, lcr, quot); ark3116_set_termios() 296 if (priv->quot != quot) { ark3116_set_termios() 297 priv->quot = quot; ark3116_set_termios() 307 ark3116_write_reg(serial, UART_DLL, quot & 0xff); ark3116_set_termios() 308 ark3116_write_reg(serial, UART_DLM, (quot>>8) & 0xff); ark3116_set_termios() 736 * 4-times subsampling. So quot=12e6/(4*baud). Also see description
|
/linux-4.1.27/drivers/tty/serial/8250/ |
H A D | 8250_mtk.c | 44 unsigned int baud, quot; mtk8250_set_termios() local 54 * We need to recalcualte the quot register, as the claculation depends mtk8250_set_termios() 70 quot = uart_get_divisor(port, baud); mtk8250_set_termios() 77 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); mtk8250_set_termios() 84 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); mtk8250_set_termios() 95 serial_dl_write(up, quot); mtk8250_set_termios() 103 tmp = DIV_ROUND_CLOSEST(port->uartclk, quot * baud); mtk8250_set_termios()
|
H A D | 8250.h | 81 #define UART_BUG_QUOT (1 << 0) /* UART has buggy quot LSB */
|
H A D | 8250_core.c | 1038 unsigned short quot; autoconfig_16550a() local 1042 quot = serial_dl_read(up); autoconfig_16550a() 1043 quot <<= 3; autoconfig_16550a() 1046 serial_dl_write(up, quot); autoconfig_16550a() 2466 unsigned int quot; serial8250_get_divisor() local 2475 quot = 0x8001; serial8250_get_divisor() 2478 quot = 0x8002; serial8250_get_divisor() 2480 quot = xr17v35x_get_divisor(up, baud, frac); serial8250_get_divisor() 2482 quot = uart_get_divisor(port, baud); serial8250_get_divisor() 2487 if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0) serial8250_get_divisor() 2488 quot++; serial8250_get_divisor() 2490 return quot; serial8250_get_divisor() 2532 unsigned int quot, unsigned int quot_frac) serial8250_set_divisor() 2539 quot = 1; serial8250_set_divisor() 2554 serial_dl_write(up, quot); serial8250_set_divisor() 2568 unsigned int baud, quot, frac = 0; serial8250_do_set_termios() local 2578 quot = serial8250_get_divisor(up, baud, &frac); serial8250_do_set_termios() 2675 serial8250_set_divisor(port, baud, quot, frac); serial8250_do_set_termios() 3393 unsigned int baud, quot, frac = 0; serial8250_console_write() local 3402 quot = serial8250_get_divisor(up, baud, &frac); serial8250_console_write() 3404 serial8250_set_divisor(port, baud, quot, frac); serial8250_console_write() 3446 unsigned int quot; probe_baud() local 3454 quot = (dlm << 8) | dll; probe_baud() 3455 return (port->uartclk / 16) / quot; probe_baud() 2531 serial8250_set_divisor(struct uart_port *port, unsigned int baud, unsigned int quot, unsigned int quot_frac) serial8250_set_divisor() argument
|
H A D | 8250_omap.c | 91 u16 quot; member in struct:omap8250_priv 181 priv->quot = port->custom_divisor & 0xffff; omap_8250_get_divisor() 206 priv->quot = div_16; omap_8250_get_divisor() 209 priv->quot = div_13; omap_8250_get_divisor() 273 serial_dl_write(up, priv->quot); omap8250_restore_regs()
|
/linux-4.1.27/arch/x86/boot/ |
H A D | early_serial_console.c | 100 unsigned int quot; probe_baud() local 107 quot = (dlh << 8) | dll; probe_baud() 109 return BASE_BAUD / quot; probe_baud()
|
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/ |
H A D | ls_uart.c | 61 unsigned int quot = AVR_QUOT(avr_clock); avr_uart_configure() local 75 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ avr_uart_configure() 76 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ avr_uart_configure()
|
/linux-4.1.27/drivers/staging/speakup/ |
H A D | serialio.c | 28 int baud = 9600, quot = 0; spk_serial_init() local 41 quot = ser->baud_base / baud; spk_serial_init() 67 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ spk_serial_init() 68 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */ spk_serial_init()
|
/linux-4.1.27/include/linux/ |
H A D | mpi.h | 106 int mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor); 107 int mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor); 109 int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
|
H A D | kernel.h | 125 typeof(x) quot = (x) / (denom); \ 127 (quot * (numer)) + ((rem * (numer)) / (denom)); \
|
/linux-4.1.27/drivers/tty/serial/ |
H A D | 21285.c | 213 unsigned int baud, quot, h_lcr, b; serial21285_set_termios() local 230 quot = uart_get_divisor(port, baud); serial21285_set_termios() 231 b = port->uartclk / (16 * quot); serial21285_set_termios() 289 quot -= 1; serial21285_set_termios() 292 *CSR_L_UBRLCR = quot & 0xff; serial21285_set_termios() 293 *CSR_M_UBRLCR = (quot >> 8) & 0x0f; serial21285_set_termios()
|
H A D | clps711x.c | 265 unsigned int baud, quot; uart_clps711x_set_termios() local 274 quot = uart_get_divisor(port, baud); uart_clps711x_set_termios() 317 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET); uart_clps711x_set_termios() 393 unsigned int quot; uart_clps711x_console_setup() local 422 quot = ubrlcr & UBRLCR_BAUD_MASK; uart_clps711x_console_setup() 423 baud = port->uartclk / (16 * (quot + 1)); uart_clps711x_console_setup()
|
H A D | apbuart.c | 240 unsigned int baud, quot; apbuart_set_termios() local 248 quot = (uart_get_divisor(port, baud)) * 2; apbuart_set_termios() 281 quot -= 1; apbuart_set_termios() 282 UART_PUT_SCAL(port, quot); apbuart_set_termios() 459 unsigned int quot, status; apbuart_console_get_options() local 471 quot = UART_GET_SCAL(port) / 8; apbuart_console_get_options() 472 *baud = port->uartclk / (16 * (quot + 1)); apbuart_console_get_options()
|
H A D | netx-serial.c | 340 unsigned int baud, quot; netx_set_termios() local 373 quot = baud * 4096; netx_set_termios() 374 quot /= 1000; netx_set_termios() 375 quot *= 256; netx_set_termios() 376 quot /= 100000; netx_set_termios() 399 writel((quot>>8) & 0xff, port->membase + UART_BAUDDIV_MSB); netx_set_termios() 400 writel(quot & 0xff, port->membase + UART_BAUDDIV_LSB); netx_set_termios()
|
H A D | sa1100.c | 423 unsigned int utcr0, old_utcr3, baud, quot; sa1100_set_termios() local 453 quot = uart_get_divisor(port, baud); sa1100_set_termios() 508 quot -= 1; sa1100_set_termios() 509 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); sa1100_set_termios() 510 UART_PUT_UTCR2(sport, (quot & 0xff)); sa1100_set_termios() 757 unsigned int utcr0, quot; sa1100_console_get_options() local 774 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; sa1100_console_get_options() 775 quot &= 0xfff; sa1100_console_get_options() 776 *baud = sport->port.uartclk / (16 * (quot + 1)); sa1100_console_get_options()
|
H A D | sunsu.c | 489 unsigned int iflag, unsigned int quot); 494 int quot, new_baud; sunsu_change_mouse_baud() local 499 quot = up->port.uartclk / (16 * new_baud); sunsu_change_mouse_baud() 501 sunsu_change_speed(&up->port, up->cflag, 0, quot); sunsu_change_mouse_baud() 778 unsigned int iflag, unsigned int quot) sunsu_change_speed() 817 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && sunsu_change_speed() 819 quot ++; sunsu_change_speed() 822 if ((up->port.uartclk / quot) < (2400 * 16)) sunsu_change_speed() 843 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); sunsu_change_speed() 887 serial_outp(up, UART_DLL, quot & 0xff); /* LS of divisor */ sunsu_change_speed() 888 serial_outp(up, UART_DLM, quot >> 8); /* MS of divisor */ sunsu_change_speed() 910 unsigned int baud, quot; sunsu_set_termios() local 916 quot = uart_get_divisor(port, baud); sunsu_set_termios() 918 sunsu_change_speed(port, termios->c_cflag, termios->c_iflag, quot); sunsu_set_termios() 1197 int quot, baud; sunsu_kbd_ms_init() local 1209 quot = up->port.uartclk / (16 * baud); sunsu_kbd_ms_init() 1246 sunsu_change_speed(&up->port, up->cflag, 0, quot); sunsu_kbd_ms_init() 777 sunsu_change_speed(struct uart_port *port, unsigned int cflag, unsigned int iflag, unsigned int quot) sunsu_change_speed() argument
|
H A D | serial_txx9.c | 208 sio_quot_set(struct uart_txx9_port *up, int quot) sio_quot_set() argument 210 quot >>= 1; sio_quot_set() 211 if (quot < 256) sio_quot_set() 212 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); sio_quot_set() 213 else if (quot < (256 << 2)) sio_quot_set() 214 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); sio_quot_set() 215 else if (quot < (256 << 4)) sio_quot_set() 216 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); sio_quot_set() 217 else if (quot < (256 << 6)) sio_quot_set() 218 sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6); sio_quot_set() 635 unsigned int baud, quot; serial_txx9_set_termios() local 673 quot = uart_get_divisor(port, baud); serial_txx9_set_termios() 730 sio_quot_set(up, quot); serial_txx9_set_termios()
|
H A D | amba-pl010.c | 401 unsigned int baud, quot; pl010_set_termios() local 407 quot = uart_get_divisor(port, baud); pl010_set_termios() 477 quot -= 1; pl010_set_termios() 478 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); pl010_set_termios() 479 writel(quot & 0xff, uap->port.membase + UART010_LCRL); pl010_set_termios() 628 unsigned int lcr_h, quot; pl010_console_get_options() local 644 quot = readb(uap->port.membase + UART010_LCRL) | pl010_console_get_options() 646 *baud = uap->port.uartclk / (16 * (quot + 1)); pl010_console_get_options()
|
H A D | pxa.c | 439 unsigned int baud, quot; serial_pxa_set_termios() local 469 quot = uart_get_divisor(port, baud); serial_pxa_set_termios() 471 if ((up->port.uartclk / quot) < (2400 * 16)) serial_pxa_set_termios() 473 else if ((up->port.uartclk / quot) < (230400 * 16)) serial_pxa_set_termios() 538 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ serial_pxa_set_termios() 545 WARN_ON(dll != (quot & 0xff)); serial_pxa_set_termios() 547 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ serial_pxa_set_termios()
|
H A D | sunsab.c | 684 unsigned int quot) sunsab_convert_to_sab() 769 (up->port.uartclk / (16 * quot))); sunsab_convert_to_sab() 788 unsigned int quot = uart_get_divisor(port, baud); sunsab_set_termios() local 791 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); sunsab_set_termios() 883 unsigned int baud, quot; sunsab_console_setup() local 939 quot = uart_get_divisor(&up->port, baud); sunsab_console_setup() 940 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); sunsab_console_setup() 682 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) sunsab_convert_to_sab() argument
|
H A D | serial_ks8695.c | 386 unsigned int baud, quot; ks8695uart_set_termios() local 392 quot = uart_get_divisor(port, baud); ks8695uart_set_termios() 472 UART_PUT_BRDR(port, quot); ks8695uart_set_termios()
|
H A D | pnx8xxx_uart.c | 449 unsigned int lcr_fcr, old_ien, baud, quot; pnx8xxx_set_termios() local 479 quot = uart_get_divisor(port, baud); pnx8xxx_set_termios() 549 quot -= 1; pnx8xxx_set_termios() 550 serial_out(sport, PNX8XXX_BAUD, quot); pnx8xxx_set_termios()
|
H A D | sprd_serial.c | 374 unsigned int baud, quot; sprd_set_termios() local 381 quot = (unsigned int)((port->uartclk + baud / 2) / baud); sprd_set_termios() 453 serial_out(port, SPRD_CLKD0, quot & 0xffff); sprd_set_termios() 456 serial_out(port, SPRD_CLKD1, (quot & 0x1f0000) >> 16); sprd_set_termios()
|
H A D | vr41xx_siu.c | 520 unsigned int baud, quot; siu_set_termios() local 549 quot = uart_get_divisor(port, baud); siu_set_termios() 585 siu_write(port, UART_DLL, (uint8_t)quot); siu_set_termios() 586 siu_write(port, UART_DLM, (uint8_t)(quot >> 8)); siu_set_termios()
|
H A D | samsung.c | 1181 unsigned int cnt, baud, quot, clk_sel, best_quot = 0; s3c24xx_serial_getclk() local 1211 quot = div / 16; s3c24xx_serial_getclk() 1214 quot = (rate + (8 * req_baud)) / (16 * req_baud); s3c24xx_serial_getclk() 1215 baud = rate / (quot * 16); s3c24xx_serial_getclk() 1217 quot--; s3c24xx_serial_getclk() 1225 best_quot = quot; s3c24xx_serial_getclk() 1266 unsigned int baud, quot, clk_sel = 0; s3c24xx_serial_set_termios() local 1282 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); s3c24xx_serial_set_termios() 1284 quot = port->custom_divisor; s3c24xx_serial_set_termios() 1354 ulcon, quot, udivslot); s3c24xx_serial_set_termios() 1357 wr_regl(port, S3C2410_UBRDIV, quot); s3c24xx_serial_set_termios()
|
H A D | sunhv.c | 327 unsigned int quot = uart_get_divisor(port, baud); sunhv_set_termios() local 344 (port->uartclk / (16 * quot))); sunhv_set_termios()
|
H A D | mxs-auart.c | 1039 unsigned int lcr_h, quot; auart_console_get_options() local 1059 quot = ((readl(port->membase + AUART_LINECTRL) auart_console_get_options() 1062 quot |= ((readl(port->membase + AUART_LINECTRL) auart_console_get_options() 1065 if (quot == 0) auart_console_get_options() 1066 quot = 1; auart_console_get_options() 1068 *baud = (port->uartclk << 2) / quot; auart_console_get_options()
|
H A D | amba-pl011.c | 1767 unsigned int baud, quot, clkdiv; pl011_set_termios() local 1788 quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud); pl011_set_termios() 1790 quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud); pl011_set_termios() 1883 if ((baud >= 3000000) && (baud < 3250000) && (quot > 1)) pl011_set_termios() 1884 quot -= 1; pl011_set_termios() 1885 else if ((baud > 3250000) && (quot > 2)) pl011_set_termios() 1886 quot -= 2; pl011_set_termios() 1889 writew(quot & 0x3f, port->membase + UART011_FBRD); pl011_set_termios() 1890 writew(quot >> 6, port->membase + UART011_IBRD); pl011_set_termios()
|
H A D | atmel_serial.c | 1965 unsigned int old_mode, mode, imr, quot, baud; atmel_set_termios() local 1975 quot = uart_get_divisor(port, baud); atmel_set_termios() 1977 if (quot > 65535) { /* BRGR is 16-bit, so switch to slower clock */ atmel_set_termios() 1978 quot /= 8; atmel_set_termios() 2094 UART_PUT_BRGR(port, quot); atmel_set_termios() 2376 unsigned int mr, quot; atmel_console_get_options() local 2382 quot = UART_GET_BRGR(port) & ATMEL_US_CD; atmel_console_get_options() 2383 if (!quot) atmel_console_get_options() 2404 *baud = port->uartclk / (16 * (quot - 1)); atmel_console_get_options()
|
H A D | bcm63xx_uart.c | 508 unsigned int ctl, baud, quot, ier; bcm_uart_set_termios() local 552 quot = uart_get_divisor(port, baud) - 1; bcm_uart_set_termios() 553 bcm_uart_writel(port, quot, UART_BAUD_REG); bcm_uart_set_termios()
|
H A D | lpc32xx_hs.c | 539 unsigned int baud, quot; serial_lpc32xx_set_termios() local 551 quot = __serial_get_clock_div(port->uartclk, baud); serial_lpc32xx_set_termios() 563 writel(quot, LPC32XX_HSUART_RATE(port->membase)); serial_lpc32xx_set_termios()
|
H A D | bfin_uart.c | 787 unsigned int baud, quot; bfin_serial_set_termios() local 858 quot = uart_get_divisor(port, baud); bfin_serial_set_termios() 862 quot -= ANOMALY_05000230; bfin_serial_set_termios() 882 UART_PUT_CLK(uart, quot); bfin_serial_set_termios()
|
H A D | omap-serial.c | 867 unsigned int baud, quot; serial_omap_set_termios() local 899 quot = serial_omap_get_divisor(port, baud); serial_omap_set_termios() 906 up->dll = quot & 0xff; serial_omap_set_termios() 907 up->dlh = quot >> 8; serial_omap_set_termios()
|
H A D | imx.c | 1276 unsigned int ucr2, old_ucr1, old_txrxen, baud, quot; imx_set_termios() local 1340 quot = uart_get_divisor(port, baud); imx_set_termios() 1392 if (baud == 38400 && quot != div) imx_set_termios() 1393 baud = sport->port.uartclk / (quot * 16); imx_set_termios()
|
H A D | m32r_sio.c | 696 unsigned int baud, quot; m32r_sio_set_termios() local 733 quot = m32r_sio_get_divisor(port, baud); m32r_sio_set_termios()
|
H A D | serial_core.c | 416 unsigned int quot; uart_get_divisor() local 422 quot = port->custom_divisor; uart_get_divisor() 424 quot = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); uart_get_divisor() 426 return quot; uart_get_divisor()
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | elsa_ser.c | 110 int quot = 0, baud_base; change_speed() local 118 quot = baud_base / baud; change_speed() 120 if (!quot) change_speed() 121 quot = baud_base / 9600; change_speed() 124 if ((baud_base / quot) < 2400) change_speed() 134 debugl1(cs, "modem quot=0x%x", quot); change_speed() 136 serial_outp(cs, UART_DLL, quot & 0xff); /* LS of divisor */ change_speed() 137 serial_outp(cs, UART_DLM, quot >> 8); /* MS of divisor */ change_speed()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | perf_event.h | 472 * u64 quot, rem; 475 * quot = (cyc >> time_shift); 477 * delta = time_offset + quot * time_mult + 488 * quot = count / running; 490 * count = quot * enabled + (rem * enabled) / running; 500 * quot = time / time_mult; 502 * cyc = (quot << time_shift) + (rem << time_shift) / time_mult; 506 * quot = cyc >> time_shift; 508 * timestamp = time_zero + quot * time_mult +
|
/linux-4.1.27/drivers/tty/ |
H A D | amiserial.c | 106 int quot; member in struct:serial_state 662 int quot = 0, baud_base, baud; change_speed() local 693 quot = info->custom_divisor; change_speed() 697 quot = (2*baud_base / 269); change_speed() 699 quot = baud_base / baud; change_speed() 702 if (!quot && old_termios) { change_speed() 711 quot = info->custom_divisor; change_speed() 715 quot = (2*baud_base / 269); change_speed() 717 quot = baud_base / baud; change_speed() 721 if (!quot) change_speed() 722 quot = baud_base / 9600; change_speed() 723 info->quot = quot; change_speed() 724 info->timeout = ((info->xmit_fifo_size*HZ*bits*quot) / baud_base); change_speed() 782 serper = quot - 1; change_speed() 1575 if (state->quot) line_info() 1576 seq_printf(m, " baud:%d", state->baud_base / state->quot); line_info()
|
H A D | mxser.c | 574 int quot = 0, baud; mxser_set_baud() local 584 quot = 2 * info->baud_base / 269; mxser_set_baud() 587 quot = info->baud_base / newspd; mxser_set_baud() 588 if (quot == 0) mxser_set_baud() 589 quot = 1; mxser_set_baud() 590 baud = info->baud_base/quot; mxser_set_baud() 593 quot = 0; mxser_set_baud() 596 info->timeout = ((info->xmit_fifo_size * HZ * 10 * quot) / info->baud_base); mxser_set_baud() 599 if (quot) { mxser_set_baud() 612 outb(quot & 0xff, info->ioaddr + UART_DLL); /* LS of divisor */ mxser_set_baud() 613 outb(quot >> 8, info->ioaddr + UART_DLM); /* MS of divisor */ mxser_set_baud() 618 quot = info->baud_base % newspd; mxser_set_baud() 619 quot *= 8; mxser_set_baud() 620 if (quot % newspd > newspd / 2) { mxser_set_baud() 621 quot /= newspd; mxser_set_baud() 622 quot++; mxser_set_baud() 624 quot /= newspd; mxser_set_baud() 626 mxser_set_must_enum_value(info->ioaddr, quot); mxser_set_baud()
|
/linux-4.1.27/arch/m68k/math-emu/ |
H A D | fp_arith.c | 372 unsigned long quot, rem; fp_fsgldiv() local 423 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); fp_fsgldiv() 424 dest->mant.m32[0] = 0x80000000 | (quot >> 1); fp_fsgldiv() 425 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ fp_fsgldiv() 427 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); fp_fsgldiv() 428 dest->mant.m32[0] = quot; fp_fsgldiv()
|
H A D | multi_arith.h | 131 #define fp_div64(quot, rem, srch, srcl, div) \ 132 asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | time.c | 245 u64 quot = (u64)nsecs >> dev->shift; ns2cycles() local 247 return quot * dev->mult + ((rem * dev->mult) >> dev->shift); ns2cycles()
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | setup.c | 526 unsigned long clkc, psr, quot; determine_clocks() local 626 quot = 1; determine_clocks() 627 while (__serial_clock_speed_HZ / quot / 16 / 65536 > 3000) determine_clocks() 628 quot += 1; determine_clocks() 634 quot <<= 1; determine_clocks() 636 __serial_clock_speed_HZ /= quot; determine_clocks() 641 printk(" uart=%luMHz\n", __serial_clock_speed_HZ / 1000000 * quot); determine_clocks() 649 __set_UCPVR(quot); determine_clocks()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | devices.c | 102 u32 quot; iwl_usecs_to_beacons() local 109 quot = (usec / interval) & iwl_usecs_to_beacons() 115 return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem; iwl_usecs_to_beacons()
|
/linux-4.1.27/drivers/net/irda/ |
H A D | bfin_sir.c | 96 unsigned int quot; bfin_sir_set_speed() local 115 quot = (port->clk + (8 * speed)) / (16 * speed); bfin_sir_set_speed() 136 UART_PUT_DLL(port, quot & 0xFF); bfin_sir_set_speed() 137 UART_PUT_DLH(port, (quot >> 8) & 0xFF); bfin_sir_set_speed()
|
/linux-4.1.27/drivers/staging/dgnc/ |
H A D | dgnc_cls.c | 440 int quot = 0; cls_param() local 608 quot = ch->ch_bd->bd_dividend / baud; cls_param() 610 if (quot != 0 && ch->ch_old_baud != baud) { cls_param() 613 writeb((quot & 0xff), &ch->ch_cls_uart->txrx); cls_param() 614 writeb((quot >> 8), &ch->ch_cls_uart->ier); cls_param()
|
H A D | dgnc_neo.c | 602 int quot = 0; neo_param() local 765 quot = ch->ch_bd->bd_dividend / baud; neo_param() 767 if (quot != 0 && ch->ch_old_baud != baud) { neo_param() 770 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); neo_param() 771 writeb((quot >> 8), &ch->ch_neo_uart->ier); neo_param()
|
/linux-4.1.27/drivers/tty/serial/jsm/ |
H A D | jsm_cls.c | 693 int quot = 0; cls_param() local 770 quot = ch->ch_bd->bd_dividend / baud; cls_param() 772 if (quot != 0) { cls_param() 774 writeb((quot & 0xff), &ch->ch_cls_uart->txrx); cls_param() 775 writeb((quot >> 8), &ch->ch_cls_uart->ier); cls_param()
|
H A D | jsm_neo.c | 940 int quot; neo_param() local 1040 quot = ch->ch_bd->bd_dividend / baud; neo_param() 1042 if (quot != 0) { neo_param() 1044 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); neo_param() 1045 writeb((quot >> 8), &ch->ch_neo_uart->ier); neo_param()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | isp116x-hcd.c | 94 int quot = len % 4; write_ptddata_to_fifo() local 119 if (quot == 1 || quot == 2) write_ptddata_to_fifo() 131 int quot = len % 4; read_ptddata_from_fifo() local 157 if (quot == 1 || quot == 2) read_ptddata_from_fifo()
|
/linux-4.1.27/fs/f2fs/ |
H A D | segment.c | 82 unsigned long quot, rest; __find_rev_next_bit() local 93 quot = (offset >> 3) << 3; __find_rev_next_bit() 95 mask = ~0UL << quot; __find_rev_next_bit() 97 submask <<= quot; __find_rev_next_bit() local 133 unsigned long quot, rest; __find_rev_next_zero_bit() local 144 quot = (offset >> 3) << 3; __find_rev_next_zero_bit() 146 mask = ~(~0UL << quot); __find_rev_next_zero_bit() 148 submask <<= quot; __find_rev_next_zero_bit() local
|
/linux-4.1.27/drivers/mmc/card/ |
H A D | sdio_uart.c | 257 unsigned int baud, quot; sdio_uart_change_speed() local 299 quot = (2 * port->uartclk + baud) / (2 * baud); sdio_uart_change_speed() 345 sdio_out(port, UART_DLL, quot & 0xff); sdio_uart_change_speed() 346 sdio_out(port, UART_DLM, quot >> 8); sdio_uart_change_speed()
|
/linux-4.1.27/arch/m68k/ifpsp060/src/ |
H A D | ilsp.S | 205 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?
|
H A D | isp.S | 2175 beq.b dqpos # branch to quot positive 2179 cmpi.l %d6, &0x80000000 # will (-quot) fit in 32 bits? 2182 neg.l %d6 # make (-quot) 2's comp 2187 btst &0x1f, %d6 # will (+quot) fit in 32 bits?
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-pxa2xx.c | 706 /* Calculate initial quot */ quark_x1000_get_clk_div() 756 /* Calculate initial quot */ quark_x1000_get_clk_div()
|
/linux-4.1.27/drivers/isdn/i4l/ |
H A D | isdn_tty.c | 1007 quot; isdn_tty_change_speed() local 1014 quot = i = cflag & CBAUD; isdn_tty_change_speed() 1022 if (quot) { isdn_tty_change_speed()
|
/linux-4.1.27/scripts/kconfig/ |
H A D | qconf.cc | 1145 res.replace(i, 1, """); print_filter()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | common.c | 4892 u32 quot; il_usecs_to_beacons() local 4899 quot = il_usecs_to_beacons() 4910 return (quot << il->hw_params.beacon_time_tsf_bits) + rem; il_usecs_to_beacons()
|