Lines Matching defs:power
8 * provides to the userspace a consistent API to set the power limit
14 * children and collect the children power information. The leaves of
16 * current power consumption and set their power limit.
62 u64 power;
73 ret = __get_power_uw(child, &power);
76 *power_uw += power;
128 * dtpm_update_power - Update the power on the dtpm
131 * Function to update the power values of the dtpm node specified in
144 pr_err("Failed to update power for '%s': %d\n",
199 * Set the power limit on the nodes, the power limit is distributed
208 u64 power;
211 * A max power limitation means we remove the power limit,
220 pr_debug("Setting power limit for '%s': %llu uW\n",
224 * Only leaves of the dtpm tree has ops to get/set the power
238 * max power every time if the constraint is
242 power = child->power_max;
244 power = child->power_min;
246 power = DIV_ROUND_CLOSEST_ULL(
250 pr_debug("Setting power limit for '%s': %llu uW\n",
251 child->zone.name, power);
253 ret = __set_power_limit_uw(child, cid, power);
255 ret = get_power_limit_uw(&child->zone, cid, &power);
260 dtpm->power_limit += power;
274 * Don't allow values outside of the power range previously
275 * set when initializing the power numbers.
281 pr_debug("%s: power limit: %llu uW, power max: %llu uW\n",
354 * The dtpm structure must be initialized with the power numbers