Lines Matching refs:_nkmp
132 struct _ccu_nkmp _nkmp; in ccu_nkmp_round_rate() local
144 _nkmp.min_n = nkmp->n.min ?: 1; in ccu_nkmp_round_rate()
145 _nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width; in ccu_nkmp_round_rate()
146 _nkmp.min_k = nkmp->k.min ?: 1; in ccu_nkmp_round_rate()
147 _nkmp.max_k = nkmp->k.max ?: 1 << nkmp->k.width; in ccu_nkmp_round_rate()
148 _nkmp.min_m = 1; in ccu_nkmp_round_rate()
149 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_round_rate()
150 _nkmp.min_p = 1; in ccu_nkmp_round_rate()
151 _nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1); in ccu_nkmp_round_rate()
153 ccu_nkmp_find_best(*parent_rate, rate, &_nkmp); in ccu_nkmp_round_rate()
155 rate = ccu_nkmp_calc_rate(*parent_rate, _nkmp.n, _nkmp.k, in ccu_nkmp_round_rate()
156 _nkmp.m, _nkmp.p); in ccu_nkmp_round_rate()
168 struct _ccu_nkmp _nkmp; in ccu_nkmp_set_rate() local
175 _nkmp.min_n = nkmp->n.min ?: 1; in ccu_nkmp_set_rate()
176 _nkmp.max_n = nkmp->n.max ?: 1 << nkmp->n.width; in ccu_nkmp_set_rate()
177 _nkmp.min_k = nkmp->k.min ?: 1; in ccu_nkmp_set_rate()
178 _nkmp.max_k = nkmp->k.max ?: 1 << nkmp->k.width; in ccu_nkmp_set_rate()
179 _nkmp.min_m = 1; in ccu_nkmp_set_rate()
180 _nkmp.max_m = nkmp->m.max ?: 1 << nkmp->m.width; in ccu_nkmp_set_rate()
181 _nkmp.min_p = 1; in ccu_nkmp_set_rate()
182 _nkmp.max_p = nkmp->p.max ?: 1 << ((1 << nkmp->p.width) - 1); in ccu_nkmp_set_rate()
184 ccu_nkmp_find_best(parent_rate, rate, &_nkmp); in ccu_nkmp_set_rate()
210 reg |= ((_nkmp.n - nkmp->n.offset) << nkmp->n.shift) & n_mask; in ccu_nkmp_set_rate()
211 reg |= ((_nkmp.k - nkmp->k.offset) << nkmp->k.shift) & k_mask; in ccu_nkmp_set_rate()
212 reg |= ((_nkmp.m - nkmp->m.offset) << nkmp->m.shift) & m_mask; in ccu_nkmp_set_rate()
213 reg |= (ilog2(_nkmp.p) << nkmp->p.shift) & p_mask; in ccu_nkmp_set_rate()