frac 647 arch/alpha/kernel/traps.c unsigned long frac = (s_mem >> 0) & 0x7fffff; frac 665 arch/alpha/kernel/traps.c return (sign << 63) | (exp << 52) | (frac << 29); frac 213 arch/mips/ath79/clock.c u32 frac, u32 out_div) frac 225 arch/mips/ath79/clock.c do_div(t, ref_div * frac); frac 238 arch/mips/ath79/clock.c u32 pll, out_div, ref_div, nint, nfrac, frac, clk_ctrl, postdiv; frac 263 arch/mips/ath79/clock.c frac = 1 << 18; frac 274 arch/mips/ath79/clock.c frac = 1 << 6; frac 278 arch/mips/ath79/clock.c nfrac, frac, out_div); frac 290 arch/mips/ath79/clock.c frac = 1 << 18; frac 301 arch/mips/ath79/clock.c frac = 1 << 10; frac 305 arch/mips/ath79/clock.c nfrac, frac, out_div); frac 356 arch/mips/ath79/clock.c u32 pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv; frac 375 arch/mips/ath79/clock.c frac = (pll >> QCA953X_PLL_CPU_CONFIG_NFRAC_SHIFT) & frac 379 arch/mips/ath79/clock.c cpu_pll += frac * (ref_rate >> 6) / ref_div; frac 389 arch/mips/ath79/clock.c frac = (pll >> QCA953X_PLL_DDR_CONFIG_NFRAC_SHIFT) & frac 393 arch/mips/ath79/clock.c ddr_pll += frac * (ref_rate >> 6) / (ref_div << 4); frac 439 arch/mips/ath79/clock.c u32 pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv; frac 458 arch/mips/ath79/clock.c frac = (pll >> QCA955X_PLL_CPU_CONFIG_NFRAC_SHIFT) & frac 462 arch/mips/ath79/clock.c cpu_pll += frac * ref_rate / (ref_div * (1 << 6)); frac 472 arch/mips/ath79/clock.c frac = (pll >> QCA955X_PLL_DDR_CONFIG_NFRAC_SHIFT) & frac 476 arch/mips/ath79/clock.c ddr_pll += frac * ref_rate / (ref_div * (1 << 10)); frac 41 arch/powerpc/kernel/vecemu.c unsigned int mant, frac; frac 75 arch/powerpc/kernel/vecemu.c asm("mulhwu %0,%1,%2" : "=r" (frac) frac 77 arch/powerpc/kernel/vecemu.c asm("mulhwu %0,%1,%2" : "=r" (frac) : "r" (frac), "r" (mant)); frac 78 arch/powerpc/kernel/vecemu.c mant += frac; frac 95 arch/powerpc/kernel/vecemu.c int exp, mant, lz, frac; frac 135 arch/powerpc/kernel/vecemu.c asm("mulhwu %0,%1,%2" : "=r" (frac) frac 137 arch/powerpc/kernel/vecemu.c exp += frac; frac 202 arch/sh/kernel/cpu/sh2a/fpu.c int frac; frac 215 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x007fffff) | 0x00800000; frac 216 arch/sh/kernel/cpu/sh2a/fpu.c frac -= iy; frac 217 arch/sh/kernel/cpu/sh2a/fpu.c while (frac < 0x00800000) { frac 219 arch/sh/kernel/cpu/sh2a/fpu.c return frac; frac 220 arch/sh/kernel/cpu/sh2a/fpu.c frac <<= 1; frac 223 arch/sh/kernel/cpu/sh2a/fpu.c return (exp << 23) | (frac & 0x007fffff); frac 229 arch/sh/kernel/cpu/sh2a/fpu.c int frac; frac 242 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x007fffff) | 0x00800000; frac 243 arch/sh/kernel/cpu/sh2a/fpu.c frac += iy; frac 244 arch/sh/kernel/cpu/sh2a/fpu.c if (frac >= 0x01000000) { frac 245 arch/sh/kernel/cpu/sh2a/fpu.c frac >>= 1; frac 249 arch/sh/kernel/cpu/sh2a/fpu.c return (exp << 23) | (frac & 0x007fffff); frac 287 arch/sh/kernel/cpu/sh2a/fpu.c long long frac; frac 300 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x000fffffffffffffLL) | 0x0010000000000000LL; frac 301 arch/sh/kernel/cpu/sh2a/fpu.c frac -= iy; frac 302 arch/sh/kernel/cpu/sh2a/fpu.c while (frac < 0x0010000000000000LL) { frac 304 arch/sh/kernel/cpu/sh2a/fpu.c return frac; frac 305 arch/sh/kernel/cpu/sh2a/fpu.c frac <<= 1; frac 308 arch/sh/kernel/cpu/sh2a/fpu.c return ((long long)exp << 52) | (frac & 0x000fffffffffffffLL); frac 314 arch/sh/kernel/cpu/sh2a/fpu.c long long frac; frac 327 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x000fffffffffffffLL) | 0x0010000000000000LL; frac 328 arch/sh/kernel/cpu/sh2a/fpu.c frac += iy; frac 329 arch/sh/kernel/cpu/sh2a/fpu.c if (frac >= 0x0020000000000000LL) { frac 330 arch/sh/kernel/cpu/sh2a/fpu.c frac >>= 1; frac 334 arch/sh/kernel/cpu/sh2a/fpu.c return (exp << 52) | (frac & 0x000fffffffffffffLL); frac 84 drivers/clk/at91/clk-audio-pll.c struct clk_audio_frac *frac = to_clk_audio_frac(hw); frac 86 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL0, frac 88 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL0, frac 91 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL1, frac 92 drivers/clk/at91/clk-audio-pll.c AT91_PMC_AUDIO_PLL_FRACR_MASK, frac->fracr); frac 98 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL0, frac 102 drivers/clk/at91/clk-audio-pll.c AT91_PMC_AUDIO_PLL_ND(frac->nd)); frac 134 drivers/clk/at91/clk-audio-pll.c struct clk_audio_frac *frac = to_clk_audio_frac(hw); frac 136 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL0, frac 139 drivers/clk/at91/clk-audio-pll.c regmap_update_bits(frac->regmap, AT91_PMC_AUDIO_PLL0, frac 176 drivers/clk/at91/clk-audio-pll.c struct clk_audio_frac *frac = to_clk_audio_frac(hw); frac 179 drivers/clk/at91/clk-audio-pll.c fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); frac 182 drivers/clk/at91/clk-audio-pll.c fout, frac->nd, (unsigned long)frac->fracr); frac 367 drivers/clk/at91/clk-audio-pll.c struct clk_audio_frac *frac = to_clk_audio_frac(hw); frac 381 drivers/clk/at91/clk-audio-pll.c frac->nd = nd; frac 382 drivers/clk/at91/clk-audio-pll.c frac->fracr = fracr; frac 49 drivers/clk/at91/clk-sam9x60-pll.c u32 frac; frac 254 drivers/clk/at91/clk-sam9x60-pll.c pll->frac = bestfrac; frac 812 drivers/clk/clk-stm32mp1.c u32 reg, frac = 0; frac 816 drivers/clk/clk-stm32mp1.c frac = (reg >> FRAC_SHIFT) & FRAC_MASK; frac 818 drivers/clk/clk-stm32mp1.c return frac; frac 826 drivers/clk/clk-stm32mp1.c u32 frac, divm, divn; frac 837 drivers/clk/clk-stm32mp1.c frac = pll_frac_val(hw); frac 838 drivers/clk/clk-stm32mp1.c if (frac) { frac 839 drivers/clk/clk-stm32mp1.c rate_frac = (u64)parent_rate * (u64)frac; frac 56 drivers/clk/imx/clk-pfd.c u8 frac = (readl_relaxed(pfd->reg) >> (pfd->idx * 8)) & 0x3f; frac 59 drivers/clk/imx/clk-pfd.c do_div(tmp, frac); frac 68 drivers/clk/imx/clk-pfd.c u8 frac; frac 72 drivers/clk/imx/clk-pfd.c frac = tmp; frac 73 drivers/clk/imx/clk-pfd.c if (frac < 12) frac 74 drivers/clk/imx/clk-pfd.c frac = 12; frac 75 drivers/clk/imx/clk-pfd.c else if (frac > 35) frac 76 drivers/clk/imx/clk-pfd.c frac = 35; frac 79 drivers/clk/imx/clk-pfd.c do_div(tmp, frac); frac 89 drivers/clk/imx/clk-pfd.c u8 frac; frac 93 drivers/clk/imx/clk-pfd.c frac = tmp; frac 94 drivers/clk/imx/clk-pfd.c if (frac < 12) frac 95 drivers/clk/imx/clk-pfd.c frac = 12; frac 96 drivers/clk/imx/clk-pfd.c else if (frac > 35) frac 97 drivers/clk/imx/clk-pfd.c frac = 35; frac 100 drivers/clk/imx/clk-pfd.c writel_relaxed(frac << (pfd->idx * 8), pfd->reg + SET); frac 84 drivers/clk/imx/clk-pfdv2.c u8 frac; frac 86 drivers/clk/imx/clk-pfdv2.c frac = (readl_relaxed(pfd->reg) >> pfd->frac_off) frac 89 drivers/clk/imx/clk-pfdv2.c if (!frac) { frac 96 drivers/clk/imx/clk-pfdv2.c do_div(tmp, frac); frac 105 drivers/clk/imx/clk-pfdv2.c u8 frac; frac 109 drivers/clk/imx/clk-pfdv2.c frac = tmp; frac 111 drivers/clk/imx/clk-pfdv2.c if (frac < 12) frac 112 drivers/clk/imx/clk-pfdv2.c frac = 12; frac 113 drivers/clk/imx/clk-pfdv2.c else if (frac > 35) frac 114 drivers/clk/imx/clk-pfdv2.c frac = 35; frac 118 drivers/clk/imx/clk-pfdv2.c do_div(tmp, frac); frac 140 drivers/clk/imx/clk-pfdv2.c u8 frac; frac 144 drivers/clk/imx/clk-pfdv2.c frac = tmp; frac 145 drivers/clk/imx/clk-pfdv2.c if (frac < 12) frac 146 drivers/clk/imx/clk-pfdv2.c frac = 12; frac 147 drivers/clk/imx/clk-pfdv2.c else if (frac > 35) frac 148 drivers/clk/imx/clk-pfdv2.c frac = 35; frac 153 drivers/clk/imx/clk-pfdv2.c val |= frac << pfd->frac_off; frac 42 drivers/clk/meson/axg.c .frac = { frac 203 drivers/clk/meson/axg.c .frac = { frac 275 drivers/clk/meson/axg.c .frac = { frac 728 drivers/clk/meson/axg.c .frac = { frac 50 drivers/clk/meson/clk-mpll.c uint64_t frac = do_div(div, requested_rate); frac 52 drivers/clk/meson/clk-mpll.c frac *= SDM_DEN; frac 55 drivers/clk/meson/clk-mpll.c *sdm = DIV_ROUND_CLOSEST_ULL(frac, requested_rate); frac 57 drivers/clk/meson/clk-mpll.c *sdm = DIV_ROUND_UP_ULL(frac, requested_rate); frac 49 drivers/clk/meson/clk-pll.c !MESON_PARM_APPLICABLE(&pll->frac)) frac 57 drivers/clk/meson/clk-pll.c unsigned int frac, frac 62 drivers/clk/meson/clk-pll.c if (frac && MESON_PARM_APPLICABLE(&pll->frac)) { frac 63 drivers/clk/meson/clk-pll.c u64 frac_rate = (u64)parent_rate * frac; frac 66 drivers/clk/meson/clk-pll.c (1 << pll->frac.width)); frac 77 drivers/clk/meson/clk-pll.c unsigned int m, n, frac; frac 91 drivers/clk/meson/clk-pll.c frac = MESON_PARM_APPLICABLE(&pll->frac) ? frac 92 drivers/clk/meson/clk-pll.c meson_parm_read(clk->map, &pll->frac) : frac 95 drivers/clk/meson/clk-pll.c return __pll_params_to_rate(parent_rate, m, n, frac, pll); frac 104 drivers/clk/meson/clk-pll.c unsigned int frac_max = (1 << pll->frac.width); frac 250 drivers/clk/meson/clk-pll.c unsigned int m, n, frac; frac 260 drivers/clk/meson/clk-pll.c if (!MESON_PARM_APPLICABLE(&pll->frac) || rate == round) frac 267 drivers/clk/meson/clk-pll.c frac = __pll_params_with_frac(rate, *parent_rate, m, n, pll); frac 269 drivers/clk/meson/clk-pll.c return __pll_params_to_rate(*parent_rate, m, n, frac, pll); frac 366 drivers/clk/meson/clk-pll.c unsigned int enabled, m, n, frac = 0, ret; frac 385 drivers/clk/meson/clk-pll.c if (MESON_PARM_APPLICABLE(&pll->frac)) { frac 386 drivers/clk/meson/clk-pll.c frac = __pll_params_with_frac(rate, parent_rate, m, n, pll); frac 387 drivers/clk/meson/clk-pll.c meson_parm_write(clk->map, &pll->frac, frac); frac 36 drivers/clk/meson/clk-pll.h struct parm frac; frac 46 drivers/clk/meson/g12a.c .frac = { frac 1627 drivers/clk/meson/g12a.c .frac = { frac 1692 drivers/clk/meson/g12a.c .frac = { frac 1767 drivers/clk/meson/g12a.c .frac = { frac 1859 drivers/clk/meson/g12a.c .frac = { frac 1953 drivers/clk/meson/g12a.c .frac = { frac 102 drivers/clk/meson/gxbb.c .frac = { frac 179 drivers/clk/meson/gxbb.c .frac = { frac 233 drivers/clk/meson/gxbb.c .frac = { frac 500 drivers/clk/meson/gxbb.c .frac = { frac 81 drivers/clk/meson/meson8b.c .frac = { frac 145 drivers/clk/meson/meson8b.c .frac = { frac 320 drivers/clk/microchip/clk-core.c u64 frac; frac 335 drivers/clk/microchip/clk-core.c frac = 0; frac 340 drivers/clk/microchip/clk-core.c frac = parent_rate; frac 341 drivers/clk/microchip/clk-core.c frac <<= 8; frac 342 drivers/clk/microchip/clk-core.c do_div(frac, rate); frac 343 drivers/clk/microchip/clk-core.c frac -= (u64)(div << 9); frac 346 drivers/clk/microchip/clk-core.c rotrim = (frac >= REFO_TRIM_MAX) ? REFO_TRIM_MAX : frac; frac 36 drivers/clk/mxs/clk-frac.c struct clk_frac *frac = to_clk_frac(hw); frac 40 drivers/clk/mxs/clk-frac.c div = readl_relaxed(frac->reg) >> frac->shift; frac 41 drivers/clk/mxs/clk-frac.c div &= (1 << frac->width) - 1; frac 44 drivers/clk/mxs/clk-frac.c return tmp_rate >> frac->width; frac 50 drivers/clk/mxs/clk-frac.c struct clk_frac *frac = to_clk_frac(hw); frac 59 drivers/clk/mxs/clk-frac.c tmp <<= frac->width; frac 67 drivers/clk/mxs/clk-frac.c result = tmp_rate >> frac->width; frac 68 drivers/clk/mxs/clk-frac.c if ((result << frac->width) < tmp_rate) frac 76 drivers/clk/mxs/clk-frac.c struct clk_frac *frac = to_clk_frac(hw); frac 85 drivers/clk/mxs/clk-frac.c tmp <<= frac->width; frac 94 drivers/clk/mxs/clk-frac.c val = readl_relaxed(frac->reg); frac 95 drivers/clk/mxs/clk-frac.c val &= ~(((1 << frac->width) - 1) << frac->shift); frac 96 drivers/clk/mxs/clk-frac.c val |= div << frac->shift; frac 97 drivers/clk/mxs/clk-frac.c writel_relaxed(val, frac->reg); frac 101 drivers/clk/mxs/clk-frac.c return mxs_clk_wait(frac->reg, frac->busy); frac 113 drivers/clk/mxs/clk-frac.c struct clk_frac *frac; frac 117 drivers/clk/mxs/clk-frac.c frac = kzalloc(sizeof(*frac), GFP_KERNEL); frac 118 drivers/clk/mxs/clk-frac.c if (!frac) frac 127 drivers/clk/mxs/clk-frac.c frac->reg = reg; frac 128 drivers/clk/mxs/clk-frac.c frac->shift = shift; frac 129 drivers/clk/mxs/clk-frac.c frac->width = width; frac 130 drivers/clk/mxs/clk-frac.c frac->busy = busy; frac 131 drivers/clk/mxs/clk-frac.c frac->hw.init = &init; frac 133 drivers/clk/mxs/clk-frac.c clk = clk_register(NULL, &frac->hw); frac 135 drivers/clk/mxs/clk-frac.c kfree(frac); frac 52 drivers/clk/mxs/clk-ref.c u8 frac = (readl_relaxed(ref->reg) >> (ref->idx * 8)) & 0x3f; frac 55 drivers/clk/mxs/clk-ref.c do_div(tmp, frac); frac 65 drivers/clk/mxs/clk-ref.c u8 frac; frac 69 drivers/clk/mxs/clk-ref.c frac = tmp; frac 71 drivers/clk/mxs/clk-ref.c if (frac < 18) frac 72 drivers/clk/mxs/clk-ref.c frac = 18; frac 73 drivers/clk/mxs/clk-ref.c else if (frac > 35) frac 74 drivers/clk/mxs/clk-ref.c frac = 35; frac 78 drivers/clk/mxs/clk-ref.c do_div(tmp, frac); frac 90 drivers/clk/mxs/clk-ref.c u8 frac, shift = ref->idx * 8; frac 94 drivers/clk/mxs/clk-ref.c frac = tmp; frac 96 drivers/clk/mxs/clk-ref.c if (frac < 18) frac 97 drivers/clk/mxs/clk-ref.c frac = 18; frac 98 drivers/clk/mxs/clk-ref.c else if (frac > 35) frac 99 drivers/clk/mxs/clk-ref.c frac = 35; frac 105 drivers/clk/mxs/clk-ref.c val |= frac << shift; frac 211 drivers/clk/pistachio/clk-pll.c vco *= (params->fbdiv << 24) + params->frac; frac 252 drivers/clk/pistachio/clk-pll.c val |= (params->frac << PLL_FRAC_CTRL2_FRAC_SHIFT) | frac 258 drivers/clk/pistachio/clk-pll.c if (params->frac) frac 273 drivers/clk/pistachio/clk-pll.c u64 val, prediv, fbdiv, frac, postdiv1, postdiv2, rate; frac 284 drivers/clk/pistachio/clk-pll.c frac = (val >> PLL_FRAC_CTRL2_FRAC_SHIFT) & PLL_FRAC_CTRL2_FRAC_MASK; frac 289 drivers/clk/pistachio/clk-pll.c rate *= (fbdiv << 24) + frac; frac 101 drivers/clk/pistachio/clk.h unsigned long long frac; frac 853 drivers/clk/qcom/clk-alpha-pll.c u32 l, frac; frac 857 drivers/clk/qcom/clk-alpha-pll.c regmap_read(regmap, PLL_ALPHA_VAL(pll), &frac); frac 859 drivers/clk/qcom/clk-alpha-pll.c return alpha_pll_calc_rate(prate, l, frac, ALPHA_REG_16BIT_WIDTH); frac 1132 drivers/clk/qcom/clk-alpha-pll.c u32 l, frac, alpha_width = pll_alpha_width(pll); frac 1135 drivers/clk/qcom/clk-alpha-pll.c regmap_read(pll->clkr.regmap, PLL_FRAC(pll), &frac); frac 1137 drivers/clk/qcom/clk-alpha-pll.c return alpha_pll_calc_rate(parent_rate, l, frac, alpha_width); frac 597 drivers/clk/qcom/clk-rcg.c const struct frac_entry *frac = pixel_table; frac 600 drivers/clk/qcom/clk-rcg.c for (; frac->num; frac++) { frac 601 drivers/clk/qcom/clk-rcg.c request = (req->rate * frac->den) / frac->num; frac 610 drivers/clk/qcom/clk-rcg.c req->rate = (src_rate * frac->num) / frac->den; frac 622 drivers/clk/qcom/clk-rcg.c const struct frac_entry *frac = pixel_table; frac 645 drivers/clk/qcom/clk-rcg.c for (; frac->num; frac++) { frac 646 drivers/clk/qcom/clk-rcg.c request = (rate * frac->den) / frac->num; frac 652 drivers/clk/qcom/clk-rcg.c f.m = frac->num; frac 653 drivers/clk/qcom/clk-rcg.c f.n = frac->den; frac 413 drivers/clk/qcom/clk-rcg2.c const struct frac_entry *frac; frac 421 drivers/clk/qcom/clk-rcg2.c frac = frac_table_810m; frac 423 drivers/clk/qcom/clk-rcg2.c frac = frac_table_675m; frac 425 drivers/clk/qcom/clk-rcg2.c for (; frac->num; frac++) { frac 427 drivers/clk/qcom/clk-rcg2.c request *= frac->den; frac 428 drivers/clk/qcom/clk-rcg2.c request = div_s64(request, frac->num); frac 438 drivers/clk/qcom/clk-rcg2.c f.m = frac->num; frac 439 drivers/clk/qcom/clk-rcg2.c f.n = frac->den; frac 459 drivers/clk/qcom/clk-rcg2.c const struct frac_entry *frac; frac 471 drivers/clk/qcom/clk-rcg2.c frac = frac_table_810m; frac 473 drivers/clk/qcom/clk-rcg2.c frac = frac_table_675m; frac 475 drivers/clk/qcom/clk-rcg2.c for (; frac->num; frac++) { frac 477 drivers/clk/qcom/clk-rcg2.c request *= frac->den; frac 478 drivers/clk/qcom/clk-rcg2.c request = div_s64(request, frac->num); frac 489 drivers/clk/qcom/clk-rcg2.c frac->num, frac->den, frac 490 drivers/clk/qcom/clk-rcg2.c !!frac->den, hid_div); frac 649 drivers/clk/qcom/clk-rcg2.c const struct frac_entry *frac = frac_table_pixel; frac 651 drivers/clk/qcom/clk-rcg2.c for (; frac->num; frac++) { frac 652 drivers/clk/qcom/clk-rcg2.c request = (req->rate * frac->den) / frac->num; frac 660 drivers/clk/qcom/clk-rcg2.c req->rate = (src_rate * frac->num) / frac->den; frac 672 drivers/clk/qcom/clk-rcg2.c const struct frac_entry *frac = frac_table_pixel; frac 689 drivers/clk/qcom/clk-rcg2.c for (; frac->num; frac++) { frac 690 drivers/clk/qcom/clk-rcg2.c request = (rate * frac->den) / frac->num; frac 701 drivers/clk/qcom/clk-rcg2.c f.m = frac->num; frac 702 drivers/clk/qcom/clk-rcg2.c f.n = frac->den; frac 148 drivers/clk/rockchip/clk-pll.c rate->frac = ((pllcon >> RK3036_PLLCON2_FRAC_SHIFT) frac 166 drivers/clk/rockchip/clk-pll.c u64 frac_rate64 = prate * cur.frac; frac 191 drivers/clk/rockchip/clk-pll.c rate->postdiv2, rate->dsmpd, rate->frac); frac 220 drivers/clk/rockchip/clk-pll.c pllcon |= rate->frac << RK3036_PLLCON2_FRAC_SHIFT; frac 308 drivers/clk/rockchip/clk-pll.c cur.dsmpd, cur.frac); frac 311 drivers/clk/rockchip/clk-pll.c rate->dsmpd, rate->frac); frac 316 drivers/clk/rockchip/clk-pll.c (!cur.dsmpd && (rate->frac != cur.frac))) { frac 621 drivers/clk/rockchip/clk-pll.c rate->frac = ((pllcon >> RK3399_PLLCON2_FRAC_SHIFT) frac 643 drivers/clk/rockchip/clk-pll.c u64 frac_rate64 = prate * cur.frac; frac 668 drivers/clk/rockchip/clk-pll.c rate->postdiv2, rate->dsmpd, rate->frac); frac 695 drivers/clk/rockchip/clk-pll.c pllcon |= rate->frac << RK3399_PLLCON2_FRAC_SHIFT; frac 787 drivers/clk/rockchip/clk-pll.c cur.dsmpd, cur.frac); frac 790 drivers/clk/rockchip/clk-pll.c rate->dsmpd, rate->frac); frac 795 drivers/clk/rockchip/clk-pll.c (!cur.dsmpd && (rate->frac != cur.frac))) { frac 144 drivers/clk/rockchip/clk.c struct rockchip_clk_frac *frac = to_rockchip_clk_frac_nb(nb); frac 145 drivers/clk/rockchip/clk.c struct clk_mux *frac_mux = &frac->mux; frac 151 drivers/clk/rockchip/clk.c frac->rate_change_idx = frac 152 drivers/clk/rockchip/clk.c frac->mux_ops->get_parent(&frac_mux->hw); frac 153 drivers/clk/rockchip/clk.c if (frac->rate_change_idx != frac->mux_frac_idx) { frac 154 drivers/clk/rockchip/clk.c frac->mux_ops->set_parent(&frac_mux->hw, frac 155 drivers/clk/rockchip/clk.c frac->mux_frac_idx); frac 156 drivers/clk/rockchip/clk.c frac->rate_change_remuxed = 1; frac 165 drivers/clk/rockchip/clk.c if (frac->rate_change_remuxed) { frac 166 drivers/clk/rockchip/clk.c frac->mux_ops->set_parent(&frac_mux->hw, frac 167 drivers/clk/rockchip/clk.c frac->rate_change_idx); frac 168 drivers/clk/rockchip/clk.c frac->rate_change_remuxed = 0; frac 217 drivers/clk/rockchip/clk.c struct rockchip_clk_frac *frac; frac 232 drivers/clk/rockchip/clk.c frac = kzalloc(sizeof(*frac), GFP_KERNEL); frac 233 drivers/clk/rockchip/clk.c if (!frac) frac 237 drivers/clk/rockchip/clk.c gate = &frac->gate; frac 245 drivers/clk/rockchip/clk.c div = &frac->div; frac 264 drivers/clk/rockchip/clk.c kfree(frac); frac 269 drivers/clk/rockchip/clk.c struct clk_mux *frac_mux = &frac->mux; frac 274 drivers/clk/rockchip/clk.c frac->mux_frac_idx = match_string(child->parent_names, frac 276 drivers/clk/rockchip/clk.c frac->mux_ops = &clk_mux_ops; frac 277 drivers/clk/rockchip/clk.c frac->clk_nb.notifier_call = rockchip_clk_frac_notifier_cb; frac 288 drivers/clk/rockchip/clk.c init.ops = frac->mux_ops; frac 294 drivers/clk/rockchip/clk.c kfree(frac); frac 301 drivers/clk/rockchip/clk.c if (frac->mux_frac_idx >= 0) { frac 303 drivers/clk/rockchip/clk.c __func__, frac->mux_frac_idx); frac 304 drivers/clk/rockchip/clk.c ret = clk_notifier_register(clk, &frac->clk_nb); frac 207 drivers/clk/rockchip/clk.h .frac = _frac, \ frac 256 drivers/clk/rockchip/clk.h unsigned int frac; frac 47 drivers/clk/spear/clk-frac-synth.c struct clk_frac *frac = to_clk_frac(hw); frac 48 drivers/clk/spear/clk-frac-synth.c struct frac_rate_tbl *rtbl = frac->rtbl; frac 61 drivers/clk/spear/clk-frac-synth.c struct clk_frac *frac = to_clk_frac(hw); frac 65 drivers/clk/spear/clk-frac-synth.c frac->rtbl_cnt, &unused); frac 71 drivers/clk/spear/clk-frac-synth.c struct clk_frac *frac = to_clk_frac(hw); frac 75 drivers/clk/spear/clk-frac-synth.c if (frac->lock) frac 76 drivers/clk/spear/clk-frac-synth.c spin_lock_irqsave(frac->lock, flags); frac 78 drivers/clk/spear/clk-frac-synth.c val = readl_relaxed(frac->reg); frac 80 drivers/clk/spear/clk-frac-synth.c if (frac->lock) frac 81 drivers/clk/spear/clk-frac-synth.c spin_unlock_irqrestore(frac->lock, flags); frac 98 drivers/clk/spear/clk-frac-synth.c struct clk_frac *frac = to_clk_frac(hw); frac 99 drivers/clk/spear/clk-frac-synth.c struct frac_rate_tbl *rtbl = frac->rtbl; frac 103 drivers/clk/spear/clk-frac-synth.c clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, frac 106 drivers/clk/spear/clk-frac-synth.c if (frac->lock) frac 107 drivers/clk/spear/clk-frac-synth.c spin_lock_irqsave(frac->lock, flags); frac 109 drivers/clk/spear/clk-frac-synth.c val = readl_relaxed(frac->reg) & ~DIV_FACTOR_MASK; frac 111 drivers/clk/spear/clk-frac-synth.c writel_relaxed(val, frac->reg); frac 113 drivers/clk/spear/clk-frac-synth.c if (frac->lock) frac 114 drivers/clk/spear/clk-frac-synth.c spin_unlock_irqrestore(frac->lock, flags); frac 130 drivers/clk/spear/clk-frac-synth.c struct clk_frac *frac; frac 138 drivers/clk/spear/clk-frac-synth.c frac = kzalloc(sizeof(*frac), GFP_KERNEL); frac 139 drivers/clk/spear/clk-frac-synth.c if (!frac) frac 143 drivers/clk/spear/clk-frac-synth.c frac->reg = reg; frac 144 drivers/clk/spear/clk-frac-synth.c frac->rtbl = rtbl; frac 145 drivers/clk/spear/clk-frac-synth.c frac->rtbl_cnt = rtbl_cnt; frac 146 drivers/clk/spear/clk-frac-synth.c frac->lock = lock; frac 147 drivers/clk/spear/clk-frac-synth.c frac->hw.init = &init; frac 155 drivers/clk/spear/clk-frac-synth.c clk = clk_register(NULL, &frac->hw); frac 160 drivers/clk/spear/clk-frac-synth.c kfree(frac); frac 82 drivers/clk/sunxi-ng/ccu-sun4i-a10.c .frac = _SUNXI_CCU_FRAC(BIT(15), BIT(14), frac 184 drivers/clk/sunxi-ng/ccu-sun4i-a10.c .frac = _SUNXI_CCU_FRAC(BIT(15), BIT(14), frac 84 drivers/clk/sunxi-ng/ccu-sun5i.c .frac = _SUNXI_CCU_FRAC(BIT(15), BIT(14), frac 158 drivers/clk/sunxi-ng/ccu-sun5i.c .frac = _SUNXI_CCU_FRAC(BIT(15), BIT(14), frac 81 drivers/clk/sunxi-ng/ccu_mult.c if (ccu_frac_helper_is_enabled(&cm->common, &cm->frac)) frac 82 drivers/clk/sunxi-ng/ccu_mult.c return ccu_frac_helper_read_rate(&cm->common, &cm->frac); frac 111 drivers/clk/sunxi-ng/ccu_mult.c if (ccu_frac_helper_has_rate(&cm->common, &cm->frac, rate)) { frac 112 drivers/clk/sunxi-ng/ccu_mult.c ccu_frac_helper_enable(&cm->common, &cm->frac); frac 114 drivers/clk/sunxi-ng/ccu_mult.c return ccu_frac_helper_set_rate(&cm->common, &cm->frac, frac 117 drivers/clk/sunxi-ng/ccu_mult.c ccu_frac_helper_disable(&cm->common, &cm->frac); frac 39 drivers/clk/sunxi-ng/ccu_mult.h struct ccu_frac_internal frac; frac 86 drivers/clk/sunxi-ng/ccu_nm.c if (ccu_frac_helper_is_enabled(&nm->common, &nm->frac)) { frac 87 drivers/clk/sunxi-ng/ccu_nm.c rate = ccu_frac_helper_read_rate(&nm->common, &nm->frac); frac 143 drivers/clk/sunxi-ng/ccu_nm.c if (ccu_frac_helper_has_rate(&nm->common, &nm->frac, rate)) { frac 181 drivers/clk/sunxi-ng/ccu_nm.c if (ccu_frac_helper_has_rate(&nm->common, &nm->frac, rate)) { frac 191 drivers/clk/sunxi-ng/ccu_nm.c ccu_frac_helper_enable(&nm->common, &nm->frac); frac 193 drivers/clk/sunxi-ng/ccu_nm.c return ccu_frac_helper_set_rate(&nm->common, &nm->frac, frac 196 drivers/clk/sunxi-ng/ccu_nm.c ccu_frac_helper_disable(&nm->common, &nm->frac); frac 28 drivers/clk/sunxi-ng/ccu_nm.h struct ccu_frac_internal frac; frac 72 drivers/clk/sunxi-ng/ccu_nm.h .frac = _SUNXI_CCU_FRAC(_frac_en, _frac_sel, \ frac 97 drivers/clk/sunxi-ng/ccu_nm.h .frac = _SUNXI_CCU_FRAC(_frac_en, _frac_sel, \ frac 125 drivers/clk/sunxi-ng/ccu_nm.h .frac = _SUNXI_CCU_FRAC(_frac_en, _frac_sel, \ frac 139 drivers/clk/zynqmp/pll.c unsigned long rate, frac; frac 154 drivers/clk/zynqmp/pll.c frac = (parent_rate * data) / FRAC_DIV; frac 155 drivers/clk/zynqmp/pll.c rate = rate + frac; frac 178 drivers/clk/zynqmp/pll.c long rate_div, frac, m, f; frac 188 drivers/clk/zynqmp/pll.c frac = (parent_rate * f) / FRAC_DIV; frac 197 drivers/clk/zynqmp/pll.c return rate + frac; frac 76 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c static const unsigned int frac = 1000; frac 77 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c uint32_t us_x10 = (ref_cycle * frac) / ref_clk_mhz; frac 80 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c us_x10 / frac, frac 81 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c us_x10 % frac); frac 81 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c static const unsigned int frac = 1000; frac 97 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->data_urgent * frac) / ref_clk_mhz / frac, (s->data_urgent * frac) / ref_clk_mhz % frac, frac 98 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->pte_meta_urgent * frac) / ref_clk_mhz / frac, (s->pte_meta_urgent * frac) / ref_clk_mhz % frac, frac 99 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->sr_enter * frac) / ref_clk_mhz / frac, (s->sr_enter * frac) / ref_clk_mhz % frac, frac 100 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->sr_exit * frac) / ref_clk_mhz / frac, (s->sr_exit * frac) / ref_clk_mhz % frac, frac 101 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->dram_clk_chanage * frac) / ref_clk_mhz / frac, (s->dram_clk_chanage * frac) / ref_clk_mhz % frac); frac 119 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c static const unsigned int frac = 1000; frac 156 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->min_ttu_vblank * frac) / ref_clk_mhz / frac, (s->min_ttu_vblank * frac) / ref_clk_mhz % frac, frac 157 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->qos_level_low_wm * frac) / ref_clk_mhz / frac, (s->qos_level_low_wm * frac) / ref_clk_mhz % frac, frac 158 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->qos_level_high_wm * frac) / ref_clk_mhz / frac, (s->qos_level_high_wm * frac) / ref_clk_mhz % frac); frac 176 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->min_ttu_vblank * frac) / ref_clk_mhz / frac, (s->min_ttu_vblank * frac) / ref_clk_mhz % frac, frac 177 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->qos_level_low_wm * frac) / ref_clk_mhz / frac, (s->qos_level_low_wm * frac) / ref_clk_mhz % frac, frac 178 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c (s->qos_level_high_wm * frac) / ref_clk_mhz / frac, (s->qos_level_high_wm * frac) / ref_clk_mhz % frac); frac 668 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c u32 frac, lbcc; frac 672 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c frac = lbcc % mode->clock; frac 674 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (frac) frac 453 drivers/gpu/drm/meson/meson_vclk.c unsigned int frac, unsigned int od1, frac 460 drivers/gpu/drm/meson/meson_vclk.c if (frac) frac 462 drivers/gpu/drm/meson/meson_vclk.c 0x00004000 | frac); frac 481 drivers/gpu/drm/meson/meson_vclk.c regmap_write(priv->hhi, HHI_HDMI_PLL_CNTL2, 0x800cb000 | frac); frac 504 drivers/gpu/drm/meson/meson_vclk.c regmap_write(priv->hhi, HHI_HDMI_PLL_CNTL2, frac); frac 509 drivers/gpu/drm/meson/meson_vclk.c if (frac < 0x10000) { frac 605 drivers/gpu/drm/meson/meson_vclk.c unsigned int frac; frac 621 drivers/gpu/drm/meson/meson_vclk.c frac = div_u64((u64)pll_freq * (u64)frac_max, parent_freq); frac 623 drivers/gpu/drm/meson/meson_vclk.c if (frac_m > frac) frac 625 drivers/gpu/drm/meson/meson_vclk.c frac -= frac_m; frac 627 drivers/gpu/drm/meson/meson_vclk.c return min((u16)frac, (u16)(frac_max - 1)); frac 632 drivers/gpu/drm/meson/meson_vclk.c unsigned int frac) frac 638 drivers/gpu/drm/meson/meson_vclk.c if (frac >= HDMI_FRAC_MAX_GXBB) frac 645 drivers/gpu/drm/meson/meson_vclk.c if (frac >= HDMI_FRAC_MAX_GXL) frac 651 drivers/gpu/drm/meson/meson_vclk.c if (frac >= HDMI_FRAC_MAX_G12A) frac 661 drivers/gpu/drm/meson/meson_vclk.c unsigned int *frac, frac 669 drivers/gpu/drm/meson/meson_vclk.c *frac = meson_hdmi_pll_get_frac(priv, *m, freq * *od); frac 672 drivers/gpu/drm/meson/meson_vclk.c freq, *m, *frac, *od); frac 674 drivers/gpu/drm/meson/meson_vclk.c if (meson_hdmi_pll_validate_params(priv, *m, *frac)) frac 685 drivers/gpu/drm/meson/meson_vclk.c unsigned int od, m, frac; frac 690 drivers/gpu/drm/meson/meson_vclk.c if (meson_hdmi_pll_find_params(priv, freq, &m, &frac, &od)) frac 701 drivers/gpu/drm/meson/meson_vclk.c unsigned int od, m, frac, od1, od2, od3; frac 703 drivers/gpu/drm/meson/meson_vclk.c if (meson_hdmi_pll_find_params(priv, pll_freq, &m, &frac, &od)) { frac 714 drivers/gpu/drm/meson/meson_vclk.c pll_freq, m, frac, od1, od2, od3); frac 716 drivers/gpu/drm/meson/meson_vclk.c meson_hdmi_pll_set_params(priv, m, frac, od1, od2, od3); frac 754 drivers/gpu/drm/meson/meson_vclk.c unsigned int m = 0, frac = 0; frac 771 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0xd02 : 0xe00; frac 775 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0xe8f : 0; frac 779 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0xa05 : 0xc00; frac 783 drivers/gpu/drm/meson/meson_vclk.c meson_hdmi_pll_set_params(priv, m, frac, od1, od2, od3); frac 789 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x281 : 0x300; frac 793 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x347 : 0; frac 797 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x102 : 0x200; frac 801 drivers/gpu/drm/meson/meson_vclk.c meson_hdmi_pll_set_params(priv, m, frac, od1, od2, od3); frac 806 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x140b4 : 0x18000; frac 810 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x1a3ee : 0; frac 814 drivers/gpu/drm/meson/meson_vclk.c frac = vic_alternate_clock ? 0x8148 : 0x10000; frac 818 drivers/gpu/drm/meson/meson_vclk.c meson_hdmi_pll_set_params(priv, m, frac, od1, od2, od3); frac 163 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c u32 frac; frac 175 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c div_u64_rem(dec_multiple, multiplier, &frac); frac 192 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c regs->frac_div_start_low = (frac & 0xff); frac 193 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c regs->frac_div_start_mid = (frac & 0xff00) >> 8; frac 194 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c regs->frac_div_start_high = (frac & 0x30000) >> 16; frac 207 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c u64 frac; frac 218 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c frac = regs->frac_div_start_low | frac 223 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c ssc_step_size += frac; frac 239 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c regs->decimal_div_start, frac, config->frac_bits); frac 490 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c u32 frac; frac 497 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c frac = pll_read(base + REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_LOW_1); frac 498 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c frac |= ((pll_read(base + REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_MID_1) & frac 500 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c frac |= ((pll_read(base + REG_DSI_10nm_PHY_PLL_FRAC_DIV_START_HIGH_1) & frac 510 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c tmp64 = (ref_clk * 2 * frac); frac 516 drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c pll_10nm->id, (unsigned long)vco_rate, dec, frac); frac 839 drivers/gpu/drm/tegra/sor.c u64 active_sym, active_count, frac, approx; frac 846 drivers/gpu/drm/tegra/sor.c frac = active_sym - active_count; frac 849 drivers/gpu/drm/tegra/sor.c if (frac >= (f / 2)) { frac 851 drivers/gpu/drm/tegra/sor.c frac = f - frac; frac 856 drivers/gpu/drm/tegra/sor.c if (frac != 0) { frac 857 drivers/gpu/drm/tegra/sor.c frac = div_u64(f * f, frac); /* 1/fraction */ frac 858 drivers/gpu/drm/tegra/sor.c if (frac <= (15 * f)) { frac 859 drivers/gpu/drm/tegra/sor.c active_frac = div_u64(frac, f); frac 855 drivers/hwmon/adt7462.c u8 frac = data->temp_frac[attr->index] >> TEMP_FRAC_OFFSET; frac 861 drivers/hwmon/adt7462.c 250 * frac); frac 151 drivers/hwmon/stts751.c s32 integer1, integer2, frac; frac 171 drivers/hwmon/stts751.c frac = i2c_smbus_read_byte_data(priv->client, STTS751_REG_TEMP_L); frac 172 drivers/hwmon/stts751.c if (frac < 0) { frac 174 drivers/hwmon/stts751.c "I2C read failed (temp L). ret: %x\n", frac); frac 175 drivers/hwmon/stts751.c return frac; frac 186 drivers/hwmon/stts751.c frac = i2c_smbus_read_byte_data(priv->client, frac 188 drivers/hwmon/stts751.c if (frac < 0) { frac 191 drivers/hwmon/stts751.c frac); frac 192 drivers/hwmon/stts751.c return frac; frac 196 drivers/hwmon/stts751.c priv->temp = stts751_to_deg((integer1 << 8) | frac); frac 226 drivers/hwmon/stts751.c int integer, frac; frac 232 drivers/hwmon/stts751.c frac = i2c_smbus_read_byte_data(priv->client, lreg); frac 233 drivers/hwmon/stts751.c if (frac < 0) frac 234 drivers/hwmon/stts751.c return frac; frac 236 drivers/hwmon/stts751.c *temp = stts751_to_deg((integer << 8) | frac); frac 1214 drivers/media/dvb-frontends/drx39xyj/drxj.c u32 frac = 0; frac 1223 drivers/media/dvb-frontends/drx39xyj/drxj.c frac = (((u32) N) * (1000000 >> 4)) / D; frac 1224 drivers/media/dvb-frontends/drx39xyj/drxj.c frac <<= 4; frac 1227 drivers/media/dvb-frontends/drx39xyj/drxj.c frac += remainder / D; frac 1230 drivers/media/dvb-frontends/drx39xyj/drxj.c frac++; frac 1232 drivers/media/dvb-frontends/drx39xyj/drxj.c return frac; frac 453 drivers/media/dvb-frontends/stv6111.c u32 p = 1, psel = 0, fvco, div, frac; frac 470 drivers/media/dvb-frontends/stv6111.c frac = fvco % state->ref_freq; frac 471 drivers/media/dvb-frontends/stv6111.c frac = muldiv32(frac, 0x40000, state->ref_freq); frac 493 drivers/media/dvb-frontends/stv6111.c state->reg[0x05] = (((div >> 8) & 0x01) | ((frac & 0x7F) << 1)) & 0xff; frac 494 drivers/media/dvb-frontends/stv6111.c state->reg[0x06] = ((frac >> 7) & 0xFF); frac 495 drivers/media/dvb-frontends/stv6111.c state->reg[0x07] = (state->reg[0x07] & ~0x07) | ((frac >> 15) & 0x07); frac 650 drivers/media/platform/sh_veu.c u32 *mant, u32 *frac, u32 *rep) frac 655 drivers/media/platform/sh_veu.c *rep = *mant = *frac = 0; frac 667 drivers/media/platform/sh_veu.c *frac = (fixpoint - (*mant * 4096)) & ~0x07; frac 669 drivers/media/platform/sh_veu.c switch (*frac) { frac 686 drivers/media/platform/sh_veu.c *frac = fixpoint - (*mant * 4096); frac 688 drivers/media/platform/sh_veu.c if (*frac & 0x07) { frac 693 drivers/media/platform/sh_veu.c *frac &= ~0x07; frac 695 drivers/media/platform/sh_veu.c *frac -= 8; /* round down if scaling up */ frac 697 drivers/media/platform/sh_veu.c *frac += 8; /* round up if scaling down */ frac 704 drivers/media/platform/sh_veu.c u32 mant, frac, value, rep; frac 706 drivers/media/platform/sh_veu.c sh_veu_calc_scale(veu, size_in, size_out, crop_out, &mant, &frac, &rep); frac 710 drivers/media/platform/sh_veu.c (((mant << 12) | frac) << 16); frac 726 drivers/media/platform/sh_veu.c u32 mant, frac, value, rep; frac 728 drivers/media/platform/sh_veu.c sh_veu_calc_scale(veu, size_in, size_out, crop_out, &mant, &frac, &rep); frac 732 drivers/media/platform/sh_veu.c (mant << 12) | frac; frac 171 drivers/media/tuners/fc0011.c u32 fvco, xin, frac, xdiv, xdivr; frac 209 drivers/media/tuners/fc0011.c frac = fvco - xdiv * 18000; frac 210 drivers/media/tuners/fc0011.c frac = (frac << 15) / 18000; frac 211 drivers/media/tuners/fc0011.c if (frac >= 16384) frac 212 drivers/media/tuners/fc0011.c frac += 32786; frac 213 drivers/media/tuners/fc0011.c if (!frac) frac 216 drivers/media/tuners/fc0011.c xin = clamp_t(u32, frac, 512, 65024); frac 1400 drivers/net/ethernet/freescale/fman/fman.c u64 frac; frac 1417 drivers/net/ethernet/freescale/fman/fman.c frac = ((ts_freq << 16) - (intgr << 16) * fm_clk_freq) / fm_clk_freq; frac 1420 drivers/net/ethernet/freescale/fman/fman.c frac++; frac 1422 drivers/net/ethernet/freescale/fman/fman.c tmp = (intgr << FPM_TS_INT_SHIFT) | (u16)frac; frac 94 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c clock_info->frac = clock->tc.frac; frac 520 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c u64 frac = 0; frac 551 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c frac, &frac); frac 563 drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c mdev->clock_info->frac = clock->tc.frac; frac 253 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c u64 overflow_cycles, nsec, frac = 0; frac 283 drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c nsec = cyclecounter_cyc2ns(&clock->cycles, overflow_cycles, 0, &frac); frac 501 drivers/net/ethernet/ti/cpts.c u64 frac, maxsec, ns; frac 528 drivers/net/ethernet/ti/cpts.c frac = 0; frac 529 drivers/net/ethernet/ti/cpts.c ns = cyclecounter_cyc2ns(&cpts->cc, freq, cpts->cc.mask, &frac); frac 183 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c static int mt76x02_dfs_get_multiple(int val, int frac, int margin) frac 187 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (!frac) frac 190 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if (abs(val - frac) <= margin) frac 193 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c factor = val / frac; frac 194 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c remainder = val % frac; frac 197 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c if ((frac - remainder) <= margin) frac 716 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c unsigned long frac; frac 727 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c frac = inno_read(inno, 0xd3) | frac 730 drivers/phy/rockchip/phy-rockchip-inno-hdmi.c vco += DIV_ROUND_CLOSEST(parent_rate * frac, (1 << 24)); frac 55 drivers/phy/st/phy-stm32-usbphyc.c u16 frac; frac 89 drivers/phy/st/phy-stm32-usbphyc.c unsigned long long fvco, ndiv, frac; frac 107 drivers/phy/st/phy-stm32-usbphyc.c frac = fvco * (1 << 16); frac 108 drivers/phy/st/phy-stm32-usbphyc.c do_div(frac, (clk_rate * 2)); frac 109 drivers/phy/st/phy-stm32-usbphyc.c frac = frac - (ndiv * (1 << 16)); frac 110 drivers/phy/st/phy-stm32-usbphyc.c pll_params->frac = (u16)frac; frac 117 drivers/phy/st/phy-stm32-usbphyc.c u32 ndiv, frac; frac 129 drivers/phy/st/phy-stm32-usbphyc.c frac = FIELD_PREP(PLLFRACIN, pll_params.frac); frac 133 drivers/phy/st/phy-stm32-usbphyc.c if (pll_params.frac) frac 134 drivers/phy/st/phy-stm32-usbphyc.c usbphyc_pll |= PLLFRACCTL | frac; frac 158 drivers/pwm/pwm-sifive.c u32 frac; frac 184 drivers/pwm/pwm-sifive.c frac = DIV_ROUND_CLOSEST_ULL(num, state->period); frac 186 drivers/pwm/pwm-sifive.c frac = min(frac, (1U << PWM_SIFIVE_CMPWIDTH) - 1); frac 197 drivers/pwm/pwm-sifive.c writel(frac, ddata->regs + PWM_SIFIVE_PWMCMP0 + frac 89 drivers/scsi/scsi_transport_spi.c int frac = value % denom; frac 92 drivers/scsi/scsi_transport_spi.c if (frac == 0) frac 98 drivers/scsi/scsi_transport_spi.c sprintf(dest + result, "%d", frac / denom); frac 100 drivers/scsi/scsi_transport_spi.c frac %= denom; frac 101 drivers/scsi/scsi_transport_spi.c } while (frac); frac 61 drivers/tty/serial/8250/8250_dwlib.c unsigned int *frac) frac 68 drivers/tty/serial/8250/8250_dwlib.c *frac = DIV_ROUND_CLOSEST(rem << d->dlf_size, base_baud); frac 157 drivers/tty/serial/8250/8250_exar.c unsigned int *frac) frac 162 drivers/tty/serial/8250/8250_exar.c *frac = quot_16 & 0x0f; frac 2424 drivers/tty/serial/8250/8250_port.c unsigned int *frac) frac 2456 drivers/tty/serial/8250/8250_port.c unsigned int *frac) frac 2459 drivers/tty/serial/8250/8250_port.c return port->get_divisor(port, baud, frac); frac 2461 drivers/tty/serial/8250/8250_port.c return serial8250_do_get_divisor(port, baud, frac); frac 2560 drivers/tty/serial/8250/8250_port.c unsigned int baud, quot, frac = 0; frac 2571 drivers/tty/serial/8250/8250_port.c quot = serial8250_get_divisor(port, baud, &frac); frac 2665 drivers/tty/serial/8250/8250_port.c serial8250_set_divisor(port, baud, quot, frac); frac 3125 drivers/tty/serial/8250/8250_port.c unsigned int baud, quot, frac = 0; frac 3132 drivers/tty/serial/8250/8250_port.c quot = serial8250_get_divisor(port, baud, &frac); frac 3134 drivers/tty/serial/8250/8250_port.c serial8250_set_divisor(port, baud, quot, frac); frac 504 drivers/tty/serial/max310x.c unsigned int mode = 0, div = 0, frac = 0, c = 0, F = 0; frac 530 drivers/tty/serial/max310x.c frac = (16*(port->uartclk % F)) / F; frac 536 drivers/tty/serial/max310x.c max310x_port_write(port, MAX310X_BRGCFG_REG, frac | mode); frac 539 drivers/tty/serial/max310x.c return (16*port->uartclk) / (c*(16*div + frac)); frac 560 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CLK_FRACDIV(frac) ((frac)<<16) frac 334 drivers/video/fbdev/pxa168fb.h #define CLK_FRACDIV(frac) ((frac) << 16) frac 120 include/linux/serial_core.h unsigned int *frac); frac 60 include/linux/timecounter.h u64 frac; frac 71 include/linux/timecounter.h u64 cycles, u64 mask, u64 *frac) frac 75 include/linux/timecounter.h ns = (ns * cc->mult) + *frac; frac 76 include/linux/timecounter.h *frac = ns & mask; frac 136 include/math-emu/double.h unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); frac 138 include/math-emu/double.h unsigned long frac : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0); frac 79 include/math-emu/op-1.h X##_f = _flo.bits.frac; \ frac 89 include/math-emu/op-1.h X##_f = _flo->bits.frac; \ frac 102 include/math-emu/op-1.h _flo.bits.frac = X##_f; \ frac 114 include/math-emu/op-1.h _flo->bits.frac = X##_f; \ frac 53 include/math-emu/single.h unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0); frac 55 include/math-emu/single.h unsigned frac : _FP_FRACBITS_S - (_FP_IMPLBIT_S != 0); frac 445 include/uapi/rdma/mlx5-abi.h __aligned_u64 frac; frac 6337 kernel/cgroup/cgroup.c s64 whole, frac = 0; frac 6340 kernel/cgroup/cgroup.c if (!sscanf(input, "%lld.%n%lld%n", &whole, &fstart, &frac, &fend)) frac 6342 kernel/cgroup/cgroup.c if (frac < 0) frac 6347 kernel/cgroup/cgroup.c frac *= power_of_ten(dec_shift - flen); frac 6349 kernel/cgroup/cgroup.c frac = DIV_ROUND_CLOSEST_ULL(frac, power_of_ten(flen - dec_shift)); frac 6351 kernel/cgroup/cgroup.c *v = whole * power_of_ten(dec_shift) + frac; frac 70 kernel/locking/qspinlock_stat.h u64 frac = 0; frac 73 kernel/locking/qspinlock_stat.h frac = 100ULL * do_div(sum, kicks); frac 74 kernel/locking/qspinlock_stat.h frac = DIV_ROUND_CLOSEST_ULL(frac, kicks); frac 81 kernel/locking/qspinlock_stat.h sum, frac); frac 16 kernel/time/timecounter.c tc->frac = 0; frac 44 kernel/time/timecounter.c tc->mask, &tc->frac); frac 70 kernel/time/timecounter.c u64 cycles, u64 mask, u64 frac) frac 74 kernel/time/timecounter.c ns = ((ns * cc->mult) - frac) >> cc->shift; frac 83 kernel/time/timecounter.c u64 nsec = tc->nsec, frac = tc->frac; frac 92 kernel/time/timecounter.c nsec -= cc_cyc2ns_backwards(tc->cc, delta, tc->mask, frac); frac 94 kernel/time/timecounter.c nsec += cyclecounter_cyc2ns(tc->cc, delta, tc->mask, &frac); frac 593 sound/soc/codecs/cx2072x.c unsigned int frac; frac 632 sound/soc/codecs/cx2072x.c frac = ((u32)frac_num + 499) / 1000; frac 644 sound/soc/codecs/cx2072x.c frac & 0xfff); frac 646 sound/soc/codecs/cx2072x.c (u8)(frac >> 12)); frac 4308 sound/soc/codecs/madera.c bool frac = false; frac 4325 sound/soc/codecs/madera.c frac = fout % fref; frac 4330 sound/soc/codecs/madera.c if (frac) frac 4345 sound/soc/codecs/madera.c if (frac) { frac 4351 sound/soc/codecs/madera.c if (frac) { frac 4364 sound/soc/codecs/madera.c refdiv, fref, frac); frac 4373 sound/soc/codecs/madera.c while (frac && (ratio / fbdiv > max_n)) { frac 4397 sound/soc/codecs/madera.c frac ? "fractional" : "integer", min_n, max_n, frac 4401 sound/soc/codecs/madera.c if (fbdiv < 1 || (frac && fbdiv >= 1024) || (!frac && fbdiv >= 256)) { frac 4403 sound/soc/codecs/madera.c frac ? "fractional" : "integer", fbdiv); frac 136 virt/kvm/arm/arch_timer.c &timecounter->frac);