Lines Matching refs:heads
248 if (vq->heads[i].len == VHOST_DMA_FAILED_LEN) in vhost_zerocopy_signal_used()
250 if (VHOST_DMA_IS_DONE(vq->heads[i].len)) { in vhost_zerocopy_signal_used()
251 vq->heads[i].len = VHOST_DMA_CLEAR_LEN; in vhost_zerocopy_signal_used()
259 &vq->heads[nvq->done_idx], add); in vhost_zerocopy_signal_used()
274 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
443 vq->heads[nvq->upend_idx].id = cpu_to_vhost32(vq, head); in handle_tx()
444 vq->heads[nvq->upend_idx].len = VHOST_DMA_IN_PROGRESS; in handle_tx()
566 struct vring_used_elem *heads, in get_rx_bufs() argument
609 heads[headcount].id = cpu_to_vhost32(vq, d); in get_rx_bufs()
611 heads[headcount].len = cpu_to_vhost32(vq, len); in get_rx_bufs()
616 heads[headcount - 1].len = cpu_to_vhost32(vq, len + datalen); in get_rx_bufs()
681 headcount = get_rx_bufs(vq, vq->heads, vhost_len, in handle_rx()
751 vhost_add_used_and_signal_n(&net->dev, vq, vq->heads, in handle_rx()