Lines Matching refs:ct
93 static callb_table_t *ct = &callb_table;
120 mutex_enter(&ct->ct_lock);
121 while (ct->ct_busy)
122 cv_wait(&ct->ct_busy_cv, &ct->ct_lock);
123 if ((cp = ct->ct_freelist) == NULL) {
124 ct->ct_ncallb++;
127 ct->ct_freelist = cp->c_next;
145 cp->c_next = ct->ct_first_cb[class];
146 ct->ct_first_cb[class] = cp;
148 mutex_exit(&ct->ct_lock);
189 mutex_enter(&ct->ct_lock);
192 pp = &ct->ct_first_cb[me->c_class];
200 mutex_exit(&ct->ct_lock);
212 cv_wait(&me->c_done_cv, &ct->ct_lock);
219 me->c_next = ct->ct_freelist;
220 ct->ct_freelist = me;
222 mutex_exit(&ct->ct_lock);
240 mutex_enter(&ct->ct_lock);
242 for (cp = ct->ct_first_cb[class];
245 cv_wait(&cp->c_done_cv, &ct->ct_lock);
258 mutex_exit(&ct->ct_lock);
262 mutex_enter(&ct->ct_lock);
267 mutex_exit(&ct->ct_lock);
329 mutex_enter(&ct->ct_lock);
330 ASSERT(ct->ct_busy == 0);
331 ct->ct_busy = 1;
332 mutex_exit(&ct->ct_lock);
341 mutex_enter(&ct->ct_lock);
342 ASSERT(ct->ct_busy != 0);
343 ct->ct_busy = 0;
344 cv_broadcast(&ct->ct_busy_cv);
345 mutex_exit(&ct->ct_lock);
359 mutex_enter(&ct->ct_lock);
361 for (cp = ct->ct_first_cb[CB_CL_CPR_DAEMON];
408 mutex_exit(&ct->ct_lock);