Searched refs:pcpu_refcnt (Results 1 - 4 of 4) sorted by last modified time

/linux-master/net/core/
H A Ddev.c10464 /* Note : We dont allocate pcpu_refcnt for dummy devices,
10523 refcnt += *per_cpu_ptr(dev->pcpu_refcnt, i);
10957 dev->pcpu_refcnt = alloc_percpu(int);
10958 if (!dev->pcpu_refcnt)
11034 free_percpu(dev->pcpu_refcnt);
11080 free_percpu(dev->pcpu_refcnt);
11081 dev->pcpu_refcnt = NULL;
/linux-master/include/linux/
H A Dnetdevice.h1921 * @pcpu_refcnt: Number of references to this device
2300 int __percpu *pcpu_refcnt; member in struct:net_device
4015 this_cpu_dec(*dev->pcpu_refcnt);
4026 this_cpu_inc(*dev->pcpu_refcnt);
/linux-master/net/caif/
H A Dcaif_dev.c38 int __percpu *pcpu_refcnt; member in struct:caif_device_entry
76 this_cpu_dec(*e->pcpu_refcnt);
81 this_cpu_inc(*e->pcpu_refcnt);
88 refcnt += *per_cpu_ptr(e->pcpu_refcnt, i);
100 caifd->pcpu_refcnt = alloc_percpu(int);
101 if (!caifd->pcpu_refcnt) {
493 free_percpu(caifd->pcpu_refcnt);
546 free_percpu(caifd->pcpu_refcnt);
H A Dcffrml.c25 int __percpu *pcpu_refcnt; member in struct:cffrml
40 this->pcpu_refcnt = alloc_percpu(int);
41 if (this->pcpu_refcnt == NULL) {
60 free_percpu(this->pcpu_refcnt);
179 if (layr != NULL && this->pcpu_refcnt != NULL)
180 this_cpu_dec(*this->pcpu_refcnt);
186 if (layr != NULL && this->pcpu_refcnt != NULL)
187 this_cpu_inc(*this->pcpu_refcnt);
195 refcnt += *per_cpu_ptr(this->pcpu_refcnt, i);

Completed in 674 milliseconds