Searched refs:cpu_to_virtio16 (Results 1 – 10 of 10) sorted by relevance
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_ring.c | 48 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT); in virtqueue_add() 58 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT | in virtqueue_add() 68 desc[prev].flags &= cpu_to_virtio16(vq->vdev, ~VRING_DESC_F_NEXT); in virtqueue_add() 81 vq->vring.avail->ring[avail] = cpu_to_virtio16(vq->vdev, head); in virtqueue_add() 89 vq->vring.avail->idx = cpu_to_virtio16(vq->vdev, vq->avail_idx_shadow); in virtqueue_add() 121 needs_kick = !(vq->vring.used->flags & cpu_to_virtio16(vq->vdev, in virtqueue_kick_prepare() 137 __virtio16 nextflag = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT); in detach_buf() 147 vq->vring.desc[i].next = cpu_to_virtio16(vq->vdev, vq->free_head); in detach_buf() 198 cpu_to_virtio16(vq->vdev, vq->last_used_idx)); in virtqueue_get_buf() 232 vq->vring.avail->flags = cpu_to_virtio16(vdev, in __vring_new_virtqueue() [all …]
|
/openbmc/linux/tools/virtio/linux/ |
H A D | virtio_config.h | 74 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_ring.c | 511 desc[i].next = cpu_to_virtio16(_vq->vdev, i + 1); in alloc_indirect_split() 527 desc[i].flags = cpu_to_virtio16(vq->vdev, flags); in virtqueue_add_desc_split() 533 desc[i].next = cpu_to_virtio16(vq->vdev, next); in virtqueue_add_desc_split() 694 vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, in virtqueue_add_split() 758 cpu_to_virtio16(_vq->vdev, in virtqueue_kick_prepare_split() 873 cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); in virtqueue_get_buf_ctx_split() 900 cpu_to_virtio16(_vq->vdev, in virtqueue_disable_cb_split() 921 cpu_to_virtio16(_vq->vdev, in virtqueue_enable_cb_prepare_split() 954 cpu_to_virtio16(_vq->vdev, in virtqueue_enable_cb_delayed_split() 962 cpu_to_virtio16(_vq->vdev, vq->last_used_idx + bufs)); in virtqueue_enable_cb_delayed_split() [all …]
|
H A D | virtio_mem.c | 1399 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_PLUG), in virtio_mem_send_plug_request() 1401 .u.plug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_plug_request() 1437 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG), in virtio_mem_send_unplug_request() 1439 .u.unplug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_unplug_request() 1470 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG_ALL), in virtio_mem_send_unplug_all_request() 2638 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_STATE), in virtio_mem_send_state_request() 2640 .u.state.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_state_request()
|
H A D | virtio_balloon.c | 308 vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); in update_stat()
|
/openbmc/linux/include/linux/ |
H A D | virtio_config.h | 347 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function 383 __virtio16: cpu_to_virtio16((vdev), (x)), \ 560 v = cpu_to_virtio16(vdev, val); in virtio_cwrite16()
|
/openbmc/u-boot/include/ |
H A D | virtio.h | 519 static inline __virtio16 cpu_to_virtio16(struct udevice *vdev, u16 val) in cpu_to_virtio16() function 598 val = (__force u16)cpu_to_virtio16(vdev, val); in virtio_cwrite16()
|
/openbmc/linux/drivers/char/ |
H A D | virtio_console.c | 556 portdev->cpkt.event = cpu_to_virtio16(portdev->vdev, event); in __send_control_msg() 557 portdev->cpkt.value = cpu_to_virtio16(portdev->vdev, value); in __send_control_msg() 1572 cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { in handle_control_message()
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 368 vr->used->idx = cpu_to_virtio16(vdev, vr_idx + 1); in mlxbf_tmfifo_release_desc()
|
/openbmc/linux/drivers/net/ |
H A D | virtio_net.c | 2639 vi->ctrl->mq.virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs); in _virtnet_set_queues() 2759 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_add_vid() 2774 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_kill_vid()
|