Home
last modified time | relevance | path

Searched refs:pd_provider (Results 1 – 3 of 3) sorted by relevance

/drivers/pmdomain/ti/
Dti_sci_pm_domains.c117 static bool ti_sci_pm_idx_exists(struct ti_sci_genpd_provider *pd_provider, u32 idx) in ti_sci_pm_idx_exists() argument
121 list_for_each_entry(pd, &pd_provider->pd_list, node) { in ti_sci_pm_idx_exists()
132 struct ti_sci_genpd_provider *pd_provider; in ti_sci_pm_domain_probe() local
140 pd_provider = devm_kzalloc(dev, sizeof(*pd_provider), GFP_KERNEL); in ti_sci_pm_domain_probe()
141 if (!pd_provider) in ti_sci_pm_domain_probe()
144 pd_provider->ti_sci = devm_ti_sci_get_handle(dev); in ti_sci_pm_domain_probe()
145 if (IS_ERR(pd_provider->ti_sci)) in ti_sci_pm_domain_probe()
146 return PTR_ERR(pd_provider->ti_sci); in ti_sci_pm_domain_probe()
148 pd_provider->dev = dev; in ti_sci_pm_domain_probe()
150 INIT_LIST_HEAD(&pd_provider->pd_list); in ti_sci_pm_domain_probe()
[all …]
/drivers/cpuidle/
Dcpuidle-psci-domain.c53 struct psci_pd_provider *pd_provider; in psci_pd_init() local
61 pd_provider = kzalloc(sizeof(*pd_provider), GFP_KERNEL); in psci_pd_init()
62 if (!pd_provider) in psci_pd_init()
87 pd_provider->node = of_node_get(np); in psci_pd_init()
88 list_add(&pd_provider->link, &psci_pd_providers); in psci_pd_init()
96 kfree(pd_provider); in psci_pd_init()
106 struct psci_pd_provider *pd_provider, *it; in psci_pd_remove() local
109 list_for_each_entry_safe_reverse(pd_provider, it, in psci_pd_remove()
111 of_genpd_del_provider(pd_provider->node); in psci_pd_remove()
113 genpd = of_genpd_remove_last(pd_provider->node); in psci_pd_remove()
[all …]
Dcpuidle-riscv-sbi.c421 struct sbi_pd_provider *pd_provider; in sbi_pd_init() local
429 pd_provider = kzalloc(sizeof(*pd_provider), GFP_KERNEL); in sbi_pd_init()
430 if (!pd_provider) in sbi_pd_init()
452 pd_provider->node = of_node_get(np); in sbi_pd_init()
453 list_add(&pd_provider->link, &sbi_pd_providers); in sbi_pd_init()
461 kfree(pd_provider); in sbi_pd_init()
471 struct sbi_pd_provider *pd_provider, *it; in sbi_pd_remove() local
474 list_for_each_entry_safe(pd_provider, it, &sbi_pd_providers, link) { in sbi_pd_remove()
475 of_genpd_del_provider(pd_provider->node); in sbi_pd_remove()
477 genpd = of_genpd_remove_last(pd_provider->node); in sbi_pd_remove()
[all …]