Lines Matching refs:hw
118 static unsigned long alchemy_clk_cpu_recalc(struct clk_hw *hw, in alchemy_clk_cpu_recalc() argument
180 struct clk_hw hw; member
184 #define to_auxpll_clk(x) container_of(x, struct alchemy_auxpll_clk, hw)
186 static unsigned long alchemy_clk_aux_recalc(struct clk_hw *hw, in alchemy_clk_aux_recalc() argument
189 struct alchemy_auxpll_clk *a = to_auxpll_clk(hw); in alchemy_clk_aux_recalc()
194 static int alchemy_clk_aux_setr(struct clk_hw *hw, in alchemy_clk_aux_setr() argument
198 struct alchemy_auxpll_clk *a = to_auxpll_clk(hw); in alchemy_clk_aux_setr()
214 static long alchemy_clk_aux_roundr(struct clk_hw *hw, in alchemy_clk_aux_roundr() argument
218 struct alchemy_auxpll_clk *a = to_auxpll_clk(hw); in alchemy_clk_aux_roundr()
260 a->hw.init = &id; in alchemy_clk_setup_aux()
262 c = clk_register(NULL, &a->hw); in alchemy_clk_setup_aux()
366 struct clk_hw hw; member
374 #define to_fgcs_clk(x) container_of(x, struct alchemy_fgcs_clk, hw)
401 static int alchemy_clk_fgcs_detr(struct clk_hw *hw, in alchemy_clk_fgcs_detr() argument
419 pc = clk_hw_get_parent_by_index(hw, j); in alchemy_clk_fgcs_detr()
491 static int alchemy_clk_fgv1_en(struct clk_hw *hw) in alchemy_clk_fgv1_en() argument
493 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_en()
505 static int alchemy_clk_fgv1_isen(struct clk_hw *hw) in alchemy_clk_fgv1_isen() argument
507 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_isen()
513 static void alchemy_clk_fgv1_dis(struct clk_hw *hw) in alchemy_clk_fgv1_dis() argument
515 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_dis()
525 static int alchemy_clk_fgv1_setp(struct clk_hw *hw, u8 index) in alchemy_clk_fgv1_setp() argument
527 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_setp()
542 static u8 alchemy_clk_fgv1_getp(struct clk_hw *hw) in alchemy_clk_fgv1_getp() argument
544 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_getp()
549 static int alchemy_clk_fgv1_setr(struct clk_hw *hw, unsigned long rate, in alchemy_clk_fgv1_setr() argument
552 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_setr()
569 static unsigned long alchemy_clk_fgv1_recalc(struct clk_hw *hw, in alchemy_clk_fgv1_recalc() argument
572 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv1_recalc()
579 static int alchemy_clk_fgv1_detr(struct clk_hw *hw, in alchemy_clk_fgv1_detr() argument
582 return alchemy_clk_fgcs_detr(hw, req, 2, 512); in alchemy_clk_fgv1_detr()
607 static int alchemy_clk_fgv2_en(struct clk_hw *hw) in alchemy_clk_fgv2_en() argument
609 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_en()
620 static int alchemy_clk_fgv2_isen(struct clk_hw *hw) in alchemy_clk_fgv2_isen() argument
622 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_isen()
627 static void alchemy_clk_fgv2_dis(struct clk_hw *hw) in alchemy_clk_fgv2_dis() argument
629 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_dis()
640 static int alchemy_clk_fgv2_setp(struct clk_hw *hw, u8 index) in alchemy_clk_fgv2_setp() argument
642 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_setp()
654 static u8 alchemy_clk_fgv2_getp(struct clk_hw *hw) in alchemy_clk_fgv2_getp() argument
656 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_getp()
670 static int alchemy_clk_fgv2_setr(struct clk_hw *hw, unsigned long rate, in alchemy_clk_fgv2_setr() argument
673 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_setr()
694 static unsigned long alchemy_clk_fgv2_recalc(struct clk_hw *hw, in alchemy_clk_fgv2_recalc() argument
697 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_recalc()
709 static int alchemy_clk_fgv2_detr(struct clk_hw *hw, in alchemy_clk_fgv2_detr() argument
712 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_fgv2_detr()
723 return alchemy_clk_fgcs_detr(hw, req, scale, maxdiv); in alchemy_clk_fgv2_detr()
805 a->hw.init = &id; in alchemy_clk_init_fgens()
806 c = clk_register(NULL, &a->hw); in alchemy_clk_init_fgens()
819 static int alchemy_clk_csrc_isen(struct clk_hw *hw) in alchemy_clk_csrc_isen() argument
821 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_isen()
837 static int alchemy_clk_csrc_en(struct clk_hw *hw) in alchemy_clk_csrc_en() argument
839 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_en()
850 static void alchemy_clk_csrc_dis(struct clk_hw *hw) in alchemy_clk_csrc_dis() argument
852 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_dis()
863 static int alchemy_clk_csrc_setp(struct clk_hw *hw, u8 index) in alchemy_clk_csrc_setp() argument
865 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_setp()
877 static u8 alchemy_clk_csrc_getp(struct clk_hw *hw) in alchemy_clk_csrc_getp() argument
879 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_getp()
884 static unsigned long alchemy_clk_csrc_recalc(struct clk_hw *hw, in alchemy_clk_csrc_recalc() argument
887 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_recalc()
893 static int alchemy_clk_csrc_setr(struct clk_hw *hw, unsigned long rate, in alchemy_clk_csrc_setr() argument
896 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_setr()
926 static int alchemy_clk_csrc_detr(struct clk_hw *hw, in alchemy_clk_csrc_detr() argument
929 struct alchemy_fgcs_clk *c = to_fgcs_clk(hw); in alchemy_clk_csrc_detr()
932 return alchemy_clk_fgcs_detr(hw, req, scale, 4); in alchemy_clk_csrc_detr()
1022 a->hw.init = &id; in alchemy_clk_setup_imux()
1023 c = clk_register(NULL, &a->hw); in alchemy_clk_setup_imux()