Searched refs:ref_freq (Results 1 - 27 of 27) sorted by relevance

/linux-4.4.14/drivers/video/fbdev/via/
H A Dvia_clock.h62 static inline u32 get_pll_internal_frequency(u32 ref_freq, get_pll_internal_frequency() argument
65 return ref_freq / pll.divisor * pll.multiplier; get_pll_internal_frequency()
68 static inline u32 get_pll_output_frequency(u32 ref_freq, get_pll_output_frequency() argument
71 return get_pll_internal_frequency(ref_freq, pll) >> pll.rshift; get_pll_output_frequency()
/linux-4.4.14/drivers/cpufreq/
H A Dat32ap-cpufreq.c26 static unsigned int ref_freq; variable
36 if (!ref_freq) { at32_set_target()
37 ref_freq = old_freq; at32_set_target()
43 loops_per_jiffy_ref, ref_freq, new_freq); at32_set_target()
47 loops_per_jiffy_ref, ref_freq, new_freq); at32_set_target()
/linux-4.4.14/drivers/clk/
H A Dclk-highbank.c122 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, clk_pll_calc() argument
139 divf = (vco_freq + (ref_freq / 2)) / ref_freq; clk_pll_calc()
150 unsigned long ref_freq = *parent_rate; clk_pll_round_rate() local
152 clk_pll_calc(rate, ref_freq, &divq, &divf); clk_pll_round_rate()
154 return (ref_freq * (divf + 1)) / (1 << divq); clk_pll_round_rate()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
H A Dboot.c74 u32 scr_pad6, init_data, tmp, elp_cmd, ref_freq; wl1251_boot_init_seq() local
102 ref_freq = scr_pad6 & 0x000000FF; wl1251_boot_init_seq()
103 wl1251_debug(DEBUG_BOOT, "ref_freq 0x%x", ref_freq); wl1251_boot_init_seq()
157 tmp = LUT[ref_freq][LUT_PARAM_INTEGER_DIVIDER] | 0x00017000; wl1251_boot_init_seq()
163 tmp = LUT[ref_freq][LUT_PARAM_FRACTIONAL_DIVIDER]; wl1251_boot_init_seq()
174 tmp = (LUT[ref_freq][LUT_PARAM_ATTN_BB] << 16) | wl1251_boot_init_seq()
175 (LUT[ref_freq][LUT_PARAM_ALPHA_BB] << 12) | 0x1; wl1251_boot_init_seq()
182 tmp = LUT[ref_freq][LUT_PARAM_STOP_TIME_BB] | 0x000A0000; wl1251_boot_init_seq()
190 tmp = LUT[ref_freq][LUT_PARAM_BB_PLL_LOOP_FILTER] | 0x00000030; wl1251_boot_init_seq()
/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_misc.c132 unsigned int fxtal = pll->ref_freq; matroxfb_PLL_calcclock()
142 printk(KERN_ERR "ref_freq: %d\n", pll->ref_freq); matroxfb_PLL_calcclock()
546 minfo->features.pll.ref_freq = 14318; parse_pins1()
556 minfo->features.pll.ref_freq = 14318; default_pins1()
570 minfo->features.pll.ref_freq = 14318; parse_pins2()
581 minfo->features.pll.ref_freq = 14318; default_pins2()
598 minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; parse_pins3()
611 minfo->features.pll.ref_freq = 27000; default_pins3()
629 minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; parse_pins4()
643 minfo->features.pll.ref_freq = 27000; default_pins4()
667 minfo->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000; parse_pins5()
701 minfo->features.pll.ref_freq = 27000; default_pins5()
H A Dg450_pll.c35 return (minfo->features.pll.ref_freq * n + (m >> 1)) / m; g450_mnp2vco()
99 n = ((tvco * (m+1) + minfo->features.pll.ref_freq) / (minfo->features.pll.ref_freq * 2)) - 2; g450_nextpll()
H A Dmatroxfb_DAC1064.c180 } else if (minfo->crtc2.pixclock == minfo->features.pll.ref_freq) { g450_set_plls()
589 minfo->features.pll.ref_freq = 14318; MGA1064_ramdac_init()
857 if (!minfo->features.pll.ref_freq) {
858 minfo->features.pll.ref_freq = 27000;
H A Dmatroxfb_maven.c199 unsigned int ref_freq; member in struct:matrox_pll_ctl
214 .ref_freq = 540000,
219 .ref_freq = 450450, /* 27027000/60 == 27000000/59.94005994 */
229 unsigned int fxtal = ctl->ref_freq; matroxfb_PLL_mavenclock()
H A Dmatroxfb_base.h222 unsigned int ref_freq; member in struct:matrox_pll_features
H A Dmatroxfb_Ti3026.c546 minfo->features.pll.ref_freq = 114545; ti3026_ramdac_init()
/linux-4.4.14/drivers/media/i2c/cx25840/
H A Dcx25840-audio.c39 * ref_freq = 28.636360 MHz
41 * ref_freq = 28.636363 MHz
68 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
105 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
142 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
181 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
222 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
263 * FIXME 28636363 ref_freq doesn't match VID PLL ref cx25840_set_audclk_freq()
/linux-4.4.14/drivers/clk/bcm/
H A Dclk-iproc-pll.c110 static int get_kp(unsigned long ref_freq, enum kp_band kp_index) get_kp() argument
114 if (ref_freq < ref_freq_table[0][0]) get_kp()
118 if (ref_freq >= ref_freq_table[i][0] && get_kp()
119 ref_freq < ref_freq_table[i][1]) get_kp()
253 unsigned long ref_freq; pll_set_rate() local
260 ref_freq = parent_rate * 2; pll_set_rate()
262 ref_freq = parent_rate / vco->pdiv; pll_set_rate()
280 kp = get_kp(ref_freq, kp_index); pll_set_rate()
/linux-4.4.14/arch/sparc/kernel/
H A Dtime_64.c617 unsigned int ref_freq; member in struct:freq_table
640 if (!ft->ref_freq) { sparc64_cpufreq_notifier()
641 ft->ref_freq = freq->old; sparc64_cpufreq_notifier()
648 ft->ref_freq, sparc64_cpufreq_notifier()
/linux-4.4.14/arch/x86/kernel/
H A Dtsc.c910 static unsigned int ref_freq; variable
929 if (!ref_freq) { time_cpufreq_notifier()
930 ref_freq = freq->old; time_cpufreq_notifier()
936 *lpj = cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); time_cpufreq_notifier()
938 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); time_cpufreq_notifier()
/linux-4.4.14/sound/soc/codecs/
H A Darizona.c2105 if (fll->ref_src >= 0 && fll->ref_freq && arizona_enable_fll()
2107 arizona_calc_fll(fll, &cfg, fll->ref_freq, false); arizona_enable_fll()
2202 if (fll->ref_src == source && fll->ref_freq == Fref) arizona_set_fll_refclk()
2212 fll->ref_freq = Fref; arizona_set_fll_refclk()
2233 ret = arizona_validate_fll(fll, fll->ref_freq, Fout); arizona_set_fll()
2276 fll->ref_freq = 32768; arizona_init_fll()
H A Darizona.h278 unsigned int ref_freq; member in struct:arizona_fll
/linux-4.4.14/drivers/video/fbdev/aty/
H A Datyfb.h60 u16 ref_freq; member in struct:__anon11096
H A Datyfb_base.c3394 PRINTKI("PCLK_min_freq %d, PCLK_max_freq %d, ref_freq %d, ref_divider %d\n", init_from_bios()
3396 pll_block.ref_freq, pll_block.ref_divider); init_from_bios()
3403 par->pll_limits.ref_clk = pll_block.ref_freq/100; init_from_bios()
/linux-4.4.14/drivers/video/fbdev/
H A Dsmscufx.c508 static u32 ufx_calc_range(u32 ref_freq) ufx_calc_range() argument
510 if (ref_freq >= 88000000) ufx_calc_range()
513 if (ref_freq >= 54000000) ufx_calc_range()
516 if (ref_freq >= 34000000) ufx_calc_range()
519 if (ref_freq >= 21000000) ufx_calc_range()
522 if (ref_freq >= 13000000) ufx_calc_range()
525 if (ref_freq >= 8000000) ufx_calc_range()
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Dradeon_uvd.c920 unsigned vco_freq, ref_freq = rdev->clock.spll.reference_freq; radeon_uvd_calc_upll_dividers() local
932 do_div(fb_div, ref_freq); radeon_uvd_calc_upll_dividers()
H A Drv6xx_dpm.c534 static inline u32 rv6xx_calculate_spread_spectrum_clk_v(u32 vco_freq, u32 ref_freq, rv6xx_calculate_spread_spectrum_clk_v() argument
538 u32 fb_divider = vco_freq / ref_freq; rv6xx_calculate_spread_spectrum_clk_v()
544 static inline u32 rv6xx_calculate_spread_spectrum_clk_s(u32 ss_rate, u32 ref_freq) rv6xx_calculate_spread_spectrum_clk_s() argument
546 return (((ref_freq * 10) / (ss_rate * 2)) - 1) / 4; rv6xx_calculate_spread_spectrum_clk_s()
H A Dradeon_legacy_crtc.c262 static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div, radeon_compute_pll_gain() argument
270 vcoFreq = ((unsigned)ref_freq * fb_div) / ref_div; radeon_compute_pll_gain()
H A Dradeon_display.c979 * dot_clock = (ref_freq * feedback_div) / (ref_div * post_div)
/linux-4.4.14/arch/mips/netlogic/xlp/
H A Dnlm_hal.c305 * freq_out = (ref_freq/2 * (6 + ctrl2[7:0]) + ctrl2[20:8]/2^13) /
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pll.c111 * dot_clock = (ref_freq * feedback_div) / (ref_div * post_div)
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dsi2165.c273 /* ref_freq / divr must be between 4 and 16 MHz */ si2165_init_pll()
976 dev_err(&state->i2c->dev, "%s: ref_freq of %d Hz not supported by this driver\n", si2165_attach()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dfec_main.c2028 * The formula for FEC MDC is 'ref_freq / (MII_SPEED x 2)' while fec_enet_mii_init()
2029 * for ENET-MAC is 'ref_freq / ((MII_SPEED + 1) x 2)'. The i.MX28 fec_enet_mii_init()

Completed in 1049 milliseconds