Lines Matching refs:tzp
54 * @allocated_tzp: whether we have allocated tzp for this thermal zone and
151 if (!tz->tzp->k_po || force)
152 tz->tzp->k_po = int_to_frac(sustainable_power) /
155 if (!tz->tzp->k_pu || force)
156 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) /
159 if (!tz->tzp->k_i || force)
160 tz->tzp->k_i = int_to_frac(10) / 1000;
196 if (tz->tzp->sustainable_power) {
197 sustainable_power = tz->tzp->sustainable_power;
209 p = mul_frac(err < 0 ? tz->tzp->k_po : tz->tzp->k_pu, err);
217 i = mul_frac(tz->tzp->k_i, params->err_integral);
219 if (err < int_to_frac(tz->tzp->integral_cutoff)) {
220 s64 i_next = i + mul_frac(tz->tzp->k_i, err);
235 d = mul_frac(tz->tzp->k_d, err - params->prev_err);
553 if (!tz->tzp) {
554 tz->tzp = kzalloc(sizeof(*tz->tzp), GFP_KERNEL);
555 if (!tz->tzp) {
563 if (!tz->tzp->sustainable_power)
573 estimate_pid_constants(tz, tz->tzp->sustainable_power,
597 kfree(tz->tzp);
598 tz->tzp = NULL;