Searched refs:refcount (Results 101 - 125 of 757) sorted by relevance

1234567891011>>

/linux-master/fs/nfs/
H A Dfscache.h42 * refcount here to double as a marker of the last RPC completion,
45 refcount_t refcount; member in struct:nfs_netfs_io_data
58 refcount_inc(&netfs->refcount);
66 if (!refcount_dec_and_test(&netfs->refcount))
/linux-master/drivers/infiniband/sw/rdmavt/
H A Dmcast.c78 atomic_set(&mcast->refcount, 0);
130 atomic_inc(&mcast->refcount);
218 atomic_inc(&mcast->refcount);
371 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1);
375 atomic_dec(&mcast->refcount);
376 wait_event(mcast->wait, !atomic_read(&mcast->refcount));
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.h9 refcount_t refcount; member in struct:prestera_vr
89 refcount_t refcount; member in struct:prestera_nexthop_group
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_mmu.h71 struct kref refcount; member in struct:etnaviv_iommu_context
112 kref_get(&ctx->refcount);
/linux-master/drivers/infiniband/hw/hfi1/
H A Dpin_system.c108 kref_get(&rb_node->refcount);
161 * kref refcount on *node_p will be 2 on successful addition: one kref from
181 kref_init(&node->rb.refcount);
184 kref_get(&node->rb.refcount);
248 SDMA_DBG(req, "prepend: node->rb.addr %lx, node->rb.refcount %d",
249 node->rb.addr, kref_read(&node->rb.refcount));
256 kref_put(&node->rb.refcount, hfi1_mmu_rb_release);
272 kref_get(&node->refcount);
279 kref_put(&node->rb.refcount, hfi1_mmu_rb_release);
378 kref_put(&cache_entry->rb.refcount, hfi1_mmu_rb_releas
[all...]
/linux-master/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv.h14 #include <linux/refcount.h>
106 refcount_t refcount; member in struct:rtrs_srv_sess
/linux-master/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c16 #include <linux/refcount.h>
30 refcount_t refcount; member in struct:vb2_vmalloc_buf
55 buf->handler.refcount = &buf->refcount;
59 refcount_set(&buf->refcount, 1);
67 if (refcount_dec_and_test(&buf->refcount)) {
167 return refcount_read(&buf->refcount);
192 * Use common vm_area operations to track buffer refcount.
357 refcount_inc(&buf->refcount);
/linux-master/drivers/s390/crypto/
H A Dzcrypt_api.h99 struct kref refcount; /* device refcounting */ member in struct:zcrypt_card
116 struct kref refcount; /* device refcounting */ member in struct:zcrypt_queue
/linux-master/drivers/tee/amdtee/
H A Damdtee_private.h48 * @refcount: counter to keep track of sessions opened for the TA instance
59 struct kref refcount; member in struct:amdtee_session
101 * @refcount: Reference count for the loaded TA
106 u32 refcount; member in struct:amdtee_ta_data
/linux-master/include/linux/
H A Dtee_drv.h27 * @refcount: reference counter for this structure
42 struct kref refcount; member in struct:tee_context
57 * @refcount: reference counter
73 refcount_t refcount; member in struct:tee_shm
H A Dcpu_rmap.h17 * @refcount: kref for object
24 struct kref refcount; member in struct:cpu_rmap
H A Dref_tracker.h4 #include <linux/refcount.h>
H A Duser_events.h13 #include <linux/refcount.h>
H A Dzpool.h78 atomic_t refcount; member in struct:zpool_driver
/linux-master/sound/soc/qcom/qdsp6/
H A Dq6adm.c50 struct kref refcount; member in struct:q6copp
101 kref_get(&c->refcount);
114 struct q6copp *c = container_of(ref, struct q6copp, refcount);
164 kref_put(&copp->refcount, q6adm_free_copp);
194 kref_put(&copp->refcount, q6adm_free_copp);
200 kref_put(&copp->refcount, q6adm_free_copp);
313 kref_get(&c->refcount);
414 kref_init(&copp->refcount);
425 kref_put(&copp->refcount, q6adm_free_copp);
525 kref_put(&copp->refcount, q6adm_free_cop
[all...]
/linux-master/drivers/dpll/
H A Ddpll_core.c87 refcount_inc(&ref->refcount);
105 refcount_set(&ref->refcount, 1);
120 refcount_inc(&ref->refcount);
142 if (refcount_dec_and_test(&ref->refcount)) {
168 refcount_inc(&ref->refcount);
186 refcount_set(&ref->refcount, 1);
201 refcount_inc(&ref->refcount);
223 if (refcount_dec_and_test(&ref->refcount)) {
251 refcount_set(&dpll->refcount, 1);
293 refcount_inc(&ret->refcount);
[all...]
/linux-master/include/linux/sunrpc/
H A Dauth_gss.h16 #include <linux/refcount.h>
/linux-master/lib/
H A Drefcount.c3 * Out-of-line refcount functions.
7 #include <linux/refcount.h>
40 * refcount_dec_if_one - decrement a refcount if it is 1
41 * @r: the refcount
53 * Return: true if the resulting refcount is 0, false otherwise
64 * refcount_dec_not_one - decrement a refcount if it is not 1
65 * @r: the refcount
99 * refcount to 0
100 * @r: the refcount
110 * Return: true and hold mutex if able to decrement refcount t
[all...]
H A Dcpu_rmap.c43 kref_init(&rmap->refcount);
68 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount);
78 kref_get(&rmap->refcount);
87 return kref_put(&rmap->refcount, cpu_rmap_release);
/linux-master/net/batman-adv/
H A Dgateway_client.h52 kref_put(&gw_node->refcount, batadv_gw_node_release);
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_db.c30 refcount_set(&page->refcount, 1);
47 refcount_inc(&page->refcount);
60 refcount_dec(&db->u.user_page->refcount);
61 if (refcount_dec_if_one(&db->u.user_page->refcount)) {
/linux-master/drivers/misc/lkdtm/
H A DMakefile8 lkdtm-$(CONFIG_LKDTM) += refcount.o
/linux-master/drivers/s390/char/
H A Dvmur.h15 #include <linux/refcount.h>
/linux-master/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.h16 #include <linux/refcount.h>
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ptrn.c112 refcount_set(&pattern->refcount, 1);
167 refcount_dec(&pattern->refcount);
171 refcount_inc(&pattern->refcount);
191 if (refcount_dec_and_test(&pattern->refcount))

Completed in 291 milliseconds

1234567891011>>