Searched refs:percpu_count (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/include/linux/ |
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() 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 …]
|
/kernel/linux/linux-5.10/lib/ |
D | percpu-refcount.c | 109 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 176 count += *per_cpu_ptr(percpu_count, cpu); in percpu_ref_switch_to_atomic_rcu() 232 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_switch_to_percpu() local 235 BUG_ON(!percpu_count); in __percpu_ref_switch_to_percpu() 252 *per_cpu_ptr(percpu_count, cpu) = 0; in __percpu_ref_switch_to_percpu() 405 unsigned long __percpu *percpu_count; in percpu_ref_is_zero() local 408 if (__ref_is_percpu(ref, &percpu_count)) in percpu_ref_is_zero() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth.h | 87 int __percpu *percpu_count; member
|
D | dpaa_ethtool.c | 283 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()
|
D | dpaa_eth.c | 1557 int *count_ptr = per_cpu_ptr(dpaa_bp->percpu_count, i); in dpaa_bp_seed() 1607 countptr = this_cpu_ptr(dpaa_bp->percpu_count); in dpaa_eth_refill_bpools() 1835 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb() 1862 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in sg_fd_to_skb() 2427 count_ptr = this_cpu_ptr(dpaa_bp->percpu_count); in rx_default_dqrr() 2794 dpaa_bp->percpu_count = devm_alloc_percpu(dev, *dpaa_bp->percpu_count); in dpaa_bp_alloc() 2795 if (!dpaa_bp->percpu_count) in dpaa_bp_alloc()
|