Lines Matching refs:hw

158 	struct clk		hw;
166 struct clk hw;
247 static unsigned long vc5_mux_get_rate(struct clk *hw)
249 return clk_get_rate(clk_get_parent(hw));
252 static int vc5_mux_set_parent(struct clk *hw, unsigned char index)
254 struct vc5_driver_data *vc5 = container_of(hw, struct vc5_driver_data, clk_mux);
285 static unsigned long vc5_pfd_round_rate(struct clk *hw, unsigned long rate)
287 struct clk *clk_parent = clk_get_parent(hw);
306 static unsigned long vc5_pfd_recalc_rate(struct clk *hw)
309 container_of(hw, struct vc5_driver_data, clk_pfd);
311 struct clk *clk_parent = clk_get_parent(hw);
329 static unsigned long vc5_pfd_set_rate(struct clk *hw, unsigned long rate)
332 container_of(hw, struct vc5_driver_data, clk_pfd);
335 struct clk *clk_parent = clk_get_parent(hw);
371 static unsigned long vc5_pll_recalc_rate(struct clk *hw)
373 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
375 struct clk *clk_parent = clk_get_parent(hw);
389 static unsigned long vc5_pll_round_rate(struct clk *hw, unsigned long rate)
391 struct clk *clk_parent = clk_get_parent(hw);
393 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
418 static unsigned long vc5_pll_set_rate(struct clk *hw, unsigned long rate)
420 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
439 static unsigned long vc5_fod_recalc_rate(struct clk *hw)
441 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
443 struct clk *parent = &vc->clk_pll.hw;
467 static unsigned long vc5_fod_round_rate(struct clk *hw, unsigned long rate)
469 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
471 struct clk *parent = &vc->clk_pll.hw;
503 static unsigned long vc5_fod_set_rate(struct clk *hw, unsigned long rate)
505 struct vc5_hw_data *hwdata = container_of(hw, struct vc5_hw_data, hw);
540 static int vc5_clk_out_prepare(struct clk *hw)
552 uclass_get_device_by_name(UCLASS_CLK, clk_hw_get_name(hw), &dev);
554 hwdata = &vc5->clk_out[hw->id];
585 static int vc5_clk_out_unprepare(struct clk *hw)
592 uclass_get_device_by_name(UCLASS_CLK, clk_hw_get_name(hw), &dev);
594 hwdata = &vc5->clk_out[hw->id];
621 static unsigned long vc5_clk_out_set_rate(struct clk *hw, unsigned long rate)
627 uclass_get_device_by_name(UCLASS_CLK, clk_hw_get_name(hw), &dev);
629 parent = clk_get_parent(&vc->clk_out[hw->id].hw);
635 static unsigned long vc5_clk_out_get_rate(struct clk *hw)
637 return clk_get_parent_rate(hw);
942 ret = clk_register(&vc5->clk_pll.hw, "versaclock-pll", pll_name, vc5->clk_pfd.dev->name);
956 ret = clk_register(&vc5->clk_fod[n].hw, "versaclock-fod", fod_name[n],
957 vc5->clk_pll.hw.dev->name);
971 ret = clk_register(&vc5->clk_out[0].hw, "versaclock-outsel", outsel_name,
986 ret = clk_register(&vc5->clk_out[n].hw, "versaclock-out", out_name[n],
987 vc5->clk_fod[idx].hw.dev->name);