Searched refs:pd_provider (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/pmdomain/ti/ |
H A D | ti_sci_pm_domains.c | 117 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 …]
|
/linux/drivers/cpuidle/ |
H A D | cpuidle-psci-domain.c | 54 struct psci_pd_provider *pd_provider; in psci_pd_init() local 62 pd_provider = kzalloc(sizeof(*pd_provider), GFP_KERNEL); in psci_pd_init() 63 if (!pd_provider) in psci_pd_init() 92 pd_provider->node = of_node_get(np); in psci_pd_init() 93 list_add(&pd_provider->link, &psci_pd_providers); in psci_pd_init() 101 kfree(pd_provider); in psci_pd_init() 111 struct psci_pd_provider *pd_provider, *it; in psci_pd_remove() local 114 list_for_each_entry_safe_reverse(pd_provider, it, in psci_pd_remove() 116 of_genpd_del_provider(pd_provider->node); in psci_pd_remove() 118 genpd = of_genpd_remove_last(pd_provider->node); in psci_pd_remove() [all …]
|
H A D | cpuidle-riscv-sbi.c | 383 struct sbi_pd_provider *pd_provider; in sbi_pd_init() local 391 pd_provider = kzalloc(sizeof(*pd_provider), GFP_KERNEL); in sbi_pd_init() 392 if (!pd_provider) in sbi_pd_init() 414 pd_provider->node = of_node_get(np); in sbi_pd_init() 415 list_add(&pd_provider->link, &sbi_pd_providers); in sbi_pd_init() 423 kfree(pd_provider); in sbi_pd_init() 433 struct sbi_pd_provider *pd_provider, *it; in sbi_pd_remove() local 436 list_for_each_entry_safe(pd_provider, it, &sbi_pd_providers, link) { in sbi_pd_remove() 437 of_genpd_del_provider(pd_provider->node); in sbi_pd_remove() 439 genpd = of_genpd_remove_last(pd_provider->node); in sbi_pd_remove() [all …]
|