Lines Matching refs:hwclk
48 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate() argument
51 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
59 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate() argument
74 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate() argument
78 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
108 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate() argument
113 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
122 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate()
151 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate() argument
154 if (__clk_is_enabled(hwclk->clk)) in clk_cpu_set_rate()
155 return clk_cpu_on_set_rate(hwclk, rate, parent_rate); in clk_cpu_set_rate()
157 return clk_cpu_off_set_rate(hwclk, rate, parent_rate); in clk_cpu_set_rate()