Lines Matching refs:clk_hw

29 	struct clk_hw **hws;  in stm32_rcc_clock_init()
47 struct clk_hw *hw = ERR_PTR(-ENOENT); in stm32_rcc_clock_init()
256 static u8 clk_stm32_mux_get_parent(struct clk_hw *hw) in clk_stm32_mux_get_parent()
263 static int clk_stm32_mux_set_parent(struct clk_hw *hw, u8 index) in clk_stm32_mux_set_parent()
282 static void clk_stm32_gate_endisable(struct clk_hw *hw, int enable) in clk_stm32_gate_endisable()
294 static int clk_stm32_gate_enable(struct clk_hw *hw) in clk_stm32_gate_enable()
301 static void clk_stm32_gate_disable(struct clk_hw *hw) in clk_stm32_gate_disable()
306 static int clk_stm32_gate_is_enabled(struct clk_hw *hw) in clk_stm32_gate_is_enabled()
313 static void clk_stm32_gate_disable_unused(struct clk_hw *hw) in clk_stm32_gate_disable_unused()
332 static int clk_stm32_divider_set_rate(struct clk_hw *hw, unsigned long rate, in clk_stm32_divider_set_rate()
351 static long clk_stm32_divider_round_rate(struct clk_hw *hw, unsigned long rate, in clk_stm32_divider_round_rate()
379 static unsigned long clk_stm32_divider_recalc_rate(struct clk_hw *hw, in clk_stm32_divider_recalc_rate()
396 static int clk_stm32_composite_set_rate(struct clk_hw *hw, unsigned long rate, in clk_stm32_composite_set_rate()
416 static unsigned long clk_stm32_composite_recalc_rate(struct clk_hw *hw, in clk_stm32_composite_recalc_rate()
428 static long clk_stm32_composite_round_rate(struct clk_hw *hw, unsigned long rate, in clk_stm32_composite_round_rate()
457 static u8 clk_stm32_composite_get_parent(struct clk_hw *hw) in clk_stm32_composite_get_parent()
464 static int clk_stm32_composite_set_parent(struct clk_hw *hw, u8 index) in clk_stm32_composite_set_parent()
476 struct clk_hw *other_mux_hw = composite->clock_data->is_multi_mux(hw); in clk_stm32_composite_set_parent()
479 struct clk_hw *hwp = clk_hw_get_parent_by_index(hw, index); in clk_stm32_composite_set_parent()
488 static int clk_stm32_composite_is_enabled(struct clk_hw *hw) in clk_stm32_composite_is_enabled()
500 static int clk_stm32_has_safe_mux(struct clk_hw *hw) in clk_stm32_has_safe_mux()
508 static void clk_stm32_set_safe_position_mux(struct clk_hw *hw) in clk_stm32_set_safe_position_mux()
516 struct clk_hw *other_mux_hw = NULL; in clk_stm32_set_safe_position_mux()
533 static void clk_stm32_safe_restore_position_mux(struct clk_hw *hw) in clk_stm32_safe_restore_position_mux()
546 static void clk_stm32_composite_gate_endisable(struct clk_hw *hw, int enable) in clk_stm32_composite_gate_endisable()
558 static int clk_stm32_composite_gate_enable(struct clk_hw *hw) in clk_stm32_composite_gate_enable()
573 static void clk_stm32_composite_gate_disable(struct clk_hw *hw) in clk_stm32_composite_gate_disable()
586 static void clk_stm32_composite_disable_unused(struct clk_hw *hw) in clk_stm32_composite_disable_unused()
613 struct clk_hw *clk_stm32_mux_register(struct device *dev, in clk_stm32_mux_register()
620 struct clk_hw *hw = &mux->hw; in clk_stm32_mux_register()
634 struct clk_hw *clk_stm32_gate_register(struct device *dev, in clk_stm32_gate_register()
641 struct clk_hw *hw = &gate->hw; in clk_stm32_gate_register()
655 struct clk_hw *clk_stm32_div_register(struct device *dev, in clk_stm32_div_register()
662 struct clk_hw *hw = &div->hw; in clk_stm32_div_register()
676 struct clk_hw *clk_stm32_composite_register(struct device *dev, in clk_stm32_composite_register()
683 struct clk_hw *hw = &composite->hw; in clk_stm32_composite_register()