/linux-6.6.21/include/uapi/linux/ |
D | virtio_mem.h | 108 __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 …]
|
D | virtio_net.h | 95 __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 …]
|
D | virtio_ring.h | 110 __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 …]
|
D | virtio_console.h | 48 __virtio16 cols; 50 __virtio16 rows; 63 __virtio16 event; /* The kind of control event (see below) */ 64 __virtio16 value; /* Extra information for the key */
|
D | virtio_scsi.h | 69 __virtio16 status_qualifier; /* Status qualifier */ 113 __virtio16 max_channel; 114 __virtio16 max_target;
|
D | virtio_blk.h | 69 __virtio16 cylinders; 83 __virtio16 min_io_size; 92 __virtio16 num_queues;
|
D | virtio_9p.h | 39 __virtio16 tag_len;
|
D | virtio_types.h | 42 typedef __u16 __bitwise __virtio16; typedef
|
D | virtio_balloon.h | 115 __virtio16 tag;
|
/linux-6.6.21/include/linux/ |
D | virtio_byteorder.h | 16 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()
|
D | virtio_caif.h | 14 __virtio16 headroom; 15 __virtio16 tailroom;
|
D | virtio_config.h | 342 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()
|
D | vringh.h | 262 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/ |
D | vringh.c | 40 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 …]
|
D | vhost.c | 49 #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 …]
|
D | vhost.h | 314 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()
|
D | net.c | 1140 __virtio16 num_buffers; in handle_rx()
|
/linux-6.6.21/tools/virtio/linux/ |
D | virtio_config.h | 69 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/ |
D | vdpa_sim.h | 91 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/ |
D | eni_vdpa.c | 445 __virtio16 max_virtqueue_pairs; in eni_vdpa_get_num_queues()
|
/linux-6.6.21/drivers/net/ |
D | tap.c | 88 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()
|
D | tun.c | 353 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()
|
D | virtio_net.c | 229 __virtio16 vid;
|
/linux-6.6.21/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 168 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/ |
D | virtio_ring.c | 769 __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()
|