Home
last modified time | relevance | path

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

123

/net/batman-adv/
Dtypes.h197 struct kref refcount;
281 struct kref refcount;
351 struct kref refcount;
504 struct kref refcount;
579 struct kref refcount;
638 struct kref refcount;
673 struct kref refcount;
742 struct kref refcount;
1496 struct kref refcount;
1527 struct kref refcount;
[all …]
Doriginator.c181 static void batadv_orig_node_vlan_release(struct kref *ref) in batadv_orig_node_vlan_release()
235 static void batadv_neigh_ifinfo_release(struct kref *ref) in batadv_neigh_ifinfo_release()
262 static void batadv_hardif_neigh_release(struct kref *ref) in batadv_hardif_neigh_release()
292 static void batadv_neigh_node_release(struct kref *ref) in batadv_neigh_node_release()
854 static void batadv_orig_ifinfo_release(struct kref *ref) in batadv_orig_ifinfo_release()
905 static void batadv_orig_node_release(struct kref *ref) in batadv_orig_node_release()
Dhard-interface.h106 void batadv_hardif_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.c508 static void release_generic_request(struct kref *kref) in DEFINE_RB_FUNCS()
511 container_of(kref, struct ceph_mon_generic_request, kref); in DEFINE_RB_FUNCS()
528 kref_put(&req->kref, release_generic_request); in put_generic_request()
533 kref_get(&req->kref); in get_generic_request()
546 kref_init(&req->kref); in alloc_generic_request()
/net/can/j1939/
Dmain.c131 kref_init(&priv->kref); in j1939_priv_create()
148 static void __j1939_priv_release(struct kref *kref) in __j1939_priv_release() argument
150 struct j1939_priv *priv = container_of(kref, struct j1939_priv, kref); in __j1939_priv_release()
165 kref_put(&priv->kref, __j1939_priv_release); in j1939_priv_put()
170 kref_get(&priv->kref); in j1939_priv_get()
199 static void __j1939_rx_release(struct kref *kref) in __j1939_rx_release() argument
202 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.c94 struct kref kref; member
124 static void tipc_conn_kref_release(struct kref *kref) in tipc_conn_kref_release() argument
126 struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); in tipc_conn_kref_release()
148 kref_put(&con->kref, tipc_conn_kref_release); in conn_put()
153 kref_get(&con->kref); in conn_get()
189 kref_init(&con->kref); in tipc_conn_alloc()
220 if (!connected(con) || !kref_get_unless_zero(&con->kref)) in tipc_conn_lookup()
Dsubscr.h58 struct kref kref; member
Dnode.c105 struct kref kref; member
238 static void tipc_node_kref_release(struct kref *kref) in tipc_node_kref_release() argument
240 struct tipc_node *n = container_of(kref, struct tipc_node, kref); in tipc_node_kref_release()
248 kref_put(&node->kref, tipc_node_kref_release); in tipc_node_put()
253 kref_get(&node->kref); in tipc_node_get()
269 if (!kref_get_unless_zero(&node->kref)) in tipc_node_find()
291 kref_get_unless_zero(&n->kref)) in tipc_node_find_by_id()
403 kref_init(&n->kref); in tipc_node_create()
/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.c806 BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); in amp_mgr_get()
808 kref_get(&mgr->kref); in amp_mgr_get()
813 static void amp_mgr_destroy(struct kref *kref) in amp_mgr_destroy() argument
815 struct amp_mgr *mgr = container_of(kref, struct amp_mgr, kref); in amp_mgr_destroy()
829 BT_DBG("mgr %p orig refcnt %d", mgr, kref_read(&mgr->kref)); in amp_mgr_put()
831 return kref_put(&mgr->kref, &amp_mgr_destroy); in amp_mgr_put()
858 kref_init(&mgr->kref); in amp_mgr_create()
Damp.h12 struct kref kref; member
Da2mp.h25 struct kref kref; member
/net/sunrpc/
Dsvcauth.c146 static void auth_domain_release(struct kref *kref) in auth_domain_release() argument
149 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()
431 static void unix_gid_put(struct kref *kref) in unix_gid_put() argument
433 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
/net/sunrpc/auth_gss/
Dauth_gss.c63 struct kref kref; member
67 struct kref kref; member
554 kref_get(&gss_auth->kref); in gss_alloc_msg()
926 kref_init(&p->kref); in gss_pipe_alloc()
953 if (!kref_get_unless_zero(&gss_pipe->kref)) in gss_pipe_match_pdo()
1003 static void __gss_pipe_release(struct kref *kref) in __gss_pipe_release() argument
1005 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1013 kref_put(&p->kref, __gss_pipe_release); in gss_pipe_free()
1062 kref_init(&gss_auth->kref); in gss_create_new()
1120 gss_free_callback(struct kref *kref) in gss_free_callback() argument
[all …]
/net/sunrpc/xprtrdma/
Drpc_rdma.c551 static void rpcrdma_sendctx_done(struct kref *kref) in rpcrdma_sendctx_done() argument
554 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_sendctx_done()
1297 static void rpcrdma_reply_done(struct kref *kref) in rpcrdma_reply_done() argument
1300 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_reply_done()
/net/mac802154/
Dllsec.h26 struct kref ref;
/net/tls/
Dtls_main.c688 kref_get(&dev->kref); in tls_hw_unhash()
691 kref_put(&dev->kref, dev->release); in tls_hw_unhash()
709 kref_get(&dev->kref); in tls_hw_hash()
712 kref_put(&dev->kref, dev->release); in tls_hw_hash()

123