Lines Matching refs:clk_elem
767 struct stm32_pll_obj *clk_elem = to_pll(hw); in __pll_is_enabled() local
769 return readl_relaxed(clk_elem->reg) & PLL_ON; in __pll_is_enabled()
776 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_enable() local
782 spin_lock_irqsave(clk_elem->lock, flags); in pll_enable()
787 reg = readl_relaxed(clk_elem->reg); in pll_enable()
789 writel_relaxed(reg, clk_elem->reg); in pll_enable()
797 bit_status = !(readl_relaxed(clk_elem->reg) & PLL_RDY); in pll_enable()
805 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_enable()
812 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_disable() local
816 spin_lock_irqsave(clk_elem->lock, flags); in pll_disable()
818 reg = readl_relaxed(clk_elem->reg); in pll_disable()
820 writel_relaxed(reg, clk_elem->reg); in pll_disable()
822 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_disable()
827 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_frac_val() local
830 reg = readl_relaxed(clk_elem->reg + FRAC_OFFSET); in pll_frac_val()
840 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_recalc_rate() local
845 reg = readl_relaxed(clk_elem->reg + 4); in pll_recalc_rate()
864 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_is_enabled() local
868 spin_lock_irqsave(clk_elem->lock, flags); in pll_is_enabled()
870 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_is_enabled()
877 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_get_parent() local
878 struct clk_hw *mux_hw = &clk_elem->mux.hw; in pll_get_parent()