Home
last modified time | relevance | path

Searched refs:__virtio16 (Results 1 – 25 of 25) sorted by relevance

/linux-6.3-rc2/include/uapi/linux/
A Dvirtio_mem.h108 __virtio16 nb_blocks;
109 __virtio16 padding[3];
114 __virtio16 nb_blocks;
115 __virtio16 padding[3];
120 __virtio16 nb_blocks;
121 __virtio16 padding[3];
125 __virtio16 type;
126 __virtio16 padding[3];
175 __virtio16 state;
179 __virtio16 type;
[all …]
A Dvirtio_net.h93 __virtio16 status;
98 __virtio16 max_virtqueue_pairs;
100 __virtio16 mtu;
139 __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */
143 __virtio16 csum_start;
144 __virtio16 csum_offset;
149 __virtio16 start;
151 __virtio16 offset;
161 __virtio16 num_buffers; /* Number of merged rx buffers */
191 __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */
[all …]
A Dvirtio_ring.h110 __virtio16 flags;
111 __virtio16 next;
115 __virtio16 flags;
116 __virtio16 idx;
117 __virtio16 ring[];
132 __virtio16 flags;
133 __virtio16 idx;
197 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num])
205 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) in vring_init()
211 return ((sizeof(struct vring_desc) * num + sizeof(__virtio16) * (3 + num) in vring_size()
[all …]
A Dvirtio_console.h48 __virtio16 cols;
50 __virtio16 rows;
63 __virtio16 event; /* The kind of control event (see below) */
64 __virtio16 value; /* Extra information for the key */
A Dvirtio_scsi.h69 __virtio16 status_qualifier; /* Status qualifier */
113 __virtio16 max_channel;
114 __virtio16 max_target;
A Dvirtio_blk.h69 __virtio16 cylinders;
83 __virtio16 min_io_size;
92 __virtio16 num_queues;
A Dvirtio_9p.h39 __virtio16 tag_len;
A Dvirtio_types.h42 typedef __u16 __bitwise __virtio16; typedef
A Dvirtio_balloon.h115 __virtio16 tag;
/linux-6.3-rc2/include/linux/
A Dvirtio_byteorder.h16 static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) in __virtio16_to_cpu()
24 static inline __virtio16 __cpu_to_virtio16(bool little_endian, u16 val) in __cpu_to_virtio16()
27 return (__force __virtio16)cpu_to_le16(val); in __cpu_to_virtio16()
29 return (__force __virtio16)cpu_to_be16(val); in __cpu_to_virtio16()
A Dvirtio_caif.h14 __virtio16 headroom;
15 __virtio16 tailroom;
A Dvirtio_config.h342 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu()
347 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16()
375 __virtio16: virtio16_to_cpu((vdev), (x)), \
383 __virtio16: cpu_to_virtio16((vdev), (x)), \
547 __virtio16 ret; in virtio_cread16()
557 __virtio16 v; in virtio_cwrite16()
A Dvringh.h246 static inline u16 vringh16_to_cpu(const struct vringh *vrh, __virtio16 val) in vringh16_to_cpu()
251 static inline __virtio16 cpu_to_vringh16(const struct vringh *vrh, u16 val) in cpu_to_vringh16()
/linux-6.3-rc2/drivers/vhost/
A Dvringh.c40 u16 *val, const __virtio16 *p), in __vringh_get_head()
441 __virtio16 *p, u16 val), in __vringh_complete()
490 const __virtio16 *p)) in __vringh_need_notify()
536 u16 *val, const __virtio16 *p), in __vringh_notify_enable()
538 __virtio16 *p, u16 val)) in __vringh_notify_enable()
576 __virtio16 *p, u16 val)) in __vringh_notify_disable()
591 __virtio16 v = 0; in getu16_user()
599 __virtio16 v = cpu_to_vringh16(vrh, val); in putu16_user()
866 u16 *val, const __virtio16 *p) in getu16_kern()
1211 u16 *val, const __virtio16 *p) in getu16_iotlb()
[all …]
A Dvhost.c1012 __virtio16 *idx) in vhost_get_avail_idx()
1025 __virtio16 *flags) in vhost_get_avail_flags()
1031 __virtio16 *event) in vhost_get_used_event()
1037 __virtio16 *idx) in vhost_get_used_idx()
2017 __virtio16 last_used_idx; in vhost_vq_init_access()
2220 __virtio16 avail_idx; in vhost_get_vq_desc()
2221 __virtio16 ring_head; in vhost_get_vq_desc()
2445 __virtio16 event; in vhost_notify()
2457 __virtio16 flags; in vhost_notify()
2511 __virtio16 avail_idx; in vhost_vq_avail_empty()
[all …]
A Dvhost.h295 static inline u16 vhost16_to_cpu(struct vhost_virtqueue *vq, __virtio16 val) in vhost16_to_cpu()
300 static inline __virtio16 cpu_to_vhost16(struct vhost_virtqueue *vq, u16 val) in cpu_to_vhost16()
A Dnet.c1135 __virtio16 num_buffers; in handle_rx()
/linux-6.3-rc2/tools/virtio/linux/
A Dvirtio_config.h69 static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) in virtio16_to_cpu()
74 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16()
/linux-6.3-rc2/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.h89 static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) in vdpasim16_to_cpu()
94 static inline __virtio16 cpu_to_vdpasim16(struct vdpasim *vdpasim, u16 val) in cpu_to_vdpasim16()
/linux-6.3-rc2/drivers/vdpa/alibaba/
A Deni_vdpa.c445 __virtio16 max_virtqueue_pairs; in eni_vdpa_get_num_queues()
/linux-6.3-rc2/drivers/net/
A Dtap.c86 static inline u16 tap16_to_cpu(struct tap_queue *q, __virtio16 val) in tap16_to_cpu()
91 static inline __virtio16 cpu_to_tap16(struct tap_queue *q, u16 val) in cpu_to_tap16()
A Dtun.c353 static inline u16 tun16_to_cpu(struct tun_struct *tun, __virtio16 val) in tun16_to_cpu()
358 static inline __virtio16 cpu_to_tun16(struct tun_struct *tun, u16 val) in cpu_to_tun16()
A Dvirtio_net.c204 __virtio16 vid;
/linux-6.3-rc2/drivers/vdpa/mlx5/net/
A Dmlx5_vnet.c166 static u16 mlx5vdpa16_to_cpu(struct mlx5_vdpa_dev *mvdev, __virtio16 val) in mlx5vdpa16_to_cpu()
171 static __virtio16 cpu_to_mlx5vdpa16(struct mlx5_vdpa_dev *mvdev, u16 val) in cpu_to_mlx5vdpa16()
1848 __virtio16 vlan; in handle_ctrl_vlan()
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_ring.c741 __virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT); in detach_buf_split()
998 *(__virtio16 *)&(vq->split.vring.used->ring[num]) = 0; in virtqueue_reinit_split()

Completed in 83 milliseconds