Lines Matching refs:_nkm
172 struct _ccu_nkm _nkm; in ccu_nkm_round_rate() local
174 _nkm.min_n = nkm->n.min ?: 1; in ccu_nkm_round_rate()
175 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_round_rate()
176 _nkm.min_k = nkm->k.min ?: 1; in ccu_nkm_round_rate()
177 _nkm.max_k = nkm->k.max ?: 1 << nkm->k.width; in ccu_nkm_round_rate()
178 _nkm.min_m = 1; in ccu_nkm_round_rate()
179 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_round_rate()
185 rate = ccu_nkm_find_best(*parent_rate, rate, &_nkm, &nkm->common); in ccu_nkm_round_rate()
188 &_nkm); in ccu_nkm_round_rate()
209 struct _ccu_nkm _nkm; in ccu_nkm_set_rate() local
216 _nkm.min_n = nkm->n.min ?: 1; in ccu_nkm_set_rate()
217 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_set_rate()
218 _nkm.min_k = nkm->k.min ?: 1; in ccu_nkm_set_rate()
219 _nkm.max_k = nkm->k.max ?: 1 << nkm->k.width; in ccu_nkm_set_rate()
220 _nkm.min_m = 1; in ccu_nkm_set_rate()
221 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_set_rate()
223 ccu_nkm_find_best(parent_rate, rate, &_nkm, &nkm->common); in ccu_nkm_set_rate()
232 reg |= (_nkm.n - nkm->n.offset) << nkm->n.shift; in ccu_nkm_set_rate()
233 reg |= (_nkm.k - nkm->k.offset) << nkm->k.shift; in ccu_nkm_set_rate()
234 reg |= (_nkm.m - nkm->m.offset) << nkm->m.shift; in ccu_nkm_set_rate()