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