Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/linux/fs/btrfs/
A Dreada.c58 int refcnt; member
77 struct kref refcnt; member
190 kref_get(&rc->refcnt); in __readahead_hook()
214 re->refcnt++; in btree_readahead_hook()
325 re->refcnt++; in reada_find_extent()
339 re->refcnt = 1; in reada_find_extent()
400 re_exist->refcnt++; in reada_find_extent()
503 if (--re->refcnt) { in reada_extent_put()
554 refcnt); in reada_control_release()
729 re->refcnt++; in reada_start_machine_dev()
[all …]
/linux/tools/perf/tests/
A Dthread-maps-share.c46 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/drivers/connector/
A Dcn_queue.c34 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/crypto/
A Dcryptd.c66 refcount_t refcnt; member
75 refcount_t refcnt; member
85 refcount_t refcnt; member
130 refcount_t *refcnt; in cryptd_enqueue_request() local
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
488 if (err != -EINPROGRESS && refcnt && refcount_dec_and_test(&ctx->refcnt)) in cryptd_hash_complete()
722 int refcnt; in cryptd_aead_crypt() local
[all …]
/linux/drivers/gpu/drm/lima/
A Dlima_ctx.c18 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/kernel/cgroup/
A Ddebug.c46 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/drivers/w1/
A Dw1_family.c38 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/include/linux/
A Dbacking-dev-defs.h156 struct percpu_ref refcnt; /* used only for !root wb's */ member
179 struct kref refcnt; /* Reference counter for the structure */ member
232 return percpu_ref_tryget(&wb->refcnt); in wb_tryget()
243 percpu_ref_get(&wb->refcnt); in wb_get()
262 percpu_ref_put_many(&wb->refcnt, nr); in wb_put_many()
282 return percpu_ref_is_dying(&wb->refcnt); in wb_dying()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dsmt.c60 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()
A Dl2t.c273 if (atomic_read(&e->refcnt) == 0) in alloc_l2e()
305 if (atomic_read(&e->refcnt) == 0) { in find_or_alloc_l2e()
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()
588 if (!atomic_read(&e->refcnt)) { in t4_l2t_alloc_switching()
593 atomic_set(&e->refcnt, 1); in t4_l2t_alloc_switching()
602 atomic_inc(&e->refcnt); in t4_l2t_alloc_switching()
657 atomic_set(&d->l2tab[i].refcnt, 0); in t4_init_l2t()
[all …]
/linux/include/net/
A Dx25.h135 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()
A Dllc.h58 refcount_t refcnt; member
119 refcount_inc(&sap->refcnt); in llc_sap_hold()
124 return refcount_inc_not_zero(&sap->refcnt); in llc_sap_hold_safe()
131 if (refcount_dec_and_test(&sap->refcnt)) in llc_sap_put()
/linux/tools/lib/perf/
A Dmmap.c24 refcount_set(&map->refcnt, 0); in perf_mmap__init()
57 refcount_set(&map->refcnt, 0); in perf_mmap__munmap()
65 refcount_inc(&map->refcnt); in perf_mmap__get()
70 BUG_ON(map->base && refcount_read(&map->refcnt) == 0); in perf_mmap__put()
72 if (refcount_dec_and_test(&map->refcnt)) in perf_mmap__put()
101 if (refcount_read(&map->refcnt) == 1 && perf_mmap__empty(map)) in perf_mmap__consume()
179 if (!refcount_read(&map->refcnt)) in perf_mmap__read_init()
196 if (!refcount_read(&map->refcnt)) in perf_mmap__read_done()
264 if (!refcount_read(&map->refcnt)) in perf_mmap__read_event()
A Dthreadmap.c52 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/arch/x86/kernel/
A Dioport.c30 refcount_inc(&current->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/drivers/infiniband/hw/mlx4/
A Ddoorbell.c42 int refcnt; member
66 page->refcnt = 0; in mlx4_ib_db_map_user()
81 ++page->refcnt; in mlx4_ib_db_map_user()
93 if (!--db->u.user_page->refcnt) { in mlx4_ib_db_unmap_user()
/linux/net/netfilter/
A Dxt_IDLETIMER.c41 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/lib/
A Dlru_cache.c299 return e && e->refcnt; in lc_is_used()
314 BUG_ON(e->refcnt); in lc_del()
387 ++e->refcnt; in __lc_get()
393 if (e->refcnt++ == 0) in __lc_get()
434 BUG_ON(++e->refcnt != 1); in __lc_get()
564 BUG_ON(e->refcnt == 0); in lc_put()
566 if (--e->refcnt == 0) { in lc_put()
572 RETURN(e->refcnt); in lc_put()
617 BUG_ON(e->refcnt != 0); in lc_set()
651 i, e->lc_number, e->lc_new_number, e->refcnt); in lc_seq_dump_details()
[all …]
/linux/drivers/staging/media/tegra-vde/
A Ddmabuf-cache.c29 unsigned int refcnt; member
36 WARN_ON_ONCE(entry->refcnt); in tegra_vde_release_entry()
144 entry->refcnt++; in tegra_vde_dmabuf_cache_map()
176 WARN_ON_ONCE(!entry->refcnt); in tegra_vde_dmabuf_cache_unmap()
178 if (--entry->refcnt == 0) { in tegra_vde_dmabuf_cache_unmap()
197 if (entry->refcnt) in tegra_vde_dmabuf_cache_unmap_sync()
/linux/drivers/infiniband/hw/mlx5/
A Ddoorbell.c43 int refcnt; member
67 page->refcnt = 0; in mlx5_ib_db_map_user()
84 ++page->refcnt; in mlx5_ib_db_map_user()
96 if (!--db->u.user_page->refcnt) { in mlx5_ib_db_unmap_user()
/linux/include/trace/events/
A Dmodule.h78 __field( int, refcnt )
84 __entry->refcnt = atomic_read(&mod->refcnt);
89 __get_str(name), (void *)__entry->ip, __entry->refcnt)
A Dneigh.h88 __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/arch/sparc/kernel/
A Dhvapi.c22 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/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_acl_bloom_filter.c16 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()
/linux/drivers/infiniband/hw/qedr/
A Dqedr_iw_cm.c117 kref_init(&ep->refcnt); in qedr_iw_mpa_request()
178 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_close_event()
250 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_disconnect_worker()
269 kref_get(&ep->refcnt); in qedr_iw_disconnect_event()
292 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_passive_complete()
313 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_active_complete()
525 kref_get(&qp->refcnt); in qedr_iw_load_qp()
567 kref_init(&ep->refcnt); in qedr_iw_connect()
653 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_connect()
779 kref_put(&ep->refcnt, qedr_iw_free_ep); in qedr_iw_accept()
[all …]

Completed in 34 milliseconds

12345678910>>...20