/linux-6.3-rc2/include/uapi/linux/ |
A 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 …]
|
A D | virtio_net.h | 93 __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 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 …]
|
A 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 */
|
A D | virtio_scsi.h | 69 __virtio16 status_qualifier; /* Status qualifier */ 113 __virtio16 max_channel; 114 __virtio16 max_target;
|
A D | virtio_blk.h | 69 __virtio16 cylinders; 83 __virtio16 min_io_size; 92 __virtio16 num_queues;
|
A D | virtio_9p.h | 39 __virtio16 tag_len;
|
A D | virtio_types.h | 42 typedef __u16 __bitwise __virtio16; typedef
|
A D | virtio_balloon.h | 115 __virtio16 tag;
|
/linux-6.3-rc2/include/linux/ |
A 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()
|
A D | virtio_caif.h | 14 __virtio16 headroom; 15 __virtio16 tailroom;
|
A 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()
|
A D | vringh.h | 246 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 D | vringh.c | 40 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 D | vhost.c | 1012 __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 D | vhost.h | 295 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 D | net.c | 1135 __virtio16 num_buffers; in handle_rx()
|
/linux-6.3-rc2/tools/virtio/linux/ |
A 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.3-rc2/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim.h | 89 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 D | eni_vdpa.c | 445 __virtio16 max_virtqueue_pairs; in eni_vdpa_get_num_queues()
|
/linux-6.3-rc2/drivers/net/ |
A D | tap.c | 86 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 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()
|
A D | virtio_net.c | 204 __virtio16 vid;
|
/linux-6.3-rc2/drivers/vdpa/mlx5/net/ |
A D | mlx5_vnet.c | 166 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 D | virtio_ring.c | 741 __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()
|