Searched refs:ref (Results 1 – 7 of 7) sorted by relevance
/lib/ |
A D | percpu-refcount.c | 102 data->ref = ref; in percpu_ref_init() 103 ref->data = data; in percpu_ref_init() 114 WARN_ON_ONCE(ref->data && ref->data->confirm_switch); in __percpu_ref_exit() 141 ref->percpu_count_ptr |= atomic_long_read(&ref->data->count) << in percpu_ref_exit() 143 ref->data = NULL; in percpu_ref_exit() 154 struct percpu_ref *ref = data->ref; in percpu_ref_call_confirm_rcu() local 164 percpu_ref_put(ref); in percpu_ref_call_confirm_rcu() 171 struct percpu_ref *ref = data->ref; in percpu_ref_switch_to_atomic_rcu() local 396 percpu_ref_put(ref); in percpu_ref_kill_and_confirm() 420 if (ref->data) in percpu_ref_is_zero() [all …]
|
A D | rcuref.c | 192 bool rcuref_get_slowpath(rcuref_t *ref) in rcuref_get_slowpath() argument 194 unsigned int cnt = atomic_read(&ref->refcnt); in rcuref_get_slowpath() 202 atomic_set(&ref->refcnt, RCUREF_DEAD); in rcuref_get_slowpath() 215 atomic_set(&ref->refcnt, RCUREF_SATURATED); in rcuref_get_slowpath() 237 bool rcuref_put_slowpath(rcuref_t *ref, unsigned int cnt) in rcuref_put_slowpath() argument 250 if (!atomic_try_cmpxchg_release(&ref->refcnt, &cnt, RCUREF_DEAD)) in rcuref_put_slowpath() 267 atomic_set(&ref->refcnt, RCUREF_DEAD); in rcuref_put_slowpath() 277 atomic_set(&ref->refcnt, RCUREF_SATURATED); in rcuref_put_slowpath()
|
A D | cpu_rmap.c | 66 static void cpu_rmap_release(struct kref *ref) in cpu_rmap_release() argument 68 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release() 278 static void irq_cpu_rmap_release(struct kref *ref) in irq_cpu_rmap_release() argument 281 container_of(ref, struct irq_glue, notify.kref); in irq_cpu_rmap_release()
|
A D | objpool.c | 155 refcount_set(&pool->ref, pool->nr_objs + 1); in objpool_init() 182 if (refcount_dec_and_test(&pool->ref)) { in objpool_drop() 200 if (refcount_sub_and_test(count, &pool->ref)) in objpool_fini()
|
A D | alloc_tag.c | 179 union codetag_ref ref; in pgalloc_tag_split() local 181 if (get_page_tag_ref(folio_page(folio, i), &ref, &handle)) { in pgalloc_tag_split() 183 alloc_tag_ref_set(&ref, tag); in pgalloc_tag_split() 184 update_page_tag_ref(handle, &ref); in pgalloc_tag_split()
|
/lib/lz4/ |
A D | lz4hc_compress.c | 358 const BYTE *ref = NULL; in LZ4HC_compress_generic() local 379 matchlimit, (&ref), maxNbAttempts); in LZ4HC_compress_generic() 387 ref0 = ref; in LZ4HC_compress_generic() 402 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic() 411 ref = ref0; in LZ4HC_compress_generic() 421 ref = ref2; in LZ4HC_compress_generic() 468 ml, ref, limit, oend)) in LZ4HC_compress_generic() 498 ml, ref, limit, oend)) in LZ4HC_compress_generic() 501 ref = ref3; in LZ4HC_compress_generic() 539 ref, limit, oend)) in LZ4HC_compress_generic() [all …]
|
/lib/zstd/compress/ |
A D | zstd_preSplit.c | 111 static int compareFingerprints(const Fingerprint* ref, in compareFingerprints() argument 116 assert(ref->nbEvents > 0); in compareFingerprints() 118 { U64 p50 = (U64)ref->nbEvents * (U64)newfp->nbEvents; in compareFingerprints() 119 U64 deviation = fpDistance(ref, newfp, hashLog); in compareFingerprints()
|
Completed in 10 milliseconds