Lines Matching full:ppu
106 struct genpd_onecell_data *ppu; in sun20i_ppu_probe() local
121 ppu = devm_kzalloc(dev, sizeof(*ppu), GFP_KERNEL); in sun20i_ppu_probe()
122 if (!ppu) in sun20i_ppu_probe()
125 ppu->domains = devm_kcalloc(dev, desc->num_domains, in sun20i_ppu_probe()
126 sizeof(*ppu->domains), GFP_KERNEL); in sun20i_ppu_probe()
127 if (!ppu->domains) in sun20i_ppu_probe()
130 ppu->num_domains = desc->num_domains; in sun20i_ppu_probe()
131 platform_set_drvdata(pdev, ppu); in sun20i_ppu_probe()
149 for (unsigned int i = 0; i < ppu->num_domains; ++i) { in sun20i_ppu_probe()
164 ppu->domains[i] = &pd->genpd; in sun20i_ppu_probe()
167 ret = of_genpd_add_provider_onecell(dev->of_node, ppu); in sun20i_ppu_probe()
187 .compatible = "allwinner,sun20i-d1-ppu",
197 .name = "sun20i-ppu",
206 MODULE_DESCRIPTION("Allwinner D1 PPU power domain driver");