Lines Matching refs:ttoproc
519 (ttoproc(retthreadp) != curproc) && in priocntl_common()
524 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock))); in priocntl_common()
530 mutex_exit(&(ttoproc(retthreadp)->p_lock)); in priocntl_common()
542 ttoproc(retthreadp) != initpp) { in priocntl_common()
578 &(ttoproc(retthreadp)->p_lock)); in priocntl_common()
585 MUTEX_HELD(&(ttoproc(retthreadp)->p_lock))); in priocntl_common()
609 saved_pid = ttoproc(retthreadp)->p_pid; in priocntl_common()
610 mutex_exit(&(ttoproc(retthreadp)->p_lock)); in priocntl_common()
812 mutex_exit(&(ttoproc(tx)->p_lock)); in proccmp()
833 ASSERT(MUTEX_HELD(&(ttoproc(tp))->p_lock)); in threadcmp()
861 pp = ttoproc(tx); in threadcmp()
919 ASSERT(MUTEX_HELD(&(ttoproc(tp)->p_lock))); in setthreadnice()
1077 ASSERT(MUTEX_HELD(&(ttoproc(tp)->p_lock))); in setthreadprio()