/drivers/clk/samsung/ |
D | clk-pll.c | 80 u64 fvco = parent_rate; in samsung_pll2126_recalc_rate() local 87 fvco *= (mdiv + 8); in samsung_pll2126_recalc_rate() 88 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate() 90 return (unsigned long)fvco; in samsung_pll2126_recalc_rate() 113 u64 fvco = parent_rate; in samsung_pll3000_recalc_rate() local 120 fvco *= (2 * (mdiv + 8)); in samsung_pll3000_recalc_rate() 121 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate() 123 return (unsigned long)fvco; in samsung_pll3000_recalc_rate() 150 u64 fvco = parent_rate; in samsung_pll35xx_recalc_rate() local 157 fvco *= mdiv; in samsung_pll35xx_recalc_rate() [all …]
|
/drivers/media/tuners/ |
D | fc0011.c | 186 u32 fvco, xin, frac, xdiv, xdivr; in fc0011_set_params() local 205 fvco = freq * 64; in fc0011_set_params() 208 fvco = freq * 32; in fc0011_set_params() 211 fvco = freq * 16; in fc0011_set_params() 214 fvco = freq * 8; in fc0011_set_params() 217 fvco = freq * 4; in fc0011_set_params() 222 xdiv = fvco / 18000; in fc0011_set_params() 224 frac = fvco - xdiv * 18000; in fc0011_set_params() 237 if (fvco - xdiv * 18000 >= 9000) in fc0011_set_params() 276 if (fvco < 2320000) { in fc0011_set_params() [all …]
|
/drivers/media/dvb-frontends/ |
D | stb6100.c | 312 u32 nint, nfrac, fvco; in stb6100_get_frequency() local 325 fvco = (nfrac * state->reference >> (9 - psd2)) + (nint * state->reference << psd2); in stb6100_get_frequency() 326 *frequency = state->frequency = fvco >> (odiv + 1); in stb6100_get_frequency() 330 state->frequency, odiv, psd2, state->reference, fvco, nint, nfrac); in stb6100_get_frequency() 342 u32 srate = 0, fvco, nint, nfrac; in stb6100_set_frequency() local 395 fvco = frequency << (1 + odiv); in stb6100_set_frequency() 397 nint = fvco / (state->reference << psd2); in stb6100_set_frequency() 399 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency() 448 ptr->reg, fvco, nint, nfrac); in stb6100_set_frequency()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_maven.c | 301 unsigned int fvco; in matroxfb_mavenclock() local 304 fvco = matroxfb_PLL_mavenclock(&maven1000_pll, ctl, htotal, vtotal, in, feed, &p, htotal2); in matroxfb_mavenclock() 305 if (!fvco) in matroxfb_mavenclock() 308 if (fvco <= 100000000) in matroxfb_mavenclock() 310 else if (fvco <= 140000000) in matroxfb_mavenclock() 312 else if (fvco <= 180000000) in matroxfb_mavenclock() 322 unsigned int fvco; in DAC1064_calcclock() local 325 fvco = matroxfb_PLL_calcclock(&maven_pll, freq, fmax, in, feed, &p); in DAC1064_calcclock() 327 if (fvco <= 100000) in DAC1064_calcclock() 329 else if (fvco <= 140000) in DAC1064_calcclock() [all …]
|
D | g450_pll.c | 20 static inline unsigned int g450_vco2f(unsigned char p, unsigned int fvco) { in g450_vco2f() argument 21 return (p & 0x40) ? fvco : fvco >> ((p & 3) + 1); in g450_vco2f() 57 unsigned int *fvco, unsigned int mnp) in g450_nextpll() argument 60 unsigned int tvco = *fvco; in g450_nextpll() 80 *fvco = tvco; in g450_nextpll()
|
D | matroxfb_misc.c | 163 unsigned int diff, fvco; in matroxfb_PLL_calcclock() local 171 fvco = (fxtal * (n + 1)) / (m + 1); in matroxfb_PLL_calcclock() 172 if (fvco < fwant) in matroxfb_PLL_calcclock() 173 diff = fwant - fvco; in matroxfb_PLL_calcclock() 175 diff = fvco - fwant; in matroxfb_PLL_calcclock() 181 bestvco = fvco; in matroxfb_PLL_calcclock()
|
D | matroxfb_Ti3026.c | 286 unsigned int fvco; in Ti3026_calcclock() local 291 fvco = PLL_calcclock(minfo, freq, fmax, &lin, &lfeed, &lpost); in Ti3026_calcclock() 292 fvco >>= (*post = lpost); in Ti3026_calcclock() 295 return fvco; in Ti3026_calcclock()
|
D | matroxfb_DAC1064.c | 41 unsigned int fvco; in DAC1064_calcclock() local 48 fvco = PLL_calcclock(minfo, freq, fmax, in, feed, &p); in DAC1064_calcclock() 51 if (fvco <= 100000) in DAC1064_calcclock() 53 else if (fvco <= 140000) in DAC1064_calcclock() 55 else if (fvco <= 180000) in DAC1064_calcclock()
|
/drivers/clk/ |
D | clk-xgene.c | 87 unsigned long fvco; in xgene_clk_pll_recalc_rate() local 101 fvco = parent_rate * (N_DIV_RD(pll) + 4); in xgene_clk_pll_recalc_rate() 112 fvco = fref * nfb; in xgene_clk_pll_recalc_rate() 115 fvco / nout, parent_rate); in xgene_clk_pll_recalc_rate() 117 return fvco / nout; in xgene_clk_pll_recalc_rate()
|
D | clk-axi-clkgen.c | 147 unsigned long f, dout, best_f, fvco; in axi_clkgen_calc_params() local 168 fvco = fin * m / d; in axi_clkgen_calc_params() 170 dout = DIV_ROUND_CLOSEST(fvco, fout); in axi_clkgen_calc_params() 172 f = fvco / dout; in axi_clkgen_calc_params()
|