Searched refs:pai_root (Results 1 – 1 of 1) sorted by relevance
68 static struct pai_root { /* Anchor to per CPU data */ struct71 } pai_root[PAI_PMU_MAX]; argument98 if (refcount_dec_and_test(&pai_root[idx].refcnt)) { in pai_root_free()99 free_percpu(pai_root[idx].mapptr); in pai_root_free()100 pai_root[idx].mapptr = NULL; in pai_root_free()103 idx, refcount_read(&pai_root[idx].refcnt)); in pai_root_free()114 if (!refcount_inc_not_zero(&pai_root[idx].refcnt)) { in pai_root_alloc()116 pai_root[idx].mapptr = alloc_percpu(struct pai_mapptr); in pai_root_alloc()117 if (!pai_root[idx].mapptr) in pai_root_alloc()119 refcount_set(&pai_root[idx].refcnt, 1); in pai_root_alloc()[all …]