Home
last modified time | relevance | path

Searched refs:refcount_read (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/openbmc/linux/drivers/misc/lkdtm/
H A Drefcount.c11 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()
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()
238 if (refcount_read(&zero) == 0) in lkdtm_REFCOUNT_ADD_ZERO()
[all …]
/openbmc/linux/tools/perf/tests/
H A Dthread-maps-share.c46 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 Dthread-map.c43 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 Dmaps.c33 refcount_read(map__refcnt(map)) != 1) { in check_maps()
53 refcount_read(map__refcnt(map))); in check_maps()
/openbmc/linux/net/rxrpc/
H A Dskbuff.c25 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 Dconn_object.c108 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 Dcall_object.c124 _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 Dpeer_object.c124 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 Dproc.c94 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 Dcache.c119 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 Dvolume.c33 int ref = refcount_read(&volume->ref); in fscache_see_volume()
50 refcount_read(&volume->ref), in __fscache_begin_volume_access()
115 refcount_read(&volume->ref), in fscache_end_volume_access()
460 refcount_read(&volume->ref), in fscache_withdraw_volume()
487 refcount_read(&volume->ref), in fscache_volumes_seq_show()
H A Dcookie.c106 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()
850 trace_fscache_access(cookie->debug_id, refcount_read(&cookie->ref), in __fscache_withdraw_cookie()
1127 refcount_read(&cookie->ref), in fscache_cookies_seq_show()
/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-memops.c95 __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 Dcell.c290 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 Dmmap.c71 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 Drefcount.h145 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 Dkref.h36 return refcount_read(&kref->refcount); in kref_read()
/openbmc/linux/kernel/cgroup/
H A Ddebug.c54 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 Dinet_timewait_sock.c181 if (refcount_read(&dr->tw_refcount) - 1 >= in inet_twsk_alloc()
302 refcount_read(&sock_net(sk)->ns.count)) in inet_twsk_purge()
309 refcount_read(&sock_net(sk)->ns.count))) { in inet_twsk_purge()
/openbmc/linux/net/l2tp/
H A Dl2tp_debugfs.c165 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 Dfb_info.c70 if (WARN_ON(refcount_read(&info->count))) in framebuffer_release()
/openbmc/linux/net/dsa/
H A Dtrace.h107 __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/tools/include/linux/
H A Drefcount.h63 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read() function
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_nq.c108 refcount_read(&least->refcnt), in ip_vs_nq_schedule()
H A Dip_vs_wlc.c81 refcount_read(&least->refcnt), in ip_vs_wlc_schedule()

12345678910>>...12