Lines Matching refs:p
17 unsigned long p, min_p, max_p; member
22 unsigned long m, unsigned long p) in ccu_nkmp_calc_rate()
27 do_div(rate, m * p); in ccu_nkmp_calc_rate()
67 nkmp->p = best_p; in ccu_nkmp_find_best()
97 unsigned long n, m, k, p, rate; in ccu_nkmp_recalc_rate() local
120 p = reg >> nkmp->p.shift; in ccu_nkmp_recalc_rate()
121 p &= (1 << nkmp->p.width) - 1; in ccu_nkmp_recalc_rate()
123 rate = ccu_nkmp_calc_rate(parent_rate, n, k, m, 1 << p); in ccu_nkmp_recalc_rate()
153 _nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1); in ccu_nkmp_round_rate()
182 _nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1); in ccu_nkmp_set_rate()
201 if (nkmp->p.width) in ccu_nkmp_set_rate()
202 p_mask = GENMASK(nkmp->p.width + nkmp->p.shift - 1, in ccu_nkmp_set_rate()
203 nkmp->p.shift); in ccu_nkmp_set_rate()
213 reg |= (ilog2(_nkmp.p) << nkmp->p.shift) & p_mask; in ccu_nkmp_set_rate()