Lines Matching defs:cpumux
16 #include "clk-cpumux.h"
65 struct mtk_clk_cpumux *cpumux;
69 cpumux = kzalloc(sizeof(*cpumux), GFP_KERNEL);
70 if (!cpumux)
79 cpumux->reg = mux->mux_reg;
80 cpumux->shift = mux->mux_shift;
81 cpumux->mask = BIT(mux->mux_width) - 1;
82 cpumux->regmap = regmap;
83 cpumux->hw.init = &init;
85 ret = clk_hw_register(dev, &cpumux->hw);
87 kfree(cpumux);
91 return &cpumux->hw;
96 struct mtk_clk_cpumux *cpumux;
100 cpumux = to_mtk_clk_cpumux(hw);
103 kfree(cpumux);