Lines Matching refs:info
28 const struct scmi_powercap_info *info;
62 if (!spz->info->powercap_monitoring)
65 ret = powercap_ops->measurements_get(spz->ph, spz->info->id, &avg_power,
71 if (spz->info->powercap_scale_mw)
81 return powercap_ops->cap_enable_set(spz->ph, spz->info->id, mode);
88 return powercap_ops->cap_enable_get(spz->ph, spz->info->id, mode);
102 bool scale_mw = spz->info->powercap_scale_mw;
111 *norm = clamp_t(u32, val, spz->info->min_power_cap,
112 spz->info->max_power_cap);
113 *norm = rounddown(*norm, spz->info->power_cap_step);
119 spz->info->name, power_limit_uw, val);
128 if (!spz->info->powercap_cap_config)
133 return powercap_ops->cap_set(spz->ph, spz->info->id, norm_power, false);
143 ret = powercap_ops->cap_get(spz->ph, spz->info->id, &power);
148 if (spz->info->powercap_scale_mw)
162 *norm = clamp_t(u32, time_us, spz->info->min_pai, spz->info->max_pai);
163 *norm = rounddown(*norm, spz->info->pai_step);
168 spz->info->name, time_us, *norm);
177 if (!spz->info->powercap_pai_config)
182 return powercap_ops->pai_set(spz->ph, spz->info->id, norm_pai);
192 ret = powercap_ops->pai_get(spz->ph, spz->info->id, &pai);
206 *max_power_uw = spz->info->max_power_cap;
207 if (spz->info->powercap_scale_mw)
218 *min_power_uw = spz->info->min_power_cap;
219 if (spz->info->powercap_scale_mw)
230 *time_window_us = spz->info->max_pai;
240 *time_window_us = (u64)spz->info->min_pai;
281 if (spz->info->parent_id == SCMI_POWERCAP_ROOT_ZONE_ID)
284 return spz->spzones[spz->info->parent_id].height + 1;
290 if (spz->info->parent_id == SCMI_POWERCAP_ROOT_ZONE_ID)
293 return &spz->spzones[spz->info->parent_id];
308 z = powercap_register_zone(&spz->zone, scmi_top_pcntrl, spz->info->name,
316 spz->info->name, parent ? parent->info->name : "ROOT",
323 spz->info->name,
324 parent ? parent->info->name : "ROOT",
466 spz->info = powercap_ops->info_get(ph, i);
480 if (!spz->info->powercap_scale_uw &&
481 !spz->info->powercap_scale_mw) {
484 spz->info->name);