Lines Matching refs:dclk
28 struct sun4i_dclk *dclk = hw_to_dclk(hw);
30 regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG,
36 struct sun4i_dclk *dclk = hw_to_dclk(hw);
38 return regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG,
45 struct sun4i_dclk *dclk = hw_to_dclk(hw);
48 regmap_read(dclk->regmap, SUN4I_TCON0_DCLK_REG, &val);
56 struct sun4i_dclk *dclk = hw_to_dclk(hw);
59 regmap_read(dclk->regmap, SUN4I_TCON0_DCLK_REG, &val);
73 struct sun4i_dclk *dclk = hw_to_dclk(hw);
74 struct sun4i_tcon *tcon = dclk->tcon;
118 struct sun4i_dclk *dclk = hw_to_dclk(hw);
121 return regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG,
127 struct sun4i_dclk *dclk = hw_to_dclk(hw);
130 regmap_read(dclk->regmap, SUN4I_TCON0_IO_POL_REG, &val);
140 struct sun4i_dclk *dclk = hw_to_dclk(hw);
145 regmap_update_bits(dclk->regmap, SUN4I_TCON0_IO_POL_REG,
169 struct sun4i_dclk *dclk;
179 dclk = devm_kzalloc(dev, sizeof(*dclk), GFP_KERNEL);
180 if (!dclk)
182 dclk->tcon = tcon;
190 dclk->regmap = tcon->regs;
191 dclk->hw.init = &init;
193 tcon->dclk = clk_register(dev, &dclk->hw);
194 if (IS_ERR(tcon->dclk))
195 return PTR_ERR(tcon->dclk);
203 clk_unregister(tcon->dclk);