Home
last modified time | relevance | path

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

123

/net/batman-adv/
A Dtypes.h193 struct kref refcount;
280 struct kref refcount;
350 struct kref refcount;
503 struct kref refcount;
578 struct kref refcount;
634 struct kref refcount;
669 struct kref refcount;
738 struct kref refcount;
1532 struct kref refcount;
1560 struct kref refcount;
[all …]
A Doriginator.h24 void batadv_orig_node_release(struct kref *ref);
30 void batadv_hardif_neigh_release(struct kref *ref);
35 void batadv_neigh_node_release(struct kref *ref);
48 void batadv_neigh_ifinfo_release(struct kref *ref);
58 void batadv_orig_ifinfo_release(struct kref *ref);
67 void batadv_orig_node_vlan_release(struct kref *ref);
A Doriginator.c204 void batadv_orig_node_vlan_release(struct kref *ref) in batadv_orig_node_vlan_release()
248 void batadv_neigh_ifinfo_release(struct kref *ref) in batadv_neigh_ifinfo_release()
265 void batadv_hardif_neigh_release(struct kref *ref) in batadv_hardif_neigh_release()
285 void batadv_neigh_node_release(struct kref *ref) in batadv_neigh_node_release()
807 void batadv_orig_ifinfo_release(struct kref *ref) in batadv_orig_ifinfo_release()
847 void batadv_orig_node_release(struct kref *ref) in batadv_orig_node_release()
A Dmesh-interface.h25 void batadv_meshif_vlan_release(struct kref *ref);
A Dgateway_client.h31 void batadv_gw_node_release(struct kref *ref);
/net/ipv4/
A Dtcp_sigpool.c25 struct kref kref; member
141 kref_init(&e->kref); in __cpool_alloc_ahash()
173 if (!kref_get_unless_zero(&cpool[i].kref)) in tcp_sigpool_alloc_ahash()
174 kref_init(&cpool[i].kref); in tcp_sigpool_alloc_ahash()
214 if (kref_read(&cpool[i].kref) > 0) { in cpool_cleanup_work_cb()
228 static void cpool_schedule_cleanup(struct kref *kref) in cpool_schedule_cleanup() argument
244 kref_put(&cpool[id].kref, cpool_schedule_cleanup); in tcp_sigpool_release()
256 kref_get(&cpool[id].kref); in tcp_sigpool_get()
/net/can/j1939/
A 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()
A Dj1939-priv.h39 struct kref kref; member
73 struct kref kref; member
92 struct kref rx_kref;
234 struct kref kref; member
A 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/ceph/
A 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()
A 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()
A Dmessenger.c1978 kref_init(&m->kref); in ceph_msg_new2()
2157 static void ceph_msg_release(struct kref *kref) in ceph_msg_release() argument
2159 struct ceph_msg *m = container_of(kref, struct ceph_msg, kref); in ceph_msg_release()
2185 kref_read(&msg->kref)); in ceph_msg_get()
2186 kref_get(&msg->kref); in ceph_msg_get()
2194 kref_read(&msg->kref)); in ceph_msg_put()
2195 kref_put(&msg->kref, ceph_msg_release); in ceph_msg_put()
A Dmon_client.c581 static void release_generic_request(struct kref *kref) in DEFINE_RB_FUNCS()
584 container_of(kref, struct ceph_mon_generic_request, kref); in DEFINE_RB_FUNCS()
601 kref_put(&req->kref, release_generic_request); in put_generic_request()
606 kref_get(&req->kref); in get_generic_request()
619 kref_init(&req->kref); in alloc_generic_request()
/net/tipc/
A Dsubscr.c116 static void tipc_sub_kref_release(struct kref *kref) in tipc_sub_kref_release() argument
118 kfree(container_of(kref, struct tipc_subscription, kref)); in tipc_sub_kref_release()
123 kref_put(&subscription->kref, tipc_sub_kref_release); in tipc_sub_put()
128 kref_get(&subscription->kref); in tipc_sub_get()
164 kref_init(&sub->kref); in tipc_sub_subscribe()
A 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()
222 if (!connected(con) || !kref_get_unless_zero(&con->kref)) in tipc_conn_lookup()
A Dsubscr.h66 struct kref kref; member
/net/rxrpc/
A Drxperf.c558 key_ref_t kref; in rxperf_add_rxkad_key() local
561 kref = key_create_or_update(make_key_ref(keyring, true), in rxperf_add_rxkad_key()
570 if (IS_ERR(kref)) { in rxperf_add_rxkad_key()
572 return PTR_ERR(kref); in rxperf_add_rxkad_key()
575 ret = key_link(keyring, key_ref_to_ptr(kref)); in rxperf_add_rxkad_key()
578 key_ref_put(kref); in rxperf_add_rxkad_key()
589 key_ref_t kref; in rxperf_add_yfs_rxgk_key() local
610 if (IS_ERR(kref)) { in rxperf_add_yfs_rxgk_key()
612 return PTR_ERR(kref); in rxperf_add_yfs_rxgk_key()
615 ret = key_link(keyring, key_ref_to_ptr(kref)); in rxperf_add_yfs_rxgk_key()
[all …]
A Dsecurity.c168 key_ref_t kref = NULL; in rxrpc_look_up_server_security() local
191 kref = keyring_search(make_key_ref(rx->securities, 1UL), in rxrpc_look_up_server_security()
193 if (IS_ERR(kref)) { in rxrpc_look_up_server_security()
194 key = ERR_CAST(kref); in rxrpc_look_up_server_security()
198 key = key_ref_to_ptr(kref); in rxrpc_look_up_server_security()
/net/tls/
A Dtls_toe.c92 kref_get(&dev->kref); in tls_toe_unhash()
95 kref_put(&dev->kref, dev->release); in tls_toe_unhash()
113 kref_get(&dev->kref); in tls_toe_hash()
116 kref_put(&dev->kref, dev->release); in tls_toe_hash()
/net/sunrpc/xprtrdma/
A Dib_client.c21 struct kref rd_kref;
73 static void rpcrdma_rn_release(struct kref *kref) in rpcrdma_rn_release() argument
75 struct rpcrdma_device *rd = container_of(kref, struct rpcrdma_device, in rpcrdma_rn_release()
A Drpc_rdma.c519 static void rpcrdma_sendctx_done(struct kref *kref) in rpcrdma_sendctx_done() argument
522 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_sendctx_done()
1412 static void rpcrdma_reply_done(struct kref *kref) in rpcrdma_reply_done() argument
1415 container_of(kref, struct rpcrdma_req, rl_kref); in rpcrdma_reply_done()
/net/sunrpc/auth_gss/
A Dauth_gss.c81 struct kref kref; member
85 struct kref kref; member
544 kref_get(&gss_auth->kref); in gss_alloc_msg()
924 kref_init(&p->kref); in gss_pipe_alloc()
1001 static void __gss_pipe_release(struct kref *kref) in __gss_pipe_release() argument
1003 struct gss_pipe *p = container_of(kref, struct gss_pipe, kref); in __gss_pipe_release()
1062 kref_init(&gss_auth->kref); in gss_create_new()
1120 gss_free_callback(struct kref *kref) in gss_free_callback() argument
1122 struct gss_auth *gss_auth = container_of(kref, struct gss_auth, kref); in gss_free_callback()
1260 kref_get(&gss_auth->kref); in gss_dup_cred()
[all …]
/net/sunrpc/
A Dsvcauth.c221 static void auth_domain_release(struct kref *kref) in auth_domain_release() argument
224 struct auth_domain *dom = container_of(kref, struct auth_domain, ref); in auth_domain_release()
A Dxprtmultipath.c188 static void xprt_switch_free(struct kref *kref) in xprt_switch_free() argument
190 struct rpc_xprt_switch *xps = container_of(kref, in xprt_switch_free()
258 return (kref_read(&xprt->kref) != 0 && in xprt_is_active()
A Dsvcauth_unix.c106 static void ip_map_put(struct kref *kref) in ip_map_put() argument
108 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()

Completed in 66 milliseconds

123