Lines Matching refs:cfg
162 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_enable() local
164 mmio_setbits_32(priv->base + cfg->offset, BIT(cfg->bit_idx)); in clk_gate_enable()
172 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_disable() local
174 mmio_clrbits_32(priv->base + cfg->offset, BIT(cfg->bit_idx)); in clk_gate_disable()
180 struct clk_gate_cfg *cfg = clk->clock_cfg; in clk_gate_is_enabled() local
182 return ((mmio_read_32(priv->base + cfg->offset) & BIT(cfg->bit_idx)) != 0U); in clk_gate_is_enabled()
833 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_enable() local
834 const struct gate_cfg *gate = &priv->gates[cfg->id]; in clk_stm32_gate_enable()
850 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_disable() local
851 const struct gate_cfg *gate = &priv->gates[cfg->id]; in clk_stm32_gate_disable()
875 struct clk_stm32_gate_cfg *cfg = clk->clock_cfg; in clk_stm32_gate_is_enabled() local
877 return _clk_stm32_gate_is_enabled(priv, cfg->id); in clk_stm32_gate_is_enabled()
894 const struct fixed_factor_cfg *cfg = clk->clock_cfg; in fixed_factor_recalc_rate() local
897 rate = (unsigned long long)prate * cfg->mult; in fixed_factor_recalc_rate()
899 if (cfg->div == 0U) { in fixed_factor_recalc_rate()
904 return (unsigned long)(rate / cfg->div); in fixed_factor_recalc_rate()
914 const struct clk_timer_cfg *cfg = clk->clock_cfg; in timer_recalc_rate() local
918 prescaler = mmio_read_32(rcc_base + cfg->apbdiv) & in timer_recalc_rate()
921 timpre = mmio_read_32(rcc_base + cfg->timpre) & in timer_recalc_rate()
939 struct clk_stm32_fixed_rate_cfg *cfg = clk->clock_cfg; in clk_fixed_rate_recalc() local
941 return cfg->rate; in clk_fixed_rate_recalc()