Lines Matching refs:ref
85 reference_t *ref;
88 while (ref = list_head(&rc->rc_list)) {
89 list_remove(&rc->rc_list, ref);
90 kmem_cache_free(reference_cache, ref);
94 while (ref = list_head(&rc->rc_removed)) {
95 list_remove(&rc->rc_removed, ref);
96 kmem_cache_free(reference_history_cache, ref->ref_removed);
97 kmem_cache_free(reference_cache, ref);
124 reference_t *ref = NULL;
128 ref = kmem_cache_alloc(reference_cache, KM_SLEEP);
129 ref->ref_holder = holder;
130 ref->ref_number = number;
135 list_insert_head(&rc->rc_list, ref);
152 reference_t *ref;
165 for (ref = list_head(&rc->rc_list); ref;
166 ref = list_next(&rc->rc_list, ref)) {
167 if (ref->ref_holder == holder && ref->ref_number == number) {
168 list_remove(&rc->rc_list, ref);
170 ref->ref_removed =
173 list_insert_head(&rc->rc_removed, ref);
176 ref = list_tail(&rc->rc_removed);
177 list_remove(&rc->rc_removed, ref);
179 ref->ref_removed);
180 kmem_cache_free(reference_cache, ref);
184 kmem_cache_free(reference_cache, ref);