/linux-4.19.296/include/linux/ |
D | kref.h | 22 refcount_t refcount; member 25 #define KREF_INIT(n) { .refcount = REFCOUNT_INIT(n), } 33 refcount_set(&kref->refcount, 1); in kref_init() 38 return refcount_read(&kref->refcount); in kref_read() 47 refcount_inc(&kref->refcount); in kref_get() 69 if (refcount_dec_and_test(&kref->refcount)) { in kref_put() 80 if (refcount_dec_and_mutex_lock(&kref->refcount, lock)) { in kref_put_mutex() 91 if (refcount_dec_and_lock(&kref->refcount, lock)) { in kref_put_lock() 116 return refcount_inc_not_zero(&kref->refcount); in kref_get_unless_zero()
|
D | iocontext.h | 100 atomic_long_t refcount; member 132 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active() 134 atomic_long_inc(&ioc->refcount); in get_io_context_active()
|
D | dma-fence.h | 74 struct kref refcount; member 259 kref_put(&fence->refcount, dma_fence_release); in dma_fence_put() 271 kref_get(&fence->refcount); in dma_fence_get() 284 if (kref_get_unless_zero(&fence->refcount)) in dma_fence_get_rcu()
|
D | rmap.h | 39 atomic_t refcount; member 111 atomic_inc(&anon_vma->refcount); in get_anon_vma() 118 if (atomic_dec_and_test(&anon_vma->refcount)) in put_anon_vma()
|
/linux-4.19.296/fs/xfs/scrub/ |
D | refcount.c | 88 xfs_nlink_t refcount; member 120 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check() 169 target_nr = refchk->refcount - refchk->seen; in xchk_refcountbt_process_rmap_fragments() 263 refchk->seen = refchk->refcount; in xchk_refcountbt_process_rmap_fragments() 282 xfs_nlink_t refcount) in xchk_refcountbt_xref_rmap() argument 288 .refcount = refcount, in xchk_refcountbt_xref_rmap() 313 if (refcount != refchk.seen) in xchk_refcountbt_xref_rmap() 329 xfs_nlink_t refcount) in xchk_refcountbt_xref() argument 336 xchk_refcountbt_xref_rmap(sc, agbno, len, refcount); in xchk_refcountbt_xref() 350 xfs_nlink_t refcount; in xchk_refcountbt_rec() local [all …]
|
/linux-4.19.296/include/net/ |
D | ax25.h | 163 refcount_t refcount; member 172 refcount_inc(&((ax25)->refcount)) 176 if (refcount_dec_and_test(&assoc->refcount)) { in ax25_uid_put() 190 refcount_t refcount; member 199 refcount_inc(&ax25_rt->refcount); in ax25_hold_route() 218 if (refcount_dec_and_test(&ax25_rt->refcount)) in ax25_put_route() 239 refcount_t refcount; member 262 refcount_t refcount; member 284 refcount_inc(&((__ax25)->refcount)) 288 if (refcount_dec_and_test(&ax25->refcount)) { in ax25_cb_put() [all …]
|
D | netrom.h | 99 refcount_t refcount; member 115 refcount_t refcount; member 124 refcount_inc(&((__nr_node)->refcount)) 128 if (refcount_dec_and_test(&nr_node->refcount)) { in nr_node_put() 134 refcount_inc(&((__nr_neigh)->refcount)) 138 if (refcount_dec_and_test(&nr_neigh->refcount)) { in nr_neigh_put()
|
/linux-4.19.296/include/drm/ |
D | drm_syncobj.h | 42 struct kref refcount; member 96 kref_get(&obj->refcount); in drm_syncobj_get() 106 kref_put(&obj->refcount, drm_syncobj_free); in drm_syncobj_put()
|
D | drm_gem.h | 59 struct kref refcount; member 198 kref_get(&obj->refcount); in drm_gem_object_get() 219 kref_put(&obj->refcount, drm_gem_object_free); in __drm_gem_object_put()
|
/linux-4.19.296/drivers/media/common/videobuf2/ |
D | videobuf2-memops.c | 99 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_open() 102 refcount_inc(h->refcount); in vb2_common_vm_open() 117 __func__, h, refcount_read(h->refcount), vma->vm_start, in vb2_common_vm_close()
|
D | videobuf2-vmalloc.c | 30 refcount_t refcount; member 50 buf->handler.refcount = &buf->refcount; in vb2_vmalloc_alloc() 60 refcount_set(&buf->refcount, 1); in vb2_vmalloc_alloc() 68 if (refcount_dec_and_test(&buf->refcount)) { in vb2_vmalloc_put() 167 return refcount_read(&buf->refcount); in vb2_vmalloc_num_users() 373 refcount_inc(&buf->refcount); in vb2_vmalloc_get_dmabuf()
|
D | videobuf2-dma-sg.c | 50 refcount_t refcount; member 150 buf->handler.refcount = &buf->refcount; in vb2_dma_sg_alloc() 154 refcount_set(&buf->refcount, 1); in vb2_dma_sg_alloc() 180 if (refcount_dec_and_test(&buf->refcount)) { in vb2_dma_sg_put() 325 return refcount_read(&buf->refcount); in vb2_dma_sg_num_users() 534 refcount_inc(&buf->refcount); in vb2_dma_sg_get_dmabuf()
|
D | videobuf2-dma-contig.c | 38 refcount_t refcount; member 90 return refcount_read(&buf->refcount); in vb2_dc_num_users() 126 if (!refcount_dec_and_test(&buf->refcount)) in vb2_dc_put() 170 buf->handler.refcount = &buf->refcount; in vb2_dc_alloc() 174 refcount_set(&buf->refcount, 1); in vb2_dc_alloc() 410 refcount_inc(&buf->refcount); in vb2_dc_get_dmabuf()
|
/linux-4.19.296/drivers/s390/crypto/ |
D | zcrypt_card.c | 116 kref_init(&zc->refcount); in zcrypt_card_alloc() 130 container_of(kref, struct zcrypt_card, refcount); in zcrypt_card_release() 136 kref_get(&zc->refcount); in zcrypt_card_get() 142 return kref_put(&zc->refcount, zcrypt_card_release); in zcrypt_card_put()
|
D | zcrypt_queue.c | 117 kref_init(&zq->refcount); in zcrypt_queue_alloc() 136 container_of(kref, struct zcrypt_queue, refcount); in zcrypt_queue_release() 142 kref_get(&zq->refcount); in zcrypt_queue_get() 148 return kref_put(&zq->refcount, zcrypt_queue_release); in zcrypt_queue_put()
|
D | zcrypt_api.h | 86 struct kref refcount; /* device refcounting */ member 103 struct kref refcount; /* device refcounting */ member
|
/linux-4.19.296/drivers/base/power/ |
D | common.c | 38 dev->power.subsys_data->refcount++; in dev_pm_get_subsys_data() 41 psd->refcount = 1; in dev_pm_get_subsys_data() 73 if (--psd->refcount == 0) in dev_pm_put_subsys_data()
|
/linux-4.19.296/fs/squashfs/ |
D | cache.c | 103 if (cache->entry[i].refcount == 0) in squashfs_cache_get() 117 entry->refcount = 1; in squashfs_cache_get() 154 if (entry->refcount == 0) in squashfs_cache_get() 156 entry->refcount++; in squashfs_cache_get() 174 cache->name, i, entry->block, entry->refcount, entry->error); in squashfs_cache_get() 191 entry->refcount--; in squashfs_cache_put() 192 if (entry->refcount == 0) { in squashfs_cache_put()
|
/linux-4.19.296/lib/ |
D | cpu_rmap.c | 46 kref_init(&rmap->refcount); in alloc_cpu_rmap() 71 struct cpu_rmap *rmap = container_of(ref, struct cpu_rmap, refcount); in cpu_rmap_release() 81 kref_get(&rmap->refcount); in cpu_rmap_get() 90 return kref_put(&rmap->refcount, cpu_rmap_release); in cpu_rmap_put()
|
/linux-4.19.296/include/linux/mlx5/ |
D | cq.h | 46 refcount_t refcount; member 177 refcount_inc(&cq->refcount); in mlx5_cq_hold() 182 if (refcount_dec_and_test(&cq->refcount)) in mlx5_cq_put()
|
/linux-4.19.296/include/rdma/ |
D | rdmavt_mr.h | 86 struct percpu_ref refcount; member 127 percpu_ref_put(&mr->refcount); in rvt_put_mr() 132 percpu_ref_get(&mr->refcount); in rvt_get_mr()
|
/linux-4.19.296/block/ |
D | blk-ioc.c | 28 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in get_io_context() 29 atomic_long_inc(&ioc->refcount); in get_io_context() 147 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in put_io_context() 153 if (atomic_long_dec_and_test(&ioc->refcount)) { in put_io_context() 284 atomic_long_set(&ioc->refcount, 1); in create_task_io_context()
|
/linux-4.19.296/drivers/media/common/siano/ |
D | smsdvb-debugfs.c | 24 struct kref refcount; member 326 kref_get(&debug_data->refcount); in smsdvb_stats_open() 342 debug_data = container_of(ref, struct smsdvb_debugfs, refcount); in smsdvb_debugfs_data_release() 367 kref_get(&debug_data->refcount); in smsdvb_stats_poll() 372 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_poll() 383 kref_get(&debug_data->refcount); in smsdvb_stats_read() 416 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_read() 429 kref_put(&debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_stats_release() 482 kref_init(&debug_data->refcount); in smsdvb_debugfs_create() 497 kref_put(&client->debug_data->refcount, smsdvb_debugfs_data_release); in smsdvb_debugfs_release()
|
/linux-4.19.296/include/net/9p/ |
D | client.h | 97 struct kref refcount; member 240 kref_get(&r->refcount); in p9_req_get() 245 return kref_get_unless_zero(&r->refcount); in p9_req_try_get()
|
/linux-4.19.296/fs/cifs/ |
D | file.c | 2208 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2218 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2242 kref_put(&wdata->refcount, cifs_writedata_release); in cifs_writepages() 2529 cifs_uncached_writedata_release(struct kref *refcount) in cifs_uncached_writedata_release() argument 2532 struct cifs_writedata *wdata = container_of(refcount, in cifs_uncached_writedata_release() 2533 struct cifs_writedata, refcount); in cifs_uncached_writedata_release() 2535 kref_put(&wdata->ctx->refcount, cifs_aio_ctx_release); in cifs_uncached_writedata_release() 2538 cifs_writedata_release(refcount); in cifs_uncached_writedata_release() 2560 kref_put(&wdata->refcount, cifs_uncached_writedata_release); in cifs_uncached_writev_complete() 2678 kref_get(&ctx->refcount); in cifs_write_from_iter() [all …]
|