Lines Matching refs:ref
92 reference_t *ref;
95 while (ref = list_head(&rc->rc_list)) {
96 list_remove(&rc->rc_list, ref);
97 kmem_cache_free(reference_cache, ref);
101 while (ref = list_head(&rc->rc_removed)) {
102 list_remove(&rc->rc_removed, ref);
103 kmem_cache_free(reference_history_cache, ref->ref_removed);
104 kmem_cache_free(reference_cache, ref);
131 reference_t *ref = NULL;
135 ref = kmem_cache_alloc(reference_cache, KM_SLEEP);
136 ref->ref_holder = holder;
137 ref->ref_number = number;
142 list_insert_head(&rc->rc_list, ref);
159 reference_t *ref;
172 for (ref = list_head(&rc->rc_list); ref;
173 ref = list_next(&rc->rc_list, ref)) {
174 if (ref->ref_holder == holder && ref->ref_number == number) {
175 list_remove(&rc->rc_list, ref);
177 ref->ref_removed =
180 list_insert_head(&rc->rc_removed, ref);
183 ref = list_tail(&rc->rc_removed);
184 list_remove(&rc->rc_removed, ref);
186 ref->ref_removed);
187 kmem_cache_free(reference_cache, ref);
191 kmem_cache_free(reference_cache, ref);
245 reference_t *ref;
254 for (ref = list_head(&rc->rc_list); ref;
255 ref = list_next(&rc->rc_list, ref)) {
256 if (ref->ref_holder == current_holder) {
257 ref->ref_holder = new_holder;
274 reference_t *ref;
283 for (ref = list_head(&rc->rc_list); ref;
284 ref = list_next(&rc->rc_list, ref)) {
285 if (ref->ref_holder == holder) {
302 reference_t *ref;
311 for (ref = list_head(&rc->rc_list); ref;
312 ref = list_next(&rc->rc_list, ref)) {
313 if (ref->ref_holder == holder) {