Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/platform/mellanox/
Dmlxbf-tmfifo.c333 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()
/linux-6.6.21/tools/virtio/linux/
Dvirtio_config.h69 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu() function
/linux-6.6.21/include/linux/
Dvirtio_config.h342 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()
/linux-6.6.21/drivers/virtio/
Dvirtio_ring.c451 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()
Dvirtio_mem.c1391 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()
/linux-6.6.21/drivers/char/
Dvirtio_console.c1579 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()
/linux-6.6.21/drivers/net/
Dvirtio_net.c1447 virtio16_to_cpu(vi->vdev, hdr->num_buffers)); in virtnet_build_xdp_buff_mrg()
1572 int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable_xdp()
1631 int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable()
1676 virtio16_to_cpu(vi->vdev, in receive_mergeable()