Lines Matching refs:_nk
99 struct _ccu_nk _nk; in ccu_nk_round_rate() local
104 _nk.min_n = nk->n.min ?: 1; in ccu_nk_round_rate()
105 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_round_rate()
106 _nk.min_k = nk->k.min ?: 1; in ccu_nk_round_rate()
107 _nk.max_k = nk->k.max ?: 1 << nk->k.width; in ccu_nk_round_rate()
109 rate = ccu_nk_find_best(*parent_rate, rate, &_nk); in ccu_nk_round_rate()
122 struct _ccu_nk _nk; in ccu_nk_set_rate() local
128 _nk.min_n = nk->n.min ?: 1; in ccu_nk_set_rate()
129 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_set_rate()
130 _nk.min_k = nk->k.min ?: 1; in ccu_nk_set_rate()
131 _nk.max_k = nk->k.max ?: 1 << nk->k.width; in ccu_nk_set_rate()
133 ccu_nk_find_best(parent_rate, rate, &_nk); in ccu_nk_set_rate()
141 reg |= (_nk.k - nk->k.offset) << nk->k.shift; in ccu_nk_set_rate()
142 reg |= (_nk.n - nk->n.offset) << nk->n.shift; in ccu_nk_set_rate()