Lines Matching refs:done_idx
118 int done_idx; member
310 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
367 for (i = nvq->done_idx; i != nvq->upend_idx; i = (i + 1) % UIO_MAXIOV) { in vhost_zerocopy_signal_used()
377 add = min(UIO_MAXIOV - nvq->done_idx, j); in vhost_zerocopy_signal_used()
379 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
380 nvq->done_idx = (nvq->done_idx + add) % UIO_MAXIOV; in vhost_zerocopy_signal_used()
455 if (!nvq->done_idx) in vhost_net_signal_used()
458 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
459 nvq->done_idx = 0; in vhost_net_signal_used()
490 nvq->done_idx = 0; in vhost_tx_batch()
605 return (nvq->upend_idx + UIO_MAXIOV - nvq->done_idx) % UIO_MAXIOV > in vhost_exceeds_maxpend()
790 if (nvq->done_idx == VHOST_NET_BATCH) in handle_tx_copy()
851 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
852 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
853 ++nvq->done_idx; in handle_tx_copy()
1168 headcount = get_rx_bufs(vq, vq->heads + nvq->done_idx, in handle_rx()
1243 nvq->done_idx += headcount; in handle_rx()
1244 if (nvq->done_idx > VHOST_NET_BATCH) in handle_rx()
1338 n->vqs[i].done_idx = 0; in vhost_net_open()