Searched refs:cpu_to_virtio16 (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/virtio/ |
A D | virtio_ring.c | 490 desc[i].next = cpu_to_virtio16(_vq->vdev, i + 1); in alloc_indirect_split() 506 desc[i].flags = cpu_to_virtio16(vq->vdev, flags); in virtqueue_add_desc_split() 512 desc[i].next = cpu_to_virtio16(vq->vdev, next); in virtqueue_add_desc_split() 667 vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, in virtqueue_add_split() 730 cpu_to_virtio16(_vq->vdev, in virtqueue_kick_prepare_split() 843 cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); in virtqueue_get_buf_ctx_split() 862 cpu_to_virtio16(_vq->vdev, in virtqueue_disable_cb_split() 883 cpu_to_virtio16(_vq->vdev, in virtqueue_enable_cb_prepare_split() 916 cpu_to_virtio16(_vq->vdev, in virtqueue_enable_cb_delayed_split() 924 cpu_to_virtio16(_vq->vdev, vq->last_used_idx + bufs)); in virtqueue_enable_cb_delayed_split() [all …]
|
A D | virtio_mem.c | 1356 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_PLUG), in virtio_mem_send_plug_request() 1358 .u.plug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_plug_request() 1394 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG), in virtio_mem_send_unplug_request() 1396 .u.unplug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_unplug_request() 1427 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG_ALL), in virtio_mem_send_unplug_all_request() 2582 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_STATE), in virtio_mem_send_state_request() 2584 .u.state.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_state_request()
|
A D | virtio_balloon.c | 308 vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); in update_stat()
|
/linux-6.3-rc2/tools/virtio/linux/ |
A D | virtio_config.h | 74 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function
|
/linux-6.3-rc2/include/linux/ |
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()
|
/linux-6.3-rc2/drivers/char/ |
A D | virtio_console.c | 555 portdev->cpkt.event = cpu_to_virtio16(portdev->vdev, event); in __send_control_msg() 556 portdev->cpkt.value = cpu_to_virtio16(portdev->vdev, value); in __send_control_msg() 1571 cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { in handle_control_message()
|
/linux-6.3-rc2/drivers/platform/mellanox/ |
A D | mlxbf-tmfifo.c | 348 vr->used->idx = cpu_to_virtio16(vdev, vr_idx + 1); in mlxbf_tmfifo_release_desc()
|
/linux-6.3-rc2/drivers/net/ |
A D | virtio_net.c | 2246 vi->ctrl->mq.virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs); in _virtnet_set_queues() 2369 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_add_vid() 2384 vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_kill_vid()
|
Completed in 56 milliseconds