search for: 824ed0b

Displaying 10 results from an estimated 10 matches for "824ed0b".

2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...onditionally, these will be > > useful e.g. for vhost. Add high level wrappers that > > query device endian-ness and act accordingly. > > > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h > > new file mode 100644 > > index 0000000..824ed0b > > --- /dev/null > > +++ b/include/linux/virtio_byteorder.h > > > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) > > +{ > > + if (little_endian) > > + return le16_to_cpu((__force __le16)val); > > + el...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...onditionally, these will be > > useful e.g. for vhost. Add high level wrappers that > > query device endian-ness and act accordingly. > > > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h > > new file mode 100644 > > index 0000000..824ed0b > > --- /dev/null > > +++ b/include/linux/virtio_byteorder.h > > > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) > > +{ > > + if (little_endian) > > + return le16_to_cpu((__force __le16)val); > > + el...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 163 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...
2014 Nov 24
2
[PATCH v3 04/41] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 163 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...
2014 Nov 25
1
[PATCH v4 05/42] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 163 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...
2014 Nov 25
1
[PATCH v4 05/42] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 163 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...
2014 Nov 24
0
[PATCH v3 04/41] virtio: memory access APIs
...wrappers that do a byteswap conditionally, these will be > useful e.g. for vhost. Add high level wrappers that > query device endian-ness and act accordingly. > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h > new file mode 100644 > index 0000000..824ed0b > --- /dev/null > +++ b/include/linux/virtio_byteorder.h > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) > +{ > + if (little_endian) > + return le16_to_cpu((__force __le16)val); > + else > + return (__force...
2014 Nov 24
0
[PATCH v3 04/41] virtio: memory access APIs
...l be >> > useful e.g. for vhost. Add high level wrappers that >> > query device endian-ness and act accordingly. >> >> > diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h >> > new file mode 100644 >> > index 0000000..824ed0b >> > --- /dev/null >> > +++ b/include/linux/virtio_byteorder.h >> >> > +static inline u16 __virtio16_to_cpu(bool little_endian, __virtio16 val) >> > +{ >> > + if (little_endian) >> > + return le16_to_cpu((__force __le16...
2014 Oct 23
0
[PATCH RFC v4 01/17] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 173 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...
2014 Oct 23
0
[PATCH RFC v4 01/17] virtio: memory access APIs
...Kbuild | 1 + 5 files changed, 173 insertions(+), 22 deletions(-) create mode 100644 include/linux/virtio_byteorder.h create mode 100644 include/uapi/linux/virtio_types.h diff --git a/include/linux/virtio_byteorder.h b/include/linux/virtio_byteorder.h new file mode 100644 index 0000000..824ed0b --- /dev/null +++ b/include/linux/virtio_byteorder.h @@ -0,0 +1,59 @@ +#ifndef _LINUX_VIRTIO_BYTEORDER_H +#define _LINUX_VIRTIO_BYTEORDER_H +#include <linux/types.h> +#include <uapi/linux/virtio_types.h> + +/* + * Memory accessors for handling virtio in modern little endian and in + * c...