Home
last modified time | relevance | path

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

/linux-4.4.14/lib/
Ddiv64.c96 u64 quot; in div64_u64_rem() local
100 quot = div_u64_rem(dividend, divisor, &rem32); in div64_u64_rem()
104 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
106 if (quot != 0) in div64_u64_rem()
107 quot--; in div64_u64_rem()
109 *remainder = dividend - quot * divisor; in div64_u64_rem()
111 quot++; in div64_u64_rem()
116 return quot; in div64_u64_rem()
136 u64 quot; in div64_u64() local
139 quot = div_u64(dividend, divisor); in div64_u64()
[all …]
/linux-4.4.14/tools/perf/util/
Dtsc.c8 u64 t, quot, rem; in perf_time_to_tsc() local
11 quot = t / tc->time_mult; in perf_time_to_tsc()
13 return (quot << tc->time_shift) + in perf_time_to_tsc()
19 u64 quot, rem; in tsc_to_perf_time() local
21 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
23 return tc->time_zero + quot * tc->time_mult + in tsc_to_perf_time()
Dintel-pt.c656 u64 quot, rem; in intel_pt_ns_to_ticks() local
658 quot = ns / pt->tc.time_mult; in intel_pt_ns_to_ticks()
660 return (quot << pt->tc.time_shift) + (rem << pt->tc.time_shift) / in intel_pt_ns_to_ticks()
/linux-4.4.14/drivers/usb/serial/
Dark3116.c69 int quot; /* baudrate divisor */ member
177 priv->quot = calc_divisor(9600); in ark3116_port_probe()
178 ark3116_write_reg(serial, UART_DLL, priv->quot & 0xff); in ark3116_port_probe()
179 ark3116_write_reg(serial, UART_DLM, (priv->quot>>8) & 0xff); in ark3116_port_probe()
226 int quot; in ark3116_set_termios() local
263 quot = calc_divisor(9600); in ark3116_set_termios()
268 quot = calc_divisor(bps); in ark3116_set_termios()
272 quot = calc_divisor(bps); in ark3116_set_termios()
276 quot = calc_divisor(bps); in ark3116_set_termios()
287 __func__, hcr, lcr, quot); in ark3116_set_termios()
[all …]
/linux-4.4.14/tools/perf/arch/x86/tests/
Drdpmc.c59 u64 quot, rem; in mmap_read_self() local
61 quot = (cyc >> time_shift); in mmap_read_self()
63 delta = time_offset + quot * time_mult + in mmap_read_self()
70 quot = count / running; in mmap_read_self()
72 count = quot * enabled + (rem * enabled) / running; in mmap_read_self()
/linux-4.4.14/drivers/tty/serial/8250/
D8250_mtk.c45 unsigned int baud, quot; in mtk8250_set_termios() local
71 quot = uart_get_divisor(port, baud); in mtk8250_set_termios()
78 quot = DIV_ROUND_UP(port->uartclk, 4 * baud); in mtk8250_set_termios()
85 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
96 serial_dl_write(up, quot); in mtk8250_set_termios()
104 tmp = DIV_ROUND_CLOSEST(port->uartclk, quot * baud); in mtk8250_set_termios()
D8250_port.c954 unsigned short quot; in autoconfig_16550a() local
958 quot = serial_dl_read(up); in autoconfig_16550a()
959 quot <<= 3; in autoconfig_16550a()
962 serial_dl_write(up, quot); in autoconfig_16550a()
2135 unsigned int quot; in serial8250_get_divisor() local
2144 quot = 0x8001; in serial8250_get_divisor()
2147 quot = 0x8002; in serial8250_get_divisor()
2149 quot = xr17v35x_get_divisor(up, baud, frac); in serial8250_get_divisor()
2151 quot = uart_get_divisor(port, baud); in serial8250_get_divisor()
2156 if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0) in serial8250_get_divisor()
[all …]
D8250_omap.c104 u16 quot; member
196 priv->quot = port->custom_divisor & 0xffff; in omap_8250_get_divisor()
221 priv->quot = div_16; in omap_8250_get_divisor()
224 priv->quot = div_13; in omap_8250_get_divisor()
297 serial_dl_write(up, priv->quot); in omap8250_restore_regs()
/linux-4.4.14/drivers/staging/speakup/
Dserialio.c28 int baud = 9600, quot = 0; in spk_serial_init() local
41 quot = ser->baud_base / baud; in spk_serial_init()
68 outb(quot & 0xff, ser->port + UART_DLL); /* LS of divisor */ in spk_serial_init()
69 outb(quot >> 8, ser->port + UART_DLM); /* MS of divisor */ in spk_serial_init()
/linux-4.4.14/arch/powerpc/platforms/embedded6xx/
Dls_uart.c61 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-4.4.14/arch/x86/boot/
Dearly_serial_console.c100 unsigned int quot; in probe_baud() local
107 quot = (dlh << 8) | dll; in probe_baud()
109 return BASE_BAUD / quot; in probe_baud()
/linux-4.4.14/drivers/tty/serial/
D21285.c213 unsigned int baud, quot, h_lcr, b; in serial21285_set_termios() local
230 quot = uart_get_divisor(port, baud); in serial21285_set_termios()
231 b = port->uartclk / (16 * quot); in serial21285_set_termios()
289 quot -= 1; in serial21285_set_termios()
292 *CSR_L_UBRLCR = quot & 0xff; in serial21285_set_termios()
293 *CSR_M_UBRLCR = (quot >> 8) & 0x0f; in serial21285_set_termios()
Dsunsu.c489 unsigned int iflag, unsigned int quot);
494 int quot, new_baud; in sunsu_change_mouse_baud() local
499 quot = up->port.uartclk / (16 * new_baud); in sunsu_change_mouse_baud()
501 sunsu_change_speed(&up->port, up->cflag, 0, quot); in sunsu_change_mouse_baud()
778 unsigned int iflag, unsigned int quot) in sunsu_change_speed() argument
817 if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && in sunsu_change_speed()
819 quot ++; in sunsu_change_speed()
822 if ((up->port.uartclk / quot) < (2400 * 16)) in sunsu_change_speed()
843 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); in sunsu_change_speed()
887 serial_outp(up, UART_DLL, quot & 0xff); /* LS of divisor */ in sunsu_change_speed()
[all …]
Dapbuart.c240 unsigned int baud, quot; in apbuart_set_termios() local
248 quot = (uart_get_divisor(port, baud)) * 2; in apbuart_set_termios()
281 quot -= 1; in apbuart_set_termios()
282 UART_PUT_SCAL(port, quot); in apbuart_set_termios()
459 unsigned int quot, status; in apbuart_console_get_options() local
471 quot = UART_GET_SCAL(port) / 8; in apbuart_console_get_options()
472 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options()
Dserial_txx9.c208 sio_quot_set(struct uart_txx9_port *up, int quot) in sio_quot_set() argument
210 quot >>= 1; in sio_quot_set()
211 if (quot < 256) in sio_quot_set()
212 sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); in sio_quot_set()
213 else if (quot < (256 << 2)) in sio_quot_set()
214 sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); in sio_quot_set()
215 else if (quot < (256 << 4)) in sio_quot_set()
216 sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); in sio_quot_set()
217 else if (quot < (256 << 6)) in sio_quot_set()
218 sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6); in sio_quot_set()
[all …]
Dnetx-serial.c340 unsigned int baud, quot; in netx_set_termios() local
373 quot = baud * 4096; in netx_set_termios()
374 quot /= 1000; in netx_set_termios()
375 quot *= 256; in netx_set_termios()
376 quot /= 100000; in netx_set_termios()
399 writel((quot>>8) & 0xff, port->membase + UART_BAUDDIV_MSB); in netx_set_termios()
400 writel(quot & 0xff, port->membase + UART_BAUDDIV_LSB); in netx_set_termios()
Dsa1100.c423 unsigned int utcr0, old_utcr3, baud, quot; in sa1100_set_termios() local
453 quot = uart_get_divisor(port, baud); in sa1100_set_termios()
508 quot -= 1; in sa1100_set_termios()
509 UART_PUT_UTCR1(sport, ((quot & 0xf00) >> 8)); in sa1100_set_termios()
510 UART_PUT_UTCR2(sport, (quot & 0xff)); in sa1100_set_termios()
757 unsigned int utcr0, quot; in sa1100_console_get_options() local
774 quot = UART_GET_UTCR2(sport) | UART_GET_UTCR1(sport) << 8; in sa1100_console_get_options()
775 quot &= 0xfff; in sa1100_console_get_options()
776 *baud = sport->port.uartclk / (16 * (quot + 1)); in sa1100_console_get_options()
Dclps711x.c265 unsigned int baud, quot; in uart_clps711x_set_termios() local
274 quot = uart_get_divisor(port, baud); in uart_clps711x_set_termios()
317 writel(ubrlcr | (quot - 1), port->membase + UBRLCR_OFFSET); in uart_clps711x_set_termios()
393 unsigned int quot; in uart_clps711x_console_setup() local
422 quot = ubrlcr & UBRLCR_BAUD_MASK; in uart_clps711x_console_setup()
423 baud = port->uartclk / (16 * (quot + 1)); in uart_clps711x_console_setup()
Damba-pl010.c401 unsigned int baud, quot; in pl010_set_termios() local
407 quot = uart_get_divisor(port, baud); in pl010_set_termios()
477 quot -= 1; in pl010_set_termios()
478 writel((quot & 0xf00) >> 8, uap->port.membase + UART010_LCRM); in pl010_set_termios()
479 writel(quot & 0xff, uap->port.membase + UART010_LCRL); in pl010_set_termios()
628 unsigned int lcr_h, quot; in pl010_console_get_options() local
644 quot = readb(uap->port.membase + UART010_LCRL) | in pl010_console_get_options()
646 *baud = uap->port.uartclk / (16 * (quot + 1)); in pl010_console_get_options()
Dpxa.c439 unsigned int baud, quot; in serial_pxa_set_termios() local
469 quot = uart_get_divisor(port, baud); in serial_pxa_set_termios()
471 if ((up->port.uartclk / quot) < (2400 * 16)) in serial_pxa_set_termios()
473 else if ((up->port.uartclk / quot) < (230400 * 16)) in serial_pxa_set_termios()
538 serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ in serial_pxa_set_termios()
545 WARN_ON(dll != (quot & 0xff)); in serial_pxa_set_termios()
547 serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ in serial_pxa_set_termios()
Dsunsab.c684 unsigned int quot) in sunsab_convert_to_sab() argument
769 (up->port.uartclk / (16 * quot))); in sunsab_convert_to_sab()
788 unsigned int quot = uart_get_divisor(port, baud); in sunsab_set_termios() local
791 sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); in sunsab_set_termios()
883 unsigned int baud, quot; in sunsab_console_setup() local
939 quot = uart_get_divisor(&up->port, baud); in sunsab_console_setup()
940 sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); in sunsab_console_setup()
Dsprd_serial.c374 unsigned int baud, quot; in sprd_set_termios() local
381 quot = (unsigned int)((port->uartclk + baud / 2) / baud); in sprd_set_termios()
453 serial_out(port, SPRD_CLKD0, quot & 0xffff); in sprd_set_termios()
456 serial_out(port, SPRD_CLKD1, (quot & 0x1f0000) >> 16); in sprd_set_termios()
Dpnx8xxx_uart.c449 unsigned int lcr_fcr, old_ien, baud, quot; in pnx8xxx_set_termios() local
479 quot = uart_get_divisor(port, baud); in pnx8xxx_set_termios()
549 quot -= 1; in pnx8xxx_set_termios()
550 serial_out(sport, PNX8XXX_BAUD, quot); in pnx8xxx_set_termios()
Dsamsung.c1156 unsigned int cnt, baud, quot, clk_sel, best_quot = 0; in s3c24xx_serial_getclk() local
1186 quot = div / 16; in s3c24xx_serial_getclk()
1189 quot = (rate + (8 * req_baud)) / (16 * req_baud); in s3c24xx_serial_getclk()
1190 baud = rate / (quot * 16); in s3c24xx_serial_getclk()
1192 quot--; in s3c24xx_serial_getclk()
1200 best_quot = quot; in s3c24xx_serial_getclk()
1241 unsigned int baud, quot, clk_sel = 0; in s3c24xx_serial_set_termios() local
1257 quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); in s3c24xx_serial_set_termios()
1259 quot = port->custom_divisor; in s3c24xx_serial_set_termios()
1329 ulcon, quot, udivslot); in s3c24xx_serial_set_termios()
[all …]
Dserial_ks8695.c386 unsigned int baud, quot; in ks8695uart_set_termios() local
392 quot = uart_get_divisor(port, baud); in ks8695uart_set_termios()
472 UART_PUT_BRDR(port, quot); in ks8695uart_set_termios()
Dmxs-auart.c1075 unsigned int lcr_h, quot; in auart_console_get_options() local
1095 quot = ((readl(port->membase + AUART_LINECTRL) in auart_console_get_options()
1098 quot |= ((readl(port->membase + AUART_LINECTRL) in auart_console_get_options()
1101 if (quot == 0) in auart_console_get_options()
1102 quot = 1; in auart_console_get_options()
1104 *baud = (port->uartclk << 2) / quot; in auart_console_get_options()
Dvr41xx_siu.c520 unsigned int baud, quot; in siu_set_termios() local
549 quot = uart_get_divisor(port, baud); in siu_set_termios()
585 siu_write(port, UART_DLL, (uint8_t)quot); in siu_set_termios()
586 siu_write(port, UART_DLM, (uint8_t)(quot >> 8)); in siu_set_termios()
Dlpc32xx_hs.c539 unsigned int baud, quot; in serial_lpc32xx_set_termios() local
551 quot = __serial_get_clock_div(port->uartclk, baud); in serial_lpc32xx_set_termios()
563 writel(quot, LPC32XX_HSUART_RATE(port->membase)); in serial_lpc32xx_set_termios()
Damba-pl011.c1808 unsigned int baud, quot, clkdiv; in pl011_set_termios() local
1829 quot = DIV_ROUND_CLOSEST(port->uartclk * 8, baud); in pl011_set_termios()
1831 quot = DIV_ROUND_CLOSEST(port->uartclk * 4, baud); in pl011_set_termios()
1898 if ((baud >= 3000000) && (baud < 3250000) && (quot > 1)) in pl011_set_termios()
1899 quot -= 1; in pl011_set_termios()
1900 else if ((baud > 3250000) && (quot > 2)) in pl011_set_termios()
1901 quot -= 2; in pl011_set_termios()
1904 writew(quot & 0x3f, port->membase + UART011_FBRD); in pl011_set_termios()
1905 writew(quot >> 6, port->membase + UART011_IBRD); in pl011_set_termios()
Dbcm63xx_uart.c508 unsigned int ctl, baud, quot, ier; in bcm_uart_set_termios() local
552 quot = uart_get_divisor(port, baud) - 1; in bcm_uart_set_termios()
553 bcm_uart_writel(port, quot, UART_BAUD_REG); in bcm_uart_set_termios()
Dsunhv.c328 unsigned int quot = uart_get_divisor(port, baud); in sunhv_set_termios() local
345 (port->uartclk / (16 * quot))); in sunhv_set_termios()
Datmel_serial.c2077 unsigned int old_mode, mode, imr, quot, baud; in atmel_set_termios() local
2087 quot = uart_get_divisor(port, baud); in atmel_set_termios()
2089 if (quot > 65535) { /* BRGR is 16-bit, so switch to slower clock */ in atmel_set_termios()
2090 quot /= 8; in atmel_set_termios()
2212 atmel_uart_writel(port, ATMEL_US_BRGR, quot); in atmel_set_termios()
2495 unsigned int mr, quot; in atmel_console_get_options() local
2501 quot = atmel_uart_readl(port, ATMEL_US_BRGR) & ATMEL_US_CD; in atmel_console_get_options()
2502 if (!quot) in atmel_console_get_options()
2523 *baud = port->uartclk / (16 * (quot - 1)); in atmel_console_get_options()
Dbfin_uart.c787 unsigned int baud, quot; in bfin_serial_set_termios() local
858 quot = uart_get_divisor(port, baud); in bfin_serial_set_termios()
862 quot -= ANOMALY_05000230; in bfin_serial_set_termios()
882 UART_PUT_CLK(uart, quot); in bfin_serial_set_termios()
Domap-serial.c849 unsigned int baud, quot; in serial_omap_set_termios() local
881 quot = serial_omap_get_divisor(port, baud); in serial_omap_set_termios()
888 up->dll = quot & 0xff; in serial_omap_set_termios()
889 up->dlh = quot >> 8; in serial_omap_set_termios()
Dm32r_sio.c696 unsigned int baud, quot; in m32r_sio_set_termios() local
733 quot = m32r_sio_get_divisor(port, baud); in m32r_sio_set_termios()
Dimx.c1287 unsigned int ucr2, old_ucr1, old_ucr2, baud, quot; in imx_set_termios() local
1346 quot = uart_get_divisor(port, baud); in imx_set_termios()
1398 if (baud == 38400 && quot != div) in imx_set_termios()
1399 baud = sport->port.uartclk / (quot * 16); in imx_set_termios()
Dserial_core.c427 unsigned int quot; in uart_get_divisor() local
433 quot = port->custom_divisor; in uart_get_divisor()
435 quot = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); in uart_get_divisor()
437 return quot; in uart_get_divisor()
/linux-4.4.14/drivers/tty/
Damiserial.c106 int quot; member
662 int quot = 0, baud_base, baud; in change_speed() local
693 quot = info->custom_divisor; in change_speed()
697 quot = (2*baud_base / 269); in change_speed()
699 quot = baud_base / baud; in change_speed()
702 if (!quot && old_termios) { in change_speed()
711 quot = info->custom_divisor; in change_speed()
715 quot = (2*baud_base / 269); in change_speed()
717 quot = baud_base / baud; in change_speed()
721 if (!quot) in change_speed()
[all …]
Dmxser.c574 int quot = 0, baud; in mxser_set_baud() local
584 quot = 2 * info->baud_base / 269; in mxser_set_baud()
587 quot = info->baud_base / newspd; in mxser_set_baud()
588 if (quot == 0) in mxser_set_baud()
589 quot = 1; in mxser_set_baud()
590 baud = info->baud_base/quot; in mxser_set_baud()
593 quot = 0; in mxser_set_baud()
596 info->timeout = ((info->xmit_fifo_size * HZ * 10 * quot) / info->baud_base); in mxser_set_baud()
599 if (quot) { in mxser_set_baud()
612 outb(quot & 0xff, info->ioaddr + UART_DLL); /* LS of divisor */ in mxser_set_baud()
[all …]
/linux-4.4.14/arch/m68k/math-emu/
Dfp_arith.c372 unsigned long quot, rem; in fp_fsgldiv() local
423 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
424 dest->mant.m32[0] = 0x80000000 | (quot >> 1); in fp_fsgldiv()
425 dest->mant.m32[1] = (quot & 1) | rem; /* only for rounding */ in fp_fsgldiv()
427 fp_div64(quot, rem, dest->mant.m32[0], 0, src->mant.m32[0]); in fp_fsgldiv()
428 dest->mant.m32[0] = quot; in fp_fsgldiv()
Dmulti_arith.h131 #define fp_div64(quot, rem, srch, srcl, div) \ argument
132 asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
/linux-4.4.14/include/linux/
Dmpi.h106 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);
Dkernel.h125 typeof(x) quot = (x) / (denom); \
127 (quot * (numer)) + ((rem * (numer)) / (denom)); \
/linux-4.4.14/drivers/isdn/hisax/
Delsa_ser.c110 int quot = 0, baud_base; in change_speed() local
118 quot = baud_base / baud; in change_speed()
120 if (!quot) in change_speed()
121 quot = baud_base / 9600; in change_speed()
124 if ((baud_base / quot) < 2400) in change_speed()
134 debugl1(cs, "modem quot=0x%x", quot); in change_speed()
136 serial_outp(cs, UART_DLL, quot & 0xff); /* LS of divisor */ in change_speed()
137 serial_outp(cs, UART_DLM, quot >> 8); /* MS of divisor */ in change_speed()
/linux-4.4.14/arch/frv/kernel/
Dsetup.c526 unsigned long clkc, psr, quot; in determine_clocks() local
626 quot = 1; in determine_clocks()
627 while (__serial_clock_speed_HZ / quot / 16 / 65536 > 3000) in determine_clocks()
628 quot += 1; in determine_clocks()
634 quot <<= 1; in determine_clocks()
636 __serial_clock_speed_HZ /= quot; in determine_clocks()
641 printk(" uart=%luMHz\n", __serial_clock_speed_HZ / 1000000 * quot); in determine_clocks()
649 __set_UCPVR(quot); in determine_clocks()
/linux-4.4.14/arch/tile/kernel/
Dtime.c247 u64 quot = (u64)nsecs >> dev->shift; in ns2cycles() local
249 return quot * dev->mult + ((rem * dev->mult) >> dev->shift); in ns2cycles()
/linux-4.4.14/drivers/tty/serial/jsm/
Djsm_cls.c693 int quot = 0; in cls_param() local
770 quot = ch->ch_bd->bd_dividend / baud; in cls_param()
772 if (quot != 0) { in cls_param()
774 writeb((quot & 0xff), &ch->ch_cls_uart->txrx); in cls_param()
775 writeb((quot >> 8), &ch->ch_cls_uart->ier); in cls_param()
Djsm_neo.c940 int quot; in neo_param() local
1040 quot = ch->ch_bd->bd_dividend / baud; in neo_param()
1042 if (quot != 0) { in neo_param()
1044 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); in neo_param()
1045 writeb((quot >> 8), &ch->ch_neo_uart->ier); in neo_param()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Ddevices.c102 u32 quot; in iwl_usecs_to_beacons() local
109 quot = (usec / interval) & in iwl_usecs_to_beacons()
115 return (quot << IWLAGN_EXT_BEACON_TIME_POS) + rem; in iwl_usecs_to_beacons()
/linux-4.4.14/drivers/net/irda/
Dbfin_sir.c96 unsigned int quot; in bfin_sir_set_speed() local
115 quot = (port->clk + (8 * speed)) / (16 * speed); in bfin_sir_set_speed()
136 UART_PUT_DLL(port, quot & 0xFF); in bfin_sir_set_speed()
137 UART_PUT_DLH(port, (quot >> 8) & 0xFF); in bfin_sir_set_speed()
/linux-4.4.14/drivers/staging/dgnc/
Ddgnc_cls.c433 int quot = 0; in cls_param() local
600 quot = ch->ch_bd->bd_dividend / baud; in cls_param()
602 if (quot != 0 && ch->ch_old_baud != baud) { in cls_param()
605 writeb((quot & 0xff), &ch->ch_cls_uart->txrx); in cls_param()
606 writeb((quot >> 8), &ch->ch_cls_uart->ier); in cls_param()
Ddgnc_neo.c585 int quot = 0; in neo_param() local
747 quot = ch->ch_bd->bd_dividend / baud; in neo_param()
749 if (quot != 0 && ch->ch_old_baud != baud) { in neo_param()
752 writeb((quot & 0xff), &ch->ch_neo_uart->txrx); in neo_param()
753 writeb((quot >> 8), &ch->ch_neo_uart->ier); in neo_param()
/linux-4.4.14/drivers/usb/host/
Disp116x-hcd.c94 int quot = len % 4; in write_ptddata_to_fifo() local
119 if (quot == 1 || quot == 2) in write_ptddata_to_fifo()
131 int quot = len % 4; in read_ptddata_from_fifo() local
157 if (quot == 1 || quot == 2) in read_ptddata_from_fifo()
/linux-4.4.14/drivers/mmc/card/
Dsdio_uart.c257 unsigned int baud, quot; in sdio_uart_change_speed() local
299 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
345 sdio_out(port, UART_DLL, quot & 0xff); in sdio_uart_change_speed()
346 sdio_out(port, UART_DLM, quot >> 8); in sdio_uart_change_speed()
/linux-4.4.14/arch/m68k/ifpsp060/src/
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
/linux-4.4.14/drivers/isdn/i4l/
Disdn_tty.c1007 quot; in isdn_tty_change_speed() local
1014 quot = i = cflag & CBAUD; in isdn_tty_change_speed()
1022 if (quot) { in isdn_tty_change_speed()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Dcommon.c4892 u32 quot; in il_usecs_to_beacons() local
4899 quot = in il_usecs_to_beacons()
4910 return (quot << il->hw_params.beacon_time_tsf_bits) + rem; in il_usecs_to_beacons()