Lines Matching refs:sps
44 struct owl_sps *sps; member
54 return owl_sps_set_pg(pd->sps->base, pwr_mask, ack_mask, enable); in owl_sps_set_power()
61 dev_dbg(pd->sps->dev, "%s power on", pd->info->name); in owl_sps_power_on()
70 dev_dbg(pd->sps->dev, "%s power off", pd->info->name); in owl_sps_power_off()
75 static int owl_sps_init_domain(struct owl_sps *sps, int index) in owl_sps_init_domain() argument
79 pd = devm_kzalloc(sps->dev, sizeof(*pd), GFP_KERNEL); in owl_sps_init_domain()
83 pd->info = &sps->info->domains[index]; in owl_sps_init_domain()
84 pd->sps = sps; in owl_sps_init_domain()
92 sps->genpd_data.domains[index] = &pd->genpd; in owl_sps_init_domain()
101 struct owl_sps *sps; in owl_sps_probe() local
117 sps = devm_kzalloc(&pdev->dev, in owl_sps_probe()
118 struct_size(sps, domains, sps_info->num_domains), in owl_sps_probe()
120 if (!sps) in owl_sps_probe()
123 sps->base = of_io_request_and_map(pdev->dev.of_node, 0, "owl-sps"); in owl_sps_probe()
124 if (IS_ERR(sps->base)) { in owl_sps_probe()
126 return PTR_ERR(sps->base); in owl_sps_probe()
129 sps->dev = &pdev->dev; in owl_sps_probe()
130 sps->info = sps_info; in owl_sps_probe()
131 sps->genpd_data.domains = sps->domains; in owl_sps_probe()
132 sps->genpd_data.num_domains = sps_info->num_domains; in owl_sps_probe()
135 ret = owl_sps_init_domain(sps, i); in owl_sps_probe()
140 ret = of_genpd_add_provider_onecell(pdev->dev.of_node, &sps->genpd_data); in owl_sps_probe()