Lines Matching defs:priv

59 struct clk_oscillator_data *clk_oscillator_get_data(struct stm32_clk_priv *priv, int id)  in clk_oscillator_get_data()
68 void clk_oscillator_set_bypass(struct stm32_clk_priv *priv, int id, bool digbyp, bool bypass) in clk_oscillator_set_bypass()
90 void clk_oscillator_set_css(struct stm32_clk_priv *priv, int id, bool css) in clk_oscillator_set_css()
108 void clk_oscillator_set_drive(struct stm32_clk_priv *priv, int id, uint8_t lsedrv) in clk_oscillator_set_drive()
142 int clk_oscillator_wait_ready(struct stm32_clk_priv *priv, int id, bool ready_on) in clk_oscillator_wait_ready()
149 int clk_oscillator_wait_ready_on(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_on()
154 int clk_oscillator_wait_ready_off(struct stm32_clk_priv *priv, int id) in clk_oscillator_wait_ready_off()
159 static int clk_gate_enable(struct stm32_clk_priv *priv, int id) in clk_gate_enable()
169 static void clk_gate_disable(struct stm32_clk_priv *priv, int id) in clk_gate_disable()
177 static bool clk_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_gate_is_enabled()
191 void _clk_stm32_gate_disable(struct stm32_clk_priv *priv, uint16_t gate_id) in _clk_stm32_gate_disable()
203 int _clk_stm32_gate_enable(struct stm32_clk_priv *priv, uint16_t gate_id) in _clk_stm32_gate_enable()
218 const struct clk_stm32 *_clk_get(struct stm32_clk_priv *priv, int id) in _clk_get()
269 int clk_mux_set_parent(struct stm32_clk_priv *priv, uint16_t pid, uint8_t sel) in clk_mux_set_parent()
298 int _clk_stm32_set_parent(struct stm32_clk_priv *priv, int clk, int clkp) in _clk_stm32_set_parent()
347 int clk_mux_get_parent(struct stm32_clk_priv *priv, uint32_t mux_id) in clk_mux_get_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()
378 int _clk_stm32_get_parent(struct stm32_clk_priv *priv, int clk_id) in _clk_stm32_get_parent()
410 int _clk_stm32_get_parent_index(struct stm32_clk_priv *priv, int clk_id) in _clk_stm32_get_parent_index()
428 int _clk_stm32_get_parent_by_index(struct stm32_clk_priv *priv, int clk_id, int idx) in _clk_stm32_get_parent_by_index()
452 int clk_get_index(struct stm32_clk_priv *priv, unsigned long binding_id) in clk_get_index()
465 unsigned long _clk_stm32_get_rate(struct stm32_clk_priv *priv, int id) in _clk_stm32_get_rate()
496 unsigned long _clk_stm32_get_parent_rate(struct stm32_clk_priv *priv, int id) in _clk_stm32_get_parent_rate()
507 static uint8_t _stm32_clk_get_flags(struct stm32_clk_priv *priv, int id) in _stm32_clk_get_flags()
512 bool _stm32_clk_is_flags(struct stm32_clk_priv *priv, int id, uint8_t flag) in _stm32_clk_is_flags()
521 int clk_stm32_enable_call_ops(struct stm32_clk_priv *priv, uint16_t id) in clk_stm32_enable_call_ops()
532 static int _clk_stm32_enable_core(struct stm32_clk_priv *priv, int id) in _clk_stm32_enable_core()
561 int _clk_stm32_enable(struct stm32_clk_priv *priv, int id) in _clk_stm32_enable()
572 void clk_stm32_disable_call_ops(struct stm32_clk_priv *priv, uint16_t id) in clk_stm32_disable_call_ops()
581 static void _clk_stm32_disable_core(struct stm32_clk_priv *priv, int id) in _clk_stm32_disable_core()
611 void _clk_stm32_disable(struct stm32_clk_priv *priv, int id) in _clk_stm32_disable()
620 bool _clk_stm32_is_enabled(struct stm32_clk_priv *priv, int id) in _clk_stm32_is_enabled()
633 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_enable() local
646 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_disable() local
657 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_is_enabled() local
670 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_get_rate() local
683 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_get_parent() local
704 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_enable_critical_clocks() local
719 uint32_t clk_stm32_div_get_value(struct stm32_clk_priv *priv, int div_id) in clk_stm32_div_get_value()
730 unsigned long _clk_stm32_divider_recalc(struct stm32_clk_priv *priv, in _clk_stm32_divider_recalc()
746 unsigned long clk_stm32_divider_recalc(struct stm32_clk_priv *priv, int id, in clk_stm32_divider_recalc()
759 int clk_stm32_set_div(struct stm32_clk_priv *priv, uint32_t div_id, uint32_t value) in clk_stm32_set_div()
792 int _clk_stm32_gate_wait_ready(struct stm32_clk_priv *priv, uint16_t gate_id, in _clk_stm32_gate_wait_ready()
822 int clk_stm32_gate_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_enable()
839 void clk_stm32_gate_disable(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_disable()
853 bool _clk_stm32_gate_is_enabled(struct stm32_clk_priv *priv, int gate_id) in _clk_stm32_gate_is_enabled()
864 bool clk_stm32_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_is_enabled()
882 unsigned long fixed_factor_recalc_rate(struct stm32_clk_priv *priv, in fixed_factor_recalc_rate()
902 static unsigned long timer_recalc_rate(struct stm32_clk_priv *priv, in timer_recalc_rate()
927 static unsigned long clk_fixed_rate_recalc(struct stm32_clk_priv *priv, int id, in clk_fixed_rate_recalc()
940 static unsigned long clk_stm32_osc_recalc_rate(struct stm32_clk_priv *priv, in clk_stm32_osc_recalc_rate()
948 bool clk_stm32_osc_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_is_enabled()
956 int clk_stm32_osc_gate_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_enable()
970 void clk_stm32_osc_gate_disable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_disable()
1023 void clk_stm32_osc_init(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_init()
1067 int clk_stm32_init(struct stm32_clk_priv *priv, uintptr_t base) in clk_stm32_init()