Searched refs:virtio16_to_cpu (Results 1 – 9 of 9) sorted by relevance
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_ring.c | 53 i = virtio16_to_cpu(vq->vdev, desc[i].next); in virtqueue_add() 65 i = virtio16_to_cpu(vq->vdev, desc[i].next); in virtqueue_add() 118 needs_kick = vring_need_event(virtio16_to_cpu(vq->vdev, in virtqueue_kick_prepare() 143 i = virtio16_to_cpu(vq->vdev, vq->vring.desc[i].next); in detach_buf() 156 return vq->last_used_idx != virtio16_to_cpu(vq->vdev, in more_used() 321 return last_used_idx != virtio16_to_cpu(vq->vdev, vq->vring.used->idx); in virtqueue_poll()
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 333 if (vring->next_avail == virtio16_to_cpu(vdev, vr->avail->idx)) in mlxbf_tmfifo_get_next_desc() 340 head = virtio16_to_cpu(vdev, vr->avail->ring[idx]); in mlxbf_tmfifo_get_next_desc() 357 vr_idx = virtio16_to_cpu(vdev, vr->used->idx); in mlxbf_tmfifo_release_desc() 381 if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) in mlxbf_tmfifo_get_pkt_len() 383 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_get_pkt_len() 478 if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) in mlxbf_tmfifo_console_output_one() 480 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_console_output_one() 792 (virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) { in mlxbf_tmfifo_rxtx_one_desc() 793 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_rxtx_one_desc()
|
/openbmc/linux/tools/virtio/linux/ |
H A D | virtio_config.h | 69 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu() function
|
/openbmc/linux/include/linux/ |
H A D | virtio_config.h | 342 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu() function 375 __virtio16: virtio16_to_cpu((vdev), (x)), \ 551 return virtio16_to_cpu(vdev, ret); in virtio_cread16()
|
/openbmc/u-boot/include/ |
H A D | virtio.h | 514 static inline u16 virtio16_to_cpu(struct udevice *vdev, __virtio16 val) in virtio16_to_cpu() function 592 return virtio16_to_cpu(vdev, (__force __virtio16)ret); in virtio_cread16()
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_ring.c | 451 flags = virtio16_to_cpu(vq->vq.vdev, desc->flags); in vring_unmap_one_split_indirect() 539 next = virtio16_to_cpu(vq->vdev, desc[i].next); in virtqueue_add_desc_split() 721 i = virtio16_to_cpu(_vq->vdev, desc[i].next); in virtqueue_add_split() 753 needs_kick = vring_need_event(virtio16_to_cpu(_vq->vdev, in virtqueue_kick_prepare_split() 819 return vq->last_used_idx != virtio16_to_cpu(vq->vq.vdev, in more_used_split() 934 return (u16)last_used_idx != virtio16_to_cpu(_vq->vdev, in virtqueue_poll_split() 964 if (unlikely((u16)(virtio16_to_cpu(_vq->vdev, vq->split.vring.used->idx) in virtqueue_enable_cb_delayed_split()
|
H A D | virtio_mem.c | 1391 return virtio16_to_cpu(vm->vdev, vm->resp.type); in virtio_mem_send_request() 2649 return virtio16_to_cpu(vm->vdev, vm->resp.u.state.state); in virtio_mem_send_state_request()
|
/openbmc/linux/drivers/char/ |
H A D | virtio_console.c | 1579 switch (virtio16_to_cpu(vdev, cpkt->event)) { in handle_control_message() 1631 port->host_connected = virtio16_to_cpu(vdev, cpkt->value); in handle_control_message()
|
/openbmc/linux/drivers/net/ |
H A D | virtio_net.c | 1456 virtio16_to_cpu(vi->vdev, hdr->num_buffers)); in virtnet_build_xdp_buff_mrg() 1585 int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable_xdp() 1644 int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable() 1689 virtio16_to_cpu(vi->vdev, in receive_mergeable()
|