Lines Matching refs:cb_index

6417 	int cb_index;  in page_capture_add_hash()  local
6434 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) { in page_capture_add_hash()
6435 if ((flags >> cb_index) & 1) { in page_capture_add_hash()
6440 ASSERT(cb_index != PC_NUM_CALLBACKS); in page_capture_add_hash()
6442 rw_enter(&pc_cb[cb_index].cb_rwlock, RW_READER); in page_capture_add_hash()
6443 if (pc_cb[cb_index].cb_active) { in page_capture_add_hash()
6444 if (pc_cb[cb_index].duration == -1) { in page_capture_add_hash()
6448 pc_cb[cb_index].duration; in page_capture_add_hash()
6452 rw_exit(&pc_cb[cb_index].cb_rwlock); in page_capture_add_hash()
6496 rw_exit(&pc_cb[cb_index].cb_rwlock); in page_capture_add_hash()
6534 rw_exit(&pc_cb[cb_index].cb_rwlock); in page_capture_add_hash()
6782 int cb_index; in page_capture_take_action() local
6793 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) { in page_capture_take_action()
6794 if ((flags >> cb_index) & 1) { in page_capture_take_action()
6798 ASSERT(cb_index < PC_NUM_CALLBACKS); in page_capture_take_action()
6832 rw_enter(&pc_cb[cb_index].cb_rwlock, RW_READER); in page_capture_take_action()
6833 if (!pc_cb[cb_index].cb_active) { in page_capture_take_action()
6835 rw_exit(&pc_cb[cb_index].cb_rwlock); in page_capture_take_action()
6853 ret = pc_cb[cb_index].cb_func(pp, datap, flags); in page_capture_take_action()
6855 rw_exit(&pc_cb[cb_index].cb_rwlock); in page_capture_take_action()
6973 int cb_index; in page_itrycapture() local
6987 for (cb_index = 0; cb_index < PC_NUM_CALLBACKS; cb_index++) { in page_itrycapture()
6988 if ((flags >> cb_index) & 1) { in page_itrycapture()
6992 ASSERT(cb_index < PC_NUM_CALLBACKS); in page_itrycapture()