Lines Matching refs:clk
61 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_oscillator_get_data() local
62 struct stm32_osc_cfg *osc_cfg = clk->clock_cfg; in clk_oscillator_get_data()
161 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_gate_enable() local
162 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_enable()
171 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_gate_disable() local
172 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_disable()
179 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_gate_is_enabled() local
180 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_is_enabled()
298 int _clk_stm32_set_parent(struct stm32_clk_priv *priv, int clk, int clkp) in _clk_stm32_set_parent() argument
305 pid = priv->clks[clk].parent; in _clk_stm32_set_parent()
311 old_parent = _clk_stm32_get_parent(priv, clk); in _clk_stm32_set_parent()
323 bool clk_was_enabled = _clk_stm32_is_enabled(priv, clk); in _clk_stm32_set_parent()
365 int _clk_stm32_set_parent_by_index(struct stm32_clk_priv *priv, int clk, int sel) in _clk_stm32_set_parent_by_index() argument
369 pid = priv->clks[clk].parent; in _clk_stm32_set_parent_by_index()
380 const struct clk_stm32 *clk = _clk_get(priv, clk_id); in _clk_stm32_get_parent() local
397 if (clk->ops->get_parent != NULL) { in _clk_stm32_get_parent()
398 sel = clk->ops->get_parent(priv, clk_id); in _clk_stm32_get_parent()
467 const struct clk_stm32 *clk = _clk_get(priv, id); in _clk_stm32_get_rate() local
479 if (clk->ops->recalc_rate != NULL) { in _clk_stm32_get_rate()
486 return clk->ops->recalc_rate(priv, id, prate); in _clk_stm32_get_rate()
523 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_enable_call_ops() local
525 if (clk->ops->enable != NULL) { in clk_stm32_enable_call_ops()
526 clk->ops->enable(priv, id); in clk_stm32_enable_call_ops()
574 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_disable_call_ops() local
576 if (clk->ops->disable != NULL) { in clk_stm32_disable_call_ops()
577 clk->ops->disable(priv, id); in clk_stm32_disable_call_ops()
622 const struct clk_stm32 *clk = _clk_get(priv, id); in _clk_stm32_is_enabled() local
624 if (clk->ops->is_enabled != NULL) { in _clk_stm32_is_enabled()
625 return clk->ops->is_enabled(priv, id); in _clk_stm32_is_enabled()
749 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_divider_recalc() local
750 struct clk_stm32_div_cfg *div_cfg = clk->clock_cfg; in clk_stm32_divider_recalc()
824 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_gate_enable() local
825 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_enable()
841 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_gate_disable() local
842 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_disable()
866 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_stm32_gate_is_enabled() local
867 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_is_enabled()
885 const struct clk_stm32 *clk = _clk_get(priv, id); in fixed_factor_recalc_rate() local
886 const struct fixed_factor_cfg *cfg = clk->clock_cfg; in fixed_factor_recalc_rate()
905 const struct clk_stm32 *clk = _clk_get(priv, id); in timer_recalc_rate() local
906 const struct clk_timer_cfg *cfg = clk->clock_cfg; in timer_recalc_rate()
930 const struct clk_stm32 *clk = _clk_get(priv, id); in clk_fixed_rate_recalc() local
931 struct clk_stm32_fixed_rate_cfg *cfg = clk->clock_cfg; in clk_fixed_rate_recalc()
1076 const struct clk_stm32 *clk = _clk_get(priv, i); in clk_stm32_init() local
1078 assert(clk->ops != NULL); in clk_stm32_init()
1080 if (clk->ops->init != NULL) { in clk_stm32_init()
1081 clk->ops->init(priv, i); in clk_stm32_init()