Lines Matching refs:hw

17 #define to_clk_prcmu(_hw) container_of(_hw, struct clk_prcmu, hw)
20 struct clk_hw hw; member
29 static int clk_prcmu_prepare(struct clk_hw *hw) in clk_prcmu_prepare() argument
32 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare()
41 static void clk_prcmu_unprepare(struct clk_hw *hw) in clk_prcmu_unprepare() argument
43 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare()
46 clk_hw_get_name(hw)); in clk_prcmu_unprepare()
51 static int clk_prcmu_is_prepared(struct clk_hw *hw) in clk_prcmu_is_prepared() argument
53 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_prepared()
57 static int clk_prcmu_enable(struct clk_hw *hw) in clk_prcmu_enable() argument
59 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_enable()
64 static void clk_prcmu_disable(struct clk_hw *hw) in clk_prcmu_disable() argument
66 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_disable()
70 static int clk_prcmu_is_enabled(struct clk_hw *hw) in clk_prcmu_is_enabled() argument
72 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_enabled()
76 static unsigned long clk_prcmu_recalc_rate(struct clk_hw *hw, in clk_prcmu_recalc_rate() argument
79 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_recalc_rate()
83 static long clk_prcmu_round_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_round_rate() argument
86 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_round_rate()
90 static int clk_prcmu_set_rate(struct clk_hw *hw, unsigned long rate, in clk_prcmu_set_rate() argument
93 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_set_rate()
97 static int clk_prcmu_opp_prepare(struct clk_hw *hw) in clk_prcmu_opp_prepare() argument
100 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_prepare()
104 (char *)clk_hw_get_name(hw), in clk_prcmu_opp_prepare()
108 __func__, clk_hw_get_name(hw)); in clk_prcmu_opp_prepare()
117 (char *)clk_hw_get_name(hw)); in clk_prcmu_opp_prepare()
126 static void clk_prcmu_opp_unprepare(struct clk_hw *hw) in clk_prcmu_opp_unprepare() argument
128 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_unprepare()
132 clk_hw_get_name(hw)); in clk_prcmu_opp_unprepare()
138 (char *)clk_hw_get_name(hw)); in clk_prcmu_opp_unprepare()
145 static int clk_prcmu_opp_volt_prepare(struct clk_hw *hw) in clk_prcmu_opp_volt_prepare() argument
148 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_volt_prepare()
154 __func__, clk_hw_get_name(hw)); in clk_prcmu_opp_volt_prepare()
171 static void clk_prcmu_opp_volt_unprepare(struct clk_hw *hw) in clk_prcmu_opp_volt_unprepare() argument
173 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_opp_volt_unprepare()
177 clk_hw_get_name(hw)); in clk_prcmu_opp_volt_unprepare()
280 clk->hw.init = &clk_prcmu_init; in clk_reg_prcmu()
282 clk_reg = clk_register(NULL, &clk->hw); in clk_reg_prcmu()