Lines Matching refs:done_idx
118 int done_idx; member
302 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
354 for (i = nvq->done_idx; i != nvq->upend_idx; i = (i + 1) % UIO_MAXIOV) { in vhost_zerocopy_signal_used()
364 add = min(UIO_MAXIOV - nvq->done_idx, j); in vhost_zerocopy_signal_used()
366 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
367 nvq->done_idx = (nvq->done_idx + add) % UIO_MAXIOV; in vhost_zerocopy_signal_used()
440 if (!nvq->done_idx) in vhost_net_signal_used()
443 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
444 nvq->done_idx = 0; in vhost_net_signal_used()
484 return (nvq->upend_idx + UIO_MAXIOV - nvq->done_idx) % UIO_MAXIOV > in vhost_exceeds_maxpend()
580 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
581 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
599 if (++nvq->done_idx >= VHOST_NET_BATCH) in handle_tx_copy()
948 headcount = get_rx_bufs(vq, vq->heads + nvq->done_idx, in handle_rx()
1023 nvq->done_idx += headcount; in handle_rx()
1024 if (nvq->done_idx > VHOST_NET_BATCH) in handle_rx()
1110 n->vqs[i].done_idx = 0; in vhost_net_open()