Searched refs:cpu_to_virtio16 (Results 1 – 4 of 4) sorted by relevance
/linux-4.19.296/drivers/virtio/ |
D | virtio_ring.c | 255 desc[i].next = cpu_to_virtio16(_vq->vdev, i + 1); in alloc_indirect() 344 desc[i].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_NEXT); in virtqueue_add() 357 desc[i].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_NEXT | VRING_DESC_F_WRITE); in virtqueue_add() 365 desc[prev].flags &= cpu_to_virtio16(_vq->vdev, ~VRING_DESC_F_NEXT); in virtqueue_add() 375 vq->vring.desc[head].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_INDIRECT); in virtqueue_add() 400 vq->vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); in virtqueue_add() 406 vq->vring.avail->idx = cpu_to_virtio16(_vq->vdev, vq->avail_idx_shadow); in virtqueue_add() 577 needs_kick = !(vq->vring.used->flags & cpu_to_virtio16(_vq->vdev, VRING_USED_F_NO_NOTIFY)); in virtqueue_kick_prepare() 632 __virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT); in detach_buf() 647 vq->vring.desc[i].next = cpu_to_virtio16(vq->vq.vdev, vq->free_head); in detach_buf() [all …]
|
D | virtio_balloon.c | 244 vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); in update_stat()
|
/linux-4.19.296/include/linux/ |
D | virtio_config.h | 261 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function 400 val = (__force u16)cpu_to_virtio16(vdev, val); in virtio_cwrite16()
|
/linux-4.19.296/drivers/char/ |
D | virtio_console.c | 575 portdev->cpkt.event = cpu_to_virtio16(portdev->vdev, event); in __send_control_msg() 576 portdev->cpkt.value = cpu_to_virtio16(portdev->vdev, value); in __send_control_msg() 1603 cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { in handle_control_message()
|