Lines Matching refs:scs
515 struct gdsc **scs = desc->scs; in gdsc_register() local
528 if (!scs[i] || !scs[i]->supply) in gdsc_register()
531 scs[i]->rsupply = devm_regulator_get_optional(dev, scs[i]->supply); in gdsc_register()
532 if (IS_ERR(scs[i]->rsupply)) { in gdsc_register()
533 ret = PTR_ERR(scs[i]->rsupply); in gdsc_register()
537 scs[i]->rsupply = NULL; in gdsc_register()
543 if (!scs[i]) in gdsc_register()
545 scs[i]->regmap = regmap; in gdsc_register()
546 scs[i]->rcdev = rcdev; in gdsc_register()
547 ret = gdsc_init(scs[i]); in gdsc_register()
550 data->domains[i] = &scs[i]->pd; in gdsc_register()
555 if (!scs[i]) in gdsc_register()
557 if (scs[i]->parent) in gdsc_register()
558 pm_genpd_add_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_register()
560 pm_genpd_add_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_register()
570 struct gdsc **scs = desc->scs; in gdsc_unregister() local
575 if (!scs[i]) in gdsc_unregister()
577 if (scs[i]->parent) in gdsc_unregister()
578 pm_genpd_remove_subdomain(scs[i]->parent, &scs[i]->pd); in gdsc_unregister()
580 pm_genpd_remove_subdomain(pd_to_genpd(dev->pm_domain), &scs[i]->pd); in gdsc_unregister()