Home
last modified time | relevance | path

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

/linux/include/linux/
A 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()
277 unsigned long __percpu *percpu_count; in percpu_ref_tryget_live_rcu() local
283 this_cpu_inc(*percpu_count); in percpu_ref_tryget_live_rcu()
328 unsigned long __percpu *percpu_count; in percpu_ref_put_many() local
332 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_put_many()
[all …]
/linux/lib/
A 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()
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()
463 unsigned long __percpu *percpu_count; in percpu_ref_resurrect() local
[all …]
/linux/drivers/net/ethernet/freescale/dpaa/
A Ddpaa_eth.h88 int __percpu *percpu_count; member
A 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()
A 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()

Completed in 16 milliseconds