Lines Matching refs:clk_hw
51 struct clk_hw clk_hw; member
297 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
299 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
318 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
321 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
368 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
412 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
415 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
440 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
442 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
449 static void axi_clkgen_disable(struct clk_hw *clk_hw) in axi_clkgen_disable() argument
451 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_disable()
456 static int axi_clkgen_set_parent(struct clk_hw *clk_hw, u8 index) in axi_clkgen_set_parent() argument
458 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_parent()
465 static u8 axi_clkgen_get_parent(struct clk_hw *clk_hw) in axi_clkgen_get_parent() argument
467 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_get_parent()
541 axi_clkgen->clk_hw.init = &init; in axi_clkgen_probe()
542 ret = devm_clk_hw_register(&pdev->dev, &axi_clkgen->clk_hw); in axi_clkgen_probe()
547 &axi_clkgen->clk_hw); in axi_clkgen_probe()