Home
last modified time | relevance | path

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

/arch/sparc/kernel/
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()
Dmdesc.c76 refcount_t refcnt; member
158 refcount_set(&hp->refcnt, 1); in mdesc_handle_init()
188 BUG_ON(refcount_read(&hp->refcnt) != 0); in mdesc_memblock_free()
226 BUG_ON(refcount_read(&hp->refcnt) != 0); in mdesc_kfree()
265 refcount_inc(&hp->refcnt); in mdesc_grab()
277 if (refcount_dec_and_test(&hp->refcnt)) { in mdesc_release()
521 refcount_dec(&hp->refcnt); in mdesc_update()
534 if (refcount_dec_and_test(&orig_hp->refcnt)) in mdesc_update()
/arch/ia64/kernel/
Diosapic.c130 int refcnt; /* reference counter */ member
576 rte->refcnt++; in register_intr()
581 else if (rte->refcnt == NO_REF_RTE) { in register_intr()
590 rte->refcnt++; in register_intr()
734 } else if (rte->refcnt != NO_REF_RTE) { in iosapic_register_intr()
735 rte->refcnt++; in iosapic_register_intr()
810 if (--rte->refcnt > 0) in iosapic_unregister_intr()
813 rte->refcnt = NO_REF_RTE; in iosapic_unregister_intr()
1016 if (rte->refcnt) in iosapic_delete_rte()
/arch/x86/events/amd/
Duncore.c42 int refcnt; member
390 this->refcnt++; in amd_uncore_find_online_sibling()
496 if (!--uncore->refcnt) in uncore_dead()
Dcore.c550 cpuc->amd_nb->refcnt++; in amd_pmu_cpu_starting()
565 if (nb->nb_id == -1 || --nb->refcnt == 0) in amd_pmu_cpu_dead()
/arch/powerpc/kvm/
Dbook3s_hv_nested.c653 --gp->refcnt; in kvmhv_remove_nested()
655 ref = gp->refcnt; in kvmhv_remove_nested()
681 if (--gp->refcnt == 0) { in kvmhv_release_all_nested()
725 ++gp->refcnt; in kvmhv_get_nested()
740 ++newgp->refcnt; in kvmhv_get_nested()
746 ++gp->refcnt; in kvmhv_get_nested()
761 ref = --gp->refcnt; in kvmhv_put_nested()
/arch/x86/events/
Dperf_event.h84 int refcnt; /* reference count */ member
149 int refcnt; /* per-core: #HT threads */ member
174 int refcnt; /* per-core: #HT threads */ member
/arch/x86/events/intel/
Duncore.c1053 atomic_inc(&box->refcnt); in uncore_pci_probe()
1206 if (box && atomic_dec_return(&box->refcnt) == 0) in uncore_box_unref()
1296 if (box && atomic_inc_return(&box->refcnt) == 1) in uncore_box_ref()
Duncore.h120 atomic_t refcnt; member
Dcore.c3753 cpuc->shared_regs->refcnt++; in intel_pmu_cpu_starting()
3775 cpuc->excl_cntrs->refcnt++; in intel_pmu_cpu_starting()
3785 if (c->core_id == -1 || --c->refcnt == 0) in free_excl_cntrs()
3808 if (pc->core_id == -1 || --pc->refcnt == 0) in intel_cpuc_finish()
/arch/powerpc/include/asm/
Dkvm_book3s_64.h41 long refcnt; /* number of pointers to this struct */ member
Dkvm_host.h184 atomic_t refcnt; member