Lines Matching full:ccu
102 static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev, in sunxi_ccu_probe() argument
109 ccu->desc = desc; in sunxi_ccu_probe()
111 spin_lock_init(&ccu->lock); in sunxi_ccu_probe()
120 cclk->lock = &ccu->lock; in sunxi_ccu_probe()
146 reset = &ccu->reset; in sunxi_ccu_probe()
152 reset->lock = &ccu->lock; in sunxi_ccu_probe()
176 struct sunxi_ccu *ccu = res; in devm_sunxi_ccu_release() local
177 const struct sunxi_ccu_desc *desc = ccu->desc; in devm_sunxi_ccu_release()
180 reset_controller_unregister(&ccu->reset.rcdev); in devm_sunxi_ccu_release()
195 struct sunxi_ccu *ccu; in devm_sunxi_ccu_probe() local
198 ccu = devres_alloc(devm_sunxi_ccu_release, sizeof(*ccu), GFP_KERNEL); in devm_sunxi_ccu_probe()
199 if (!ccu) in devm_sunxi_ccu_probe()
202 ret = sunxi_ccu_probe(ccu, dev, dev->of_node, reg, desc); in devm_sunxi_ccu_probe()
204 devres_free(ccu); in devm_sunxi_ccu_probe()
208 devres_add(dev, ccu); in devm_sunxi_ccu_probe()
217 struct sunxi_ccu *ccu; in of_sunxi_ccu_probe() local
220 ccu = kzalloc(sizeof(*ccu), GFP_KERNEL); in of_sunxi_ccu_probe()
221 if (!ccu) in of_sunxi_ccu_probe()
224 ret = sunxi_ccu_probe(ccu, NULL, node, reg, desc); in of_sunxi_ccu_probe()
227 kfree(ccu); in of_sunxi_ccu_probe()