Lines Matching refs:power_limit
116 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power()
128 parent->power_limit += dtpm->power_limit; in __dtpm_add_power()
145 dtpm->power_limit = dtpm->power_max; in __dtpm_update_power()
216 static int __get_power_limit_uw(struct dtpm *dtpm, int cid, u64 *power_limit) in __get_power_limit_uw() argument
218 *power_limit = dtpm->power_limit; in __get_power_limit_uw()
223 int cid, u64 *power_limit) in get_power_limit_uw() argument
229 ret = __get_power_limit_uw(dtpm, cid, power_limit); in get_power_limit_uw()
241 static int __set_power_limit_uw(struct dtpm *dtpm, int cid, u64 power_limit) in __set_power_limit_uw() argument
251 if (power_limit == dtpm->power_max) { in __set_power_limit_uw()
258 dtpm->zone.name, power_limit); in __set_power_limit_uw()
264 dtpm->power_limit = dtpm->ops->set_power_uw(dtpm, power_limit); in __set_power_limit_uw()
266 dtpm->power_limit = 0; in __set_power_limit_uw()
278 if (power_limit == dtpm->power_max) { in __set_power_limit_uw()
280 } else if (power_limit == dtpm->power_min) { in __set_power_limit_uw()
284 power_limit * child->weight, 1024); in __set_power_limit_uw()
297 dtpm->power_limit += power; in __set_power_limit_uw()
305 int cid, u64 power_limit) in set_power_limit_uw() argument
316 power_limit = clamp_val(power_limit, dtpm->power_min, dtpm->power_max); in set_power_limit_uw()
318 ret = __set_power_limit_uw(dtpm, cid, power_limit); in set_power_limit_uw()
321 dtpm->zone.name, dtpm->power_limit, dtpm->power_max); in set_power_limit_uw()
453 dtpm->power_limit = dtpm->power_max; in dtpm_register()