Lines Matching refs:mux

38 	struct krait_mux_clk *mux = container_of(nb, struct krait_mux_clk,  in krait_notifier_cb()  local
42 mux->old_index = krait_mux_clk_ops.get_parent(&mux->hw); in krait_notifier_cb()
43 ret = krait_mux_clk_ops.set_parent(&mux->hw, mux->safe_sel); in krait_notifier_cb()
44 mux->reparent = false; in krait_notifier_cb()
51 if (!mux->reparent) in krait_notifier_cb()
52 ret = krait_mux_clk_ops.set_parent(&mux->hw, in krait_notifier_cb()
53 mux->old_index); in krait_notifier_cb()
60 struct krait_mux_clk *mux) in krait_notifier_register() argument
64 mux->clk_nb.notifier_call = krait_notifier_cb; in krait_notifier_register()
65 ret = clk_notifier_register(clk, &mux->clk_nb); in krait_notifier_register()
117 struct krait_mux_clk *mux; in krait_add_sec_mux() local
130 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_sec_mux()
131 if (!mux) in krait_add_sec_mux()
134 mux->offset = offset; in krait_add_sec_mux()
135 mux->lpl = id >= 0; in krait_add_sec_mux()
136 mux->mask = 0x3; in krait_add_sec_mux()
137 mux->shift = 2; in krait_add_sec_mux()
138 mux->parent_map = sec_mux_map; in krait_add_sec_mux()
139 mux->hw.init = &init; in krait_add_sec_mux()
140 mux->safe_sel = 0; in krait_add_sec_mux()
148 mux->disable_sec_src_gating = true; in krait_add_sec_mux()
162 clk = devm_clk_register(dev, &mux->hw); in krait_add_sec_mux()
164 ret = krait_notifier_register(dev, clk, mux); in krait_add_sec_mux()
181 struct krait_mux_clk *mux; in krait_add_pri_mux() local
191 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_pri_mux()
192 if (!mux) in krait_add_pri_mux()
195 mux->mask = 0x3; in krait_add_pri_mux()
196 mux->shift = 0; in krait_add_pri_mux()
197 mux->offset = offset; in krait_add_pri_mux()
198 mux->lpl = id >= 0; in krait_add_pri_mux()
199 mux->parent_map = pri_mux_map; in krait_add_pri_mux()
200 mux->hw.init = &init; in krait_add_pri_mux()
201 mux->safe_sel = 2; in krait_add_pri_mux()
225 clk = devm_clk_register(dev, &mux->hw); in krait_add_pri_mux()
227 ret = krait_notifier_register(dev, clk, mux); in krait_add_pri_mux()