Lines Matching refs:clk_hw
68 struct clk_hw clk_hw; member
353 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw) in clk_hw_to_axi_clkgen() argument
355 return container_of(clk_hw, struct axi_clkgen, clk_hw); in clk_hw_to_axi_clkgen()
358 static int axi_clkgen_set_rate(struct clk_hw *clk_hw, in axi_clkgen_set_rate() argument
361 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_set_rate()
408 static long axi_clkgen_round_rate(struct clk_hw *hw, unsigned long rate, in axi_clkgen_round_rate()
421 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw, in axi_clkgen_recalc_rate() argument
424 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_recalc_rate()
448 static int axi_clkgen_enable(struct clk_hw *clk_hw) in axi_clkgen_enable() argument
450 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_enable()
457 static void axi_clkgen_disable(struct clk_hw *clk_hw) in axi_clkgen_disable() argument
459 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw); in axi_clkgen_disable()
528 axi_clkgen->clk_hw.init = &init; in axi_clkgen_probe()
529 clk = devm_clk_register(&pdev->dev, &axi_clkgen->clk_hw); in axi_clkgen_probe()