Lines Matching refs:_nk
97 struct _ccu_nk _nk; in ccu_nk_round_rate() local
102 _nk.min_n = nk->n.min ?: 1; in ccu_nk_round_rate()
103 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_round_rate()
104 _nk.min_k = nk->k.min ?: 1; in ccu_nk_round_rate()
105 _nk.max_k = nk->k.max ?: 1 << nk->k.width; in ccu_nk_round_rate()
107 ccu_nk_find_best(*parent_rate, rate, &_nk); in ccu_nk_round_rate()
108 rate = *parent_rate * _nk.n * _nk.k; in ccu_nk_round_rate()
121 struct _ccu_nk _nk; in ccu_nk_set_rate() local
127 _nk.min_n = nk->n.min ?: 1; in ccu_nk_set_rate()
128 _nk.max_n = nk->n.max ?: 1 << nk->n.width; in ccu_nk_set_rate()
129 _nk.min_k = nk->k.min ?: 1; in ccu_nk_set_rate()
130 _nk.max_k = nk->k.max ?: 1 << nk->k.width; in ccu_nk_set_rate()
132 ccu_nk_find_best(parent_rate, rate, &_nk); in ccu_nk_set_rate()
140 reg |= (_nk.k - nk->k.offset) << nk->k.shift; in ccu_nk_set_rate()
141 reg |= (_nk.n - nk->n.offset) << nk->n.shift; in ccu_nk_set_rate()