Lines Matching defs:comp
70 struct xsk_ring_cons *comp;
163 struct xsk_ring_cons *comp)
207 comp->mask = umem->config.comp_size - 1;
208 comp->size = umem->config.comp_size;
209 comp->producer = map + off.cr.producer;
210 comp->consumer = map + off.cr.consumer;
211 comp->flags = map + off.cr.flags;
212 comp->ring = map + off.cr.desc;
223 struct xsk_ring_cons *comp,
230 if (!umem_area || !umem_ptr || !fill || !comp)
262 err = xsk_create_umem_rings(umem, umem->fd, fill, comp);
267 umem->comp_save = comp;
492 munmap(ctx->comp->ring - off.cr.desc, off.cr.desc + umem->config.comp_size *
504 struct xsk_ring_cons *comp)
514 err = xsk_create_umem_rings(umem, xsk->fd, fill, comp);
519 } else if (umem->fill_save != fill || umem->comp_save != comp) {
522 memcpy(comp, umem->comp_save, sizeof(*comp));
531 ctx->comp = comp;
542 struct xsk_ring_cons *comp,
580 if (!fill || !comp) {
585 ctx = xsk_create_ctx(xsk, umem, ifindex, queue_id, fill, comp);