Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 66) sorted by relevance

123

/include/linux/
Dbacking-dev-defs.h154 struct percpu_ref refcnt; /* used only for !root wb's */ member
180 struct kref refcnt; /* Reference counter for the structure */ member
236 return percpu_ref_tryget(&wb->refcnt); in wb_tryget()
247 percpu_ref_get(&wb->refcnt); in wb_get()
266 percpu_ref_put_many(&wb->refcnt, nr); in wb_put_many()
286 return percpu_ref_is_dying(&wb->refcnt); in wb_dying()
Dconnector.h23 atomic_t refcnt; member
39 refcount_t refcnt; member
Dw1.h70 atomic_t refcnt; member
220 atomic_t refcnt; member
276 atomic_t refcnt; member
Dcgroup.h328 percpu_ref_get(&css->refcnt); in css_get()
341 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
358 return percpu_ref_tryget(&css->refcnt); in css_tryget()
375 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
396 return !(css->flags & CSS_NO_REF) && percpu_ref_is_dying(&css->refcnt); in css_is_dying()
408 percpu_ref_put(&css->refcnt); in css_put()
421 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
937 percpu_ref_get(&cgrp->bpf.refcnt); in cgroup_bpf_get()
942 percpu_ref_put(&cgrp->bpf.refcnt); in cgroup_bpf_put()
Dinetdevice.h27 refcount_t refcnt; member
238 refcount_inc(&in_dev->refcnt); in in_dev_get()
273 if (refcount_dec_and_test(&idev->refcnt)) in in_dev_put()
277 #define __in_dev_put(idev) refcount_dec(&(idev)->refcnt)
278 #define in_dev_hold(idev) refcount_inc(&(idev)->refcnt)
Datmdev.h163 refcount_t refcnt; /* reference count */ member
273 refcount_inc(&dev->refcnt); in atm_dev_hold()
279 if (refcount_dec_and_test(&dev->refcnt)) { in atm_dev_put()
Dmempolicy.h46 atomic_t refcnt; member
97 atomic_inc(&pol->refcnt); in mpol_get()
Dnetpoll.h37 refcount_t refcnt; member
Dpadata.h100 refcount_t refcnt; member
/include/trace/events/
Dmodule.h78 __field( int, refcnt )
84 __entry->refcnt = atomic_read(&mod->refcnt);
89 __get_str(name), (void *)__entry->ip, __entry->refcnt)
Dneigh.h88 __field(int, refcnt)
113 __entry->refcnt = refcount_read(&n->refcnt);
148 __entry->type, __entry->dead, __entry->refcnt,
168 __field(int, refcnt)
190 __entry->refcnt = refcount_read(&n->refcnt);
221 __entry->type, __entry->dead, __entry->refcnt,
/include/net/
Dx25.h135 refcount_t refcnt; member
147 refcount_t refcnt; member
177 atomic_t refcnt; member
248 refcount_inc(&nb->refcnt); in x25_neigh_hold()
253 if (refcount_dec_and_test(&nb->refcnt)) in x25_neigh_put()
271 refcount_inc(&rt->refcnt); in x25_route_hold()
276 if (refcount_dec_and_test(&rt->refcnt)) in x25_route_put()
Dllc.h58 refcount_t refcnt; member
119 refcount_inc(&sap->refcnt); in llc_sap_hold()
124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
131 if (refcount_dec_and_test(&sap->refcnt)) in llc_sap_put()
Dinet_frag.h86 refcount_t refcnt; member
109 refcount_t refcnt; member
141 if (refcount_dec_and_test(&q->refcnt)) in inet_frag_put()
Daddrconf.h389 refcount_inc(&idev->refcnt); in in6_dev_get()
405 if (refcount_dec_and_test(&idev->refcnt)) in in6_dev_put()
421 refcount_dec(&idev->refcnt); in __in6_dev_put()
426 refcount_inc(&idev->refcnt); in in6_dev_hold()
444 if (refcount_dec_and_test(&ifp->refcnt)) in in6_ifa_put()
450 refcount_dec(&ifp->refcnt); in __in6_ifa_put()
455 refcount_inc(&ifp->refcnt); in in6_ifa_hold()
Dlwtunnel.h32 atomic_t refcnt; member
66 atomic_inc(&lws->refcnt); in lwtstate_get()
76 if (atomic_dec_and_test(&lws->refcnt)) in lwtstate_put()
Dmacsec.h119 refcount_t refcnt; member
149 refcount_t refcnt; member
170 refcount_t refcnt; member
Dneighbour.h81 refcount_t refcnt; member
144 refcount_t refcnt; member
411 refcount_dec(&parms->refcnt); in __neigh_parms_put()
416 refcount_inc(&parms->refcnt); in neigh_parms_clone()
426 if (refcount_dec_and_test(&neigh->refcnt)) in neigh_release()
433 refcount_inc(&neigh->refcnt); in neigh_clone()
437 #define neigh_hold(n) refcount_inc(&(n)->refcnt)
Dfib_rules.h37 refcount_t refcnt; member
128 refcount_inc(&rule->refcnt); in fib_rule_get()
133 if (refcount_dec_and_test(&rule->refcnt)) in fib_rule_put()
Dlib80211.h97 atomic_t refcnt; member
Dif_inet6.h41 refcount_t refcnt; member
198 refcount_t refcnt; member
/include/net/sctp/
Dauth.h42 refcount_t refcnt; member
51 refcount_t refcnt; member
67 refcount_inc(&key->refcnt); in sctp_auth_key_hold()
/include/net/netfilter/
Dxt_rateest.h14 unsigned int refcnt; member
/include/net/bluetooth/
Drfcomm.h181 refcount_t refcnt; member
257 refcount_inc(&d->refcnt); in rfcomm_dlc_hold()
262 if (refcount_dec_and_test(&d->refcnt)) in rfcomm_dlc_put()
/include/linux/ceph/
Dpagelist.h17 refcount_t refcnt; member

123