Lines Matching refs:txkring
184 netmap_pipe_txsync(struct netmap_kring *txkring, int flags) in netmap_pipe_txsync() argument
186 struct netmap_kring *rxkring = txkring->pipe; in netmap_pipe_txsync()
187 u_int k, lim = txkring->nkr_num_slots - 1, nk; in netmap_pipe_txsync()
190 struct netmap_ring *txring = txkring->ring, *rxring = rxkring->ring; in netmap_pipe_txsync()
192 nm_prdis("%p: %s %x -> %s", txkring, txkring->name, flags, rxkring->name); in netmap_pipe_txsync()
194 txkring->nr_hwcur, txkring->nr_hwtail, in netmap_pipe_txsync()
195 txkring->rcur, txkring->rhead, txkring->rtail); in netmap_pipe_txsync()
198 txkring->nr_hwtail = txkring->pipe_tail; in netmap_pipe_txsync()
200 m = txkring->rhead - txkring->nr_hwcur; /* new slots */ in netmap_pipe_txsync()
202 m += txkring->nkr_num_slots; in netmap_pipe_txsync()
209 for (k = txkring->nr_hwcur, nk = lim + 1, complete = 0; m; in netmap_pipe_txsync()
225 txkring->nr_hwcur = k; in netmap_pipe_txsync()
228 txkring->nr_hwcur, txkring->nr_hwtail, in netmap_pipe_txsync()
229 txkring->rcur, txkring->rhead, txkring->rtail, k); in netmap_pipe_txsync()
243 struct netmap_kring *txkring = rxkring->pipe; in netmap_pipe_rxsync() local
246 struct netmap_ring *txring = txkring->ring, *rxring = rxkring->ring; in netmap_pipe_rxsync()
248 nm_prdis("%p: %s %x -> %s", txkring, txkring->name, flags, rxkring->name); in netmap_pipe_rxsync()
277 txkring->pipe_tail = nm_prev(k, lim); in netmap_pipe_rxsync()
284 txkring->nm_notify(txkring, 0); in netmap_pipe_rxsync()