Lines Matching refs:creg
50 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_prepare() local
53 ret = regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_prepare()
68 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_unprepare() local
70 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_32k_unprepare()
77 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_32k_is_prepared() local
80 regmap_read(creg->reg, LPC18XX_CREG_CREG0, ®); in clk_creg_32k_is_prepared()
94 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_enable() local
96 return regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_enable()
97 creg->en_mask, creg->en_mask); in clk_creg_enable()
102 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_disable() local
104 regmap_update_bits(creg->reg, LPC18XX_CREG_CREG0, in clk_creg_disable()
105 creg->en_mask, 0); in clk_creg_disable()
110 struct clk_creg_data *creg = to_clk_creg(hw); in clk_creg_is_enabled() local
113 regmap_read(creg->reg, LPC18XX_CREG_CREG0, ®); in clk_creg_is_enabled()
115 return !!(reg & creg->en_mask); in clk_creg_is_enabled()