Lines Matching refs:freq_mhz
86 u32 freq_mhz = req->rate / 1000000; in sun6i_a31_get_pll1_factors() local
93 u32 round_freq_6 = rounddown(freq_mhz, 6); in sun6i_a31_get_pll1_factors()
94 u32 round_freq_16 = round_down(freq_mhz, 16); in sun6i_a31_get_pll1_factors()
97 freq_mhz = round_freq_6; in sun6i_a31_get_pll1_factors()
99 freq_mhz = round_freq_16; in sun6i_a31_get_pll1_factors()
101 req->rate = freq_mhz * 1000000; in sun6i_a31_get_pll1_factors()
104 if (!(freq_mhz % 32)) in sun6i_a31_get_pll1_factors()
107 else if (!(freq_mhz % 9)) in sun6i_a31_get_pll1_factors()
110 else if (!(freq_mhz % 8)) in sun6i_a31_get_pll1_factors()
124 if ((freq_mhz % 6) == 2 || (freq_mhz % 6) == 4) in sun6i_a31_get_pll1_factors()
130 else if ((freq_mhz / 6) & 1) in sun6i_a31_get_pll1_factors()
137 req->n = freq_mhz * (req->m + 1) / ((req->k + 1) * parent_freq_mhz) in sun6i_a31_get_pll1_factors()