Home
last modified time | relevance | path

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

/linux-6.6.21/net/caif/
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()
179 if (layr != NULL && this->pcpu_refcnt != NULL) in cffrml_put()
180 this_cpu_dec(*this->pcpu_refcnt); in cffrml_put()
186 if (layr != NULL && this->pcpu_refcnt != NULL) in cffrml_hold()
187 this_cpu_inc(*this->pcpu_refcnt); in cffrml_hold()
195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i); in cffrml_refcnt_read()
Dcaif_dev.c37 int __percpu *pcpu_refcnt; member
75 this_cpu_dec(*e->pcpu_refcnt); in caifd_put()
80 this_cpu_inc(*e->pcpu_refcnt); in caifd_hold()
87 refcnt += *per_cpu_ptr(e->pcpu_refcnt, i); in caifd_refcnt_read()
99 caifd->pcpu_refcnt = alloc_percpu(int); in caif_device_alloc()
100 if (!caifd->pcpu_refcnt) { in caif_device_alloc()
492 free_percpu(caifd->pcpu_refcnt); in caif_device_notify()
545 free_percpu(caifd->pcpu_refcnt); in caif_exit_net()
/linux-6.6.21/include/linux/
Dnetdevice.h2306 int __percpu *pcpu_refcnt; member
4055 this_cpu_dec(*dev->pcpu_refcnt); in __dev_put()
4066 this_cpu_inc(*dev->pcpu_refcnt); in __dev_hold()
/linux-6.6.21/net/core/
Ddev.c10364 refcnt += *per_cpu_ptr(dev->pcpu_refcnt, i); in netdev_refcnt_read()
10777 dev->pcpu_refcnt = alloc_percpu(int); in alloc_netdev_mqs()
10778 if (!dev->pcpu_refcnt) in alloc_netdev_mqs()
10854 free_percpu(dev->pcpu_refcnt); in alloc_netdev_mqs()
10900 free_percpu(dev->pcpu_refcnt); in free_netdev()
10901 dev->pcpu_refcnt = NULL; in free_netdev()