Searched refs:percpu_count_ptr (Results 1 - 2 of 2) sorted by relevance

/linux-master/lib/
H A Dpercpu-refcount.c42 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) function
45 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD);
71 ref->percpu_count_ptr = (unsigned long)
73 if (!ref->percpu_count_ptr)
78 free_percpu((void __percpu *)ref->percpu_count_ptr);
79 ref->percpu_count_ptr = 0;
87 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC;
94 ref->percpu_count_ptr |= __PERCPU_REF_DEAD;
110 unsigned long __percpu *percpu_count = percpu_count_ptr(ref);
116 ref->percpu_count_ptr
[all...]
/linux-master/include/linux/
H A Dpercpu-refcount.h62 /* flags set in the lower bits of percpu_ref->percpu_count_ptr */
110 unsigned long percpu_count_ptr; member in struct:percpu_ref
114 * 'percpu_count_ptr' is required in fast path, move other fields
164 * The value of @ref->percpu_count_ptr is tested for
174 percpu_ptr = READ_ONCE(ref->percpu_count_ptr);
285 } else if (!(ref->percpu_count_ptr & __PERCPU_REF_DEAD)) {
365 return ref->percpu_count_ptr & __PERCPU_REF_DEAD;

Completed in 142 milliseconds