Lines Matching refs:xa
58 const struct xdp_mem_allocator *xa = ptr; in xdp_mem_id_cmp() local
61 return xa->mem.id != mem_id; in xdp_mem_id_cmp()
78 struct xdp_mem_allocator *xa; in __xdp_mem_allocator_rcu_free() local
80 xa = container_of(rcu, struct xdp_mem_allocator, rcu); in __xdp_mem_allocator_rcu_free()
83 ida_simple_remove(&mem_id_pool, xa->mem.id); in __xdp_mem_allocator_rcu_free()
90 xa->mem.id = 0xFFFF; in __xdp_mem_allocator_rcu_free()
91 xa->mem.type = 0xF0F0; in __xdp_mem_allocator_rcu_free()
92 xa->allocator = (void *)0xDEAD9001; in __xdp_mem_allocator_rcu_free()
94 kfree(xa); in __xdp_mem_allocator_rcu_free()
99 struct xdp_mem_allocator *xa; in __xdp_rxq_info_unreg_mem_model() local
107 xa = rhashtable_lookup_fast(mem_id_ht, &id, mem_id_rht_params); in __xdp_rxq_info_unreg_mem_model()
108 if (xa && !rhashtable_remove_fast(mem_id_ht, &xa->node, mem_id_rht_params)) in __xdp_rxq_info_unreg_mem_model()
109 call_rcu(&xa->rcu, __xdp_mem_allocator_rcu_free); in __xdp_rxq_info_unreg_mem_model()
316 struct xdp_mem_allocator *xa; in __xdp_return() local
323 xa = rhashtable_lookup(mem_id_ht, &mem->id, mem_id_rht_params); in __xdp_return()
325 if (xa) { in __xdp_return()
327 page_pool_put_page(xa->page_pool, page, napi_direct); in __xdp_return()
344 xa = rhashtable_lookup(mem_id_ht, &mem->id, mem_id_rht_params); in __xdp_return()
345 xa->zc_alloc->free(xa->zc_alloc, handle); in __xdp_return()