denom 230 arch/mips/netlogic/xlp/nlm_hal.c unsigned int pll_post_div, ctrl_val0, ctrl_val1, denom; denom 268 arch/mips/netlogic/xlp/nlm_hal.c denom = 3 * pll_post_div; denom 269 arch/mips/netlogic/xlp/nlm_hal.c do_div(num, denom); denom 277 arch/mips/netlogic/xlp/nlm_hal.c unsigned int rstval, dfsval, denom; denom 289 arch/mips/netlogic/xlp/nlm_hal.c denom = 3 * pll_divr * ext_div * dfs_div; denom 290 arch/mips/netlogic/xlp/nlm_hal.c do_div(num, denom); denom 450 drivers/clk/clk-si5351.c unsigned long rfrac, denom, a, b, c; denom 467 drivers/clk/clk-si5351.c denom = 1000 * 1000; denom 469 drivers/clk/clk-si5351.c lltmp *= denom; denom 476 drivers/clk/clk-si5351.c rational_best_approximation(rfrac, denom, denom 694 drivers/clk/clk-si5351.c unsigned long rfrac, denom; denom 710 drivers/clk/clk-si5351.c denom = 1000 * 1000; denom 712 drivers/clk/clk-si5351.c lltmp *= denom; denom 719 drivers/clk/clk-si5351.c rational_best_approximation(rfrac, denom, denom 226 drivers/clk/clk-xgene.c u64 denom; denom 261 drivers/clk/clk-xgene.c scale = fd->denom - scale; denom 266 drivers/clk/clk-xgene.c do_div(ret, fd->denom); denom 284 drivers/clk/clk-xgene.c ret = rate * fd->denom; denom 288 drivers/clk/clk-xgene.c do_div(ret, fd->denom); denom 307 drivers/clk/clk-xgene.c ret = rate * fd->denom; denom 312 drivers/clk/clk-xgene.c scale = fd->denom - scale; denom 344 drivers/clk/clk-xgene.c u8 width, u64 denom, u32 clk_flags, spinlock_t *lock) denom 363 drivers/clk/clk-xgene.c fd->denom = denom; denom 384 drivers/clk/clk-xgene.c u64 denom; denom 405 drivers/clk/clk-xgene.c denom = BIT(XGENE_CLK_PMD_WIDTH); denom 411 drivers/clk/clk-xgene.c XGENE_CLK_PMD_WIDTH, denom, denom 1779 drivers/hid/wacom_wac.c int value, int num, int denom) denom 1784 drivers/hid/wacom_wac.c value += num*range/denom; denom 1800 drivers/media/dvb-frontends/dib7000p.c u32 tmp, denom; denom 1871 drivers/media/dvb-frontends/dib7000p.c denom = bits_per_symbol * rate_num * fft_div * 384; denom 1879 drivers/media/dvb-frontends/dib7000p.c if (!denom) denom 1887 drivers/media/dvb-frontends/dib7000p.c time_us += denom / 2; denom 1888 drivers/media/dvb-frontends/dib7000p.c do_div(time_us, denom); denom 2441 drivers/media/dvb-frontends/dib7000p.c u32 denom = P_Kout; denom 2442 drivers/media/dvb-frontends/dib7000p.c u32 syncFreq = ((nom << quantif) / denom); denom 1384 drivers/media/dvb-frontends/dib8000.c u32 denom = P_Kout; denom 1385 drivers/media/dvb-frontends/dib8000.c u32 syncFreq = ((nom << quantif) / denom); denom 3989 drivers/media/dvb-frontends/dib8000.c u32 tmp, denom; denom 4030 drivers/media/dvb-frontends/dib8000.c denom = 0; denom 4076 drivers/media/dvb-frontends/dib8000.c denom += bits_per_symbol * rate_num * fft_div * nsegs * 384; denom 4080 drivers/media/dvb-frontends/dib8000.c if (!denom) denom 4088 drivers/media/dvb-frontends/dib8000.c time_us += denom / 2; denom 4089 drivers/media/dvb-frontends/dib8000.c do_div(time_us, denom); denom 1628 drivers/media/platform/vivid/vivid-vid-cap.c u32 *num, u32 *denom) denom 1632 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 3; denom 1635 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 9; denom 1638 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 10; denom 1641 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 4; denom 1644 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 9; denom 1647 drivers/media/platform/vivid/vivid-vid-cap.c *denom = 9; denom 1403 drivers/media/tuners/mt2063.c static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num, u32 denom) denom 1406 drivers/media/tuners/mt2063.c u32 term1 = t1 / denom; denom 1407 drivers/media/tuners/mt2063.c u32 loss = t1 % denom; denom 1409 drivers/media/tuners/mt2063.c (((f_ref & 0x00003FFF) * num + (loss << 14)) + (denom / 2)) / denom; denom 553 drivers/net/wireless/intel/iwlegacy/4965.c il4965_math_div_round(s32 num, s32 denom, s32 * res) denom 561 drivers/net/wireless/intel/iwlegacy/4965.c if (denom < 0) { denom 563 drivers/net/wireless/intel/iwlegacy/4965.c denom = -denom; denom 565 drivers/net/wireless/intel/iwlegacy/4965.c *res = ((num * 2 + denom) / (denom * 2)) * sign; denom 440 drivers/net/wireless/intersil/orinoco/wext.c int denom = 1; denom 445 drivers/net/wireless/intersil/orinoco/wext.c denom *= 10; denom 447 drivers/net/wireless/intersil/orinoco/wext.c chan = ieee80211_frequency_to_channel(frq->m / denom); denom 5737 drivers/scsi/scsi_debug.c int denom = (flags & F_SYNC_DELAY) ? 20 : 1; denom 5739 drivers/scsi/scsi_debug.c jdelay = mult_frac(USER_HZ * jdelay, HZ, denom * USER_HZ); denom 87 drivers/scsi/scsi_transport_spi.c static int sprint_frac(char *dest, int value, int denom) denom 89 drivers/scsi/scsi_transport_spi.c int frac = value % denom; denom 90 drivers/scsi/scsi_transport_spi.c int result = sprintf(dest, "%d", value / denom); denom 97 drivers/scsi/scsi_transport_spi.c denom /= 10; denom 98 drivers/scsi/scsi_transport_spi.c sprintf(dest + result, "%d", frac / denom); denom 100 drivers/scsi/scsi_transport_spi.c frac %= denom; denom 479 drivers/thermal/rockchip_thermal.c unsigned int denom; denom 508 drivers/thermal/rockchip_thermal.c denom = table->id[mid + 1].temp - table->id[mid].temp; denom 512 drivers/thermal/rockchip_thermal.c return table->id[mid].code - (num / denom); denom 514 drivers/thermal/rockchip_thermal.c return table->id[mid].code + (num / denom); denom 533 drivers/thermal/rockchip_thermal.c unsigned long denom; denom 585 drivers/thermal/rockchip_thermal.c denom = abs(table->id[mid - 1].code - table->id[mid].code); denom 586 drivers/thermal/rockchip_thermal.c *temp = table->id[mid - 1].temp + (num / denom); denom 1573 drivers/tty/serial/imx.c unsigned long num, denom, old_ubir, old_ubmr; denom 1683 drivers/tty/serial/imx.c 1 << 16, 1 << 16, &num, &denom); denom 1687 drivers/tty/serial/imx.c do_div(tdiv64, denom * 16 * div); denom 1692 drivers/tty/serial/imx.c denom -= 1; denom 1709 drivers/tty/serial/imx.c if (old_ubir != num || old_ubmr != denom) { denom 1711 drivers/tty/serial/imx.c imx_uart_writel(sport, denom, UBMR); denom 583 drivers/video/fbdev/aty/radeon_base.c int hTotal, vTotal, num, denom, m, n; denom 630 drivers/video/fbdev/aty/radeon_base.c denom = 1; denom 636 drivers/video/fbdev/aty/radeon_base.c denom = 2*m; denom 642 drivers/video/fbdev/aty/radeon_base.c denom = 2*m; denom 653 drivers/video/fbdev/aty/radeon_base.c denom *= m; denom 657 drivers/video/fbdev/aty/radeon_base.c denom *= 2; denom 660 drivers/video/fbdev/aty/radeon_base.c denom *= 4; denom 663 drivers/video/fbdev/aty/radeon_base.c denom *= 8; denom 666 drivers/video/fbdev/aty/radeon_base.c denom *= 3; denom 669 drivers/video/fbdev/aty/radeon_base.c denom *= 6; denom 672 drivers/video/fbdev/aty/radeon_base.c denom *= 12; denom 676 drivers/video/fbdev/aty/radeon_base.c vclk *= denom; denom 170 include/linux/kernel.h #define mult_frac(x, numer, denom)( \ denom 172 include/linux/kernel.h typeof(x) quot = (x) / (denom); \ denom 173 include/linux/kernel.h typeof(x) rem = (x) % (denom); \ denom 174 include/linux/kernel.h (quot * (numer)) + ((rem * (numer)) / (denom)); \ denom 317 net/dccp/ccids/ccid2.c int denom = dp->dccps_l_ack_ratio * dp->dccps_l_ack_ratio - denom 320 net/dccp/ccids/ccid2.c denom = hc->tx_cwnd * hc->tx_cwnd / denom; denom 322 net/dccp/ccids/ccid2.c if (hc->tx_arsent >= denom) {