Home
last modified time | relevance | path

Searched refs:ref_div (Results 1 – 25 of 36) sorted by relevance

12

/linux/arch/mips/ath79/
A Dclock.c148 u32 ref_div; in ar933x_clocks_init() local
167 ref_div = 1; in ar933x_clocks_init()
182 ref_div = t; in ar933x_clocks_init()
205 ref_div * out_div * cpu_div); in ar933x_clocks_init()
207 ref_div * out_div * ddr_div); in ar933x_clocks_init()
209 ref_div * out_div * ahb_div); in ar933x_clocks_init()
220 do_div(t, ref_div); in ar934x_get_pll_freq()
225 do_div(t, ref_div * frac); in ar934x_get_pll_freq()
378 cpu_pll = nint * ref_rate / ref_div; in qca953x_clocks_init()
392 ddr_pll = nint * ref_rate / ref_div; in qca953x_clocks_init()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_pll.c86 unsigned int *fb_div, unsigned int *ref_div) in amdgpu_pll_get_fb_ref_div() argument
97 *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); in amdgpu_pll_get_fb_ref_div()
101 *ref_div = DIV_ROUND_CLOSEST(*ref_div * fb_div_max, *fb_div); in amdgpu_pll_get_fb_ref_div()
134 unsigned ref_div_min, ref_div_max, ref_div; in amdgpu_pll_compute() local
209 ref_div_max, &fb_div, &ref_div); in amdgpu_pll_compute()
211 (ref_div * post_div)); in amdgpu_pll_compute()
224 &fb_div, &ref_div); in amdgpu_pll_compute()
236 ref_div *= tmp; in amdgpu_pll_compute()
251 (ref_div * post_div * 10); in amdgpu_pll_compute()
252 *ref_div_p = ref_div; in amdgpu_pll_compute()
[all …]
A Datombios_crtc.c582 u32 ref_div, in amdgpu_atombios_crtc_program_pll() argument
609 args.v1.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
619 args.v2.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
629 args.v3.usRefDiv = cpu_to_le16(ref_div); in amdgpu_atombios_crtc_program_pll()
646 args.v5.ucRefDiv = ref_div; in amdgpu_atombios_crtc_program_pll()
676 args.v6.ucRefDiv = ref_div; in amdgpu_atombios_crtc_program_pll()
826 u32 ref_div = 0, fb_div = 0, frac_fb_div = 0, post_div = 0; in amdgpu_atombios_crtc_set_pll() local
855 &fb_div, &frac_fb_div, &ref_div, &post_div); in amdgpu_atombios_crtc_set_pll()
862 ref_div, fb_div, frac_fb_div, post_div, in amdgpu_atombios_crtc_set_pll()
875 step_size = (4 * amount * ref_div * ((u32)amdgpu_crtc->ss.rate * 2048)) / in amdgpu_atombios_crtc_set_pll()
[all …]
A Datombios_crtc.h48 u32 ref_div,
A Damdgpu_atombios.h43 u32 ref_div; member
A Damdgpu_atombios.c1030 dividers->ref_div = args.v3.ucRefDiv; in amdgpu_atombios_get_clock_dividers()
1050 dividers->ref_div = args.v5.ucRefDiv; in amdgpu_atombios_get_clock_dividers()
1074 dividers->ref_div = args.v6_out.ucPllRefDiv; in amdgpu_atombios_get_clock_dividers()
/linux/drivers/gpu/drm/radeon/
A Dradeon_clocks.c50 ref_div = in radeon_legacy_get_engine_clock()
53 if (ref_div == 0) in radeon_legacy_get_engine_clock()
56 sclk = fb_div / ref_div; in radeon_legacy_get_engine_clock()
80 ref_div = in radeon_legacy_get_memory_clock()
83 if (ref_div == 0) in radeon_legacy_get_memory_clock()
86 mclk = fb_div / ref_div; in radeon_legacy_get_memory_clock()
356 int ref_div = spll->reference_div; in calc_eng_mem_clock() local
358 if (!ref_div) in calc_eng_mem_clock()
359 ref_div = in calc_eng_mem_clock()
375 req_clock *= ref_div; in calc_eng_mem_clock()
[all …]
A Dradeon_display.c932 *ref_div = (*ref_div * fb_div_max)/(*fb_div); in avivo_get_fb_ref_div()
1044 (ref_div * post_div)); in radeon_compute_pll_avivo()
1057 &fb_div, &ref_div); in radeon_compute_pll_avivo()
1069 ref_div *= tmp; in radeon_compute_pll_avivo()
1085 *ref_div_p = ref_div; in radeon_compute_pll_avivo()
1090 ref_div, post_div); in radeon_compute_pll_avivo()
1165 uint32_t ref_div; in radeon_compute_pll_legacy() local
1183 for (ref_div = min_ref_div; ref_div <= max_ref_div; ++ref_div) { in radeon_compute_pll_legacy()
1232 best_ref_div = ref_div; in radeon_compute_pll_legacy()
1241 best_ref_div = ref_div; in radeon_compute_pll_legacy()
[all …]
A Drv740_dpm.c140 reference_divider = 1 + dividers.ref_div; in rv740_populate_sclk_value()
147 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv740_populate_sclk_value()
215 mpll_ad_func_cntl |= CLKR(dividers.ref_div); in rv740_populate_mclk_value()
232 mpll_dq_func_cntl |= CLKR(dividers.ref_div); in rv740_populate_mclk_value()
251 u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div); in rv740_populate_mclk_value()
A Drs780_dpm.c87 r600_engine_clock_entry_set_reference_divider(rdev, 0, dividers.ref_div); in rs780_initialize_dpm_power_state()
453 if ((min_dividers.ref_div != max_dividers.ref_div) || in rs780_set_engine_clock_scaling()
455 (max_dividers.ref_div != current_max_dividers.ref_div) || in rs780_set_engine_clock_scaling()
988 u32 ref_div = ((func_cntl & SPLL_REF_DIV_MASK) >> SPLL_REF_DIV_SHIFT) + 1; in rs780_dpm_debugfs_print_current_performance_level() local
992 (post_div * ref_div); in rs780_dpm_debugfs_print_current_performance_level()
1010 u32 ref_div = ((func_cntl & SPLL_REF_DIV_MASK) >> SPLL_REF_DIV_SHIFT) + 1; in rs780_dpm_get_current_sclk() local
1014 (post_div * ref_div); in rs780_dpm_get_current_sclk()
A Datombios_crtc.c828 u32 ref_div, in atombios_crtc_program_pll() argument
855 args.v1.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
865 args.v2.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
875 args.v3.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
892 args.v5.ucRefDiv = ref_div; in atombios_crtc_program_pll()
921 args.v6.ucRefDiv = ref_div; in atombios_crtc_program_pll()
1071 u32 ref_div = 0, fb_div = 0, frac_fb_div = 0, post_div = 0; in atombios_crtc_set_pll() local
1103 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
1106 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
1109 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
[all …]
A Drv730_dpm.c59 reference_divider = 1 + dividers.ref_div; in rv730_populate_sclk_value()
77 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv730_populate_sclk_value()
137 reference_divider = dividers.ref_div + 1; in rv730_populate_mclk_value()
152 mpll_func_cntl |= MPLL_REF_DIV(dividers.ref_div); in rv730_populate_mclk_value()
A Drv770_dpm.c335 reference_divider = dividers->ref_div; in rv770_calculate_fractional_mpll_feedback_divider()
416 if ((dividers.ref_div < 1) || (dividers.ref_div > 5)) in rv770_populate_mclk_value()
434 mpll_ad_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
462 mpll_dq_func_cntl |= CLKR(encoded_reference_dividers[dividers.ref_div - 1]); in rv770_populate_mclk_value()
512 reference_divider = 1 + dividers.ref_div; in rv770_populate_sclk_value()
528 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in rv770_populate_sclk_value()
812 (MPLL_LOCK_TIME(R600_MPLLLOCKTIME_DFLT * pi->ref_div) | in rv770_program_mpll_timing_parameters()
2378 pi->ref_div = dividers.ref_div + 1; in rv770_dpm_init()
2380 pi->ref_div = R600_REFERENCEDIVIDER_DFLT; in rv770_dpm_init()
A Drv6xx_dpm.c530 (dividers->ref_div + 1); in rv6xx_calculate_vco_frequency()
567 (ref_clk / (dividers.ref_div + 1)), in rv6xx_program_engine_spread_spectrum()
573 (ref_clk / (dividers.ref_div + 1))); in rv6xx_program_engine_spread_spectrum()
606 rv6xx_memory_clock_entry_set_reference_divider(rdev, entry, dividers.ref_div); in rv6xx_program_mclk_stepping_entry()
685 (ref_clk / (dividers.ref_div + 1)), in rv6xx_program_mclk_spread_spectrum_parameters()
691 (ref_clk / (dividers.ref_div + 1))); in rv6xx_program_mclk_spread_spectrum_parameters()
1960 pi->spll_ref_div = dividers.ref_div + 1; in rv6xx_dpm_init()
1967 pi->mpll_ref_div = dividers.ref_div + 1; in rv6xx_dpm_init()
A Dradeon_legacy_crtc.c266 static uint8_t radeon_compute_pll_gain(uint16_t ref_freq, uint16_t ref_div, in radeon_compute_pll_gain() argument
271 if (!ref_div) in radeon_compute_pll_gain()
274 vcoFreq = ((unsigned)ref_freq * fb_div) / ref_div; in radeon_compute_pll_gain()
A Dcypress_dpm.c518 mpll_ad_func_cntl |= CLKR(dividers.ref_div); in cypress_populate_mclk_value()
535 mpll_dq_func_cntl |= CLKR(dividers.ref_div); in cypress_populate_mclk_value()
559 u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div); in cypress_populate_mclk_value()
2057 pi->ref_div = dividers.ref_div + 1; in cypress_dpm_init()
2059 pi->ref_div = R600_REFERENCEDIVIDER_DFLT; in cypress_dpm_init()
A Drv770_dpm.h115 u32 ref_div; member
A Dni_dpm.c2022 reference_divider = 1 + dividers.ref_div; in ni_calculate_sclk_params()
2030 spll_func_cntl |= SPLL_REF_DIV(dividers.ref_div); in ni_calculate_sclk_params()
2202 mpll_ad_func_cntl |= CLKR(dividers.ref_div); in ni_populate_mclk_value()
2219 mpll_dq_func_cntl |= CLKR(dividers.ref_div); in ni_populate_mclk_value()
2243 u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div); in ni_populate_mclk_value()
4109 pi->ref_div = dividers.ref_div + 1; in ni_dpm_init()
4111 pi->ref_div = R600_REFERENCEDIVIDER_DFLT; in ni_dpm_init()
/linux/drivers/media/dvb-frontends/
A Dtda8261.c72 static const u8 ref_div[] = { 0x00, 0x01, 0x02, 0x05, 0x07 }; variable
109 buf[2] = (0x01 << 7) | ((ref_div[config->step_size] & 0x07) << 1); in tda8261_set_params()
/linux/drivers/net/wireless/ath/ath9k/
A Dar9002_phy.c307 int ref_div = 5; in ar9002_hw_compute_pll_control() local
313 ref_div = 10; in ar9002_hw_compute_pll_control()
320 pll = SM(ref_div, AR_RTC_9160_PLL_REFDIV); in ar9002_hw_compute_pll_control()
/linux/drivers/gpu/drm/amd/display/dc/dcn20/
A Ddcn20_hubbub.c544 uint32_t ref_div = 0; in hubbub2_get_dchub_ref_freq() local
547 REG_GET_2(DCHUBBUB_GLOBAL_TIMER_CNTL, DCHUBBUB_GLOBAL_TIMER_REFDIV, &ref_div, in hubbub2_get_dchub_ref_freq()
551 if (ref_div == 2) in hubbub2_get_dchub_ref_freq()
/linux/drivers/video/fbdev/aty/
A Dradeon_base.c578 unsigned sclk, mclk, tmp, ref_div; in radeon_probe_pll_params() local
688 ref_div = INPLL(PPLL_REF_DIV) & 0x3ff; in radeon_probe_pll_params()
698 rinfo->pll.ref_div = ref_div; in radeon_probe_pll_params()
767 rinfo->pll.ref_div = INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK; in radeon_get_pllinfo()
790 rinfo->pll.ref_div = BIOS_IN16(pll_info_block + 0x10); in radeon_get_pllinfo()
825 rinfo->pll.ref_div, in radeon_get_pllinfo()
1614 rinfo->pll.ref_div, rinfo->pll.ref_clk, in radeon_calc_pll_regs()
1624 rinfo->pll.ref_div, rinfo->pll.ref_clk, in radeon_calc_pll_regs()
1627 fb_div = round_div(rinfo->pll.ref_div*pll_output_freq, in radeon_calc_pll_regs()
1629 regs->ppll_ref_div = rinfo->pll.ref_div; in radeon_calc_pll_regs()
A Datyfb.h51 int ref_div; member
A Dradeonfb.h142 int ref_div; member
/linux/drivers/gpu/drm/amd/display/dc/dcn31/
A Ddcn31_hubbub.c917 uint32_t ref_div = 0; in hubbub31_get_dchub_ref_freq() local
921 REG_GET_2(DCHUBBUB_GLOBAL_TIMER_CNTL, DCHUBBUB_GLOBAL_TIMER_REFDIV, &ref_div, in hubbub31_get_dchub_ref_freq()
925 if (ref_div == 2) in hubbub31_get_dchub_ref_freq()

Completed in 75 milliseconds

12