Lines Matching refs:hw
19 #define to_skl_clk(_hw) container_of(_hw, struct skl_clk, hw)
22 struct clk_hw *hw; member
27 struct clk_hw hw; member
200 static int skl_clk_prepare(struct clk_hw *hw) in skl_clk_prepare() argument
202 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_prepare()
207 static void skl_clk_unprepare(struct clk_hw *hw) in skl_clk_unprepare() argument
209 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_unprepare()
214 static int skl_clk_set_rate(struct clk_hw *hw, unsigned long rate, in skl_clk_set_rate() argument
217 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_set_rate()
239 static unsigned long skl_clk_recalc_rate(struct clk_hw *hw, in skl_clk_recalc_rate() argument
242 struct skl_clk *clkdev = to_skl_clk(hw); in skl_clk_recalc_rate()
251 static long skl_clk_round_rate(struct clk_hw *hw, unsigned long rate, in skl_clk_round_rate() argument
274 clk_hw_unregister_fixed_rate(pclk[id].hw); in unregister_parent_src_clk()
293 parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name, in skl_register_parent_clks()
295 if (IS_ERR(parent[i].hw)) { in skl_register_parent_clks()
296 ret = PTR_ERR(parent[i].hw); in skl_register_parent_clks()
300 parent[i].lookup = clkdev_hw_create(parent[i].hw, pclk[i].name, in skl_register_parent_clks()
303 clk_hw_unregister_fixed_rate(parent[i].hw); in skl_register_parent_clks()
333 clkdev->hw.init = &init; in register_skl_clk()
337 ret = devm_clk_hw_register(dev, &clkdev->hw); in register_skl_clk()
343 clkdev->lookup = clkdev_hw_create(&clkdev->hw, init.name, NULL); in register_skl_clk()