Lines Matching refs:mstimep
400 hrtime_t *mstimep; in syscall_mstate() local
414 mstimep = &ms->ms_acct[fromms]; in syscall_mstate()
421 *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()
713 hrtime_t *mstimep; in restore_mstate() local
749 mstimep = &ms->ms_acct[ms->ms_prev]; in restore_mstate()
752 mstimep = &ms->ms_acct[LMS_SLEEP]; in restore_mstate()
761 mstimep = &ms->ms_acct[LMS_STOPPED]; in restore_mstate()
771 mstimep = &ms->ms_acct[LMS_SYSTEM]; in restore_mstate()
774 mstimep = &ms->ms_acct[t->t_mstate]; in restore_mstate()
785 oldtime = *mstimep - 1; /* force CAS to fail */ in restore_mstate()
788 oldtime = *mstimep; in restore_mstate()
790 } while (atomic_cas_64((uint64_t *)mstimep, oldtime, newtime) != in restore_mstate()