Home
last modified time | relevance | path

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

/net/ceph/
Dbuffer.c30 kref_init(&b->kref); in ceph_buffer_new()
38 void ceph_buffer_release(struct kref *kref) in ceph_buffer_release() argument
40 struct ceph_buffer *b = container_of(kref, struct ceph_buffer, kref); in ceph_buffer_release()
Dmon_client.c428 static void release_generic_request(struct kref *kref) in release_generic_request() argument
431 container_of(kref, struct ceph_mon_generic_request, kref); in release_generic_request()
443 kref_put(&req->kref, release_generic_request); in put_generic_request()
448 kref_get(&req->kref); in get_generic_request()
552 kref_init(&req->kref); in ceph_monc_do_statfs()
577 kref_put(&req->kref, release_generic_request); in ceph_monc_do_statfs()
652 kref_init(&req->kref); in do_poolop()
683 kref_put(&req->kref, release_generic_request); in do_poolop()
Dosd_client.c300 void ceph_osdc_release_request(struct kref *kref) in ceph_osdc_release_request() argument
305 req = container_of(kref, struct ceph_osd_request, r_kref); in ceph_osdc_release_request()
1820 static void __release_event(struct kref *kref) in __release_event() argument
1823 container_of(kref, struct ceph_osd_event, kref); in __release_event()
1831 kref_get(&event->kref); in get_event()
1836 kref_put(&event->kref, __release_event); in ceph_osdc_put_event()
1912 kref_init(&event->kref); /* one ref for us */ in ceph_osdc_create_event()
1913 kref_get(&event->kref); /* one ref for the caller */ in ceph_osdc_create_event()
Dmsgpool.c81 kref_init(&msg->kref); /* retake single ref */ in ceph_msgpool_put()
Dmessenger.c3125 kref_init(&m->kref); in ceph_msg_new()
3269 void ceph_msg_last_put(struct kref *kref) in ceph_msg_last_put() argument
3271 struct ceph_msg *m = container_of(kref, struct ceph_msg, kref); in ceph_msg_last_put()
/net/rxrpc/
Dar-security.c169 key_ref_t kref; in rxrpc_init_server_conn_security() local
204 kref = keyring_search(make_key_ref(rx->securities, 1UL), in rxrpc_init_server_conn_security()
206 if (IS_ERR(kref)) { in rxrpc_init_server_conn_security()
209 _leave(" = %ld [search]", PTR_ERR(kref)); in rxrpc_init_server_conn_security()
210 return PTR_ERR(kref); in rxrpc_init_server_conn_security()
213 key = key_ref_to_ptr(kref); in rxrpc_init_server_conn_security()
/net/bluetooth/
Damp.c25 atomic_read(&ctrl->kref.refcount)); in amp_ctrl_get()
27 kref_get(&ctrl->kref); in amp_ctrl_get()
30 static void amp_ctrl_destroy(struct kref *kref) in amp_ctrl_destroy() argument
32 struct amp_ctrl *ctrl = container_of(kref, struct amp_ctrl, kref); in amp_ctrl_destroy()
43 atomic_read(&ctrl->kref.refcount)); in amp_ctrl_put()
45 return kref_put(&ctrl->kref, &amp_ctrl_destroy); in amp_ctrl_put()
56 kref_init(&ctrl->kref); in amp_ctrl_add()
Da2mp.c762 BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount)); in amp_mgr_get()
764 kref_get(&mgr->kref); in amp_mgr_get()
769 static void amp_mgr_destroy(struct kref *kref) in amp_mgr_destroy() argument
771 struct amp_mgr *mgr = container_of(kref, struct amp_mgr, kref); in amp_mgr_destroy()
785 BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount)); in amp_mgr_put()
787 return kref_put(&mgr->kref, &amp_mgr_destroy); in amp_mgr_put()
814 kref_init(&mgr->kref); in amp_mgr_create()
Dl2cap_core.c444 kref_init(&chan->kref); in l2cap_chan_create()
454 static void l2cap_chan_destroy(struct kref *kref) in l2cap_chan_destroy() argument
456 struct l2cap_chan *chan = container_of(kref, struct l2cap_chan, kref); in l2cap_chan_destroy()
469 BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->kref.refcount)); in l2cap_chan_hold()
471 kref_get(&c->kref); in l2cap_chan_hold()
476 BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->kref.refcount)); in l2cap_chan_put()
478 kref_put(&c->kref, l2cap_chan_destroy); in l2cap_chan_put()
1650 static void l2cap_conn_free(struct kref *ref) in l2cap_conn_free()
/net/sunrpc/
Dsvcauth_unix.c96 static void ip_map_put(struct kref *kref) in ip_map_put() argument
98 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
422 static void unix_gid_put(struct kref *kref) in unix_gid_put() argument
424 struct cache_head *item = container_of(kref, struct cache_head, ref); in unix_gid_put()
Dsvc_xprt.c126 static void svc_xprt_free(struct kref *kref) in svc_xprt_free() argument
129 container_of(kref, struct svc_xprt, xpt_ref); in svc_xprt_free()
/net/sunrpc/auth_gss/
Dauth_gss.c75 struct kref kref; member
902 kref_init(&gss_auth->kref); in gss_create()
959 gss_free_callback(struct kref *kref) in gss_free_callback() argument
961 struct gss_auth *gss_auth = container_of(kref, struct gss_auth, kref); in gss_free_callback()
977 kref_put(&gss_auth->kref, gss_free_callback); in gss_destroy()
1063 kref_put(&gss_auth->kref, gss_free_callback); in gss_destroy_nullcred()
1108 kref_get(&gss_auth->kref); in gss_create_cred()
Dsvcauth_gss.c92 static void rsi_put(struct kref *ref) in rsi_put()
346 static void rsc_put(struct kref *ref) in rsc_put()
/net/bluetooth/hidp/
Dhidp.h137 struct kref ref;
Dcore.c929 static void session_free(struct kref *ref) in session_free()
/net/nfc/
Dllcp.h67 struct kref ref;
Dllcp_core.c180 static void local_release(struct kref *ref) in local_release()
/net/batman-adv/
Dtypes.h894 struct kref refcount;
Dvis.c35 static void batadv_free_info(struct kref *ref) in batadv_free_info()