Lines Matching refs:tzp
53 * @allocated_tzp: whether we have allocated tzp for this thermal zone and
149 tz->tzp->k_po = int_to_frac(sustainable_power) /
152 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) /
155 k_i = tz->tzp->k_pu / 10;
156 tz->tzp->k_i = k_i > 0 ? k_i : 1;
181 if (!tz->tzp->sustainable_power)
184 sustainable_power = tz->tzp->sustainable_power;
192 tz->tzp->sustainable_power = sustainable_power;
234 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err);
242 i = mul_frac(tz->tzp->k_i, params->err_integral);
244 if (err < int_to_frac(tz->tzp->integral_cutoff)) {
245 s64 i_next = i + mul_frac(tz->tzp->k_i, err);
260 d = mul_frac(tz->tzp->k_d, err - params->prev_err);
649 if (!tz->tzp) {
650 tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL);
651 if (!tz->tzp) {
659 if (!tz->tzp->sustainable_power)
668 estimate_pid_constants(tz, tz->tzp->sustainable_power,
692 kfree(tz->tzp);
693 tz->tzp = NULL;