Lines Matching refs:ccu
112 static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev, in sunxi_ccu_probe() argument
119 ccu->desc = desc; in sunxi_ccu_probe()
121 spin_lock_init(&ccu->lock); in sunxi_ccu_probe()
130 cclk->lock = &ccu->lock; in sunxi_ccu_probe()
171 reset = &ccu->reset; in sunxi_ccu_probe()
177 reset->lock = &ccu->lock; in sunxi_ccu_probe()
201 struct sunxi_ccu *ccu = res; in devm_sunxi_ccu_release() local
202 const struct sunxi_ccu_desc *desc = ccu->desc; in devm_sunxi_ccu_release()
205 reset_controller_unregister(&ccu->reset.rcdev); in devm_sunxi_ccu_release()
220 struct sunxi_ccu *ccu; in devm_sunxi_ccu_probe() local
223 ccu = devres_alloc(devm_sunxi_ccu_release, sizeof(*ccu), GFP_KERNEL); in devm_sunxi_ccu_probe()
224 if (!ccu) in devm_sunxi_ccu_probe()
227 ret = sunxi_ccu_probe(ccu, dev, dev->of_node, reg, desc); in devm_sunxi_ccu_probe()
229 devres_free(ccu); in devm_sunxi_ccu_probe()
233 devres_add(dev, ccu); in devm_sunxi_ccu_probe()
242 struct sunxi_ccu *ccu; in of_sunxi_ccu_probe() local
245 ccu = kzalloc(sizeof(*ccu), GFP_KERNEL); in of_sunxi_ccu_probe()
246 if (!ccu) in of_sunxi_ccu_probe()
249 ret = sunxi_ccu_probe(ccu, NULL, node, reg, desc); in of_sunxi_ccu_probe()
252 kfree(ccu); in of_sunxi_ccu_probe()