Lines Matching refs:lg_cur
1064 spos = (avgs->lg_cur - 1) >= 0 ? avgs->lg_cur - 1 : in genloadavg()
1065 S_LOADAVG_SZ + (avgs->lg_cur - 1); in genloadavg()
1111 prev = (lavg->lg_cur - 1) >= 0 ? lavg->lg_cur - 1 : in loadavg_update()
1112 S_LOADAVG_SZ + (lavg->lg_cur - 1); in loadavg_update()
1114 lavg->lg_loads[lavg->lg_cur] = cpu_total; in loadavg_update()
1117 lavg->lg_loads[lavg->lg_cur] = cpu_total; in loadavg_update()
1123 lavg->lg_cur = (lavg->lg_cur + 1) % S_LOADAVG_SZ; in loadavg_update()
1132 loadavg.lg_loads[loadavg.lg_cur] = loadavg.lg_total; in loadavg_update()
1133 loadavg.lg_cur = (loadavg.lg_cur + 1) % S_LOADAVG_SZ; in loadavg_update()
1145 lavg->lg_loads[lavg->lg_cur] = lavg->lg_total; in loadavg_update()
1147 lavg->lg_cur = (lavg->lg_cur + 1) % S_LOADAVG_SZ; in loadavg_update()