Lines Matching +full:0 +full:xa
97 memset(pool, 0, sizeof(*pool)); in rxe_pool_init()
107 atomic_set(&pool->num_elem, 0); in rxe_pool_init()
109 xa_init_flags(&pool->xa, XA_FLAGS_ALLOC); in rxe_pool_init()
116 WARN_ON(!xa_empty(&pool->xa)); in rxe_pool_cleanup()
141 err = xa_alloc_cyclic(&pool->xa, &elem->index, NULL, pool->limit, in __rxe_add_to_pool()
143 if (err < 0) in __rxe_add_to_pool()
146 return 0; in __rxe_add_to_pool()
156 struct xarray *xa = &pool->xa; in rxe_pool_get_index() local
160 elem = xa_load(xa, index); in rxe_pool_get_index()
180 struct xarray *xa = &pool->xa; in __rxe_cleanup() local
182 int ret, err = 0; in __rxe_cleanup()
191 xa_ret = xa_erase(xa, elem->index); in __rxe_cleanup()
254 xa_ret = xa_store(&elem->pool->xa, elem->index, elem, GFP_KERNEL); in __rxe_finalize()