Lines Matching refs:lp
58 disp_lock_init(disp_lock_t *lp, char *name) in disp_lock_init() argument
60 DISP_LOCK_INIT(lp); in disp_lock_init()
65 disp_lock_destroy(disp_lock_t *lp) in disp_lock_destroy() argument
67 DISP_LOCK_DESTROY(lp); in disp_lock_destroy()
71 disp_lock_enter_high(disp_lock_t *lp) in disp_lock_enter_high() argument
73 lock_set(lp); in disp_lock_enter_high()
77 disp_lock_exit_high(disp_lock_t *lp) in disp_lock_exit_high() argument
81 ASSERT(DISP_LOCK_HELD(lp)); in disp_lock_exit_high()
82 lock_clear(lp); in disp_lock_exit_high()
86 disp_lock_enter(disp_lock_t *lp) in disp_lock_enter() argument
88 lock_set_spl(lp, ipltospl(DISP_LEVEL), &curthread->t_oldspl); in disp_lock_enter()
92 disp_lock_exit(disp_lock_t *lp) in disp_lock_exit() argument
96 ASSERT(DISP_LOCK_HELD(lp)); in disp_lock_exit()
98 lock_clear_splx(lp, curthread->t_oldspl); in disp_lock_exit()
101 lock_clear_splx(lp, curthread->t_oldspl); in disp_lock_exit()
106 disp_lock_exit_nopreempt(disp_lock_t *lp) in disp_lock_exit_nopreempt() argument
110 ASSERT(DISP_LOCK_HELD(lp)); in disp_lock_exit_nopreempt()
111 lock_clear_splx(lp, curthread->t_oldspl); in disp_lock_exit_nopreempt()
127 lock_t *lp = *tlpp; in thread_lock() local
128 if (lock_try(lp)) { in thread_lock()
129 if (lp == *tlpp) { in thread_lock()
133 lock_clear(lp); in thread_lock()
143 while (lp == *tlpp && LOCK_HELD(lp)) { in thread_lock()
152 lp, spin_time); in thread_lock()
170 lock_t *lp = *tlpp; in thread_lock_high() local
171 if (lock_try(lp)) { in thread_lock_high()
172 if (lp == *tlpp) in thread_lock_high()
174 lock_clear(lp); in thread_lock_high()
178 while (lp == *tlpp && LOCK_HELD(lp)) { in thread_lock_high()
184 lp, spin_time); in thread_lock_high()
196 disp_lock_t *lp; in thread_transition() local
201 lp = t->t_lockp; in thread_transition()
203 disp_lock_exit_high(lp); in thread_transition()
215 disp_lock_t *lp; in thread_stop() local
220 lp = t->t_lockp; in thread_stop()
227 disp_lock_exit(lp); in thread_stop()