Lines Matching refs:hwclk
50 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate() argument
53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
61 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate() argument
76 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate() argument
80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
110 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate() argument
115 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
124 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate()
153 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate() argument
156 if (__clk_is_enabled(hwclk->clk)) in clk_cpu_set_rate()
157 return clk_cpu_on_set_rate(hwclk, rate, parent_rate); in clk_cpu_set_rate()
159 return clk_cpu_off_set_rate(hwclk, rate, parent_rate); in clk_cpu_set_rate()