Lines Matching refs:elem
505 int elem = 0; /* Return value. */
512 elem = -1;
537 elem = -1;
541 loadavg[elem++] = (double) kn->value.ul/FSCALE;
548 loadavg[elem++] = (double) kn->value.ul/FSCALE;
554 loadavg[elem++] = (double) kn->value.ul/FSCALE;
571 loadavg[elem++] = dyn_info.psd_avg_1_min;
573 loadavg[elem++] = dyn_info.psd_avg_5_min;
575 loadavg[elem++] = dyn_info.psd_avg_15_min;
607 for (elem = 0; elem < nelem && elem < count; elem++)
608 loadavg[elem] = load_ave[elem];
610 return elem;
636 for (elem = 0; elem < nelem; elem++)
637 loadavg[elem] = (double) load_ave[elem] / (double) scale;
639 return elem;
670 loadavg[elem++] = (double) info.load_average / LOAD_SCALE;
745 loadavg[elem++] = load / samples / cpus;
758 loadavg[elem++] = load_info.one_minute;
760 loadavg[elem++] = load_info.five_minute;
762 loadavg[elem++] = load_info.fifteen_minute;
783 loadavg[elem++] = load_ave[0] / 65536.0;
785 loadavg[elem++] = load_ave[1] / 65536.0;
787 loadavg[elem++] = load_ave[2] / 65536.0;
795 loadavg[elem++]
805 for ( ; elem < nelem; elem++)
807 loadavg[elem] = 0.0;
816 for (elem = 0; elem < nelem; elem++)
817 loadavg[elem]
819 ? load_ave.tl_avenrun.d[elem]
820 : (load_ave.tl_avenrun.l[elem] / (double) load_ave.tl_lscale));
972 loadavg[elem++] = LDAV_CVT (load_ave[0]);
974 loadavg[elem++] = LDAV_CVT (load_ave[1]);
976 loadavg[elem++] = LDAV_CVT (load_ave[2]);
982 return elem;