Home
last modified time | relevance | path

Searched refs:clk_mux (Results 1 – 25 of 40) sorted by relevance

12

/drivers/clk/mediatek/
Dclk-mux.c162 struct mtk_clk_mux *clk_mux; in mtk_clk_register_mux() local
166 clk_mux = kzalloc(sizeof(*clk_mux), GFP_KERNEL); in mtk_clk_register_mux()
167 if (!clk_mux) in mtk_clk_register_mux()
176 clk_mux->regmap = regmap; in mtk_clk_register_mux()
177 clk_mux->data = mux; in mtk_clk_register_mux()
178 clk_mux->lock = lock; in mtk_clk_register_mux()
179 clk_mux->hw.init = &init; in mtk_clk_register_mux()
181 ret = clk_hw_register(dev, &clk_mux->hw); in mtk_clk_register_mux()
183 kfree(clk_mux); in mtk_clk_register_mux()
187 return &clk_mux->hw; in mtk_clk_register_mux()
Dclk-mtk.c222 struct clk_mux *mux = NULL; in mtk_clk_register_composite()
308 struct clk_mux *mux = NULL; in mtk_clk_unregister_composite()
/drivers/clk/
Dclk-mux.c27 static inline u32 clk_mux_readl(struct clk_mux *mux) in clk_mux_readl()
35 static inline void clk_mux_writel(struct clk_mux *mux, u32 val) in clk_mux_writel()
90 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_get_parent()
101 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_set_parent()
132 struct clk_mux *mux = to_clk_mux(hw); in clk_mux_determine_rate()
157 struct clk_mux *mux; in __clk_hw_register_mux()
262 struct clk_mux *mux; in clk_unregister_mux()
278 struct clk_mux *mux; in clk_hw_unregister_mux()
Dclk-versaclock3.c564 const struct vc3_clk_data *clk_mux = vc3->data; in vc3_clk_mux_get_parent() local
567 regmap_read(vc3->regmap, clk_mux->offs, &val); in vc3_clk_mux_get_parent()
569 return !!(val & clk_mux->bitmsk); in vc3_clk_mux_get_parent()
575 const struct vc3_clk_data *clk_mux = vc3->data; in vc3_clk_mux_set_parent() local
577 regmap_update_bits(vc3->regmap, clk_mux->offs, in vc3_clk_mux_set_parent()
578 clk_mux->bitmsk, index ? clk_mux->bitmsk : 0); in vc3_clk_mux_set_parent()
898 static struct vc3_hw_data clk_mux[] = { variable
1074 for (i = 0; i < ARRAY_SIZE(clk_mux); i++) { in vc3_probe()
1075 clk_mux[i].regmap = regmap; in vc3_probe()
1076 ret = devm_clk_hw_register(dev, &clk_mux[i].hw); in vc3_probe()
[all …]
Dclk-versaclock5.c193 struct clk_hw clk_mux; member
231 container_of(hw, struct vc5_driver_data, clk_mux); in vc5_mux_get_parent()
256 container_of(hw, struct vc5_driver_data, clk_mux); in vc5_mux_set_parent()
1041 vc5->clk_mux.init = &init; in vc5_probe()
1042 ret = devm_clk_hw_register(&client->dev, &vc5->clk_mux); in vc5_probe()
1059 parent_names[0] = clk_hw_get_name(&vc5->clk_mux); in vc5_probe()
1081 parent_names[0] = clk_hw_get_name(&vc5->clk_mux); in vc5_probe()
1144 parent_names[0] = clk_hw_get_name(&vc5->clk_mux); in vc5_probe()
1159 parent_names[1] = clk_hw_get_name(&vc5->clk_mux); in vc5_probe()
Dclk-milbeaut.c282 struct clk_mux *mux = to_clk_mux(hw); in m10v_mux_get_parent()
293 struct clk_mux *mux = to_clk_mux(hw); in m10v_mux_set_parent()
331 struct clk_mux *mux; in m10v_clk_hw_register_mux()
/drivers/clk/imx/
Dclk-fixup-mux.c23 struct clk_mux mux;
30 struct clk_mux *mux = to_clk_mux(hw); in to_clk_fixup_mux()
45 struct clk_mux *mux = to_clk_mux(hw); in clk_fixup_mux_set_parent()
Dclk-busy.c118 struct clk_mux mux;
126 struct clk_mux *mux = to_clk_mux(hw); in to_clk_busy_mux()
Dclk-composite-93.c149 struct clk_mux *mux = to_clk_mux(hw); in imx93_clk_composite_mux_set_parent()
192 struct clk_mux *mux = NULL; in imx93_clk_composite_flags()
Dclk-composite-8m.c168 struct clk_mux *mux = to_clk_mux(hw); in imx8m_clk_composite_mux_set_parent()
217 struct clk_mux *mux = NULL; in __imx8m_clk_hw_composite()
Dclk-composite-7ulp.c77 struct clk_mux *mux = NULL; in imx_ulp_clk_hw_composite()
/drivers/soc/ti/
Dpruss.c302 static int pruss_clk_mux_setup(struct pruss *pruss, struct clk *clk_mux, in pruss_clk_mux_setup() argument
350 clk_mux = clk_register_mux(NULL, clk_mux_name, parent_names, in pruss_clk_mux_setup()
352 if (IS_ERR(clk_mux)) { in pruss_clk_mux_setup()
353 ret = PTR_ERR(clk_mux); in pruss_clk_mux_setup()
357 ret = devm_add_action_or_reset(dev, pruss_clk_unregister_mux, clk_mux); in pruss_clk_mux_setup()
363 ret = of_clk_add_provider(clk_mux_np, of_clk_src_simple_get, clk_mux); in pruss_clk_mux_setup()
/drivers/clk/sunxi/
Dclk-a20-gmac.c55 struct clk_mux *mux; in sun7i_a20_gmac_clk_setup()
65 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
Dclk-factors.h50 struct clk_mux *mux;
Dclk-factors.c184 struct clk_mux *mux = NULL; in __sunxi_factors_register()
231 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in __sunxi_factors_register()
Dclk-a10-mod1.c24 struct clk_mux *mux; in sun4i_mod1_clk_setup()
Dclk-sun8i-mbus.c32 struct clk_mux *mux; in sun8i_a23_mbus_setup()
Dclk-sun9i-cpus.c189 struct clk_mux *mux; in sun9i_a80_cpus_setup()
/drivers/clk/rockchip/
Dclk.c49 struct clk_mux *mux = NULL; in rockchip_clk_register_branch()
130 struct clk_mux mux;
146 struct clk_mux *frac_mux = &frac->mux; in rockchip_clk_frac_notifier_cb()
264 struct clk_mux *frac_mux = &frac->mux; in rockchip_clk_register_frac_branch()
Dclk-pll.c29 struct clk_mux pll_mux;
193 struct clk_mux *pll_mux = &pll->pll_mux; in rockchip_rk3036_pll_set_params()
428 struct clk_mux *pll_mux = &pll->pll_mux; in rockchip_rk3066_pll_set_params()
675 struct clk_mux *pll_mux = &pll->pll_mux; in rockchip_rk3399_pll_set_params()
924 struct clk_mux *pll_mux = &pll->pll_mux; in rockchip_rk3588_pll_set_params()
1067 struct clk_mux *pll_mux; in rockchip_clk_register_pll()
/drivers/clk/nxp/
Dclk-lpc18xx-cgu.c165 struct clk_mux mux;
199 struct clk_mux mux;
263 struct clk_mux mux;
/drivers/clk/mmp/
Dclk-audio.c64 struct clk_mux sspa_mux;
65 struct clk_mux sspa1_mux;
/drivers/mmc/host/
Dmeson-mx-sdhc-clkc.c16 struct clk_mux src_sel;
/drivers/clk/samsung/
Dclk-exynos-clkout.c31 struct clk_mux mux;
/drivers/clk/mvebu/
Dkirkwood.c281 struct clk_mux *mux = in clk_muxing_get_src()

12