Lines Matching refs:op
215 struct oldproc *op, *endbase;
261 for (op = oldbase; op < endbase; op++) {
262 op->oldpid = -1;
623 struct oldproc *op;
686 op = oldbase + HASH (currproc->pr_pid);
689 if (op->oldpid == -1) /* not there */
691 if (op->oldpid == currproc->pr_pid)
696 - op->oldtime) / timediff;
698 op->oldpct * beta + percent_cpu (currproc) * alpha;
702 op++; /* try next entry in hash table */
703 if (op == endbase) /* table wrapped around */
704 op = oldbase;
708 if (op->oldpid == -1)
739 for (op = oldbase; op < endbase; op++)
740 op->oldpid = -1;
746 op = oldbase + HASH (currproc->pr_pid);
749 if (op->oldpid == -1)
751 op++;
752 if (op == endbase)
753 op = oldbase;
755 op->oldpid = currproc->pr_pid;
756 op->oldtime = (currproc->pr_time.tv_sec * 1.0e9 +
758 op->oldpct = weighted_cpu (currproc);