Lines Matching defs: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;
120 struct sun4i_dclk *dclk = hw_to_dclk(hw);
123 return regmap_update_bits(dclk->regmap, SUN4I_TCON0_DCLK_REG,
129 struct sun4i_dclk *dclk = hw_to_dclk(hw);
132 regmap_read(dclk->regmap, SUN4I_TCON0_IO_POL_REG, &val);
142 struct sun4i_dclk *dclk = hw_to_dclk(hw);
147 regmap_update_bits(dclk->regmap, SUN4I_TCON0_IO_POL_REG,
171 struct sun4i_dclk *dclk;
181 dclk = devm_kzalloc(dev, sizeof(*dclk), GFP_KERNEL);
182 if (!dclk)
184 dclk->tcon = tcon;
192 dclk->regmap = tcon->regs;
193 dclk->hw.init = &init;
195 tcon->dclk = clk_register(dev, &dclk->hw);
196 if (IS_ERR(tcon->dclk))
197 return PTR_ERR(tcon->dclk);
205 clk_unregister(tcon->dclk);