Lines Matching full:setting
52 struct meson_clk_dualdiv_param setting; in meson_clk_dualdiv_recalc_rate() local
54 setting.dual = meson_parm_read(clk->map, &dualdiv->dual); in meson_clk_dualdiv_recalc_rate()
55 setting.n1 = meson_parm_read(clk->map, &dualdiv->n1) + 1; in meson_clk_dualdiv_recalc_rate()
56 setting.m1 = meson_parm_read(clk->map, &dualdiv->m1) + 1; in meson_clk_dualdiv_recalc_rate()
57 setting.n2 = meson_parm_read(clk->map, &dualdiv->n2) + 1; in meson_clk_dualdiv_recalc_rate()
58 setting.m2 = meson_parm_read(clk->map, &dualdiv->m2) + 1; in meson_clk_dualdiv_recalc_rate()
60 return __dualdiv_param_to_rate(parent_rate, &setting); in meson_clk_dualdiv_recalc_rate()
94 const struct meson_clk_dualdiv_param *setting = in meson_clk_dualdiv_round_rate() local
97 if (!setting) in meson_clk_dualdiv_round_rate()
100 return __dualdiv_param_to_rate(*parent_rate, setting); in meson_clk_dualdiv_round_rate()
108 const struct meson_clk_dualdiv_param *setting = in meson_clk_dualdiv_set_rate() local
111 if (!setting) in meson_clk_dualdiv_set_rate()
114 meson_parm_write(clk->map, &dualdiv->dual, setting->dual); in meson_clk_dualdiv_set_rate()
115 meson_parm_write(clk->map, &dualdiv->n1, setting->n1 - 1); in meson_clk_dualdiv_set_rate()
116 meson_parm_write(clk->map, &dualdiv->m1, setting->m1 - 1); in meson_clk_dualdiv_set_rate()
117 meson_parm_write(clk->map, &dualdiv->n2, setting->n2 - 1); in meson_clk_dualdiv_set_rate()
118 meson_parm_write(clk->map, &dualdiv->m2, setting->m2 - 1); in meson_clk_dualdiv_set_rate()