Searched refs:cpu_to_virtio16 (Results 1 – 8 of 8) sorted by relevance
/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() 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 …]
|
H A D | virtio_mem.c | 1422 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_PLUG), in virtio_mem_send_plug_request() 1424 .u.plug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_plug_request() 1460 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG), in virtio_mem_send_unplug_request() 1462 .u.unplug.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_unplug_request() 1493 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_UNPLUG_ALL), in virtio_mem_send_unplug_all_request() 2669 .type = cpu_to_virtio16(vm->vdev, VIRTIO_MEM_REQ_STATE), in virtio_mem_send_state_request() 2671 .u.state.nb_blocks = cpu_to_virtio16(vm->vdev, nb_vm_blocks), in virtio_mem_send_state_request()
|
H A D | virtio_balloon.c | 346 vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); in update_stat()
|
/linux/include/linux/ |
H A D | virtio_config.h | 349 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function 385 __virtio16: cpu_to_virtio16((vdev), (x)), \ 562 v = cpu_to_virtio16(vdev, val); in virtio_cwrite16()
|
/linux/tools/virtio/linux/ |
H A D | virtio_config.h | 76 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16() function
|
/linux/drivers/char/ |
H A D | virtio_console.c | 553 portdev->cpkt.event = cpu_to_virtio16(portdev->vdev, event); in __send_control_msg() 554 portdev->cpkt.value = cpu_to_virtio16(portdev->vdev, value); in __send_control_msg() 1539 cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { in handle_control_message()
|
/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()
|
/linux/drivers/net/ |
H A D | virtio_net.c | 3454 mq->virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs); in virtnet_set_queues() 3608 *_vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_add_vid() 3628 *_vid = cpu_to_virtio16(vi->vdev, vid); in virtnet_vlan_rx_kill_vid()
|