Lines Matching refs:clk_elem
751 struct stm32_pll_obj *clk_elem = to_pll(hw); in __pll_is_enabled() local
753 return readl_relaxed(clk_elem->reg) & PLL_ON; in __pll_is_enabled()
760 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_enable() local
766 spin_lock_irqsave(clk_elem->lock, flags); in pll_enable()
771 reg = readl_relaxed(clk_elem->reg); in pll_enable()
773 writel_relaxed(reg, clk_elem->reg); in pll_enable()
781 bit_status = !(readl_relaxed(clk_elem->reg) & PLL_RDY); in pll_enable()
789 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_enable()
796 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_disable() local
800 spin_lock_irqsave(clk_elem->lock, flags); in pll_disable()
802 reg = readl_relaxed(clk_elem->reg); in pll_disable()
804 writel_relaxed(reg, clk_elem->reg); in pll_disable()
806 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_disable()
811 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_frac_val() local
814 reg = readl_relaxed(clk_elem->reg + FRAC_OFFSET); in pll_frac_val()
824 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_recalc_rate() local
829 reg = readl_relaxed(clk_elem->reg + 4); in pll_recalc_rate()
848 struct stm32_pll_obj *clk_elem = to_pll(hw); in pll_is_enabled() local
852 spin_lock_irqsave(clk_elem->lock, flags); in pll_is_enabled()
854 spin_unlock_irqrestore(clk_elem->lock, flags); in pll_is_enabled()