Lines Matching refs:xdp_alloc
274 struct xdp_mem_allocator *xdp_alloc; in __xdp_reg_mem_model() local
301 xdp_alloc = kzalloc(sizeof(*xdp_alloc), gfp); in __xdp_reg_mem_model()
302 if (!xdp_alloc) in __xdp_reg_mem_model()
312 xdp_alloc->mem = *mem; in __xdp_reg_mem_model()
313 xdp_alloc->allocator = allocator; in __xdp_reg_mem_model()
316 ptr = rhashtable_insert_slow(mem_id_ht, &id, &xdp_alloc->node); in __xdp_reg_mem_model()
329 return xdp_alloc; in __xdp_reg_mem_model()
332 kfree(xdp_alloc); in __xdp_reg_mem_model()
339 struct xdp_mem_allocator *xdp_alloc; in xdp_reg_mem_model() local
341 xdp_alloc = __xdp_reg_mem_model(mem, type, allocator); in xdp_reg_mem_model()
342 if (IS_ERR(xdp_alloc)) in xdp_reg_mem_model()
343 return PTR_ERR(xdp_alloc); in xdp_reg_mem_model()
351 struct xdp_mem_allocator *xdp_alloc; in xdp_rxq_info_reg_mem_model() local
358 xdp_alloc = __xdp_reg_mem_model(&xdp_rxq->mem, type, allocator); in xdp_rxq_info_reg_mem_model()
359 if (IS_ERR(xdp_alloc)) in xdp_rxq_info_reg_mem_model()
360 return PTR_ERR(xdp_alloc); in xdp_rxq_info_reg_mem_model()
362 if (trace_mem_connect_enabled() && xdp_alloc) in xdp_rxq_info_reg_mem_model()
363 trace_mem_connect(xdp_alloc, xdp_rxq); in xdp_rxq_info_reg_mem_model()