Lines Matching refs:scs
472 struct gdsc **scs = desc->scs; in gdsc_register() local
485 if (!scs[i] || !scs[i]->supply) in gdsc_register()
488 scs[i]->rsupply = devm_regulator_get(dev, scs[i]->supply); in gdsc_register()
489 if (IS_ERR(scs[i]->rsupply)) in gdsc_register()
490 return PTR_ERR(scs[i]->rsupply); in gdsc_register()
495 if (!scs[i]) in gdsc_register()
497 scs[i]->regmap = regmap; in gdsc_register()
498 scs[i]->rcdev = rcdev; in gdsc_register()
499 ret = gdsc_init(scs[i]); in gdsc_register()
502 data->domains[i] = &scs[i]->pd; in gdsc_register()
507 if (!scs[i]) in gdsc_register()
509 if (scs[i]->parent) in gdsc_register()
510 pm_genpd_add_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_register()
512 pm_genpd_add_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_register()
522 struct gdsc **scs = desc->scs; in gdsc_unregister() local
527 if (!scs[i]) in gdsc_unregister()
529 if (scs[i]->parent) in gdsc_unregister()
530 pm_genpd_remove_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_unregister()
532 pm_genpd_remove_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_unregister()