Lines Matching refs:integ
35 s64 error, integ, deriv; in wf_pid_run() local
57 for (i = 0, integ = 0; i < hlen; i++) in wf_pid_run()
58 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run()
59 integ *= st->param.interval; in wf_pid_run()
67 target = (s32)((integ * (s64)st->param.gr + deriv * (s64)st->param.gd + in wf_pid_run()
90 s64 integ, deriv, prop; in wf_cpu_pid_run() local
115 for (i = 0, integ = 0; i < hlen; i++) in wf_cpu_pid_run()
116 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_cpu_pid_run()
117 integ *= st->param.interval; in wf_cpu_pid_run()
118 integ *= st->param.gr; in wf_cpu_pid_run()
119 sval = st->param.tmax - (s32)(integ >> 20); in wf_cpu_pid_run()
122 DBG("integ: %lx, sval: %lx, adj: %lx\n", integ, sval, adj); in wf_cpu_pid_run()