Displaying 20 results from an estimated 47 matches for "vfio_mdev_open".
2019 Sep 26
2
[PATCH V2 5/8] mdev: introduce device specific ops
...gt; > > #include <linux/mdev.h>
> > > > > +#include <linux/vfio_mdev.h>
> > > > >
> > > > > #include "mdev_private.h"
> > > > >
> > > > > @@ -24,16 +25,16 @@
> > > > > static int vfio_mdev_open(void *device_data)
> > > > > {
> > > > > struct mdev_device *mdev = device_data;
> > > > > - struct mdev_parent *parent = mdev->parent;
> > > > > + const struct vfio_mdev_device_ops *ops =
> > > > mdev_get_dev_ops...
2019 Sep 26
2
[PATCH V2 5/8] mdev: introduce device specific ops
...gt; > > #include <linux/mdev.h>
> > > > > +#include <linux/vfio_mdev.h>
> > > > >
> > > > > #include "mdev_private.h"
> > > > >
> > > > > @@ -24,16 +25,16 @@
> > > > > static int vfio_mdev_open(void *device_data)
> > > > > {
> > > > > struct mdev_device *mdev = device_data;
> > > > > - struct mdev_parent *parent = mdev->parent;
> > > > > + const struct vfio_mdev_device_ops *ops =
> > > > mdev_get_dev_ops...
2019 Sep 25
3
[PATCH V2 5/8] mdev: introduce device specific ops
...x/slab.h>
> > > #include <linux/vfio.h>
> > > #include <linux/mdev.h>
> > > +#include <linux/vfio_mdev.h>
> > >
> > > #include "mdev_private.h"
> > >
> > > @@ -24,16 +25,16 @@
> > > static int vfio_mdev_open(void *device_data)
> > > {
> > > struct mdev_device *mdev = device_data;
> > > - struct mdev_parent *parent = mdev->parent;
> > > + const struct vfio_mdev_device_ops *ops =
> > mdev_get_dev_ops(mdev);
> > > int ret;
> > >
&...
2019 Sep 25
3
[PATCH V2 5/8] mdev: introduce device specific ops
...x/slab.h>
> > > #include <linux/vfio.h>
> > > #include <linux/mdev.h>
> > > +#include <linux/vfio_mdev.h>
> > >
> > > #include "mdev_private.h"
> > >
> > > @@ -24,16 +25,16 @@
> > > static int vfio_mdev_open(void *device_data)
> > > {
> > > struct mdev_device *mdev = device_data;
> > > - struct mdev_parent *parent = mdev->parent;
> > > + const struct vfio_mdev_device_ops *ops =
> > mdev_get_dev_ops(mdev);
> > > int ret;
> > >
&...
2019 Sep 25
0
[PATCH V2 5/8] mdev: introduce device specific ops
...de <linux/vfio.h>
> > > > #include <linux/mdev.h>
> > > > +#include <linux/vfio_mdev.h>
> > > >
> > > > #include "mdev_private.h"
> > > >
> > > > @@ -24,16 +25,16 @@
> > > > static int vfio_mdev_open(void *device_data)
> > > > {
> > > > struct mdev_device *mdev = device_data;
> > > > - struct mdev_parent *parent = mdev->parent;
> > > > + const struct vfio_mdev_device_ops *ops =
> > > mdev_get_dev_ops(mdev);
> > >...
2019 Sep 26
0
[PATCH V2 5/8] mdev: introduce device specific ops
...nux/mdev.h>
> > > > > > +#include <linux/vfio_mdev.h>
> > > > > >
> > > > > > #include "mdev_private.h"
> > > > > >
> > > > > > @@ -24,16 +25,16 @@
> > > > > > static int vfio_mdev_open(void *device_data)
> > > > > > {
> > > > > > struct mdev_device *mdev = device_data;
> > > > > > - struct mdev_parent *parent = mdev->parent;
> > > > > > + const struct vfio_mdev_device_ops *ops =
> > >...
2019 Sep 24
3
[PATCH V2 5/8] mdev: introduce device specific ops
...drivers/vfio/mdev/vfio_mdev.c
> @@ -14,6 +14,7 @@
> #include <linux/slab.h>
> #include <linux/vfio.h>
> #include <linux/mdev.h>
> +#include <linux/vfio_mdev.h>
>
> #include "mdev_private.h"
>
> @@ -24,16 +25,16 @@
> static int vfio_mdev_open(void *device_data)
> {
> struct mdev_device *mdev = device_data;
> - struct mdev_parent *parent = mdev->parent;
> + const struct vfio_mdev_device_ops *ops = mdev_get_dev_ops(mdev);
> int ret;
>
> - if (unlikely(!parent->ops->open))
> + if (unlikely(!ops->o...
2019 Sep 24
3
[PATCH V2 5/8] mdev: introduce device specific ops
...drivers/vfio/mdev/vfio_mdev.c
> @@ -14,6 +14,7 @@
> #include <linux/slab.h>
> #include <linux/vfio.h>
> #include <linux/mdev.h>
> +#include <linux/vfio_mdev.h>
>
> #include "mdev_private.h"
>
> @@ -24,16 +25,16 @@
> static int vfio_mdev_open(void *device_data)
> {
> struct mdev_device *mdev = device_data;
> - struct mdev_parent *parent = mdev->parent;
> + const struct vfio_mdev_device_ops *ops = mdev_get_dev_ops(mdev);
> int ret;
>
> - if (unlikely(!parent->ops->open))
> + if (unlikely(!ops->o...
2019 Sep 24
0
[PATCH V2 5/8] mdev: introduce device specific ops
...100644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/vfio_mdev.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct vfio_mdev_device_ops *ops = mdev_get_dev_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_mo...
2019 Oct 11
0
[PATCH V3 4/7] mdev: introduce device specific ops
...100644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/vfio_mdev.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct vfio_mdev_device_ops *ops = mdev_get_dev_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_mo...
2019 Sep 25
0
[PATCH V2 5/8] mdev: introduce device specific ops
...,6 +14,7 @@
> > #include <linux/slab.h>
> > #include <linux/vfio.h>
> > #include <linux/mdev.h>
> > +#include <linux/vfio_mdev.h>
> >
> > #include "mdev_private.h"
> >
> > @@ -24,16 +25,16 @@
> > static int vfio_mdev_open(void *device_data)
> > {
> > struct mdev_device *mdev = device_data;
> > - struct mdev_parent *parent = mdev->parent;
> > + const struct vfio_mdev_device_ops *ops =
> mdev_get_dev_ops(mdev);
> > int ret;
> >
> > - if (unlikely(!parent->ops->...
2019 Oct 17
0
[PATCH V4 3/6] mdev: introduce device specific ops
...100644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/vfio_mdev.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct vfio_mdev_device_ops *ops = mdev_get_dev_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_mo...
2019 Nov 06
0
[PATCH V9 3/6] mdev: introduce device specific ops
...644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/mdev_vfio_ops.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct mdev_vfio_device_ops *ops = mdev_get_vfio_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_m...
2019 Nov 07
0
[PATCH V11 3/6] mdev: introduce device specific ops
...644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/mdev_vfio_ops.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct mdev_vfio_device_ops *ops = mdev_get_vfio_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_m...
2019 Nov 05
0
[PATCH V8 3/6] mdev: introduce device specific ops
...644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/mdev_vfio_ops.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct mdev_vfio_device_ops *ops = mdev_get_vfio_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_m...
2019 Nov 04
0
[PATCH V7 3/6] mdev: introduce device specific ops
...644
--- a/drivers/vfio/mdev/vfio_mdev.c
+++ b/drivers/vfio/mdev/vfio_mdev.c
@@ -14,6 +14,7 @@
#include <linux/slab.h>
#include <linux/vfio.h>
#include <linux/mdev.h>
+#include <linux/mdev_vfio_ops.h>
#include "mdev_private.h"
@@ -24,16 +25,16 @@
static int vfio_mdev_open(void *device_data)
{
struct mdev_device *mdev = device_data;
- struct mdev_parent *parent = mdev->parent;
+ const struct mdev_vfio_device_ops *ops = mdev_get_vfio_ops(mdev);
int ret;
- if (unlikely(!parent->ops->open))
+ if (unlikely(!ops->open))
return -EINVAL;
if (!try_m...
2019 Nov 04
1
[PATCH V7 3/6] mdev: introduce device specific ops
...ers/vfio/mdev/vfio_mdev.c
> @@ -14,6 +14,7 @@
> #include <linux/slab.h>
> #include <linux/vfio.h>
> #include <linux/mdev.h>
> +#include <linux/mdev_vfio_ops.h>
>
> #include "mdev_private.h"
>
> @@ -24,16 +25,16 @@
> static int vfio_mdev_open(void *device_data)
> {
> struct mdev_device *mdev = device_data;
> - struct mdev_parent *parent = mdev->parent;
> + const struct mdev_vfio_device_ops *ops = mdev_get_vfio_ops(mdev);
> int ret;
>
> - if (unlikely(!parent->ops->open))
> + if (unlikely(!ops->...
2019 Oct 21
0
[PATCH V4 3/6] mdev: introduce device specific ops
...-14,6 +14,7 @@
>> #include <linux/slab.h>
>> #include <linux/vfio.h>
>> #include <linux/mdev.h>
>> +#include <linux/vfio_mdev.h>
>>
>> #include "mdev_private.h"
>>
>> @@ -24,16 +25,16 @@
>> static int vfio_mdev_open(void *device_data) {
>> struct mdev_device *mdev = device_data;
>> - struct mdev_parent *parent = mdev->parent;
>> + const struct vfio_mdev_device_ops *ops =
>> mdev_get_dev_ops(mdev);
>> int ret;
>>
>> - if (unlikely(!parent->ops->open))
&g...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...gt; };
>
> int vfio_ap_mdev_register(void)
> diff --git a/drivers/vfio/mdev/vfio_mdev.c
> b/drivers/vfio/mdev/vfio_mdev.c
> index 887c57f10880..1196fbb6c3d2 100644
> --- a/drivers/vfio/mdev/vfio_mdev.c
> +++ b/drivers/vfio/mdev/vfio_mdev.c
> @@ -25,15 +25,16 @@ static int vfio_mdev_open(void *device_data)
> {
> struct mdev_device *mdev = device_data;
> struct mdev_parent *parent = mdev->parent;
> + const struct vfio_mdev_parent_ops *ops = parent->ops-
> >device_ops;
> int ret;
>
> - if (unlikely(!parent->ops->open))
> + if (unlikel...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...gt; };
>
> int vfio_ap_mdev_register(void)
> diff --git a/drivers/vfio/mdev/vfio_mdev.c
> b/drivers/vfio/mdev/vfio_mdev.c
> index 887c57f10880..1196fbb6c3d2 100644
> --- a/drivers/vfio/mdev/vfio_mdev.c
> +++ b/drivers/vfio/mdev/vfio_mdev.c
> @@ -25,15 +25,16 @@ static int vfio_mdev_open(void *device_data)
> {
> struct mdev_device *mdev = device_data;
> struct mdev_parent *parent = mdev->parent;
> + const struct vfio_mdev_parent_ops *ops = parent->ops-
> >device_ops;
> int ret;
>
> - if (unlikely(!parent->ops->open))
> + if (unlikel...