Lines Matching refs:comp
70 struct xsk_ring_cons *comp; member
165 struct xsk_ring_cons *comp) in xsk_create_umem_rings() argument
209 comp->mask = umem->config.comp_size - 1; in xsk_create_umem_rings()
210 comp->size = umem->config.comp_size; in xsk_create_umem_rings()
211 comp->producer = map + off.cr.producer; in xsk_create_umem_rings()
212 comp->consumer = map + off.cr.consumer; in xsk_create_umem_rings()
213 comp->flags = map + off.cr.flags; in xsk_create_umem_rings()
214 comp->ring = map + off.cr.desc; in xsk_create_umem_rings()
225 struct xsk_ring_cons *comp, in xsk_umem__create() argument
232 if (!umem_area || !umem_ptr || !fill || !comp) in xsk_umem__create()
265 err = xsk_create_umem_rings(umem, umem->fd, fill, comp); in xsk_umem__create()
270 umem->comp_save = comp; in xsk_umem__create()
494 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size * in xsk_put_ctx()
506 struct xsk_ring_cons *comp) in xsk_create_ctx() argument
516 err = xsk_create_umem_rings(umem, xsk->fd, fill, comp); in xsk_create_ctx()
521 } else if (umem->fill_save != fill || umem->comp_save != comp) { in xsk_create_ctx()
524 memcpy(comp, umem->comp_save, sizeof(*comp)); in xsk_create_ctx()
533 ctx->comp = comp; in xsk_create_ctx()
544 struct xsk_ring_cons *comp, in xsk_socket__create_shared() argument
582 if (!fill || !comp) { in xsk_socket__create_shared()
587 ctx = xsk_create_ctx(xsk, umem, ifindex, queue_id, fill, comp); in xsk_socket__create_shared()