/Linux-v5.10/tools/perf/tests/ |
D | thread-maps-share.c | 46 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 4); in test__thread_maps_share() 74 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 2); in test__thread_maps_share() 80 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 3); in test__thread_maps_share() 83 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 2); in test__thread_maps_share() 86 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&maps->refcnt), 1); in test__thread_maps_share() 92 TEST_ASSERT_EQUAL("wrong refcnt", refcount_read(&other_maps->refcnt), 1); in test__thread_maps_share()
|
/Linux-v5.10/fs/btrfs/ |
D | reada.c | 57 int refcnt; member 75 struct kref refcnt; member 185 kref_get(&rc->refcnt); in __readahead_hook() 187 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 190 kref_put(&rc->refcnt, reada_control_release); in __readahead_hook() 209 re->refcnt++; in btree_readahead_hook() 240 kref_get(&zone->refcnt); in reada_find_zone() 270 kref_init(&zone->refcnt); in reada_find_zone() 289 kref_get(&zone->refcnt); in reada_find_zone() 319 re->refcnt++; in reada_find_extent() [all …]
|
/Linux-v5.10/drivers/connector/ |
D | cn_queue.c | 34 refcount_set(&cbq->refcnt, 1); in cn_queue_alloc_callback_entry() 36 atomic_inc(&dev->refcnt); in cn_queue_alloc_callback_entry() 47 if (!refcount_dec_and_test(&cbq->refcnt)) in cn_queue_release_callback() 50 atomic_dec(&cbq->pdev->refcnt); in cn_queue_release_callback() 121 atomic_set(&dev->refcnt, 0); in cn_queue_alloc_dev() 139 while (atomic_read(&dev->refcnt)) { in cn_queue_free_dev() 141 dev->name, atomic_read(&dev->refcnt)); in cn_queue_free_dev()
|
/Linux-v5.10/drivers/gpu/drm/lima/ |
D | lima_ctx.c | 18 kref_init(&ctx->refcnt); in lima_ctx_create() 44 struct lima_ctx *ctx = container_of(ref, struct lima_ctx, refcnt); in lima_ctx_do_release() 60 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_free() 74 kref_get(&ctx->refcnt); in lima_ctx_get() 81 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_put() 96 kref_put(&ctx->refcnt, lima_ctx_do_release); in lima_ctx_mgr_fini()
|
/Linux-v5.10/include/net/ |
D | ipx.h | 54 refcount_t refcnt; member 80 refcount_t refcnt; member 139 refcount_inc(&intrfc->refcnt); in ipxitf_hold() 157 if (refcount_dec_and_test(&intrfc->refcnt)) in ipxitf_put() 163 refcount_inc(&rt->refcnt); in ipxrtr_hold() 168 if (refcount_dec_and_test(&rt->refcnt)) in ipxrtr_put()
|
D | x25.h | 135 refcount_t refcnt; member 147 refcount_t refcnt; member 177 atomic_t refcnt; member 248 refcount_inc(&nb->refcnt); in x25_neigh_hold() 253 if (refcount_dec_and_test(&nb->refcnt)) in x25_neigh_put() 271 refcount_inc(&rt->refcnt); in x25_route_hold() 276 if (refcount_dec_and_test(&rt->refcnt)) in x25_route_put()
|
D | llc.h | 58 refcount_t refcnt; member 117 refcount_inc(&sap->refcnt); in llc_sap_hold() 122 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe() 129 if (refcount_dec_and_test(&sap->refcnt)) in llc_sap_put()
|
/Linux-v5.10/tools/lib/perf/ |
D | mmap.c | 22 refcount_set(&map->refcnt, 0); in perf_mmap__init() 55 refcount_set(&map->refcnt, 0); in perf_mmap__munmap() 63 refcount_inc(&map->refcnt); in perf_mmap__get() 68 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put() 70 if (refcount_dec_and_test(&map->refcnt)) in perf_mmap__put() 99 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume() 177 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init() 194 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done() 262 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
|
D | threadmap.c | 52 refcount_set(&threads->refcnt, 1); in perf_thread_map__new_dummy() 62 WARN_ONCE(refcount_read(&threads->refcnt) != 0, in perf_thread_map__delete() 73 refcount_inc(&map->refcnt); in perf_thread_map__get() 79 if (map && refcount_dec_and_test(&map->refcnt)) in perf_thread_map__put()
|
/Linux-v5.10/drivers/w1/ |
D | w1_family.c | 38 atomic_set(&newf->refcnt, 0); in w1_register_family() 73 while (atomic_read(&fent->refcnt)) { in w1_unregister_family() 75 fent->fid, atomic_read(&fent->refcnt)); in w1_unregister_family() 106 atomic_dec(&f->refcnt); in __w1_family_put() 128 atomic_inc(&f->refcnt); in __w1_family_get()
|
/Linux-v5.10/include/linux/ |
D | backing-dev-defs.h | 151 struct percpu_ref refcnt; /* used only for !root wb's */ member 172 struct kref refcnt; /* Reference counter for the structure */ member 225 return percpu_ref_tryget(&wb->refcnt); in wb_tryget() 236 percpu_ref_get(&wb->refcnt); in wb_get() 254 percpu_ref_put(&wb->refcnt); in wb_put() 265 return percpu_ref_is_dying(&wb->refcnt); in wb_dying()
|
/Linux-v5.10/crypto/ |
D | cryptd.c | 66 refcount_t refcnt; member 75 refcount_t refcnt; member 85 refcount_t refcnt; member 130 refcount_t *refcnt; in cryptd_enqueue_request() local 136 refcnt = crypto_tfm_ctx(request->tfm); in cryptd_enqueue_request() 143 if (!refcount_read(refcnt)) in cryptd_enqueue_request() 146 refcount_inc(refcnt); in cryptd_enqueue_request() 245 int refcnt = refcount_read(&ctx->refcnt); in cryptd_skcipher_complete() local 251 if (err != -EINPROGRESS && refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_skcipher_complete() 482 int refcnt = refcount_read(&ctx->refcnt); in cryptd_hash_complete() local [all …]
|
/Linux-v5.10/kernel/cgroup/ |
D | debug.c | 46 int i, refcnt; in current_css_set_read() local 54 refcnt = refcount_read(&cset->refcount); in current_css_set_read() 55 seq_printf(seq, "css_set %pK %d", cset, refcnt); in current_css_set_read() 56 if (refcnt > cset->nr_tasks) in current_css_set_read() 57 seq_printf(seq, " +%d", refcnt - cset->nr_tasks); in current_css_set_read() 126 int refcnt = refcount_read(&cset->refcount); in cgroup_css_links_read() local 148 seq_printf(seq, " %d", refcnt); in cgroup_css_links_read() 149 if (refcnt - cset->nr_tasks > 0) { in cgroup_css_links_read() 150 int extra = refcnt - cset->nr_tasks; in cgroup_css_links_read()
|
/Linux-v5.10/drivers/net/ethernet/chelsio/cxgb4/ |
D | smt.c | 60 s->smtab[i].refcnt = 0; in t4_init_smt() 71 if (e->refcnt == 0) { in find_or_alloc_smte() 100 if (e->refcnt == 0) { /* hasn't been recycled */ in t4_smte_free() 114 if ((--e->refcnt) == 0) in cxgb4_smt_release() 219 if (!e->refcnt) { in t4_smt_alloc_switching() 220 e->refcnt = 1; in t4_smt_alloc_switching() 226 ++e->refcnt; in t4_smt_alloc_switching()
|
D | l2t.c | 72 if (atomic_add_return(1, &e->refcnt) == 1) /* 0 -> 1 transition */ in l2t_hold() 273 if (atomic_read(&e->refcnt) == 0) in alloc_l2e() 276 for (e = d->l2tab; atomic_read(&e->refcnt); ++e) in alloc_l2e() 305 if (atomic_read(&e->refcnt) == 0) { in find_or_alloc_l2e() 355 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in _t4_l2e_free() 373 if (atomic_read(&e->refcnt) == 0) { /* hasn't been recycled */ in t4_l2e_free() 388 if (atomic_dec_and_test(&e->refcnt)) in cxgb4_l2t_release() 444 if (atomic_read(&e->refcnt) == 1) in cxgb4_l2t_get() 461 atomic_set(&e->refcnt, 1); in cxgb4_l2t_get() 523 if (atomic_read(&e->refcnt)) in t4_l2t_update() [all …]
|
/Linux-v5.10/drivers/infiniband/hw/mlx5/ |
D | doorbell.c | 43 int refcnt; member 66 page->refcnt = 0; in mlx5_ib_db_map_user() 80 ++page->refcnt; in mlx5_ib_db_map_user() 92 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
|
/Linux-v5.10/arch/x86/kernel/ |
D | ioport.c | 30 refcount_inc(¤t->thread.io_bitmap->refcnt); in io_bitmap_share() 58 if (iobm && refcount_dec_and_test(&iobm->refcnt)) in io_bitmap_exit() 92 refcount_set(&iobm->refcnt, 1); in ksys_ioperm() 100 if (refcount_read(&iobm->refcnt) > 1) { in ksys_ioperm() 104 refcount_set(&iobm->refcnt, 1); in ksys_ioperm()
|
/Linux-v5.10/drivers/infiniband/hw/mlx4/ |
D | doorbell.c | 42 int refcnt; member 66 page->refcnt = 0; in mlx4_ib_db_map_user() 80 ++page->refcnt; in mlx4_ib_db_map_user() 92 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
|
/Linux-v5.10/include/trace/events/ |
D | module.h | 78 __field( int, refcnt ) 84 __entry->refcnt = atomic_read(&mod->refcnt); 89 __get_str(name), (void *)__entry->ip, __entry->refcnt)
|
D | neigh.h | 88 __field(int, refcnt) 113 __entry->refcnt = refcount_read(&n->refcnt); 148 __entry->type, __entry->dead, __entry->refcnt, 168 __field(int, refcnt) 190 __entry->refcnt = refcount_read(&n->refcnt); 221 __entry->type, __entry->dead, __entry->refcnt,
|
/Linux-v5.10/drivers/staging/media/tegra-vde/ |
D | dmabuf-cache.c | 26 unsigned int refcnt; member 33 WARN_ON_ONCE(entry->refcnt); in tegra_vde_release_entry() 141 entry->refcnt++; in tegra_vde_dmabuf_cache_map() 173 WARN_ON_ONCE(!entry->refcnt); in tegra_vde_dmabuf_cache_unmap() 175 if (--entry->refcnt == 0) { in tegra_vde_dmabuf_cache_unmap() 194 if (entry->refcnt) in tegra_vde_dmabuf_cache_unmap_sync()
|
/Linux-v5.10/arch/sparc/kernel/ |
D | hvapi.c | 22 unsigned int refcnt; member 72 p->refcnt++; in __get_ref() 77 if (--p->refcnt == 0) { in __put_ref() 107 if (p->refcnt) { in sun4v_hvapi_register() 171 if (p && p->refcnt) { in sun4v_hvapi_get()
|
/Linux-v5.10/net/netfilter/ |
D | xt_IDLETIMER.c | 41 unsigned int refcnt; member 168 info->timer->refcnt = 1; in idletimer_tg_create() 220 info->timer->refcnt = 1; in idletimer_tg_create_v1() 323 info->timer->refcnt++; in idletimer_tg_checkentry() 328 info->label, info->timer->refcnt); in idletimer_tg_checkentry() 374 info->timer->refcnt++; in idletimer_tg_checkentry_v1() 390 info->label, info->timer->refcnt); in idletimer_tg_checkentry_v1() 412 if (--info->timer->refcnt == 0) { in idletimer_tg_destroy() 423 info->label, info->timer->refcnt); in idletimer_tg_destroy() 437 if (--info->timer->refcnt == 0) { in idletimer_tg_destroy_v1() [all …]
|
/Linux-v5.10/lib/ |
D | lru_cache.c | 298 return e && e->refcnt; in lc_is_used() 313 BUG_ON(e->refcnt); in lc_del() 386 ++e->refcnt; in __lc_get() 392 if (e->refcnt++ == 0) in __lc_get() 433 BUG_ON(++e->refcnt != 1); in __lc_get() 563 BUG_ON(e->refcnt == 0); in lc_put() 565 if (--e->refcnt == 0) { in lc_put() 571 RETURN(e->refcnt); in lc_put() 616 BUG_ON(e->refcnt != 0); in lc_set() 650 i, e->lc_number, e->lc_new_number, e->refcnt); in lc_seq_dump_details() [all …]
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_acl_bloom_filter.c | 16 refcount_t refcnt[]; member 183 if (refcount_inc_not_zero(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_add() 201 refcount_set(&bf->refcnt[rule_index], 1); in mlxsw_sp_acl_bf_entry_add() 226 if (refcount_dec_and_test(&bf->refcnt[rule_index])) { in mlxsw_sp_acl_bf_entry_del() 254 bf = kzalloc(struct_size(bf, refcnt, bf_bank_size * num_erp_banks), in mlxsw_sp_acl_bf_init()
|