Home
last modified time | relevance | path

Searched refs:percpu_count (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.15/include/linux/
Dpercpu-refcount.h200 unsigned long __percpu *percpu_count; in percpu_ref_get_many() local
204 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_get_many()
205 this_cpu_add(*percpu_count, nr); in percpu_ref_get_many()
238 unsigned long __percpu *percpu_count; in percpu_ref_tryget_many() local
243 if (__ref_is_percpu(ref, &percpu_count)) { in percpu_ref_tryget_many()
244 this_cpu_add(*percpu_count, nr); in percpu_ref_tryget_many()
286 unsigned long __percpu *percpu_count; in percpu_ref_tryget_live() local
291 if (__ref_is_percpu(ref, &percpu_count)) { in percpu_ref_tryget_live()
292 this_cpu_inc(*percpu_count); in percpu_ref_tryget_live()
315 unsigned long __percpu *percpu_count; in percpu_ref_put_many() local
[all …]
/Linux-v5.15/lib/
Dpercpu-refcount.c109 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_exit() local
111 if (percpu_count) { in __percpu_ref_exit()
114 free_percpu(percpu_count); in __percpu_ref_exit()
171 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in percpu_ref_switch_to_atomic_rcu() local
177 count += *per_cpu_ptr(percpu_count, cpu); in percpu_ref_switch_to_atomic_rcu()
237 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_switch_to_percpu() local
240 BUG_ON(!percpu_count); in __percpu_ref_switch_to_percpu()
257 *per_cpu_ptr(percpu_count, cpu) = 0; in __percpu_ref_switch_to_percpu()
410 unsigned long __percpu *percpu_count; in percpu_ref_is_zero() local
413 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_is_zero()
[all …]
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.h88 int __percpu *percpu_count; member
Ddpaa_ethtool.c283 if (!dpaa_bp->percpu_count) in dpaa_get_ethtool_stats()
285 bp_count = *(per_cpu_ptr(dpaa_bp->percpu_count, i)); in dpaa_get_ethtool_stats()
Ddpaa_eth.c1583 int *count_ptr = per_cpu_ptr(dpaa_bp->percpu_count, i); in dpaa_bp_seed()
1632 countptr = this_cpu_ptr(dpaa_bp->percpu_count); in dpaa_eth_refill_bpools()
1869 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb()
1896 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb()
2719 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in rx_default_dqrr()
3217 dpaa_bp->percpu_count = devm_alloc_percpu(dev, *dpaa_bp->percpu_count); in dpaa_bp_alloc()
3218 if (!dpaa_bp->percpu_count) in dpaa_bp_alloc()