Lines Matching refs:clk_hw
47 struct clk_hw clk_hw; member
244 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
246 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
249 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
252 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
299 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
316 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
319 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
355 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
357 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
364 static void axi_clkgen_disable(struct clk_hw *clk_hw) in axi_clkgen_disable() argument
366 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_disable()
371 static int axi_clkgen_set_parent(struct clk_hw *clk_hw, u8 index) in axi_clkgen_set_parent() argument
373 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_parent()
380 static u8 axi_clkgen_get_parent(struct clk_hw *clk_hw) in axi_clkgen_get_parent() argument
382 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_get_parent()
456 axi_clkgen->clk_hw.init = &init; in axi_clkgen_probe()
457 ret = devm_clk_hw_register(&pdev->dev, &axi_clkgen->clk_hw); in axi_clkgen_probe()
462 &axi_clkgen->clk_hw); in axi_clkgen_probe()