Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 12 of 12) sorted by relevance

/arch/arm64/kvm/hyp/include/nvhe/
A Dmemory.h51 u16 refcount; member
127 return p->refcount; in hyp_page_count()
132 BUG_ON(p->refcount == USHRT_MAX); in hyp_page_ref_inc()
133 p->refcount++; in hyp_page_ref_inc()
138 BUG_ON(!p->refcount); in hyp_page_ref_dec()
139 p->refcount--; in hyp_page_ref_dec()
145 return (p->refcount == 0); in hyp_page_ref_dec_and_test()
150 BUG_ON(p->refcount); in hyp_set_page_refcounted()
151 p->refcount = 1; in hyp_set_page_refcounted()
/arch/x86/kernel/cpu/sgx/
A Ddriver.c26 kref_init(&encl->refcount); in sgx_open()
77 kref_put(&encl->refcount, sgx_encl_release); in sgx_release()
80 kref_put(&encl->refcount, sgx_encl_release); in sgx_release()
A Dencl.h65 struct kref refcount; member
A Dmain.c319 if (kref_get_unless_zero(&encl_page->encl->refcount) != 0) in sgx_reclaim_pages()
354 kref_put(&encl_page->encl->refcount, sgx_encl_release); in sgx_reclaim_pages()
373 kref_put(&encl_page->encl->refcount, sgx_encl_release); in sgx_reclaim_pages()
A Dencl.c702 struct sgx_encl *encl = container_of(ref, struct sgx_encl, refcount); in sgx_encl_release()
805 kref_put(&encl_mm->encl->refcount, sgx_encl_release); in sgx_mmu_notifier_free()
861 kref_get(&encl->refcount); in sgx_encl_mm_add()
/arch/arm64/kvm/hyp/nvhe/
A Dmem_protect.c203 p->refcount = 1; in guest_s2_zalloc_page()
308 page->refcount = 0; in reclaim_pgtable_pages()
851 if (p->refcount == 1) in hyp_pin_shared_mem()
875 if (p->refcount == 1) in hyp_unpin_shared_mem()
1206 if (p[i].refcount) in init_selftest_vm()
1208 p[i].refcount = 1; in init_selftest_vm()
1259 selftest_page->refcount = 0; in pkvm_ownership_selftest()
1362 selftest_page->refcount = 1; in pkvm_ownership_selftest()
A Dpage_alloc.c58 if (!buddy || buddy->order != order || buddy->refcount) in __find_buddy_avail()
/arch/arm64/kvm/vgic/
A Dvgic-init.c211 kref_init(&irq->refcount); in kvm_vgic_dist_init()
280 kref_init(&irq->refcount); in vgic_allocate_private_irqs_locked()
A Dvgic.h278 return kref_get_unless_zero(&irq->refcount); in vgic_try_get_irq_kref()
A Dvgic.c134 if (!kref_put(&irq->refcount, vgic_irq_release)) in vgic_put_irq()
A Dvgic-its.c102 kref_init(&irq->refcount); in vgic_add_lpi()
/arch/
A DKconfig507 # multi-threaded application), by reducing contention on the mm refcount.
510 # "lazy tlb" beyond its final refcount (i.e., by the time __mmdrop frees the mm

Completed in 36 milliseconds