/openbmc/linux/drivers/video/fbdev/via/ |
H A D | via_clock.h | 47 static inline u32 get_pll_internal_frequency(u32 ref_freq, in get_pll_internal_frequency() argument 50 return ref_freq / pll.divisor * pll.multiplier; in get_pll_internal_frequency() 53 static inline u32 get_pll_output_frequency(u32 ref_freq, in get_pll_output_frequency() argument 56 return get_pll_internal_frequency(ref_freq, pll) >> pll.rshift; in get_pll_output_frequency()
|
/openbmc/linux/drivers/net/wireless/ti/wl1251/ |
H A D | boot.c | 60 u32 scr_pad6, init_data, tmp, elp_cmd, ref_freq; in wl1251_boot_init_seq() local 88 ref_freq = scr_pad6 & 0x000000FF; in wl1251_boot_init_seq() 89 wl1251_debug(DEBUG_BOOT, "ref_freq 0x%x", ref_freq); in wl1251_boot_init_seq() 143 tmp = LUT[ref_freq][LUT_PARAM_INTEGER_DIVIDER] | 0x00017000; in wl1251_boot_init_seq() 149 tmp = LUT[ref_freq][LUT_PARAM_FRACTIONAL_DIVIDER]; in wl1251_boot_init_seq() 160 tmp = (LUT[ref_freq][LUT_PARAM_ATTN_BB] << 16) | in wl1251_boot_init_seq() 161 (LUT[ref_freq][LUT_PARAM_ALPHA_BB] << 12) | 0x1; in wl1251_boot_init_seq() 168 tmp = LUT[ref_freq][LUT_PARAM_STOP_TIME_BB] | 0x000A0000; in wl1251_boot_init_seq() 176 tmp = LUT[ref_freq][LUT_PARAM_BB_PLL_LOOP_FILTER] | 0x00000030; in wl1251_boot_init_seq()
|
/openbmc/linux/drivers/clk/ |
H A D | clk-highbank.c | 110 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, in clk_pll_calc() argument 127 divf = (vco_freq + (ref_freq / 2)) / ref_freq; in clk_pll_calc() 138 unsigned long ref_freq = *parent_rate; in clk_pll_round_rate() local 140 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate() 142 return (ref_freq * (divf + 1)) / (1 << divq); in clk_pll_round_rate()
|
/openbmc/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 133 unsigned int fxtal = pll->ref_freq; in matroxfb_PLL_calcclock() 143 printk(KERN_ERR "ref_freq: %d\n", pll->ref_freq); in matroxfb_PLL_calcclock() 547 minfo->features.pll.ref_freq = 14318; in parse_pins1() 557 minfo->features.pll.ref_freq = 14318; in default_pins1() 571 minfo->features.pll.ref_freq = 14318; in parse_pins2() 582 minfo->features.pll.ref_freq = 14318; in default_pins2() 599 minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000; in parse_pins3() 612 minfo->features.pll.ref_freq = 27000; in default_pins3() 630 minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000; in parse_pins4() 644 minfo->features.pll.ref_freq = 27000; in default_pins4() [all …]
|
H A D | g450_pll.c | 35 return (minfo->features.pll.ref_freq * n + (m >> 1)) / m; in g450_mnp2vco() 99 n = ((tvco * (m+1) + minfo->features.pll.ref_freq) / (minfo->features.pll.ref_freq * 2)) - 2; in g450_nextpll()
|
H A D | matroxfb_maven.c | 200 unsigned int ref_freq; member 215 .ref_freq = 540000, 220 .ref_freq = 450450, /* 27027000/60 == 27000000/59.94005994 */ 230 unsigned int fxtal = ctl->ref_freq; in matroxfb_PLL_mavenclock()
|
H A D | matroxfb_DAC1064.c | 181 } else if (minfo->crtc2.pixclock == minfo->features.pll.ref_freq) { in g450_set_plls() 590 minfo->features.pll.ref_freq = 14318; in MGA1064_ramdac_init() 858 if (!minfo->features.pll.ref_freq) { in MGAG100_preinit() 859 minfo->features.pll.ref_freq = 27000; in MGAG100_preinit()
|
H A D | matroxfb_base.h | 221 unsigned int ref_freq; member
|
H A D | matroxfb_Ti3026.c | 547 minfo->features.pll.ref_freq = 114545; in ti3026_ramdac_init()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stv6111.c | 26 u32 ref_freq; member 384 state->ref_freq = 16000; in init_state() 460 div = fvco / state->ref_freq; in set_lof() 461 frac = fvco % state->ref_freq; in set_lof() 462 frac = muldiv32(frac, 0x40000, state->ref_freq); in set_lof()
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-iproc-pll.c | 132 static int get_kp(unsigned long ref_freq, enum kp_band kp_index) in get_kp() argument 136 if (ref_freq < ref_freq_table[0][0]) in get_kp() 140 if (ref_freq >= ref_freq_table[i][0] && in get_kp() 141 ref_freq < ref_freq_table[i][1]) in get_kp() 314 unsigned long ref_freq; in pll_set_rate() local 322 ref_freq = parent_rate * 2; in pll_set_rate() 324 ref_freq = parent_rate / vco->pdiv; in pll_set_rate() 342 kp = get_kp(ref_freq, kp_index); in pll_set_rate()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | time_64.c | 636 unsigned int ref_freq; member 662 if (!ft->ref_freq) { in sparc64_cpufreq_notifier() 663 ft->ref_freq = freq->old; in sparc64_cpufreq_notifier() 670 cpufreq_scale(ft->clock_tick_ref, ft->ref_freq, in sparc64_cpufreq_notifier()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | tsc.c | 1014 static unsigned int ref_freq; variable 1028 if (!ref_freq) { in time_cpufreq_notifier() 1029 ref_freq = freq->old; in time_cpufreq_notifier() 1037 cpufreq_scale(loops_per_jiffy_ref, ref_freq, freq->new); in time_cpufreq_notifier() 1039 tsc_khz = cpufreq_scale(tsc_khz_ref, ref_freq, freq->new); in time_cpufreq_notifier()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | smscufx.c | 506 static u32 ufx_calc_range(u32 ref_freq) in ufx_calc_range() argument 508 if (ref_freq >= 88000000) in ufx_calc_range() 511 if (ref_freq >= 54000000) in ufx_calc_range() 514 if (ref_freq >= 34000000) in ufx_calc_range() 517 if (ref_freq >= 21000000) in ufx_calc_range() 520 if (ref_freq >= 13000000) in ufx_calc_range() 523 if (ref_freq >= 8000000) in ufx_calc_range()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | arizona.c | 2448 if (fll->ref_src >= 0 && fll->ref_freq && in arizona_enable_fll() 2450 arizona_calc_fll(fll, &cfg, fll->ref_freq, false); in arizona_enable_fll() 2560 if (fll->ref_src == source && fll->ref_freq == Fref) in arizona_set_fll_refclk() 2570 fll->ref_freq = Fref; in arizona_set_fll_refclk() 2590 ret = arizona_validate_fll(fll, fll->ref_freq, Fout); in arizona_set_fll() 2633 fll->ref_freq = 32768; in arizona_init_fll()
|
H A D | madera.c | 3961 if (fll->ref_src < 0 || fll->ref_freq == 0) { in madera_enable_fll() 4022 ret = madera_calc_fll(fll, &cfg, fll->ref_freq, false); in madera_enable_fll() 4147 fll->ref_freq == fref && fll->fout == fout) in madera_set_fll_refclk() 4166 fll->ref_freq = fref; in madera_set_fll_refclk() 4340 fll->ref_freq == fin && fll->fout == fout) in madera_set_fll_ao_refclk() 4346 if (fout && (fll->ref_freq != fin || fll->fout != fout)) { in madera_set_fll_ao_refclk() 4364 fll->ref_freq = fin; in madera_set_fll_ao_refclk() 4591 ret = madera_fllhj_apply(fll, fll->ref_freq); in madera_fllhj_enable() 4665 if (fll->ref_src == source && fll->ref_freq == fin && in madera_fllhj_set_refclk() 4673 fll->ref_freq = fin; in madera_fllhj_set_refclk()
|
H A D | arizona.h | 329 unsigned int ref_freq; member
|
H A D | madera.h | 169 unsigned int ref_freq; member
|
/openbmc/linux/drivers/video/fbdev/aty/ |
H A D | atyfb.h | 63 u16 ref_freq; member
|
H A D | atyfb_base.c | 3396 pll_block.ref_freq, pll_block.ref_divider); in init_from_bios() 3403 par->pll_limits.ref_clk = pll_block.ref_freq/100; in init_from_bios()
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 266 static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div, in radeon_compute_pll_gain() argument 274 vcoFreq = ((unsigned)ref_freq * fb_div) / ref_div; in radeon_compute_pll_gain()
|
H A D | radeon_uvd.c | 959 unsigned vco_freq, ref_freq = rdev->clock.spll.reference_freq; in radeon_uvd_calc_upll_dividers() local 971 do_div(fb_div, ref_freq); in radeon_uvd_calc_upll_dividers()
|
H A D | rv6xx_dpm.c | 533 static inline u32 rv6xx_calculate_spread_spectrum_clk_v(u32 vco_freq, u32 ref_freq, in rv6xx_calculate_spread_spectrum_clk_v() argument 537 u32 fb_divider = vco_freq / ref_freq; in rv6xx_calculate_spread_spectrum_clk_v() 543 static inline u32 rv6xx_calculate_spread_spectrum_clk_s(u32 ss_rate, u32 ref_freq) in rv6xx_calculate_spread_spectrum_clk_s() argument 545 return (((ref_freq * 10) / (ss_rate * 2)) - 1) / 4; in rv6xx_calculate_spread_spectrum_clk_s()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display.h | 432 const char *name, u32 reg, int ref_freq);
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | si.c | 1723 unsigned vco_freq, ref_freq = adev->clock.spll.reference_freq; in si_calc_upll_dividers() local 1734 do_div(fb_div, ref_freq); in si_calc_upll_dividers()
|