Lines Matching refs:index
50 st->index = 0; in wf_pid_run()
52 st->index = (st->index + 1) % hlen; in wf_pid_run()
53 st->samples[st->index] = new_sample; in wf_pid_run()
54 st->errors[st->index] = error; in wf_pid_run()
59 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_pid_run()
63 deriv = st->errors[st->index] - in wf_pid_run()
64 st->errors[(st->index + hlen - 1) % hlen]; in wf_pid_run()
106 st->index = st->tindex = 0; in wf_cpu_pid_run()
108 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run()
109 st->powers[st->index] = new_power; in wf_cpu_pid_run()
110 st->errors[st->index] = error; in wf_cpu_pid_run()
117 integ += st->errors[(st->index + hlen - i) % hlen]; in wf_cpu_pid_run()