Lines Matching refs:old
388 int (*mutator)(void *context, uint32_t old, uint32_t *new), in sm_ll_mutate() argument
392 uint32_t bit, old, ref_count; in sm_ll_mutate() local
413 old = sm_lookup_bitmap(bm_le, bit); in sm_ll_mutate()
415 if (old > 2) { in sm_ll_mutate()
416 r = sm_ll_lookup_big_ref_count(ll, b, &old); in sm_ll_mutate()
423 r = mutator(context, old, &ref_count); in sm_ll_mutate()
436 if (old > 2) { in sm_ll_mutate()
461 if (ref_count && !old) { in sm_ll_mutate()
468 } else if (old && !ref_count) { in sm_ll_mutate()
478 static int set_ref_count(void *context, uint32_t old, uint32_t *new) in set_ref_count() argument
490 static int inc_ref_count(void *context, uint32_t old, uint32_t *new) in inc_ref_count() argument
492 *new = old + 1; in inc_ref_count()
501 static int dec_ref_count(void *context, uint32_t old, uint32_t *new) in dec_ref_count() argument
503 if (!old) { in dec_ref_count()
508 *new = old - 1; in dec_ref_count()