Home
last modified time | relevance | path

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

/linux/net/caif/
H A Dcffrml.c25 int __percpu *pcpu_refcnt; member
40 this->pcpu_refcnt = alloc_percpu(int); in cffrml_create()
41 if (this->pcpu_refcnt == NULL) { in cffrml_create()
60 free_percpu(this->pcpu_refcnt); in cffrml_free()
186 if (layr != NULL && this->pcpu_refcnt != NULL) in cffrml_put()
187 this_cpu_dec(*this->pcpu_refcnt); in cffrml_put()
193 if (layr != NULL && this->pcpu_refcnt != NULL) in cffrml_hold()
194 this_cpu_inc(*this->pcpu_refcnt); in cffrml_hold()
202 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i); in cffrml_refcnt_read()
H A Dcaif_dev.c38 int __percpu *pcpu_refcnt; member
76 this_cpu_dec(*e->pcpu_refcnt); in caifd_put()
81 this_cpu_inc(*e->pcpu_refcnt); in caifd_hold()
88 refcnt += *per_cpu_ptr(e->pcpu_refcnt, i); in caifd_refcnt_read()
100 caifd->pcpu_refcnt = alloc_percpu(int); in caif_device_alloc()
101 if (!caifd->pcpu_refcnt) { in caif_device_alloc()
493 free_percpu(caifd->pcpu_refcnt); in caif_device_notify()
546 free_percpu(caifd->pcpu_refcnt); in caif_exit_net()
/linux/Documentation/networking/net_cachelines/
H A Dnet_device.rst130 int__percpu* pcpu_refcnt
/linux/include/linux/
H A Dnetdevice.h2386 int __percpu *pcpu_refcnt; member
4413 this_cpu_dec(*dev->pcpu_refcnt); in __dev_put()
4424 this_cpu_inc(*dev->pcpu_refcnt); in __dev_hold()
/linux/net/core/
H A Ddev.c11554 refcnt += *per_cpu_ptr(dev->pcpu_refcnt, i); in netdev_refcnt_read()
12039 dev->pcpu_refcnt = alloc_percpu(int); in alloc_netdev_mqs()
12040 if (!dev->pcpu_refcnt) in alloc_netdev_mqs()
12133 free_percpu(dev->pcpu_refcnt); in alloc_netdev_mqs()
12197 free_percpu(dev->pcpu_refcnt); in free_netdev()
12198 dev->pcpu_refcnt = NULL; in free_netdev()