Searched refs:postdivs (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/clk/mmp/ |
H A D | clk-audio.c | 98 } 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[postdi in audio_pll_set_rate() [all...] |
H A D | clk-pll.c | 68 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()
|
/kernel/linux/linux-6.6/drivers/clk/mmp/ |
H A D | clk-audio.c | 100 } postdivs[] = { variable 140 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_recalc_rate() 146 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdiv].modulo); in audio_pll_recalc_rate() 154 val |= SSPA_AUD_PLL_CTRL1_DIV_OCLK_PATTERN(postdivs[postdiv].pattern); in audio_pll_recalc_rate() 159 freq /= postdivs[postdiv].divisor; in audio_pll_recalc_rate() 177 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_round_rate() 180 freq /= postdivs[postdiv].divisor; in audio_pll_round_rate() 206 for (postdiv = 0; postdiv < ARRAY_SIZE(postdivs); postdiv++) { in audio_pll_set_rate() 207 if (rate * postdivs[postdiv].divisor != predivs[prediv].freq_vco) in audio_pll_set_rate() 212 val |= SSPA_AUD_PLL_CTRL0_DIV_OCLK_MODULO(postdivs[postdi in audio_pll_set_rate() [all...] |
H A D | clk-pll.c | 68 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()
|
Completed in 3 milliseconds