Home
last modified time | relevance | path

Searched refs:cpu_to_vhost16 (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/vhost/
Dvhost.c1120 if (__put_user(cpu_to_vhost16(vq, vq->used_flags), &vq->used->flags) < 0) in vhost_update_used_flags()
1138 if (__put_user(cpu_to_vhost16(vq, vq->avail_idx), vhost_avail_event(vq))) in vhost_update_avail_event()
1222 if (!(desc->flags & cpu_to_vhost16(vq, VRING_DESC_F_NEXT))) in next_desc()
1291 if (unlikely(desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_INDIRECT))) { in get_indirect()
1306 if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_WRITE)) { in get_indirect()
1413 if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_INDIRECT)) { in vhost_get_vq_desc()
1433 if (desc.flags & cpu_to_vhost16(vq, VRING_DESC_F_WRITE)) { in vhost_get_vq_desc()
1547 if (__put_user(cpu_to_vhost16(vq, vq->last_used_idx), &vq->used->idx)) { in vhost_add_used_n()
1583 return !(flags & cpu_to_vhost16(vq, VRING_AVAIL_F_NO_INTERRUPT)); in vhost_notify()
Dvhost.h204 static inline __virtio16 cpu_to_vhost16(struct vhost_virtqueue *vq, u16 val) in cpu_to_vhost16() function
Dnet.c621 num_buffers = cpu_to_vhost16(vq, headcount); in handle_rx()