Lines Matching refs:params
90 struct power_allocator_params *params = tz->governor_data;
96 if (instance->trip != params->trip_max_desired_temperature)
192 struct power_allocator_params *params = tz->governor_data;
201 params->trip_switch_on, control_temp,
217 i = mul_frac(tz->tzp->k_i, params->err_integral);
224 params->err_integral += err;
235 d = mul_frac(tz->tzp->k_d, err - params->prev_err);
237 params->prev_err = err;
247 frac_to_int(params->err_integral),
329 struct power_allocator_params *params = tz->governor_data;
335 int trip_max_desired_temperature = params->trip_max_desired_temperature;
449 * @params: pointer to private data for this governor
462 struct power_allocator_params *params)
485 params->trip_switch_on = i;
498 params->trip_max_desired_temperature = last_passive;
500 params->trip_max_desired_temperature = params->trip_switch_on;
501 params->trip_switch_on = INVALID_TRIP;
503 params->trip_switch_on = INVALID_TRIP;
504 params->trip_max_desired_temperature = last_active;
508 static void reset_pid_controller(struct power_allocator_params *params)
510 params->err_integral = 0;
511 params->prev_err = 0;
517 struct power_allocator_params *params = tz->governor_data;
521 if ((instance->trip != params->trip_max_desired_temperature) ||
546 struct power_allocator_params *params;
549 params = kzalloc(sizeof(*params), GFP_KERNEL);
550 if (!params)
560 params->allocated_tzp = true;
566 get_governor_trips(tz, params);
570 params->trip_max_desired_temperature,
574 params->trip_switch_on,
578 reset_pid_controller(params);
580 tz->governor_data = params;
585 kfree(params);
592 struct power_allocator_params *params = tz->governor_data;
596 if (params->allocated_tzp) {
609 struct power_allocator_params *params = tz->governor_data;
615 if (trip != params->trip_max_desired_temperature)
618 ret = tz->ops->get_trip_temp(tz, params->trip_switch_on,
622 reset_pid_controller(params);
629 ret = tz->ops->get_trip_temp(tz, params->trip_max_desired_temperature,