Lines Matching refs:mstimep
396 hrtime_t *mstimep; in syscall_mstate() local
410 mstimep = &ms->ms_acct[fromms]; in syscall_mstate()
417 *mstimep += newtime; in syscall_mstate()
607 hrtime_t *mstimep; in new_mstate() local
644 mstimep = &ms->ms_acct[LMS_SYSTEM]; in new_mstate()
647 mstimep = &ms->ms_acct[state]; in new_mstate()
653 oldtime = *mstimep - 1; /* force CAS to fail */ in new_mstate()
656 oldtime = *mstimep; in new_mstate()
660 } while (atomic_cas_64((uint64_t *)mstimep, oldtime, newtime) != in new_mstate()
708 hrtime_t *mstimep; in restore_mstate() local
744 mstimep = &ms->ms_acct[ms->ms_prev]; in restore_mstate()
747 mstimep = &ms->ms_acct[LMS_SLEEP]; in restore_mstate()
756 mstimep = &ms->ms_acct[LMS_STOPPED]; in restore_mstate()
766 mstimep = &ms->ms_acct[LMS_SYSTEM]; in restore_mstate()
769 mstimep = &ms->ms_acct[t->t_mstate]; in restore_mstate()
780 oldtime = *mstimep - 1; /* force CAS to fail */ in restore_mstate()
783 oldtime = *mstimep; in restore_mstate()
785 } while (atomic_cas_64((uint64_t *)mstimep, oldtime, newtime) != in restore_mstate()