Home
last modified time | relevance | path

Searched refs:virtio16_to_cpu (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/platform/mellanox/
Dmlxbf-tmfifo.c294 if (vring->next_avail == virtio16_to_cpu(vdev, vr->avail->idx)) in mlxbf_tmfifo_get_next_desc()
298 head = virtio16_to_cpu(vdev, vr->avail->ring[idx]); in mlxbf_tmfifo_get_next_desc()
315 vr_idx = virtio16_to_cpu(vdev, vr->used->idx); in mlxbf_tmfifo_release_desc()
339 if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) in mlxbf_tmfifo_get_pkt_len()
341 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_get_pkt_len()
436 if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) in mlxbf_tmfifo_console_output_one()
438 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_console_output_one()
725 (virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) { in mlxbf_tmfifo_rxtx_one_desc()
726 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_rxtx_one_desc()
/Linux-v5.10/tools/virtio/linux/
Dvirtio_config.h64 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu() function
/Linux-v5.10/include/linux/
Dvirtio_config.h278 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu() function
311 __virtio16: virtio16_to_cpu((vdev), (x)), \
487 return virtio16_to_cpu(vdev, ret); in virtio_cread16()
/Linux-v5.10/drivers/virtio/
Dvirtio_ring.c375 flags = virtio16_to_cpu(vq->vq.vdev, desc->flags); in vring_unmap_one_split()
491 i = virtio16_to_cpu(_vq->vdev, desc[i].next); in virtqueue_add_split()
504 i = virtio16_to_cpu(_vq->vdev, desc[i].next); in virtqueue_add_split()
532 vq->free_head = virtio16_to_cpu(_vq->vdev, in virtqueue_add_split()
579 i = virtio16_to_cpu(_vq->vdev, desc[i].next); in virtqueue_add_split()
608 needs_kick = vring_need_event(virtio16_to_cpu(_vq->vdev, in virtqueue_kick_prepare_split()
634 i = virtio16_to_cpu(vq->vq.vdev, vq->split.vring.desc[i].next); in detach_buf_split()
674 return vq->last_used_idx != virtio16_to_cpu(vq->vq.vdev, in more_used_split()
778 return (u16)last_used_idx != virtio16_to_cpu(_vq->vdev, in virtqueue_poll_split()
808 if (unlikely((u16)(virtio16_to_cpu(_vq->vdev, vq->split.vring.used->idx) in virtqueue_enable_cb_delayed_split()
Dvirtio_mem.c861 return virtio16_to_cpu(vm->vdev, vm->resp.type); in virtio_mem_send_request()
/Linux-v5.10/drivers/rpmsg/
Dvirtio_rpmsg_bus.c713 unsigned int msg_len = virtio16_to_cpu(vrp->vdev, msg->len); in rpmsg_recv_single()
719 virtio16_to_cpu(vrp->vdev, msg->flags), in rpmsg_recv_single()
/Linux-v5.10/drivers/char/
Dvirtio_console.c1584 switch (virtio16_to_cpu(vdev, cpkt->event)) { in handle_control_message()
1636 port->host_connected = virtio16_to_cpu(vdev, cpkt->value); in handle_control_message()
/Linux-v5.10/drivers/net/
Dvirtio_net.c801 u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable()
962 virtio16_to_cpu(vi->vdev, in receive_mergeable()