Lines Matching refs:scs
474 struct gdsc **scs = desc->scs; in gdsc_register() local
487 if (!scs[i] || !scs[i]->supply) in gdsc_register()
490 scs[i]->rsupply = devm_regulator_get(dev, scs[i]->supply); in gdsc_register()
491 if (IS_ERR(scs[i]->rsupply)) in gdsc_register()
492 return PTR_ERR(scs[i]->rsupply); in gdsc_register()
497 if (!scs[i]) in gdsc_register()
499 scs[i]->regmap = regmap; in gdsc_register()
500 scs[i]->rcdev = rcdev; in gdsc_register()
501 ret = gdsc_init(scs[i]); in gdsc_register()
504 data->domains[i] = &scs[i]->pd; in gdsc_register()
509 if (!scs[i]) in gdsc_register()
511 if (scs[i]->parent) in gdsc_register()
512 pm_genpd_add_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_register()
514 pm_genpd_add_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_register()
524 struct gdsc **scs = desc->scs; in gdsc_unregister() local
529 if (!scs[i]) in gdsc_unregister()
531 if (scs[i]->parent) in gdsc_unregister()
532 pm_genpd_remove_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_unregister()
534 pm_genpd_remove_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_unregister()