Lines Matching refs:heads
367 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
369 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
370 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
378 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
394 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
456 vhost_add_used_and_signal_n(dev, vq, vq->heads, nvq->done_idx); in vhost_net_signal_used()
849 vq->heads[nvq->done_idx].id = cpu_to_vhost32(vq, head); in handle_tx_copy()
850 vq->heads[nvq->done_idx].len = 0; in handle_tx_copy()
908 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx_zerocopy()
909 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx_zerocopy()
939 if (vq->heads[ubuf->desc].len == VHOST_DMA_IN_PROGRESS) in handle_tx_zerocopy()
945 vq->heads[ubuf->desc].len = VHOST_DMA_DONE_LEN; in handle_tx_zerocopy()
1045 struct vring_used_elem *heads, in get_rx_bufs() argument
1088 heads[headcount].id = cpu_to_vhost32(vq, d); in get_rx_bufs()
1090 heads[headcount].len = cpu_to_vhost32(vq, len); in get_rx_bufs()
1095 heads[headcount - 1].len = cpu_to_vhost32(vq, len + datalen); in get_rx_bufs()
1166 headcount = get_rx_bufs(vq, vq->heads + nvq->done_idx, in handle_rx()