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()
227 static const struct stm32_clk_ops *_clk_get_ops(struct stm32_clk_priv *priv, int id) in _clk_get_ops()
278 int clk_mux_set_parent(struct stm32_clk_priv *priv, uint16_t pid, uint8_t sel) in clk_mux_set_parent()
307 int _clk_stm32_set_parent(struct stm32_clk_priv *priv, int clk, int clkp) in _clk_stm32_set_parent()
356 int clk_mux_get_parent(struct stm32_clk_priv *priv, uint32_t mux_id) in clk_mux_get_parent()
374 int _clk_stm32_set_parent_by_index(struct stm32_clk_priv *priv, int clk, int sel) in _clk_stm32_set_parent_by_index()
387 int _clk_stm32_get_parent(struct stm32_clk_priv *priv, int clk_id) in _clk_stm32_get_parent()
419 int _clk_stm32_get_parent_index(struct stm32_clk_priv *priv, int clk_id) in _clk_stm32_get_parent_index()
437 int _clk_stm32_get_parent_by_index(struct stm32_clk_priv *priv, int clk_id, int idx) in _clk_stm32_get_parent_by_index()
461 int clk_get_index(struct stm32_clk_priv *priv, unsigned long binding_id) in clk_get_index()
474 unsigned long _clk_stm32_get_rate(struct stm32_clk_priv *priv, int id) in _clk_stm32_get_rate()
505 unsigned long _clk_stm32_get_parent_rate(struct stm32_clk_priv *priv, int id) in _clk_stm32_get_parent_rate()
516 static uint8_t _stm32_clk_get_flags(struct stm32_clk_priv *priv, int id) in _stm32_clk_get_flags()
521 bool _stm32_clk_is_flags(struct stm32_clk_priv *priv, int id, uint8_t flag) in _stm32_clk_is_flags()
530 int clk_stm32_enable_call_ops(struct stm32_clk_priv *priv, uint16_t id) in clk_stm32_enable_call_ops()
541 static int _clk_stm32_enable_core(struct stm32_clk_priv *priv, int id) in _clk_stm32_enable_core()
570 int _clk_stm32_enable(struct stm32_clk_priv *priv, int id) in _clk_stm32_enable()
581 void clk_stm32_disable_call_ops(struct stm32_clk_priv *priv, uint16_t id) in clk_stm32_disable_call_ops()
590 static void _clk_stm32_disable_core(struct stm32_clk_priv *priv, int id) in _clk_stm32_disable_core()
620 void _clk_stm32_disable(struct stm32_clk_priv *priv, int id) in _clk_stm32_disable()
629 bool _clk_stm32_is_enabled(struct stm32_clk_priv *priv, int id) in _clk_stm32_is_enabled()
642 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_enable() local
655 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_disable() local
666 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_is_enabled() local
679 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_get_rate() local
692 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_get_parent() local
713 struct stm32_clk_priv *priv = clk_stm32_get_priv(); in clk_stm32_enable_critical_clocks() local
728 uint32_t clk_stm32_div_get_value(struct stm32_clk_priv *priv, int div_id) in clk_stm32_div_get_value()
739 unsigned long _clk_stm32_divider_recalc(struct stm32_clk_priv *priv, in _clk_stm32_divider_recalc()
755 unsigned long clk_stm32_divider_recalc(struct stm32_clk_priv *priv, int id, in clk_stm32_divider_recalc()
768 int clk_stm32_set_div(struct stm32_clk_priv *priv, uint32_t div_id, uint32_t value) in clk_stm32_set_div()
801 int _clk_stm32_gate_wait_ready(struct stm32_clk_priv *priv, uint16_t gate_id, in _clk_stm32_gate_wait_ready()
831 int clk_stm32_gate_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_enable()
848 void clk_stm32_gate_disable(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_disable()
862 bool _clk_stm32_gate_is_enabled(struct stm32_clk_priv *priv, int gate_id) in _clk_stm32_gate_is_enabled()
873 bool clk_stm32_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_gate_is_enabled()
891 unsigned long fixed_factor_recalc_rate(struct stm32_clk_priv *priv, in fixed_factor_recalc_rate()
911 static unsigned long timer_recalc_rate(struct stm32_clk_priv *priv, in timer_recalc_rate()
936 static unsigned long clk_fixed_rate_recalc(struct stm32_clk_priv *priv, int id, in clk_fixed_rate_recalc()
949 static unsigned long clk_stm32_osc_recalc_rate(struct stm32_clk_priv *priv, in clk_stm32_osc_recalc_rate()
957 bool clk_stm32_osc_gate_is_enabled(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_is_enabled()
969 int clk_stm32_osc_gate_enable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_enable()
987 void clk_stm32_osc_gate_disable(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_gate_disable()
1044 void clk_stm32_osc_init(struct stm32_clk_priv *priv, int id) in clk_stm32_osc_init()
1088 int clk_stm32_init(struct stm32_clk_priv *priv, uintptr_t base) in clk_stm32_init()