Lines Matching defs:clk
10 #include "clk-stm32-core.h"
13 #include <drivers/clk.h>
61 const struct clk_stm32 *clk = _clk_get(priv, id);
62 struct stm32_osc_cfg *osc_cfg = clk->clock_cfg;
161 const struct clk_stm32 *clk = _clk_get(priv, id);
162 struct clk_gate_cfg *cfg = clk->clock_cfg;
171 const struct clk_stm32 *clk = _clk_get(priv, id);
172 struct clk_gate_cfg *cfg = clk->clock_cfg;
179 const struct clk_stm32 *clk = _clk_get(priv, id);
180 struct clk_gate_cfg *cfg = clk->clock_cfg;
298 int _clk_stm32_set_parent(struct stm32_clk_priv *priv, int clk, int clkp)
305 pid = priv->clks[clk].parent;
311 old_parent = _clk_stm32_get_parent(priv, clk);
323 bool clk_was_enabled = _clk_stm32_is_enabled(priv, clk);
365 int _clk_stm32_set_parent_by_index(struct stm32_clk_priv *priv, int clk, int sel)
369 pid = priv->clks[clk].parent;
380 const struct clk_stm32 *clk = _clk_get(priv, clk_id);
397 if (clk->ops->get_parent != NULL) {
398 sel = clk->ops->get_parent(priv, clk_id);
467 const struct clk_stm32 *clk = _clk_get(priv, id);
479 if (clk->ops->recalc_rate != NULL) {
486 return clk->ops->recalc_rate(priv, id, prate);
523 const struct clk_stm32 *clk = _clk_get(priv, id);
525 if (clk->ops->enable != NULL) {
526 clk->ops->enable(priv, id);
574 const struct clk_stm32 *clk = _clk_get(priv, id);
576 if (clk->ops->disable != NULL) {
577 clk->ops->disable(priv, id);
622 const struct clk_stm32 *clk = _clk_get(priv, id);
624 if (clk->ops->is_enabled != NULL) {
625 return clk->ops->is_enabled(priv, id);
749 const struct clk_stm32 *clk = _clk_get(priv, id);
750 struct clk_stm32_div_cfg *div_cfg = clk->clock_cfg;
824 const struct clk_stm32 *clk = _clk_get(priv, id);
825 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg;
841 const struct clk_stm32 *clk = _clk_get(priv, id);
842 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg;
866 const struct clk_stm32 *clk = _clk_get(priv, id);
867 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg;
885 const struct clk_stm32 *clk = _clk_get(priv, id);
886 const struct fixed_factor_cfg *cfg = clk->clock_cfg;
905 const struct clk_stm32 *clk = _clk_get(priv, id);
906 const struct clk_timer_cfg *cfg = clk->clock_cfg;
930 const struct clk_stm32 *clk = _clk_get(priv, id);
931 struct clk_stm32_fixed_rate_cfg *cfg = clk->clock_cfg;
1076 const struct clk_stm32 *clk = _clk_get(priv, i);
1078 assert(clk->ops != NULL);
1080 if (clk->ops->init != NULL) {
1081 clk->ops->init(priv, i);