Lines Matching full:pa
366 struct power_actor *pa = &power[i]; in divvy_up_power() local
367 u64 req_range = (u64)pa->req_power * power_range; in divvy_up_power()
369 pa->granted_power = DIV_ROUND_CLOSEST_ULL(req_range, in divvy_up_power()
372 if (pa->granted_power > pa->max_power) { in divvy_up_power()
373 extra_power += pa->granted_power - pa->max_power; in divvy_up_power()
374 pa->granted_power = pa->max_power; in divvy_up_power()
377 pa->extra_actor_power = pa->max_power - pa->granted_power; in divvy_up_power()
378 capped_extra_power += pa->extra_actor_power; in divvy_up_power()
391 struct power_actor *pa = &power[i]; in divvy_up_power() local
392 u64 extra_range = pa->extra_actor_power; in divvy_up_power()
395 pa->granted_power += DIV_ROUND_CLOSEST_ULL(extra_range, in divvy_up_power()
421 struct power_actor *pa = &power[i]; in allocate_power() local
428 ret = cdev->ops->get_requested_power(cdev, &pa->req_power); in allocate_power()
437 pa->weighted_req_power = frac_to_int(weight * pa->req_power); in allocate_power()
440 &pa->max_power); in allocate_power()
444 total_req_power += pa->req_power; in allocate_power()
445 max_allocatable_power += pa->max_power; in allocate_power()
446 total_weighted_req_power += pa->weighted_req_power; in allocate_power()
458 struct power_actor *pa = &power[i]; in allocate_power() local
464 pa->granted_power); in allocate_power()
465 total_granted_power += pa->granted_power; in allocate_power()
467 trace_thermal_power_actor(tz, i, pa->req_power, in allocate_power()
468 pa->granted_power); in allocate_power()