Lines Matching refs:ccu
90 static int sunxi_ccu_probe(struct sunxi_ccu *ccu, struct device *dev, in sunxi_ccu_probe() argument
97 ccu->desc = desc; in sunxi_ccu_probe()
99 spin_lock_init(&ccu->lock); in sunxi_ccu_probe()
108 cclk->lock = &ccu->lock; in sunxi_ccu_probe()
134 reset = &ccu->reset; in sunxi_ccu_probe()
140 reset->lock = &ccu->lock; in sunxi_ccu_probe()
164 struct sunxi_ccu *ccu = res; in devm_sunxi_ccu_release() local
165 const struct sunxi_ccu_desc *desc = ccu->desc; in devm_sunxi_ccu_release()
168 reset_controller_unregister(&ccu->reset.rcdev); in devm_sunxi_ccu_release()
183 struct sunxi_ccu *ccu; in devm_sunxi_ccu_probe() local
186 ccu = devres_alloc(devm_sunxi_ccu_release, sizeof(*ccu), GFP_KERNEL); in devm_sunxi_ccu_probe()
187 if (!ccu) in devm_sunxi_ccu_probe()
190 ret = sunxi_ccu_probe(ccu, dev, dev->of_node, reg, desc); in devm_sunxi_ccu_probe()
192 devres_free(ccu); in devm_sunxi_ccu_probe()
196 devres_add(dev, ccu); in devm_sunxi_ccu_probe()
205 struct sunxi_ccu *ccu; in of_sunxi_ccu_probe() local
208 ccu = kzalloc(sizeof(*ccu), GFP_KERNEL); in of_sunxi_ccu_probe()
209 if (!ccu) in of_sunxi_ccu_probe()
212 ret = sunxi_ccu_probe(ccu, NULL, node, reg, desc); in of_sunxi_ccu_probe()
215 kfree(ccu); in of_sunxi_ccu_probe()