Lines Matching refs:gpd_data
387 struct generic_pm_domain_data *gpd_data = dev_gpd_data(dev); in genpd_set_performance_state() local
391 prev_state = gpd_data->performance_state; in genpd_set_performance_state()
395 gpd_data->performance_state = state; in genpd_set_performance_state()
400 gpd_data->performance_state = prev_state; in genpd_set_performance_state()
821 struct generic_pm_domain_data *gpd_data; in genpd_dev_pm_qos_notifier() local
824 gpd_data = container_of(nb, struct generic_pm_domain_data, nb); in genpd_dev_pm_qos_notifier()
825 dev = gpd_data->base.dev; in genpd_dev_pm_qos_notifier()
933 struct generic_pm_domain_data *gpd_data = dev_gpd_data(dev); in genpd_runtime_suspend() local
934 struct gpd_timing_data *td = gpd_data->td; in genpd_runtime_suspend()
991 gpd_data->rpm_pstate = genpd_drop_performance_state(dev); in genpd_runtime_suspend()
1008 struct generic_pm_domain_data *gpd_data = dev_gpd_data(dev); in genpd_runtime_resume() local
1009 struct gpd_timing_data *td = gpd_data->td; in genpd_runtime_resume()
1029 genpd_restore_performance_state(dev, gpd_data->rpm_pstate); in genpd_runtime_resume()
1069 gpd_data->rpm_pstate = genpd_drop_performance_state(dev); in genpd_runtime_resume()
1510 struct generic_pm_domain_data *gpd_data; in genpd_alloc_dev_data() local
1518 gpd_data = kzalloc(sizeof(*gpd_data), GFP_KERNEL); in genpd_alloc_dev_data()
1519 if (!gpd_data) { in genpd_alloc_dev_data()
1524 gpd_data->base.dev = dev; in genpd_alloc_dev_data()
1525 gpd_data->nb.notifier_call = genpd_dev_pm_qos_notifier; in genpd_alloc_dev_data()
1538 gpd_data->td = td; in genpd_alloc_dev_data()
1546 dev->power.subsys_data->domain_data = &gpd_data->base; in genpd_alloc_dev_data()
1553 return gpd_data; in genpd_alloc_dev_data()
1556 kfree(gpd_data->td); in genpd_alloc_dev_data()
1557 kfree(gpd_data); in genpd_alloc_dev_data()
1564 struct generic_pm_domain_data *gpd_data) in genpd_free_dev_data() argument
1572 kfree(gpd_data->td); in genpd_free_dev_data()
1573 kfree(gpd_data); in genpd_free_dev_data()
1630 struct generic_pm_domain_data *gpd_data; in genpd_add_device() local
1635 gpd_data = genpd_alloc_dev_data(dev, gd); in genpd_add_device()
1636 if (IS_ERR(gpd_data)) in genpd_add_device()
1637 return PTR_ERR(gpd_data); in genpd_add_device()
1639 gpd_data->cpu = genpd_get_cpu(genpd, base_dev); in genpd_add_device()
1647 genpd_set_cpumask(genpd, gpd_data->cpu); in genpd_add_device()
1654 list_add_tail(&gpd_data->base.list_node, &genpd->dev_list); in genpd_add_device()
1659 genpd_free_dev_data(dev, gpd_data); in genpd_add_device()
1661 dev_pm_qos_add_notifier(dev, &gpd_data->nb, in genpd_add_device()
1690 struct generic_pm_domain_data *gpd_data; in genpd_remove_device() local
1697 gpd_data = to_gpd_data(pdd); in genpd_remove_device()
1698 dev_pm_qos_remove_notifier(dev, &gpd_data->nb, in genpd_remove_device()
1712 genpd_clear_cpumask(genpd, gpd_data->cpu); in genpd_remove_device()
1722 genpd_free_dev_data(dev, gpd_data); in genpd_remove_device()
1728 dev_pm_qos_add_notifier(dev, &gpd_data->nb, DEV_PM_QOS_RESUME_LATENCY); in genpd_remove_device()
1766 struct generic_pm_domain_data *gpd_data; in dev_pm_genpd_add_notifier() local
1777 gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); in dev_pm_genpd_add_notifier()
1778 if (gpd_data->power_nb) in dev_pm_genpd_add_notifier()
1791 gpd_data->power_nb = nb; in dev_pm_genpd_add_notifier()
1812 struct generic_pm_domain_data *gpd_data; in dev_pm_genpd_remove_notifier() local
1823 gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); in dev_pm_genpd_remove_notifier()
1824 if (!gpd_data->power_nb) in dev_pm_genpd_remove_notifier()
1829 gpd_data->power_nb); in dev_pm_genpd_remove_notifier()
1838 gpd_data->power_nb = NULL; in dev_pm_genpd_remove_notifier()
3107 struct generic_pm_domain_data *gpd_data; in perf_status_str() local
3109 gpd_data = to_gpd_data(dev->power.subsys_data->domain_data); in perf_status_str()
3110 seq_put_decimal_ull(s, "", gpd_data->performance_state); in perf_status_str()