Home
last modified time | relevance | path

Searched refs:mult (Results 1 – 25 of 61) sorted by relevance

123

/arch/arm/mach-omap2/
Dclkt2xxx_dpllcore.c117 u32 cur_rate, low, mult, div, valid_rate, done_rate; in omap2_reprogram_dpllcore() local
123 mult = omap2_cm_read_mod_reg(PLL_MOD, CM_CLKSEL2); in omap2_reprogram_dpllcore()
124 mult &= OMAP24XX_CORE_CLK_SRC_MASK; in omap2_reprogram_dpllcore()
126 if ((rate == (cur_rate / 2)) && (mult == 2)) { in omap2_reprogram_dpllcore()
128 } else if ((rate == (cur_rate * 2)) && (mult == 1)) { in omap2_reprogram_dpllcore()
135 if (mult == 1) in omap2_reprogram_dpllcore()
152 mult = ((rate / 2) / 1000000); in omap2_reprogram_dpllcore()
156 mult = (rate / 1000000); in omap2_reprogram_dpllcore()
160 tmpset.cm_clksel1_pll |= (mult << __ffs(dd->div1_mask)); in omap2_reprogram_dpllcore()
/arch/arm/kernel/
Dsched_clock.c24 u32 mult; member
37 .mult = NSEC_PER_SEC / HZ,
49 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
51 return (cyc * mult) >> shift; in cyc_to_ns()
76 return epoch_ns + cyc_to_ns((cyc - epoch_cyc) & mask, cd.mult, cd.shift); in cyc_to_sched_clock()
91 cd.mult, cd.shift); in update_sched_clock()
127 clocks_calc_mult_shift(&cd.mult, &cd.shift, rate, NSEC_PER_SEC, 0); in setup_sched_clock()
140 wrap = cyc_to_ns((1ULL << bits) - 1, cd.mult, cd.shift); in setup_sched_clock()
145 res = cyc_to_ns(1ULL, cd.mult, cd.shift); in setup_sched_clock()
/arch/mn10300/include/asm/
Ddiv64.h79 unsigned __muldiv64u(unsigned val, unsigned mult, unsigned div) in __muldiv64u() argument
87 : "0"(val), "ir"(mult), "r"(div) in __muldiv64u()
100 signed __muldiv64s(signed val, signed mult, signed div) in __muldiv64s() argument
108 : "0"(val), "ir"(mult), "r"(div) in __muldiv64s()
/arch/arm/mach-shmobile/
Dtimer.c26 unsigned int mult, unsigned int div) in shmobile_setup_delay() argument
36 unsigned int value = (1000000 * mult) / (HZ * div); in shmobile_setup_delay()
Dclock-sh7372.c97 unsigned long mult = 1; in pllc01_recalc() local
100 mult = (((__raw_readl(clk->enable_reg) >> 24) & 0x3f) + 1) * 2; in pllc01_recalc()
102 return clk->parent->rate * mult; in pllc01_recalc()
158 unsigned long mult = 1; in pllc2_recalc() local
167 mult = (((__raw_readl(PLLC2CR) >> 24) & 0x3f) + 1) * 2; in pllc2_recalc()
169 return clk->parent->rate * mult; in pllc2_recalc()
/arch/x86/math-emu/
Dpoly.h34 asmlinkage void mul32_Xsig(Xsig *, const unsigned long mult);
35 asmlinkage void mul64_Xsig(Xsig *, const unsigned long long *mult);
36 asmlinkage void mul_Xsig_Xsig(Xsig *dest, const Xsig *mult);
/arch/mips/cavium-octeon/
Dcsrc-octeon.c103 u64 mult = clocksource_mips.mult; in sched_clock() local
117 : [cnt] "r" (cnt), [mult] "r" (mult), [shift] "r" (shift) in sched_clock()
/arch/sh/kernel/cpu/sh4a/
Dclock-sh7722.c57 unsigned long mult; in dll_recalc() local
60 mult = __raw_readl(DLLFRQ); in dll_recalc()
62 mult = 0; in dll_recalc()
64 return clk->parent->rate * mult; in dll_recalc()
79 unsigned long mult = 1; in pll_recalc() local
83 mult = (((__raw_readl(FRQCR) >> 24) & 0x1f) + 1); in pll_recalc()
87 return (clk->parent->rate * mult) / div; in pll_recalc()
Dclock-sh7366.c54 unsigned long mult; in dll_recalc() local
57 mult = __raw_readl(DLLFRQ); in dll_recalc()
59 mult = 0; in dll_recalc()
61 return clk->parent->rate * mult; in dll_recalc()
76 unsigned long mult = 1; in pll_recalc() local
80 mult = (((__raw_readl(FRQCR) >> 24) & 0x1f) + 1); in pll_recalc()
84 return (clk->parent->rate * mult) / div; in pll_recalc()
Dclock-sh7723.c58 unsigned long mult; in dll_recalc() local
61 mult = __raw_readl(DLLFRQ); in dll_recalc()
63 mult = 0; in dll_recalc()
65 return clk->parent->rate * mult; in dll_recalc()
80 unsigned long mult = 1; in pll_recalc() local
84 mult = (((__raw_readl(FRQCR) >> 24) & 0x1f) + 1); in pll_recalc()
88 return (clk->parent->rate * mult) / div; in pll_recalc()
Dclock-sh7343.c54 unsigned long mult; in dll_recalc() local
57 mult = __raw_readl(DLLFRQ); in dll_recalc()
59 mult = 0; in dll_recalc()
61 return clk->parent->rate * mult; in dll_recalc()
76 unsigned long mult = 1; in pll_recalc() local
79 mult = (((__raw_readl(FRQCR) >> 24) & 0x1f) + 1); in pll_recalc()
81 return clk->parent->rate * mult; in pll_recalc()
Dclock-sh7724.c61 unsigned long mult = 0; in fll_recalc() local
65 mult = __raw_readl(FLLFRQ) & 0x3ff; in fll_recalc()
70 return (clk->parent->rate * mult) / div; in fll_recalc()
85 unsigned long mult = 1; in pll_recalc() local
88 mult = (((__raw_readl(FRQCRA) >> 24) & 0x3f) + 1) * 2; in pll_recalc()
90 return clk->parent->rate * mult; in pll_recalc()
/arch/arm/mach-davinci/
Dclock.c410 u32 ctrl, mult = 1, prediv = 1, postdiv = 1; in clk_pllclk_recalc() local
420 mult = __raw_readl(pll->base + PLLM); in clk_pllclk_recalc()
422 mult = 2 * (mult & PLLM_PLLM_MASK); in clk_pllclk_recalc()
424 mult = (mult & PLLM_PLLM_MASK) + 1; in clk_pllclk_recalc()
450 rate *= mult; in clk_pllclk_recalc()
460 if (mult > 1) in clk_pllclk_recalc()
461 pr_debug("* %d ", mult); in clk_pllclk_recalc()
480 unsigned int mult, unsigned int postdiv) in davinci_set_pllrate() argument
502 if (mult) in davinci_set_pllrate()
503 mult = mult - 1; in davinci_set_pllrate()
[all …]
Dda850.c945 unsigned int mult; member
954 .mult = 19,
963 .mult = 17,
972 .mult = 31,
981 .mult = 25,
990 .mult = 25,
999 .mult = 20,
1123 unsigned int prediv, mult, postdiv; in da850_set_pll0rate() local
1130 mult = opp->mult; in da850_set_pll0rate()
1133 ret = davinci_set_pllrate(pll, prediv, mult, postdiv); in da850_set_pll0rate()
/arch/c6x/platforms/
Dpll.c271 u32 ctrl, mult = 0, prediv = 0, postdiv = 0; in clk_pllclk_recalc() local
288 mult = pll_read(pll, PLLM); in clk_pllclk_recalc()
289 mult = (mult & PLLM_PLLM_MASK) + 1; in clk_pllclk_recalc()
309 if (mult) in clk_pllclk_recalc()
310 rate *= mult; in clk_pllclk_recalc()
317 prediv, mult, postdiv, rate / 1000000); in clk_pllclk_recalc()
/arch/blackfin/kernel/
Dtime-ts.c49 bfin_cs_cycles.mult, bfin_cs_cycles.shift); in bfin_cs_cycles_sched_clock()
99 bfin_cs_gptimer0.mult, bfin_cs_gptimer0.shift); in bfin_cs_gptimer0_sched_clock()
228 evt->mult = div_sc(clock_tick, NSEC_PER_SEC, evt->shift); in bfin_gptmr0_clockevent_init()
341 evt->mult = div_sc(clock_tick, NSEC_PER_SEC, evt->shift); in bfin_coretmr_clockevent_init()
/arch/x86/include/asm/
Dvgtod.h14 u32 mult; member
/arch/arm/mach-shmobile/include/mach/
Dcommon.h7 unsigned int mult, unsigned int div);
/arch/microblaze/kernel/
Dtimer.c172 clockevent_microblaze_timer.mult = in microblaze_clockevent_init()
206 microblaze_cc.mult = div_sc(timer_clock_freq, NSEC_PER_SEC, in init_microblaze_timecounter()
311 return clocksource_cyc2ns(cyc, cs->mult, cs->shift); in sched_clock()
/arch/sh/kernel/
Dlocaltimer.c56 clk->mult = 1; in local_timer_setup()
/arch/arm/mach-imx/
Dclk.h94 const char *parent, unsigned int mult, unsigned int div) in imx_clk_fixed_factor() argument
97 CLK_SET_RATE_PARENT, mult, div); in imx_clk_fixed_factor()
/arch/sparc/kernel/
Dtime_32.c139 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in setup_timer_ce()
189 timer_cs.mult = clocksource_hz2mult(sparc_config.clock_rate, in setup_timer_cs()
241 ce->mult = div_sc(sparc_config.clock_rate, NSEC_PER_SEC, in register_percpu_ce()
/arch/arm/mach-s3c24xx/
Dmach-bast.c498 .mult = 3300,
504 .mult = 3300,
510 .mult = 3300,
516 .mult = 3300,
/arch/score/kernel/
Dtime.c91 score_clockevent.mult = div_sc(SYSTEM_CLOCK, NSEC_PER_SEC, in time_init()
/arch/um/kernel/
Dtime.c90 itimer_clockevent.mult = div_sc(HZ, NSEC_PER_SEC, 32); in setup_itimer()

123