Home
last modified time | relevance | path

Searched refs:div_hw (Results 1 - 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/actions/
H A Dowl-divider.c17 const struct owl_divider_hw *div_hw, in owl_divider_helper_round_rate()
22 div_hw->table, div_hw->width, in owl_divider_helper_round_rate()
23 div_hw->div_flags); in owl_divider_helper_round_rate()
31 return owl_divider_helper_round_rate(&div->common, &div->div_hw, in owl_divider_round_rate()
36 const struct owl_divider_hw *div_hw, in owl_divider_helper_recalc_rate()
42 regmap_read(common->regmap, div_hw->reg, &reg); in owl_divider_helper_recalc_rate()
43 val = reg >> div_hw->shift; in owl_divider_helper_recalc_rate()
44 val &= (1 << div_hw->width) - 1; in owl_divider_helper_recalc_rate()
47 val, div_hw in owl_divider_helper_recalc_rate()
16 owl_divider_helper_round_rate(struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long rate, unsigned long *parent_rate) owl_divider_helper_round_rate() argument
35 owl_divider_helper_recalc_rate(struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long parent_rate) owl_divider_helper_recalc_rate() argument
61 owl_divider_helper_set_rate(const struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long rate, unsigned long parent_rate) owl_divider_helper_set_rate() argument
[all...]
H A Dowl-divider.h25 struct owl_divider_hw div_hw; member
41 .div_hw = OWL_DIVIDER_HW(_reg, _shift, _width, \
60 const struct owl_divider_hw *div_hw,
65 const struct owl_divider_hw *div_hw,
69 const struct owl_divider_hw *div_hw,
H A Dowl-composite.h22 struct owl_divider_hw div_hw; member
42 .rate.div_hw = _div, \
56 .rate.div_hw = _div, \
H A Dowl-composite.c61 return owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_round_rate()
70 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate()
79 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate()
/kernel/linux/linux-6.6/drivers/clk/actions/
H A Dowl-divider.c17 const struct owl_divider_hw *div_hw, in owl_divider_helper_round_rate()
22 div_hw->table, div_hw->width, in owl_divider_helper_round_rate()
23 div_hw->div_flags); in owl_divider_helper_round_rate()
31 return owl_divider_helper_round_rate(&div->common, &div->div_hw, in owl_divider_round_rate()
36 const struct owl_divider_hw *div_hw, in owl_divider_helper_recalc_rate()
42 regmap_read(common->regmap, div_hw->reg, &reg); in owl_divider_helper_recalc_rate()
43 val = reg >> div_hw->shift; in owl_divider_helper_recalc_rate()
44 val &= (1 << div_hw->width) - 1; in owl_divider_helper_recalc_rate()
47 val, div_hw in owl_divider_helper_recalc_rate()
16 owl_divider_helper_round_rate(struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long rate, unsigned long *parent_rate) owl_divider_helper_round_rate() argument
35 owl_divider_helper_recalc_rate(struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long parent_rate) owl_divider_helper_recalc_rate() argument
61 owl_divider_helper_set_rate(const struct owl_clk_common *common, const struct owl_divider_hw *div_hw, unsigned long rate, unsigned long parent_rate) owl_divider_helper_set_rate() argument
[all...]
H A Dowl-divider.h25 struct owl_divider_hw div_hw; member
41 .div_hw = OWL_DIVIDER_HW(_reg, _shift, _width, \
60 const struct owl_divider_hw *div_hw,
65 const struct owl_divider_hw *div_hw,
69 const struct owl_divider_hw *div_hw,
H A Dowl-composite.h22 struct owl_divider_hw div_hw; member
42 .rate.div_hw = _div, \
56 .rate.div_hw = _div, \
H A Dowl-composite.c62 rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_determine_rate()
76 return owl_divider_helper_recalc_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_recalc_rate()
85 return owl_divider_helper_set_rate(&comp->common, &comp->rate.div_hw, in owl_comp_div_set_rate()
/kernel/linux/linux-5.10/drivers/clk/tegra/
H A Dclk-periph.c41 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate() local
43 __clk_hw_set_clk(div_hw, hw); in clk_periph_recalc_rate()
45 return div_ops->recalc_rate(div_hw, parent_rate); in clk_periph_recalc_rate()
53 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_round_rate() local
55 __clk_hw_set_clk(div_hw, hw); in clk_periph_round_rate()
57 return div_ops->round_rate(div_hw, rate, prate); in clk_periph_round_rate()
65 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate() local
67 __clk_hw_set_clk(div_hw, hw); in clk_periph_set_rate()
69 return div_ops->set_rate(div_hw, rate, parent_rate); in clk_periph_set_rate()
116 struct clk_hw *div_hw in clk_periph_restore_context() local
[all...]
H A Dclk-super.c148 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_round_rate() local
150 __clk_hw_set_clk(div_hw, hw); in clk_super_round_rate()
152 return super->div_ops->round_rate(div_hw, rate, parent_rate); in clk_super_round_rate()
159 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_recalc_rate() local
161 __clk_hw_set_clk(div_hw, hw); in clk_super_recalc_rate()
163 return super->div_ops->recalc_rate(div_hw, parent_rate); in clk_super_recalc_rate()
170 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_set_rate() local
172 __clk_hw_set_clk(div_hw, hw); in clk_super_set_rate()
174 return super->div_ops->set_rate(div_hw, rate, parent_rate); in clk_super_set_rate()
180 struct clk_hw *div_hw in clk_super_restore_context() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/tegra/
H A Dclk-super.c149 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_determine_rate() local
152 __clk_hw_set_clk(div_hw, hw); in clk_super_determine_rate()
154 rate = super->div_ops->round_rate(div_hw, req->rate, in clk_super_determine_rate()
167 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_recalc_rate() local
169 __clk_hw_set_clk(div_hw, hw); in clk_super_recalc_rate()
171 return super->div_ops->recalc_rate(div_hw, parent_rate); in clk_super_recalc_rate()
178 struct clk_hw *div_hw = &super->frac_div.hw; in clk_super_set_rate() local
180 __clk_hw_set_clk(div_hw, hw); in clk_super_set_rate()
182 return super->div_ops->set_rate(div_hw, rate, parent_rate); in clk_super_set_rate()
188 struct clk_hw *div_hw in clk_super_restore_context() local
[all...]
H A Dclk-periph.c41 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_recalc_rate() local
43 __clk_hw_set_clk(div_hw, hw); in clk_periph_recalc_rate()
45 return div_ops->recalc_rate(div_hw, parent_rate); in clk_periph_recalc_rate()
53 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_determine_rate() local
56 __clk_hw_set_clk(div_hw, hw); in clk_periph_determine_rate()
58 rate = div_ops->round_rate(div_hw, req->rate, &req->best_parent_rate); in clk_periph_determine_rate()
71 struct clk_hw *div_hw = &periph->divider.hw; in clk_periph_set_rate() local
73 __clk_hw_set_clk(div_hw, hw); in clk_periph_set_rate()
75 return div_ops->set_rate(div_hw, rate, parent_rate); in clk_periph_set_rate()
122 struct clk_hw *div_hw in clk_periph_restore_context() local
[all...]
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-bm1880.c592 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_recalc_rate() local
593 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_recalc_rate()
594 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_recalc_rate()
614 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_round_rate() local
615 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_round_rate()
616 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_round_rate()
636 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_set_rate() local
637 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_set_rate()
638 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_set_rate()
644 div->width, div_hw in bm1880_clk_div_set_rate()
761 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; bm1880_clk_register_composite() local
[all...]
H A Dclk-stm32h7.c351 struct clk_hw *div_hw; member
368 struct clk_hw *div_hw; in get_cfg_composite_div() local
372 mux_hw = div_hw = gate_hw = NULL; in get_cfg_composite_div()
394 div_hw = &div->hw; in get_cfg_composite_div()
415 composite->div_hw = div_hw; in get_cfg_composite_div()
1327 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1350 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1365 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1379 c_cfg.div_hw, c_cf in stm32h7_rcc_init()
[all...]
H A Dclk-stm32mp1.c616 struct clk_hw *mux_hw, *div_hw, *gate_hw; in clk_stm32_register_composite() local
619 div_hw = NULL; in clk_stm32_register_composite()
637 div_hw = _get_stm32_div(base, cfg->div, lock); in clk_stm32_register_composite()
639 if (!IS_ERR(div_hw)) { in clk_stm32_register_composite()
659 mux_hw, mux_ops, div_hw, div_ops, in clk_stm32_register_composite()
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-bm1880.c592 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_recalc_rate() local
593 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_recalc_rate()
594 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_recalc_rate()
614 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_round_rate() local
615 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_round_rate()
616 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_round_rate()
636 struct bm1880_div_hw_clock *div_hw = to_bm1880_div_clk(hw); in bm1880_clk_div_set_rate() local
637 struct bm1880_div_clock *div = &div_hw->div; in bm1880_clk_div_set_rate()
638 void __iomem *reg_addr = div_hw->base + div->reg; in bm1880_clk_div_set_rate()
644 div->width, div_hw in bm1880_clk_div_set_rate()
761 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; bm1880_clk_register_composite() local
[all...]
H A Dclk-stm32h7.c351 struct clk_hw *div_hw; member
368 struct clk_hw *div_hw; in get_cfg_composite_div() local
372 mux_hw = div_hw = gate_hw = NULL; in get_cfg_composite_div()
394 div_hw = &div->hw; in get_cfg_composite_div()
415 composite->div_hw = div_hw; in get_cfg_composite_div()
1326 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1349 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1364 c_cfg.div_hw, c_cfg.div_ops, in stm32h7_rcc_init()
1378 c_cfg.div_hw, c_cf in stm32h7_rcc_init()
[all...]
H A Dclk-stm32mp1.c629 struct clk_hw *mux_hw, *div_hw, *gate_hw; in clk_stm32_register_composite() local
632 div_hw = NULL; in clk_stm32_register_composite()
650 div_hw = _get_stm32_div(dev, base, cfg->div, lock); in clk_stm32_register_composite()
652 if (!IS_ERR(div_hw)) { in clk_stm32_register_composite()
672 mux_hw, mux_ops, div_hw, div_ops, in clk_stm32_register_composite()
/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk-composite-93.c189 struct clk_hw *div_hw, *gate_hw; in imx93_clk_composite_flags() local
210 div_hw = &div->hw; in imx93_clk_composite_flags()
223 mux_hw, &clk_mux_ro_ops, div_hw, in imx93_clk_composite_flags()
237 mux_hw, &imx93_clk_composite_mux_ops, div_hw, in imx93_clk_composite_flags()
243 mux_hw, &imx93_clk_composite_mux_ops, div_hw, in imx93_clk_composite_flags()
H A Dclk-composite-8m.c214 struct clk_hw *div_hw, *gate_hw = NULL; in __imx8m_clk_hw_composite() local
235 div_hw = &div->hw; in __imx8m_clk_hw_composite()
272 mux_hw, mux_ops, div_hw, in __imx8m_clk_hw_composite()
/kernel/linux/linux-5.10/drivers/clk/nxp/
H A Dclk-lpc18xx-ccu.c211 struct clk_hw *div_hw = NULL; in lpc18xx_ccu_register_branch_gate_div() local
223 div_hw = &div->hw; in lpc18xx_ccu_register_branch_gate_div()
232 div_hw, div_ops, in lpc18xx_ccu_register_branch_gate_div()
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk-composite-8m.c183 struct clk_hw *div_hw, *gate_hw; in imx8m_clk_hw_composite_flags() local
204 div_hw = &div->hw; in imx8m_clk_hw_composite_flags()
238 mux_hw, mux_ops, div_hw, in imx8m_clk_hw_composite_flags()
/kernel/linux/linux-6.6/drivers/clk/nxp/
H A Dclk-lpc18xx-ccu.c208 struct clk_hw *div_hw = NULL; in lpc18xx_ccu_register_branch_gate_div() local
220 div_hw = &div->hw; in lpc18xx_ccu_register_branch_gate_div()
229 div_hw, div_ops, in lpc18xx_ccu_register_branch_gate_div()
/kernel/linux/linux-5.10/drivers/clk/mediatek/
H A Dclk-mtk.c156 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local
212 div_hw = &div->hw; in mtk_clk_register_composite()
218 div_hw, div_ops, in mtk_clk_register_composite()
/kernel/linux/linux-6.6/drivers/clk/mediatek/
H A Dclk-mtk.c224 struct clk_hw *mux_hw = NULL, *gate_hw = NULL, *div_hw = NULL; in mtk_clk_register_composite() local
280 div_hw = &div->hw; in mtk_clk_register_composite()
286 div_hw, div_ops, in mtk_clk_register_composite()

Completed in 21 milliseconds

12