Lines Matching refs:clk_hw

14 static u8 clk_periph_get_parent(struct clk_hw *hw)  in clk_periph_get_parent()
18 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent()
25 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent()
29 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent()
36 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate()
41 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate()
48 static long clk_periph_round_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_round_rate()
53 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate()
60 static int clk_periph_set_rate(struct clk_hw *hw, unsigned long rate, in clk_periph_set_rate()
65 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate()
72 static int clk_periph_is_enabled(struct clk_hw *hw) in clk_periph_is_enabled()
76 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_is_enabled()
83 static int clk_periph_enable(struct clk_hw *hw) in clk_periph_enable()
87 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_enable()
94 static void clk_periph_disable(struct clk_hw *hw) in clk_periph_disable()
98 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable()
103 static void clk_periph_disable_unused(struct clk_hw *hw) in clk_periph_disable_unused()
107 struct clk_hw *gate_hw = &periph->gate.hw; in clk_periph_disable_unused()
112 static void clk_periph_restore_context(struct clk_hw *hw) in clk_periph_restore_context()
116 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_restore_context()