Lines Matching refs:pos
478 u32 umem_fq_size, pos = 0; in port_init() local
514 xsk_ring_prod__reserve(&p->umem_fq, umem_fq_size, &pos); in port_init()
517 *xsk_ring_prod__fill_addr(&p->umem_fq, pos + i) = in port_init()
529 u32 n_pkts, pos, i; in port_rx_burst() local
539 n_pkts = xsk_ring_cons__peek(&p->rxq, n_pkts, &pos); in port_rx_burst()
553 b->addr[i] = xsk_ring_cons__rx_desc(&p->rxq, pos + i)->addr; in port_rx_burst()
554 b->len[i] = xsk_ring_cons__rx_desc(&p->rxq, pos + i)->len; in port_rx_burst()
564 status = xsk_ring_prod__reserve(&p->umem_fq, n_pkts, &pos); in port_rx_burst()
579 *xsk_ring_prod__fill_addr(&p->umem_fq, pos + i) = in port_rx_burst()
590 u32 n_pkts, pos, i; in port_tx_burst() local
596 n_pkts = xsk_ring_cons__peek(&p->umem_cq, n_pkts, &pos); in port_tx_burst()
599 u64 addr = *xsk_ring_cons__comp_addr(&p->umem_cq, pos + i); in port_tx_burst()
610 status = xsk_ring_prod__reserve(&p->txq, n_pkts, &pos); in port_tx_burst()
620 xsk_ring_prod__tx_desc(&p->txq, pos + i)->addr = b->addr[i]; in port_tx_burst()
621 xsk_ring_prod__tx_desc(&p->txq, pos + i)->len = b->len[i]; in port_tx_burst()