Home
last modified time | relevance | path

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

/linux/drivers/powercap/
H A Darm_scmi_powercap.c58 struct scmi_powercap_zone *spz = to_scmi_powercap_zone(pz); in scmi_powercap_get_power_uw() local
62 if (!spz->info->powercap_monitoring) in scmi_powercap_get_power_uw()
65 ret = powercap_ops->measurements_get(spz->ph, spz->info->id, &avg_power, in scmi_powercap_get_power_uw()
71 if (spz->info->powercap_scale_mw) in scmi_powercap_get_power_uw()
79 struct scmi_powercap_zone *spz = to_scmi_powercap_zone(pz); in scmi_powercap_zone_enable_set() local
81 return powercap_ops->cap_enable_set(spz->ph, spz->info->id, mode); in scmi_powercap_zone_enable_set()
86 struct scmi_powercap_zone *spz = to_scmi_powercap_zone(pz); in scmi_powercap_zone_enable_get() local
88 return powercap_ops->cap_enable_get(spz->ph, spz->info->id, mode); in scmi_powercap_zone_enable_get()
99 static void scmi_powercap_normalize_cap(const struct scmi_powercap_zone *spz, in scmi_powercap_normalize_cap() argument
102 bool scale_mw = spz->info->powercap_scale_mw; in scmi_powercap_normalize_cap()
[all …]