Searched refs:refcnt (Results 1 – 12 of 12) sorted by relevance
22 unsigned int refcnt; member72 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()
76 refcount_t refcnt; member158 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()
130 int refcnt; /* reference counter */ member576 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()
42 int refcnt; member390 this->refcnt++; in amd_uncore_find_online_sibling()496 if (!--uncore->refcnt) in uncore_dead()
550 cpuc->amd_nb->refcnt++; in amd_pmu_cpu_starting()565 if (nb->nb_id == -1 || --nb->refcnt == 0) in amd_pmu_cpu_dead()
653 --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()
84 int refcnt; /* reference count */ member149 int refcnt; /* per-core: #HT threads */ member174 int refcnt; /* per-core: #HT threads */ member
1053 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()
120 atomic_t refcnt; member
3753 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()
41 long refcnt; /* number of pointers to this struct */ member
184 atomic_t refcnt; member