Lines Matching refs:lwp

97 	klwp_t *lwp;  in init_mstate()  local
103 if ((lwp = ttolwp(t)) != NULL) { in init_mstate()
104 ms = &lwp->lwp_mstate; in init_mstate()
249 klwp_t *lwp; in mstate_thread_onproc_time() local
254 if ((lwp = ttolwp(t)) == NULL) in mstate_thread_onproc_time()
259 ms = &lwp->lwp_mstate; in mstate_thread_onproc_time()
355 klwp_t *lwp; in mstate_aggr_state() local
374 lwp = ttolwp(t); in mstate_aggr_state()
375 ms = &lwp->lwp_mstate; in mstate_aggr_state()
398 klwp_t *lwp; in syscall_mstate() local
403 if ((lwp = ttolwp(t)) == NULL) in syscall_mstate()
409 ms = &lwp->lwp_mstate; in syscall_mstate()
613 klwp_t *lwp; in new_mstate() local
627 if (((lwp = ttolwp(t)) == NULL) || t->t_intr) in new_mstate()
635 ms = &lwp->lwp_mstate; in new_mstate()
709 klwp_t *lwp; in restore_mstate() local
725 if ((lwp = ttolwp(t)) == NULL) in restore_mstate()
730 ms = &lwp->lwp_mstate; in restore_mstate()
808 klwp_t *lwp = ttolwp(t); in term_mstate() local
814 ms = &lwp->lwp_mstate; in term_mstate()
825 p->p_ru.minflt += lwp->lwp_ru.minflt; in term_mstate()
826 p->p_ru.majflt += lwp->lwp_ru.majflt; in term_mstate()
827 p->p_ru.nswap += lwp->lwp_ru.nswap; in term_mstate()
828 p->p_ru.inblock += lwp->lwp_ru.inblock; in term_mstate()
829 p->p_ru.oublock += lwp->lwp_ru.oublock; in term_mstate()
830 p->p_ru.msgsnd += lwp->lwp_ru.msgsnd; in term_mstate()
831 p->p_ru.msgrcv += lwp->lwp_ru.msgrcv; in term_mstate()
832 p->p_ru.nsignals += lwp->lwp_ru.nsignals; in term_mstate()
833 p->p_ru.nvcsw += lwp->lwp_ru.nvcsw; in term_mstate()
834 p->p_ru.nivcsw += lwp->lwp_ru.nivcsw; in term_mstate()
835 p->p_ru.sysc += lwp->lwp_ru.sysc; in term_mstate()
836 p->p_ru.ioch += lwp->lwp_ru.ioch; in term_mstate()