/openbmc/linux/drivers/misc/lkdtm/ |
H A D | refcount.c | 11 switch (refcount_read(ref)) { in overflow_check() 19 pr_err("Fail: refcount wrapped to %d\n", refcount_read(ref)); in overflow_check() 86 switch (refcount_read(ref)) { in check_zero() 97 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_zero() 126 if (refcount_read(ref) == start) { in check_negative() 132 switch (refcount_read(ref)) { in check_negative() 140 pr_err("Fail: refcount went crazy: %d\n", refcount_read(ref)); in check_negative() 187 switch (refcount_read(ref)) { in check_from_zero() 199 refcount_read(ref)); in check_from_zero() 213 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_INC_ZERO() [all …]
|
/openbmc/linux/tools/perf/tests/ |
H A D | thread-maps-share.c | 46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 4); in test__thread_maps_share() 74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 2); in test__thread_maps_share() 81 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 3); in test__thread_maps_share() 84 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 2); in test__thread_maps_share() 87 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(maps)), 1); in test__thread_maps_share() 93 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(maps__refcnt(other_maps)), 1); in test__thread_maps_share()
|
H A D | thread-map.c | 43 refcount_read(&map->refcnt) == 1); in test__thread_map() 58 refcount_read(&map->refcnt) == 1); in test__thread_map() 85 refcount_read(&threads->refcnt) == 1); in process_event()
|
H A D | maps.c | 33 refcount_read(map__refcnt(map)) != 1) { in check_maps() 53 refcount_read(map__refcnt(map))); in check_maps()
|
/openbmc/linux/net/rxrpc/ |
H A D | skbuff.c | 25 trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why); in rxrpc_new_skb() 35 trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why); in rxrpc_see_skb() 45 trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why); in rxrpc_get_skb() 65 trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why); in rxrpc_free_skb() 79 trace_rxrpc_skb(skb, refcount_read(&skb->users), n, in rxrpc_purge_queue()
|
H A D | call_object.c | 124 _leave(" = %p [%d]", call, refcount_read(&call->ref)); in rxrpc_find_call_by_user_ID() 238 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), in rxrpc_alloc_client_call() 420 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), 0, in rxrpc_new_client_call() 433 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), ret, in rxrpc_new_client_call() 510 int r = refcount_read(&call->ref); in rxrpc_see_call() 555 _enter("{%d,%d}", call->debug_id, refcount_read(&call->ref)); in rxrpc_release_call() 557 trace_rxrpc_call(call->debug_id, refcount_read(&call->ref), in rxrpc_release_call() 749 call, refcount_read(&call->ref), in rxrpc_destroy_all_calls()
|
H A D | conn_object.c | 108 if (!conn || refcount_read(&conn->ref) == 0) { in rxrpc_find_client_connection_rcu() 234 int r = refcount_read(&conn->ref); in rxrpc_see_connection() 290 _enter("{%d,u=%d}", conn->debug_id, refcount_read(&conn->ref)); in rxrpc_rcu_free_connection() 292 trace_rxrpc_conn(conn->debug_id, refcount_read(&conn->ref), in rxrpc_rcu_free_connection() 471 conn, refcount_read(&conn->ref)); in rxrpc_destroy_all_connections()
|
H A D | peer_object.c | 124 refcount_read(&peer->ref) > 0) in __rxrpc_lookup_peer_rcu() 142 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer_rcu() 370 _leave(" = %p {u=%d}", peer, refcount_read(&peer->ref)); in rxrpc_lookup_peer() 453 refcount_read(&peer->ref), in rxrpc_destroy_all_peers()
|
H A D | proc.c | 94 refcount_read(&call->ref), in rxrpc_call_seq_show() 180 refcount_read(&conn->ref), in rxrpc_connection_seq_show() 231 refcount_read(&peer->ref), in rxrpc_peer_seq_show() 349 refcount_read(&local->ref), in rxrpc_local_seq_show()
|
/openbmc/linux/fs/fscache/ |
H A D | cache.c | 119 refcount_read(&candidate->ref), in fscache_lookup_cache() 249 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_add_cache() 298 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_begin_cache_access() 321 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_end_cache_access() 366 trace_fscache_access_cache(cache->debug_id, refcount_read(&cache->ref), in fscache_withdraw_cache() 396 refcount_read(&cache->ref), in fscache_caches_seq_show()
|
H A D | cookie.c | 106 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_init_access_gate() 128 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in fscache_end_cookie_access() 148 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_begin_cookie_access() 266 trace_fscache_cookie(cookie->debug_id, refcount_read(&cookie->ref), in fscache_caching_failed() 435 trace_fscache_cookie(cursor->debug_id, refcount_read(&cursor->ref), in fscache_hash_cookie() 584 trace_fscache_active(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_use_cookie() 669 unsigned int r = refcount_read(&cookie->ref); in __fscache_unuse_cookie() 684 r = refcount_read(&cookie->ref); in __fscache_unuse_cookie() 854 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_withdraw_cookie() 1131 refcount_read(&cookie->ref), in fscache_cookies_seq_show()
|
H A D | volume.c | 46 int ref = refcount_read(&volume->ref); in fscache_see_volume() 63 refcount_read(&volume->ref), in __fscache_begin_volume_access() 128 refcount_read(&volume->ref), in fscache_end_volume_access() 473 refcount_read(&volume->ref), in fscache_withdraw_volume() 500 refcount_read(&volume->ref), in fscache_volumes_seq_show()
|
/openbmc/linux/drivers/media/common/videobuf2/ |
H A D | videobuf2-memops.c | 95 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_open() 113 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_close()
|
/openbmc/linux/fs/afs/ |
H A D | cell.c | 290 trace_afs_cell(cell->debug_id, refcount_read(&cell->ref), 2, afs_cell_trace_insert); in afs_lookup_cell() 298 trace_afs_cell(cell->debug_id, refcount_read(&cell->ref), atomic_read(&cell->active), in afs_lookup_cell() 499 r = refcount_read(&cell->ref); in afs_cell_destroy() 580 r = refcount_read(&cell->ref); in afs_use_cell() 609 r = refcount_read(&cell->ref); in afs_unuse_cell() 625 r = refcount_read(&cell->ref); in afs_see_cell() 741 trace_afs_cell(cell->debug_id, refcount_read(&cell->ref), 0, in afs_manage_cell() 868 trace_afs_cell(cell->debug_id, refcount_read(&cell->ref), in afs_manage_cells() 876 trace_afs_cell(cell->debug_id, refcount_read(&cell->ref), in afs_manage_cells()
|
/openbmc/linux/tools/lib/perf/ |
H A D | mmap.c | 71 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put() 102 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume() 180 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init() 197 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done() 265 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
|
/openbmc/linux/include/linux/ |
H A D | refcount.h | 145 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function 152 int old = refcount_read(r); in __refcount_add_not_zero()
|
H A D | kref.h | 36 return refcount_read(&kref->refcount); in kref_read()
|
/openbmc/linux/kernel/cgroup/ |
H A D | debug.c | 54 refcnt = refcount_read(&cset->refcount); in current_css_set_read() 82 count = refcount_read(&task_css_set(current)->refcount); in current_css_set_refcount_read() 126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read()
|
/openbmc/linux/net/ipv4/ |
H A D | inet_timewait_sock.c | 181 if (refcount_read(&dr->tw_refcount) - 1 >= in inet_twsk_alloc() 305 if (refcount_read(&sock_net(sk)->ns.count)) in inet_twsk_purge() 311 if (refcount_read(&sock_net(sk)->ns.count)) { in inet_twsk_purge()
|
/openbmc/linux/net/l2tp/ |
H A D | l2tp_debugfs.c | 165 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, in l2tp_dfs_seq_tunnel_show() 166 refcount_read(&tunnel->ref_count)); in l2tp_dfs_seq_tunnel_show() 188 seq_printf(m, " refcnt %d\n", refcount_read(&session->ref_count)); in l2tp_dfs_seq_session_show()
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | fb_info.c | 70 if (WARN_ON(refcount_read(&info->count))) in framebuffer_release()
|
/openbmc/linux/net/dsa/ |
H A D | trace.h | 107 __entry->refcount = refcount_read(refcount); 234 __entry->refcount = refcount_read(refcount); 290 __entry->refcount = refcount_read(refcount); 392 __entry->refcount = refcount_read(refcount);
|
/openbmc/linux/fs/lockd/ |
H A D | mon.c | 195 if (refcount_read(&nsm->sm_count) == 1 in nsm_unmonitor() 350 refcount_read(&cached->sm_count)); in nsm_get_handle() 400 refcount_read(&cached->sm_count)); in nsm_reboot_lookup()
|
/openbmc/linux/crypto/ |
H A D | cryptd.c | 148 if (!refcount_read(refcnt)) in cryptd_enqueue_request() 273 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete() 518 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete() 769 refcnt = refcount_read(&ctx->refcnt); in cryptd_aead_crypt() 988 return refcount_read(&ctx->refcnt) - 1; in cryptd_skcipher_queued() 1045 return refcount_read(&ctx->refcnt) - 1; in cryptd_ahash_queued() 1095 return refcount_read(&ctx->refcnt) - 1; in cryptd_aead_queued()
|
/openbmc/linux/fs/crypto/ |
H A D | keyring.c | 76 WARN_ON_ONCE(refcount_read(&mk->mk_active_refs) != 0); in fscrypt_put_master_key() 240 WARN_ON_ONCE(refcount_read(&mk->mk_active_refs) != 1); in fscrypt_destroy_keyring() 241 WARN_ON_ONCE(refcount_read(&mk->mk_struct_refs) != 1); in fscrypt_destroy_keyring() 1063 inodes_remain = refcount_read(&mk->mk_active_refs) > 0; in do_remove_key() 1154 arg.status = refcount_read(&mk->mk_active_refs) > 0 ? in fscrypt_ioctl_get_key_status()
|