Lines Matching refs:clk_hw
49 struct clk_hw clk_hw; member
246 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
248 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
251 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
254 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
301 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
318 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
321 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
357 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
359 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
366 static void axi_clkgen_disable(struct clk_hw *clk_hw) in axi_clkgen_disable() argument
368 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_disable()
373 static int axi_clkgen_set_parent(struct clk_hw *clk_hw, u8 index) in axi_clkgen_set_parent() argument
375 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_parent()
382 static u8 axi_clkgen_get_parent(struct clk_hw *clk_hw) in axi_clkgen_get_parent() argument
384 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_get_parent()
458 axi_clkgen->clk_hw.init = &init; in axi_clkgen_probe()
459 ret = devm_clk_hw_register(&pdev->dev, &axi_clkgen->clk_hw); in axi_clkgen_probe()
464 &axi_clkgen->clk_hw); in axi_clkgen_probe()