Searched refs:cpu_to_virtio16 (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/drivers/virtio/ |
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() 645 desc[prev].flags &= cpu_to_virtio16(_vq->vdev, ~VRING_DESC_F_NEXT); in virtqueue_add_split() 688 vq->split.vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); in virtqueue_add_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() 769 __virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT); in detach_buf_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() [all …]
|
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()
|
D | virtio_balloon.c | 308 vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); in update_stat()
|
/linux-6.6.21/tools/virtio/linux/ |
D | virtio_config.h | 74 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function
|
/linux-6.6.21/include/linux/ |
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()
|
/linux-6.6.21/drivers/char/ |
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()
|
/linux-6.6.21/drivers/platform/mellanox/ |
D | mlxbf-tmfifo.c | 368 vr->used->idx = cpu_to_virtio16(vdev, vr_idx + 1); in mlxbf_tmfifo_release_desc()
|
/linux-6.6.21/drivers/net/ |
D | virtio_net.c | 2615 vi->ctrl->mq.virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs); in _virtnet_set_queues() 2735 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_add_vid() 2750 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_kill_vid()
|