Lines Matching defs:cb_index
6380 int cb_index;
6397 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) {
6398 if ((flags >> cb_index) & 1) {
6403 ASSERT(cb_index != PC_NUM_CALLBACKS);
6405 rw_enter(&pc_cb[cb_index].cb_rwlock, RW_READER);
6406 if (pc_cb[cb_index].cb_active) {
6407 if (pc_cb[cb_index].duration == -1) {
6411 pc_cb[cb_index].duration;
6415 rw_exit(&pc_cb[cb_index].cb_rwlock);
6459 rw_exit(&pc_cb[cb_index].cb_rwlock);
6497 rw_exit(&pc_cb[cb_index].cb_rwlock);
6745 int cb_index;
6756 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) {
6757 if ((flags >> cb_index) & 1) {
6761 ASSERT(cb_index < PC_NUM_CALLBACKS);
6795 rw_enter(&pc_cb[cb_index].cb_rwlock, RW_READER);
6796 if (!pc_cb[cb_index].cb_active) {
6798 rw_exit(&pc_cb[cb_index].cb_rwlock);
6816 ret = pc_cb[cb_index].cb_func(pp, datap, flags);
6818 rw_exit(&pc_cb[cb_index].cb_rwlock);
6936 int cb_index;
6950 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) {
6951 if ((flags >> cb_index) & 1) {
6955 ASSERT(cb_index < PC_NUM_CALLBACKS);