Lines Matching defs:ref
81 reference_t *ref;
84 while (ref = list_head(&rc->rc_list)) {
85 list_remove(&rc->rc_list, ref);
86 kmem_cache_free(reference_cache, ref);
90 while (ref = list_head(&rc->rc_removed)) {
91 list_remove(&rc->rc_removed, ref);
92 kmem_cache_free(reference_history_cache, ref->ref_removed);
93 kmem_cache_free(reference_cache, ref);
120 reference_t *ref = NULL;
124 ref = kmem_cache_alloc(reference_cache, KM_SLEEP);
125 ref->ref_holder = holder;
126 ref->ref_number = number;
131 list_insert_head(&rc->rc_list, ref);
148 reference_t *ref;
161 for (ref = list_head(&rc->rc_list); ref;
162 ref = list_next(&rc->rc_list, ref)) {
163 if (ref->ref_holder == holder && ref->ref_number == number) {
164 list_remove(&rc->rc_list, ref);
166 ref->ref_removed =
169 list_insert_head(&rc->rc_removed, ref);
172 ref = list_tail(&rc->rc_removed);
173 list_remove(&rc->rc_removed, ref);
175 ref->ref_removed);
176 kmem_cache_free(reference_cache, ref);
180 kmem_cache_free(reference_cache, ref);