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()
154 clk = devm_clk_register(dev, &mux->hw); in krait_add_sec_mux()
156 ret = krait_notifier_register(dev, clk, mux); in krait_add_sec_mux()
173 struct krait_mux_clk *mux; in krait_add_pri_mux() local
183 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_pri_mux()
184 if (!mux) in krait_add_pri_mux()
187 mux->mask = 0x3; in krait_add_pri_mux()
188 mux->shift = 0; in krait_add_pri_mux()
189 mux->offset = offset; in krait_add_pri_mux()
190 mux->lpl = id >= 0; in krait_add_pri_mux()
191 mux->parent_map = pri_mux_map; in krait_add_pri_mux()
192 mux->hw.init = &init; in krait_add_pri_mux()
193 mux->safe_sel = 2; in krait_add_pri_mux()
217 clk = devm_clk_register(dev, &mux->hw); in krait_add_pri_mux()
219 ret = krait_notifier_register(dev, clk, mux); in krait_add_pri_mux()