Lines Matching refs:ttoproc
518 (ttoproc(retthreadp) != curproc) && in priocntl_common()
523 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock))); in priocntl_common()
529 mutex_exit(&(ttoproc(retthreadp)->p_lock)); in priocntl_common()
541 ttoproc(retthreadp) != initpp) { in priocntl_common()
577 &(ttoproc(retthreadp)->p_lock)); in priocntl_common()
584 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock))); in priocntl_common()
608 saved_pid = ttoproc(retthreadp)->p_pid; in priocntl_common()
609 mutex_exit(&(ttoproc(retthreadp)->p_lock)); in priocntl_common()
811 mutex_exit(&(ttoproc(tx)->p_lock)); in proccmp()
832 ASSERT(MUTEX_HELD(&(ttoproc(tp))->p_lock)); in threadcmp()
860 pp = ttoproc(tx); in threadcmp()
918 ASSERT(MUTEX_HELD(&(ttoproc(tp)->p_lock))); in setthreadnice()
1076 ASSERT(MUTEX_HELD(&(ttoproc(tp)->p_lock))); in setthreadprio()