Searched refs:cpu_to_virtio16 (Results 1 – 2 of 2) sorted by relevance
/u-boot/drivers/virtio/ |
A D | virtio_ring.c | 51 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT); in virtqueue_add() 61 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT | in virtqueue_add() 71 desc[prev].flags &= cpu_to_virtio16(vq->vdev, ~VRING_DESC_F_NEXT); in virtqueue_add() 84 vq->vring.avail->ring[avail] = cpu_to_virtio16(vq->vdev, head); in virtqueue_add() 92 vq->vring.avail->idx = cpu_to_virtio16(vq->vdev, vq->avail_idx_shadow); in virtqueue_add() 124 needs_kick = !(vq->vring.used->flags & cpu_to_virtio16(vq->vdev, in virtqueue_kick_prepare() 140 __virtio16 nextflag = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT); in detach_buf() 150 vq->vring.desc[i].next = cpu_to_virtio16(vq->vdev, vq->free_head); in detach_buf() 201 cpu_to_virtio16(vq->vdev, vq->last_used_idx)); in virtqueue_get_buf() 235 vq->vring.avail->flags = cpu_to_virtio16(vdev, in __vring_new_virtqueue() [all …]
|
/u-boot/include/ |
A D | virtio.h | 523 static inline __virtio16 cpu_to_virtio16(struct udevice *vdev, u16 val) in cpu_to_virtio16() function 602 val = (__force u16)cpu_to_virtio16(vdev, val); in virtio_cwrite16()
|
Completed in 4 milliseconds