Home
last modified time | relevance | path

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

/freebsd-12.1/sys/mips/atheros/
H A Dar934x_chip.c71 ar934x_get_pll_freq(uint32_t ref, uint32_t ref_div, uint32_t nint, in ar934x_get_pll_freq() argument
79 t = t / ref_div; in ar934x_get_pll_freq()
84 t = t / (ref_div * frac); in ar934x_get_pll_freq()
94 uint32_t pll, out_div, ref_div, nint, nfrac, frac, clk_ctrl, postdiv; in ar934x_chip_detect_sys_frequency() local
113 ref_div = (pll >> AR934X_SRIF_DPLL1_REFDIV_SHIFT) & in ar934x_chip_detect_sys_frequency()
120 ref_div = (pll >> AR934X_PLL_CPU_CONFIG_REFDIV_SHIFT) & in ar934x_chip_detect_sys_frequency()
129 cpu_pll = ar934x_get_pll_freq(u_ar71xx_refclk, ref_div, nint, in ar934x_chip_detect_sys_frequency()
140 ref_div = (pll >> AR934X_SRIF_DPLL1_REFDIV_SHIFT) & in ar934x_chip_detect_sys_frequency()
147 ref_div = (pll >> AR934X_PLL_DDR_CONFIG_REFDIV_SHIFT) & in ar934x_chip_detect_sys_frequency()
156 ddr_pll = ar934x_get_pll_freq(u_ar71xx_refclk, ref_div, nint, in ar934x_chip_detect_sys_frequency()
H A Dqca953x_chip.c76 uint32_t pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv; in qca953x_chip_detect_sys_frequency() local
89 ref_div = (pll >> QCA953X_PLL_CPU_CONFIG_REFDIV_SHIFT) & in qca953x_chip_detect_sys_frequency()
96 cpu_pll = nint * ref_rate / ref_div; in qca953x_chip_detect_sys_frequency()
97 cpu_pll += frac * (ref_rate >> 6) / ref_div; in qca953x_chip_detect_sys_frequency()
103 ref_div = (pll >> QCA953X_PLL_DDR_CONFIG_REFDIV_SHIFT) & in qca953x_chip_detect_sys_frequency()
110 ddr_pll = nint * ref_rate / ref_div; in qca953x_chip_detect_sys_frequency()
111 ddr_pll += frac * (ref_rate >> 6) / (ref_div << 4); in qca953x_chip_detect_sys_frequency()
H A Dqca955x_chip.c77 uint32_t pll, out_div, ref_div, nint, frac, clk_ctrl, postdiv; in qca955x_chip_detect_sys_frequency() local
90 ref_div = (pll >> QCA955X_PLL_CPU_CONFIG_REFDIV_SHIFT) & in qca955x_chip_detect_sys_frequency()
97 cpu_pll = nint * ref_rate / ref_div; in qca955x_chip_detect_sys_frequency()
98 cpu_pll += frac * ref_rate / (ref_div * (1 << 6)); in qca955x_chip_detect_sys_frequency()
104 ref_div = (pll >> QCA955X_PLL_DDR_CONFIG_REFDIV_SHIFT) & in qca955x_chip_detect_sys_frequency()
111 ddr_pll = nint * ref_rate / ref_div; in qca955x_chip_detect_sys_frequency()
112 ddr_pll += frac * ref_rate / (ref_div * (1 << 10)); in qca955x_chip_detect_sys_frequency()
/freebsd-12.1/sys/dev/drm2/radeon/
H 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 …]
H A Dradeon_display.c751 u32 ref_div, in avivo_get_fb_div() argument
755 u32 tmp = post_div * ref_div; in avivo_get_fb_div()
847 ref_div++; in radeon_compute_pll_avivo()
851 ref_div++; in radeon_compute_pll_avivo()
856 (ref_div * post_div * 10); in radeon_compute_pll_avivo()
859 *ref_div_p = ref_div; in radeon_compute_pll_avivo()
939 uint32_t ref_div; in radeon_compute_pll_legacy() local
957 for (ref_div = min_ref_div; ref_div <= max_ref_div; ++ref_div) { in radeon_compute_pll_legacy()
1006 best_ref_div = ref_div; in radeon_compute_pll_legacy()
1015 best_ref_div = ref_div; in radeon_compute_pll_legacy()
[all …]
H A Datombios_crtc.c775 u32 ref_div, in atombios_crtc_program_pll() argument
802 args.v1.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
812 args.v2.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
822 args.v3.usRefDiv = cpu_to_le16(ref_div); in atombios_crtc_program_pll()
839 args.v5.ucRefDiv = ref_div; in atombios_crtc_program_pll()
861 args.v6.ucRefDiv = ref_div; in atombios_crtc_program_pll()
1000 u32 ref_div = 0, fb_div = 0, frac_fb_div = 0, post_div = 0; in atombios_crtc_set_pll() local
1026 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
1029 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
1032 &fb_div, &frac_fb_div, &ref_div, &post_div); in atombios_crtc_set_pll()
[all …]
H 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()