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