Lines Matching refs:done_idx
117 int done_idx; member
309 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
366 for (i = nvq->done_idx; i != nvq->upend_idx; i = (i + 1) % UIO_MAXIOV) { in vhost_zerocopy_signal_used()
376 add = min(UIO_MAXIOV - nvq->done_idx, j); in vhost_zerocopy_signal_used()
378 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
379 nvq->done_idx = (nvq->done_idx + add) % UIO_MAXIOV; in vhost_zerocopy_signal_used()
452 if (!nvq->done_idx) in vhost_net_signal_used()
455 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
456 nvq->done_idx = 0; in vhost_net_signal_used()
487 nvq->done_idx = 0; in vhost_tx_batch()
602 return (nvq->upend_idx + UIO_MAXIOV - nvq->done_idx) % UIO_MAXIOV > in vhost_exceeds_maxpend()
791 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()
1161 headcount = get_rx_bufs(vq, vq->heads + nvq->done_idx, in handle_rx()
1236 nvq->done_idx += headcount; in handle_rx()
1237 if (nvq->done_idx > VHOST_NET_BATCH) in handle_rx()
1331 n->vqs[i].done_idx = 0; in vhost_net_open()