Lines Matching refs:od
85 unsigned m, n, od_enc, od; in ingenic_pll_recalc_rate() local
111 for (od = 0; od < pll_info->od_max; od++) { in ingenic_pll_recalc_rate()
112 if (pll_info->od_encoding[od] == od_enc) in ingenic_pll_recalc_rate()
115 BUG_ON(od == pll_info->od_max); in ingenic_pll_recalc_rate()
116 od++; in ingenic_pll_recalc_rate()
118 return div_u64((u64)parent_rate * m, n * od); in ingenic_pll_recalc_rate()
127 unsigned m, n, od; in ingenic_pll_calc() local
130 od = 1; in ingenic_pll_calc()
140 m = (rate / MHZ) * od * n / (parent_rate / MHZ); in ingenic_pll_calc()
149 *pod = od; in ingenic_pll_calc()
151 return div_u64((u64)parent_rate * m, n * od); in ingenic_pll_calc()
185 unsigned int m, n, od; in ingenic_pll_set_rate() local
189 &m, &n, &od); in ingenic_pll_set_rate()
204 ctl |= pll_info->od_encoding[od - 1] << pll_info->od_shift; in ingenic_pll_set_rate()