Home
last modified time | relevance | path

Searched refs:postdivs (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/clk/mmp/
Dclk-audio.c98 } postdivs[] = { variable
138 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_recalc_rate()
144 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_recalc_rate()
152 val |= SSPA_AUD_PLL_CTRL1_DIV_OCLK_PATTERN(postdivs[postdiv].pattern); in audio_pll_recalc_rate()
157 freq /= postdivs[postdiv].divisor; in audio_pll_recalc_rate()
175 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_round_rate()
178 freq /= postdivs[postdiv].divisor; in audio_pll_round_rate()
204 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_set_rate()
205 if (rate * postdivs[postdiv].divisor != predivs[prediv].freq_vco) in audio_pll_set_rate()
210 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_set_rate()
[all …]
Dclk-pll.c68 static const u8 postdivs[] = {2, 3, 4, 5, 6, 8, 10, 12, 16}; in mmp_clk_pll_recalc_rate() local
76 do_div(rate, postdivs[postdiv]); in mmp_clk_pll_recalc_rate()