Searched refs:power_ops (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/pmdomain/arm/ |
H A D | scmi_pm_domain.c | 14 static const struct scmi_power_proto_ops *power_ops; variable 36 ret = power_ops->state_set(pd->ph, pd->domain, state); in scmi_pd_power() 38 ret = power_ops->state_get(pd->ph, pd->domain, &ret_state); in scmi_pd_power() 69 power_ops = handle->devm_protocol_get(sdev, SCMI_PROTOCOL_POWER, &ph); in scmi_pm_domain_probe() 70 if (IS_ERR(power_ops)) in scmi_pm_domain_probe() 71 return PTR_ERR(power_ops); in scmi_pm_domain_probe() 73 num_domains = power_ops->num_domains_get(ph); in scmi_pm_domain_probe() 94 if (power_ops->state_get(ph, i, &state)) { in scmi_pm_domain_probe() 101 scmi_pd->name = power_ops->name_get(ph, i); in scmi_pm_domain_probe()
|
/linux/drivers/thermal/ |
H A D | devfreq_cooling.c | 57 struct devfreq_cooling_power *power_ops; member 208 if (dfc->power_ops && dfc->power_ops->get_real_power) { in devfreq_cooling_get_requested_power() 215 res = dfc->power_ops->get_real_power(df, power, freq, voltage); in devfreq_cooling_get_requested_power() 304 if (dfc->power_ops && dfc->power_ops->get_real_power) { in devfreq_cooling_power2state() 424 dfc->power_ops = dfc_power; in of_devfreq_cooling_register_power()
|