/drivers/clk/mediatek/ |
D | clk-mux.c | 162 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()
|
D | clk-mtk.c | 222 struct clk_mux *mux = NULL; in mtk_clk_register_composite() 308 struct clk_mux *mux = NULL; in mtk_clk_unregister_composite()
|
/drivers/clk/ |
D | clk-mux.c | 27 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()
|
D | clk-versaclock3.c | 564 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 …]
|
D | clk-versaclock5.c | 193 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()
|
D | clk-milbeaut.c | 282 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/ |
D | clk-fixup-mux.c | 23 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()
|
D | clk-busy.c | 118 struct clk_mux mux; 126 struct clk_mux *mux = to_clk_mux(hw); in to_clk_busy_mux()
|
D | clk-composite-93.c | 149 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()
|
D | clk-composite-8m.c | 168 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()
|
D | clk-composite-7ulp.c | 77 struct clk_mux *mux = NULL; in imx_ulp_clk_hw_composite()
|
/drivers/soc/ti/ |
D | pruss.c | 302 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/ |
D | clk-a20-gmac.c | 55 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()
|
D | clk-factors.h | 50 struct clk_mux *mux;
|
D | clk-factors.c | 184 struct clk_mux *mux = NULL; in __sunxi_factors_register() 231 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in __sunxi_factors_register()
|
D | clk-a10-mod1.c | 24 struct clk_mux *mux; in sun4i_mod1_clk_setup()
|
D | clk-sun8i-mbus.c | 32 struct clk_mux *mux; in sun8i_a23_mbus_setup()
|
D | clk-sun9i-cpus.c | 189 struct clk_mux *mux; in sun9i_a80_cpus_setup()
|
/drivers/clk/rockchip/ |
D | clk.c | 49 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()
|
D | clk-pll.c | 29 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/ |
D | clk-lpc18xx-cgu.c | 165 struct clk_mux mux; 199 struct clk_mux mux; 263 struct clk_mux mux;
|
/drivers/clk/mmp/ |
D | clk-audio.c | 64 struct clk_mux sspa_mux; 65 struct clk_mux sspa1_mux;
|
/drivers/mmc/host/ |
D | meson-mx-sdhc-clkc.c | 16 struct clk_mux src_sel;
|
/drivers/clk/samsung/ |
D | clk-exynos-clkout.c | 31 struct clk_mux mux;
|
/drivers/clk/mvebu/ |
D | kirkwood.c | 281 struct clk_mux *mux = in clk_muxing_get_src()
|