Displaying 20 results from an estimated 39 matches for "_uapi_linux_virtio_ring_h".
2019 Feb 01
2
[PATCH] virtio: drop internal struct from UAPI
...ring.h
+++ b/include/uapi/linux/virtio_ring.h
@@ -213,14 +213,4 @@ struct vring_packed_desc {
__le16 flags;
};
-struct vring_packed {
- unsigned int num;
-
- struct vring_packed_desc *desc;
-
- struct vring_packed_desc_event *driver;
-
- struct vring_packed_desc_event *device;
-};
-
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
--
MST
2018 Nov 30
4
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...on descriptor type. */
> + __le16 flags;
> +};
> +
> +struct vring_packed {
> + unsigned int num;
> +
> + struct vring_packed_desc *desc;
> +
> + struct vring_packed_desc_event *driver;
> +
> + struct vring_packed_desc_event *device;
> +};
> +
> #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
4
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...on descriptor type. */
> + __le16 flags;
> +};
> +
> +struct vring_packed {
> + unsigned int num;
> +
> + struct vring_packed_desc *desc;
> +
> + struct vring_packed_desc_event *driver;
> +
> + struct vring_packed_desc_event *device;
> +};
> +
> #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Sep 07
2
[PATCH net-next v2 1/5] virtio: add packed ring definitions
...;
Don't use __virtioXX types, just __leXX ones.
> +
> +struct vring_packed {
> + unsigned int num;
> +
> + struct vring_packed_desc *desc;
> +
> + struct vring_packed_desc_event *driver;
> +
> + struct vring_packed_desc_event *device;
> +};
> +
> #endif /* _UAPI_LINUX_VIRTIO_RING_H */
> --
> 2.18.0
2018 Sep 07
2
[PATCH net-next v2 1/5] virtio: add packed ring definitions
...;
Don't use __virtioXX types, just __leXX ones.
> +
> +struct vring_packed {
> + unsigned int num;
> +
> + struct vring_packed_desc *desc;
> +
> + struct vring_packed_desc_event *driver;
> +
> + struct vring_packed_desc_event *device;
> +};
> +
> #endif /* _UAPI_LINUX_VIRTIO_RING_H */
> --
> 2.18.0
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...t; > > +
> > > > > > + struct vring_packed_desc_event *driver;
> > > > > > +
> > > > > > + struct vring_packed_desc_event *device;
> > > > > > +};
> > > > > > +
> > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...t; > > +
> > > > > > + struct vring_packed_desc_event *driver;
> > > > > > +
> > > > > > + struct vring_packed_desc_event *device;
> > > > > > +};
> > > > > > +
> > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...uct vring_packed_desc_event *driver;
> > > > > > > > +
> > > > > > > > + struct vring_packed_desc_event *device;
> > > > > > > > +};
> > > > > > > > +
> > > > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...uct vring_packed_desc_event *driver;
> > > > > > > > +
> > > > > > > > + struct vring_packed_desc_event *device;
> > > > > > > > +};
> > > > > > > > +
> > > > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Apr 13
0
[RFC v2] virtio: support packed ring
...atic inline unsigned vring_packed_size(unsigned int num, unsigned long align)
> +{
> + return ((sizeof(struct vring_packed_desc) * num + align - 1)
> + & ~(align - 1)) + sizeof(struct vring_packed_desc_event) * 2;
> +}
> +
Cant say this API makes sense for me.
> #endif /* _UAPI_LINUX_VIRTIO_RING_H */
> --
> 2.11.0
2018 Jul 11
0
[PATCH net-next v2 1/5] virtio: add packed ring definitions
...len;
+ /* Buffer ID. */
+ __virtio16 id;
+ /* The flags depending on descriptor type. */
+ __virtio16 flags;
+};
+
+struct vring_packed {
+ unsigned int num;
+
+ struct vring_packed_desc *desc;
+
+ struct vring_packed_desc_event *driver;
+
+ struct vring_packed_desc_event *device;
+};
+
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
--
2.18.0
2018 Nov 21
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...+ __le32 len;
+ /* Buffer ID. */
+ __le16 id;
+ /* The flags depending on descriptor type. */
+ __le16 flags;
+};
+
+struct vring_packed {
+ unsigned int num;
+
+ struct vring_packed_desc *desc;
+
+ struct vring_packed_desc_event *driver;
+
+ struct vring_packed_desc_event *device;
+};
+
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
--
2.14.5
2018 Sep 10
0
[PATCH net-next v2 1/5] virtio: add packed ring definitions
...gt; +
> > +struct vring_packed {
> > + unsigned int num;
> > +
> > + struct vring_packed_desc *desc;
> > +
> > + struct vring_packed_desc_event *driver;
> > +
> > + struct vring_packed_desc_event *device;
> > +};
> > +
> > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
> > --
> > 2.18.0
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...t; +
> > +struct vring_packed {
> > + unsigned int num;
> > +
> > + struct vring_packed_desc *desc;
> > +
> > + struct vring_packed_desc_event *driver;
> > +
> > + struct vring_packed_desc_event *device;
> > +};
> > +
> > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Feb 23
0
[PATCH RFC 1/2] virtio: introduce packed ring defines
...- 1) & ~(align - 1));
+ vr->device = vr->driver + 1;
+}
+
+static inline unsigned vring_packed_size(unsigned int num, unsigned long align)
+{
+ return ((sizeof(struct vring_packed_desc) * num + align - 1)
+ & ~(align - 1)) + sizeof(struct vring_packed_desc_event) * 2;
+}
+
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
--
2.14.1
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...acked_desc *desc;
> > > > > +
> > > > > + struct vring_packed_desc_event *driver;
> > > > > +
> > > > > + struct vring_packed_desc_event *device;
> > > > > +};
> > > > > +
> > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...> > > > + struct vring_packed_desc_event *driver;
> > > > > > > +
> > > > > > > + struct vring_packed_desc_event *device;
> > > > > > > +};
> > > > > > > +
> > > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...nt *driver;
> > > > > > > > > +
> > > > > > > > > + struct vring_packed_desc_event *device;
> > > > > > > > > +};
> > > > > > > > > +
> > > > > > > > > #endif /* _UAPI_LINUX_VIRTIO_RING_H */
2014 Oct 22
2
[PATCH RFC v2 01/16] virtio: memory access APIs
...and new_idx respectively.
* Note also that req_event and req_prod in Xen start at 1,
* event indexes in virtio start at 0. */
- return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old);
+ return (__virtio16)(new_idx - event_idx - 1) < (__virtio16)(new_idx - old);
}
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
index 6cad974..39c161a 100644
--- a/include/uapi/linux/Kbuild
+++ b/include/uapi/linux/Kbuild
@@ -419,6 +419,7 @@ header-y += virtio_blk.h
header-y += virtio_config.h
header-y += virtio_console.h
header-y += virtio_ids.h
+head...
2014 Oct 22
2
[PATCH RFC v2 01/16] virtio: memory access APIs
...and new_idx respectively.
* Note also that req_event and req_prod in Xen start at 1,
* event indexes in virtio start at 0. */
- return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old);
+ return (__virtio16)(new_idx - event_idx - 1) < (__virtio16)(new_idx - old);
}
#endif /* _UAPI_LINUX_VIRTIO_RING_H */
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
index 6cad974..39c161a 100644
--- a/include/uapi/linux/Kbuild
+++ b/include/uapi/linux/Kbuild
@@ -419,6 +419,7 @@ header-y += virtio_blk.h
header-y += virtio_config.h
header-y += virtio_console.h
header-y += virtio_ids.h
+head...