Lines Matching refs:_nkm
113 struct _ccu_nkm _nkm; in ccu_nkm_round_rate() local
115 _nkm.min_n = nkm->n.min ?: 1; in ccu_nkm_round_rate()
116 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_round_rate()
117 _nkm.min_k = nkm->k.min ?: 1; in ccu_nkm_round_rate()
118 _nkm.max_k = nkm->k.max ?: 1 << nkm->k.width; in ccu_nkm_round_rate()
119 _nkm.min_m = 1; in ccu_nkm_round_rate()
120 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_round_rate()
125 ccu_nkm_find_best(*parent_rate, rate, &_nkm); in ccu_nkm_round_rate()
127 rate = *parent_rate * _nkm.n * _nkm.k / _nkm.m; in ccu_nkm_round_rate()
148 struct _ccu_nkm _nkm; in ccu_nkm_set_rate() local
155 _nkm.min_n = nkm->n.min ?: 1; in ccu_nkm_set_rate()
156 _nkm.max_n = nkm->n.max ?: 1 << nkm->n.width; in ccu_nkm_set_rate()
157 _nkm.min_k = nkm->k.min ?: 1; in ccu_nkm_set_rate()
158 _nkm.max_k = nkm->k.max ?: 1 << nkm->k.width; in ccu_nkm_set_rate()
159 _nkm.min_m = 1; in ccu_nkm_set_rate()
160 _nkm.max_m = nkm->m.max ?: 1 << nkm->m.width; in ccu_nkm_set_rate()
162 ccu_nkm_find_best(parent_rate, rate, &_nkm); in ccu_nkm_set_rate()
171 reg |= (_nkm.n - nkm->n.offset) << nkm->n.shift; in ccu_nkm_set_rate()
172 reg |= (_nkm.k - nkm->k.offset) << nkm->k.shift; in ccu_nkm_set_rate()
173 reg |= (_nkm.m - nkm->m.offset) << nkm->m.shift; in ccu_nkm_set_rate()