Searched refs:percpu_count (Results 1 – 5 of 5) sorted by relevance
/linux/include/linux/ |
H A D | percpu-refcount.h | 200 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 282 if (likely(__ref_is_percpu(ref, &percpu_count))) { in percpu_ref_tryget_live_rcu() 283 this_cpu_inc(*percpu_count); in percpu_ref_tryget_live_rcu() 328 unsigned long __percpu *percpu_count; in percpu_ref_put_many() local [all …]
|
/linux/lib/ |
H A D | percpu-refcount.c | 110 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_exit() local 112 if (percpu_count) { in __percpu_ref_exit() 115 free_percpu(percpu_count); in __percpu_ref_exit() 172 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in percpu_ref_switch_to_atomic_rcu() local 178 count += *per_cpu_ptr(percpu_count, cpu); in percpu_ref_switch_to_atomic_rcu() 239 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_switch_to_percpu() local 242 BUG_ON(!percpu_count); in __percpu_ref_switch_to_percpu() 259 *per_cpu_ptr(percpu_count, cpu) = 0; in __percpu_ref_switch_to_percpu() 412 unsigned long __percpu *percpu_count; in percpu_ref_is_zero() local 415 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_is_zero() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.h | 60 int __percpu *percpu_count; member
|
H A D | dpaa_ethtool.c | 199 if (!dpaa_bp->percpu_count) in dpaa_get_ethtool_stats() 201 bp_count = *(per_cpu_ptr(dpaa_bp->percpu_count, i)); in dpaa_get_ethtool_stats()
|
H A D | dpaa_eth.c | 1595 int *count_ptr = per_cpu_ptr(dpaa_bp->percpu_count, i); in dpaa_bp_seed() 1644 countptr = this_cpu_ptr(dpaa_bp->percpu_count); in dpaa_eth_refill_bpools() 1881 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb() 1908 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb() 2738 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in rx_default_dqrr() 3193 dpaa_bp->percpu_count = devm_alloc_percpu(dev, *dpaa_bp->percpu_count); in dpaa_bp_alloc() 3194 if (!dpaa_bp->percpu_count) in dpaa_bp_alloc()
|