Lines Matching refs:done_idx
118 int done_idx; member
308 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
365 for (i = nvq->done_idx; i != nvq->upend_idx; i = (i + 1) % UIO_MAXIOV) { in vhost_zerocopy_signal_used()
375 add = min(UIO_MAXIOV - nvq->done_idx, j); in vhost_zerocopy_signal_used()
377 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
378 nvq->done_idx = (nvq->done_idx + add) % UIO_MAXIOV; in vhost_zerocopy_signal_used()
457 if (!nvq->done_idx) in vhost_net_signal_used()
460 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
461 nvq->done_idx = 0; in vhost_net_signal_used()
492 nvq->done_idx = 0; in vhost_tx_batch()
607 return (nvq->upend_idx + UIO_MAXIOV - nvq->done_idx) % UIO_MAXIOV > in vhost_exceeds_maxpend()
762 if (nvq->done_idx == VHOST_NET_BATCH) in handle_tx_copy()
823 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
824 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
825 ++nvq->done_idx; in handle_tx_copy()
1140 headcount = get_rx_bufs(vq, vq->heads + nvq->done_idx, in handle_rx()
1215 nvq->done_idx += headcount; in handle_rx()
1216 if (nvq->done_idx > VHOST_NET_BATCH) in handle_rx()
1310 n->vqs[i].done_idx = 0; in vhost_net_open()