Lines Matching defs:clk_hw
58 struct clk_hw clk_hw;
315 static struct axi_clkgen *clk_hw_to_axi_clkgen(struct clk_hw *clk_hw)
317 return container_of(clk_hw, struct axi_clkgen, clk_hw);
336 static int axi_clkgen_set_rate(struct clk_hw *clk_hw,
339 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
387 static int axi_clkgen_determine_rate(struct clk_hw *hw,
435 static unsigned long axi_clkgen_recalc_rate(struct clk_hw *clk_hw,
438 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
463 static int axi_clkgen_enable(struct clk_hw *clk_hw)
465 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
472 static void axi_clkgen_disable(struct clk_hw *clk_hw)
474 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
479 static int axi_clkgen_set_parent(struct clk_hw *clk_hw, u8 index)
481 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
488 static u8 axi_clkgen_get_parent(struct clk_hw *clk_hw)
490 struct axi_clkgen *axi_clkgen = clk_hw_to_axi_clkgen(clk_hw);
553 axi_clkgen->clk_hw.init = &init;
554 ret = devm_clk_hw_register(&pdev->dev, &axi_clkgen->clk_hw);
559 &axi_clkgen->clk_hw);