Home
last modified time | relevance | path

Searched refs:kref (Results 1 – 25 of 59) sorted by relevance

123

/net/batman-adv/
Dtypes.h194 struct kref refcount;
284 struct kref refcount;
354 struct kref refcount;
507 struct kref refcount;
582 struct kref refcount;
641 struct kref refcount;
676 struct kref refcount;
745 struct kref refcount;
1499 struct kref refcount;
1530 struct kref refcount;
[all …]
Doriginator.h25 void batadv_orig_node_release(struct kref *ref);
31 void batadv_hardif_neigh_release(struct kref *ref);
36 void batadv_neigh_node_release(struct kref *ref);
46 void batadv_neigh_ifinfo_release(struct kref *ref);
57 void batadv_orig_ifinfo_release(struct kref *ref);
68 void batadv_orig_node_vlan_release(struct kref *ref);
Doriginator.c181 void batadv_orig_node_vlan_release(struct kref *ref) in batadv_orig_node_vlan_release()
225 void batadv_neigh_ifinfo_release(struct kref *ref) in batadv_neigh_ifinfo_release()
242 void batadv_hardif_neigh_release(struct kref *ref) in batadv_hardif_neigh_release()
262 void batadv_neigh_node_release(struct kref *ref) in batadv_neigh_node_release()
814 void batadv_orig_ifinfo_release(struct kref *ref) in batadv_orig_ifinfo_release()
855 void batadv_orig_node_release(struct kref *ref) in batadv_orig_node_release()
Dsoft-interface.h28 void batadv_softif_vlan_release(struct kref *ref);
Dgateway_client.h32 void batadv_gw_node_release(struct kref *ref);
/net/ceph/
Dbuffer.c26 kref_init(&b->kref); in ceph_buffer_new()
34 void ceph_buffer_release(struct kref *kref) in ceph_buffer_release() argument
36 struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref); in ceph_buffer_release()
Dstring_table.c31 if (exist && !kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
44 kref_init(&cs->kref); in ceph_find_or_create_string()
70 } else if (!kref_get_unless_zero(&exist->kref)) { in ceph_find_or_create_string()
88 void ceph_release_string(struct kref *ref) in ceph_release_string()
90 struct ceph_string *cs = container_of(ref, struct ceph_string, kref); in ceph_release_string()
Dmon_client.c510 static void release_generic_request(struct kref *kref) in DEFINE_RB_FUNCS()
513 container_of(kref, struct ceph_mon_generic_request, kref); in DEFINE_RB_FUNCS()
530 kref_put(&req->kref, release_generic_request); in put_generic_request()
535 kref_get(&req->kref); in get_generic_request()
548 kref_init(&req->kref); in alloc_generic_request()
/net/can/j1939/
Dmain.c138 kref_init(&priv->kref); in j1939_priv_create()
155 static void __j1939_priv_release(struct kref *kref) in __j1939_priv_release() argument
157 struct j1939_priv *priv = container_of(kref, struct j1939_priv, kref); in __j1939_priv_release()
172 kref_put(&priv->kref, __j1939_priv_release); in j1939_priv_put()
177 kref_get(&priv->kref); in j1939_priv_get()
210 static void __j1939_rx_release(struct kref *kref) in __j1939_rx_release() argument
213 struct j1939_priv *priv = container_of(kref, struct j1939_priv, in __j1939_rx_release()
Dj1939-priv.h36 struct kref kref; member
70 struct kref kref; member
89 struct kref rx_kref;
230 struct kref kref; member
Dbus.c17 static void __j1939_ecu_release(struct kref *kref) in __j1939_ecu_release() argument
19 struct j1939_ecu *ecu = container_of(kref, struct j1939_ecu, kref); in __j1939_ecu_release()
29 kref_put(&ecu->kref, __j1939_ecu_release); in j1939_ecu_put()
34 kref_get(&ecu->kref); in j1939_ecu_get()
157 kref_init(&ecu->kref); in j1939_ecu_create_locked()
/net/tipc/
Dsubscr.c115 static void tipc_sub_kref_release(struct kref *kref) in tipc_sub_kref_release() argument
117 kfree(container_of(kref, struct tipc_subscription, kref)); in tipc_sub_kref_release()
122 kref_put(&subscription->kref, tipc_sub_kref_release); in tipc_sub_put()
127 kref_get(&subscription->kref); in tipc_sub_get()
155 kref_init(&sub->kref); in tipc_sub_subscribe()
Dtopsrv.c93 struct kref kref; member
123 static void tipc_conn_kref_release(struct kref *kref) in tipc_conn_kref_release() argument
125 struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); in tipc_conn_kref_release()
147 kref_put(&con->kref, tipc_conn_kref_release); in conn_put()
152 kref_get(&con->kref); in conn_get()
188 kref_init(&con->kref); in tipc_conn_alloc()
221 if (!connected(con) || !kref_get_unless_zero(&con->kref)) in tipc_conn_lookup()
Dsubscr.h61 struct kref kref; member
/net/tls/
Dtls_toe.c90 kref_get(&dev->kref); in tls_toe_unhash()
93 kref_put(&dev->kref, dev->release); in tls_toe_unhash()
111 kref_get(&dev->kref); in tls_toe_hash()
114 kref_put(&dev->kref, dev->release); in tls_toe_hash()
/net/rxrpc/
Dsecurity.c113 key_ref_t kref = NULL; in rxrpc_look_up_server_security() local
143 kref = keyring_search(make_key_ref(rx->securities, 1UL), in rxrpc_look_up_server_security()
145 if (IS_ERR(kref)) { in rxrpc_look_up_server_security()
156 *_key = key_ref_to_ptr(kref); in rxrpc_look_up_server_security()
/net/bluetooth/
Damp.c20 kref_read(&ctrl->kref)); in amp_ctrl_get()
22 kref_get(&ctrl->kref); in amp_ctrl_get()
25 static void amp_ctrl_destroy(struct kref *kref) in amp_ctrl_destroy() argument
27 struct amp_ctrl *ctrl = container_of(kref, struct amp_ctrl, kref); in amp_ctrl_destroy()
38 kref_read(&ctrl->kref)); in amp_ctrl_put()
40 return kref_put(&ctrl->kref, &amp_ctrl_destroy); in amp_ctrl_put()
51 kref_init(&ctrl->kref); in amp_ctrl_add()
Da2mp.c821 BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); in amp_mgr_get()
823 kref_get(&mgr->kref); in amp_mgr_get()
828 static void amp_mgr_destroy(struct kref *kref) in amp_mgr_destroy() argument
830 struct amp_mgr *mgr = container_of(kref, struct amp_mgr, kref); in amp_mgr_destroy()
844 BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); in amp_mgr_put()
846 return kref_put(&mgr->kref, &amp_mgr_destroy); in amp_mgr_put()
873 kref_init(&mgr->kref); in amp_mgr_create()
Damp.h12 struct kref kref; member
Da2mp.h25 struct kref kref; member
/net/sunrpc/
Dsvcauth.c150 static void auth_domain_release(struct kref *kref) in auth_domain_release() argument
153 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release()
Dxprtmultipath.c133 static void xprt_switch_free(struct kref *kref) in xprt_switch_free() argument
135 struct rpc_xprt_switch *xps = container_of(kref, in xprt_switch_free()
201 return kref_read(&xprt->kref) != 0; in xprt_is_active()
Dsvcauth_unix.c104 static void ip_map_put(struct kref *kref) in ip_map_put() argument
106 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
438 static void unix_gid_put(struct kref *kref) in unix_gid_put() argument
440 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
/net/sunrpc/auth_gss/
Dauth_gss.c65 struct kref kref; member
69 struct kref kref; member
527 kref_get(&gss_auth->kref); in gss_alloc_msg()
916 kref_init(&p->kref); in gss_pipe_alloc()
943 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
993 static void __gss_pipe_release(struct kref *kref) in __gss_pipe_release() argument
995 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1003 kref_put(&p->kref, __gss_pipe_release); in gss_pipe_free()
1052 kref_init(&gss_auth->kref); in gss_create_new()
1110 gss_free_callback(struct kref *kref) in gss_free_callback() argument
[all …]
/net/sunrpc/xprtrdma/
Drpc_rdma.c535 static void rpcrdma_sendctx_done(struct kref *kref) in rpcrdma_sendctx_done() argument
538 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_sendctx_done()
1413 static void rpcrdma_reply_done(struct kref *kref) in rpcrdma_reply_done() argument
1416 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_reply_done()

123