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