Home
last modified time | relevance | path

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

/linux-6.6.21/include/uapi/linux/
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 …]
Dvirtio_net.h95 __virtio16 status;
100 __virtio16 max_virtqueue_pairs;
102 __virtio16 mtu;
141 __virtio16 hdr_len; /* Ethernet + IP + tcp/udp hdrs */
142 __virtio16 gso_size; /* Bytes to append to hdr_len per frame */
145 __virtio16 csum_start;
146 __virtio16 csum_offset;
151 __virtio16 start;
153 __virtio16 offset;
163 __virtio16 num_buffers; /* Number of merged rx buffers */
[all …]
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 …]
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 */
Dvirtio_scsi.h69 __virtio16 status_qualifier; /* Status qualifier */
113 __virtio16 max_channel;
114 __virtio16 max_target;
Dvirtio_blk.h69 __virtio16 cylinders;
83 __virtio16 min_io_size;
92 __virtio16 num_queues;
Dvirtio_9p.h39 __virtio16 tag_len;
Dvirtio_types.h42 typedef __u16 __bitwise __virtio16; typedef
Dvirtio_balloon.h115 __virtio16 tag;
/linux-6.6.21/include/linux/
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()
Dvirtio_caif.h14 __virtio16 headroom;
15 __virtio16 tailroom;
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()
Dvringh.h262 static inline u16 vringh16_to_cpu(const struct vringh *vrh, __virtio16 val) in vringh16_to_cpu()
267 static inline __virtio16 cpu_to_vringh16(const struct vringh *vrh, u16 val) in cpu_to_vringh16()
/linux-6.6.21/drivers/vhost/
Dvringh.c40 u16 *val, const __virtio16 *p), in __vringh_get_head()
451 __virtio16 *p, u16 val), in __vringh_complete()
500 const __virtio16 *p)) in __vringh_need_notify()
546 u16 *val, const __virtio16 *p), in __vringh_notify_enable()
548 __virtio16 *p, u16 val)) in __vringh_notify_enable()
586 __virtio16 *p, u16 val)) in __vringh_notify_disable()
599 static inline int getu16_user(const struct vringh *vrh, u16 *val, const __virtio16 *p) in getu16_user()
601 __virtio16 v = 0; in getu16_user()
602 int rc = get_user(v, (__force __virtio16 __user *)p); in getu16_user()
607 static inline int putu16_user(const struct vringh *vrh, __virtio16 *p, u16 val) in putu16_user()
[all …]
Dvhost.c49 #define vhost_used_event(vq) ((__virtio16 __user *)&vq->avail->ring[vq->num])
50 #define vhost_avail_event(vq) ((__virtio16 __user *)&vq->used->ring[vq->num])
1294 __virtio16 *idx) in vhost_get_avail_idx()
1300 __virtio16 *head, int idx) in vhost_get_avail_head()
1307 __virtio16 *flags) in vhost_get_avail_flags()
1313 __virtio16 *event) in vhost_get_used_event()
1319 __virtio16 *idx) in vhost_get_used_idx()
2299 __virtio16 last_used_idx; in vhost_vq_init_access()
2502 __virtio16 avail_idx; in vhost_get_vq_desc()
2503 __virtio16 ring_head; in vhost_get_vq_desc()
[all …]
Dvhost.h314 static inline u16 vhost16_to_cpu(struct vhost_virtqueue *vq, __virtio16 val) in vhost16_to_cpu()
319 static inline __virtio16 cpu_to_vhost16(struct vhost_virtqueue *vq, u16 val) in cpu_to_vhost16()
Dnet.c1140 __virtio16 num_buffers; in handle_rx()
/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()
74 static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) in cpu_to_virtio16()
/linux-6.6.21/drivers/vdpa/vdpa_sim/
Dvdpa_sim.h91 static inline u16 vdpasim16_to_cpu(struct vdpasim *vdpasim, __virtio16 val) in vdpasim16_to_cpu()
96 static inline __virtio16 cpu_to_vdpasim16(struct vdpasim *vdpasim, u16 val) in cpu_to_vdpasim16()
/linux-6.6.21/drivers/vdpa/alibaba/
Deni_vdpa.c445 __virtio16 max_virtqueue_pairs; in eni_vdpa_get_num_queues()
/linux-6.6.21/drivers/net/
Dtap.c88 static inline u16 tap16_to_cpu(struct tap_queue *q, __virtio16 val) in tap16_to_cpu()
93 static inline __virtio16 cpu_to_tap16(struct tap_queue *q, u16 val) in cpu_to_tap16()
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()
Dvirtio_net.c229 __virtio16 vid;
/linux-6.6.21/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c168 static u16 mlx5vdpa16_to_cpu(struct mlx5_vdpa_dev *mvdev, __virtio16 val) in mlx5vdpa16_to_cpu()
173 static __virtio16 cpu_to_mlx5vdpa16(struct mlx5_vdpa_dev *mvdev, u16 val) in cpu_to_mlx5vdpa16()
1978 __virtio16 vlan; in handle_ctrl_vlan()
/linux-6.6.21/drivers/virtio/
Dvirtio_ring.c769 __virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT); in detach_buf_split()
1036 *(__virtio16 *)&(vq->split.vring.used->ring[num]) = 0; in virtqueue_reinit_split()