Lines Matching refs:_nm
127 struct _ccu_nm _nm; in ccu_nm_round_rate() local
151 _nm.min_n = nm->n.min ?: 1; in ccu_nm_round_rate()
152 _nm.max_n = nm->n.max ?: 1 << nm->n.width; in ccu_nm_round_rate()
153 _nm.min_m = 1; in ccu_nm_round_rate()
154 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_round_rate()
156 ccu_nm_find_best(*parent_rate, rate, &_nm); in ccu_nm_round_rate()
157 rate = ccu_nm_calc_rate(*parent_rate, _nm.n, _nm.m); in ccu_nm_round_rate()
169 struct _ccu_nm _nm; in ccu_nm_set_rate() local
195 _nm.min_n = nm->n.min ?: 1; in ccu_nm_set_rate()
196 _nm.max_n = nm->n.max ?: 1 << nm->n.width; in ccu_nm_set_rate()
197 _nm.min_m = 1; in ccu_nm_set_rate()
198 _nm.max_m = nm->m.max ?: 1 << nm->m.width; in ccu_nm_set_rate()
205 &_nm.m, &_nm.n); in ccu_nm_set_rate()
208 ccu_nm_find_best(parent_rate, rate, &_nm); in ccu_nm_set_rate()
217 reg |= (_nm.n - nm->n.offset) << nm->n.shift; in ccu_nm_set_rate()
218 reg |= (_nm.m - nm->m.offset) << nm->m.shift; in ccu_nm_set_rate()