search for: mdpy_create

Displaying 20 results from an estimated 53 matches for "mdpy_create".

2019 Sep 24
3
[PATCH V2 5/8] mdev: introduce device specific ops
...#include <linux/pci.h> > #include <drm/drm_fourcc.h> > #include "mdpy-defs.h" > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > return 0; > } > > +static const struct vfio_mdev_device_ops vfio_mdev_ops; > + > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > { > const struct mdpy_type *type = mdpy_find_type(kobj); > @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > > mdpy_count++; > mdev_set_class_id(mdev, MDEV_ID_VFIO); > + mdev_s...
2019 Sep 24
3
[PATCH V2 5/8] mdev: introduce device specific ops
...#include <linux/pci.h> > #include <drm/drm_fourcc.h> > #include "mdpy-defs.h" > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > return 0; > } > > +static const struct vfio_mdev_device_ops vfio_mdev_ops; > + > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > { > const struct mdpy_type *type = mdpy_find_type(kobj); > @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > > mdpy_count++; > mdev_set_class_id(mdev, MDEV_ID_VFIO); > + mdev_s...
2019 Sep 24
0
[PATCH V2 5/8] mdev: introduce device specific ops
...ev.h> +#include <linux/vfio_mdev.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct vfio_mdev_device_ops vfio_mdev_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_count++; mdev_set_class_id(mdev, MDEV_ID_VFIO); + mdev_set_dev_ops(mdev, &vfio_mdev_ops...
2019 Oct 11
0
[PATCH V3 4/7] mdev: introduce device specific ops
...ev.h> +#include <linux/vfio_mdev.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct vfio_mdev_device_ops vfio_mdev_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,8 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_ID_VFIO); + + mdev_set_class(mdev, M...
2019 Sep 25
0
[PATCH V2 5/8] mdev: introduce device specific ops
...nclude <drm/drm_fourcc.h> > > #include "mdpy-defs.h" > > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > > return 0; > > } > > > > +static const struct vfio_mdev_device_ops vfio_mdev_ops; > > + > > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > > { > > const struct mdpy_type *type = mdpy_find_type(kobj); > > @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct > mdev_device *mdev) > > > > mdpy_count++; > > mdev_set_class_id(m...
2019 Oct 17
0
[PATCH V4 3/6] mdev: introduce device specific ops
...ev.h> +#include <linux/vfio_mdev.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct vfio_mdev_device_ops vfio_mdev_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_CLASS_ID_VFIO); + mdev_set_vfio_ops(...
2019 Nov 06
0
[PATCH V9 3/6] mdev: introduce device specific ops
...> +#include <linux/mdev_vfio_ops.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct mdev_vfio_device_ops mdev_vfio_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_CLASS_ID_VFIO); + mdev_set_vfio_ops(...
2019 Nov 07
0
[PATCH V11 3/6] mdev: introduce device specific ops
...> +#include <linux/mdev_vfio_ops.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct mdev_vfio_device_ops mdev_vfio_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_CLASS_ID_VFIO); + mdev_set_vfio_ops(...
2019 Nov 05
0
[PATCH V8 3/6] mdev: introduce device specific ops
...> +#include <linux/mdev_vfio_ops.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct mdev_vfio_device_ops mdev_vfio_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_CLASS_ID_VFIO); + mdev_set_vfio_ops(...
2019 Nov 04
0
[PATCH V7 3/6] mdev: introduce device specific ops
...> +#include <linux/mdev_vfio_ops.h> #include <linux/pci.h> #include <drm/drm_fourcc.h> #include "mdpy-defs.h" @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) return 0; } +static const struct mdev_vfio_device_ops mdev_vfio_ops; + static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) mdpy_reset(mdev); mdpy_count++; - mdev_set_class(mdev, MDEV_CLASS_ID_VFIO); + mdev_set_vfio_ops(...
2019 Nov 04
1
[PATCH V7 3/6] mdev: introduce device specific ops
...#include <linux/pci.h> > #include <drm/drm_fourcc.h> > #include "mdpy-defs.h" > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > return 0; > } > > +static const struct mdev_vfio_device_ops mdev_vfio_ops; > + > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > { > const struct mdpy_type *type = mdpy_find_type(kobj); > @@ -269,7 +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > mdpy_reset(mdev); > > mdpy_count++; > - mdev_set_class(mdev, MDEV_C...
2019 Oct 21
0
[PATCH V4 3/6] mdev: introduce device specific ops
...#include <drm/drm_fourcc.h> >> #include "mdpy-defs.h" >> @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) >> return 0; >> } >> >> +static const struct vfio_mdev_device_ops vfio_mdev_ops; >> + >> static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) { >> const struct mdpy_type *type = mdpy_find_type(kobj); @@ -269,7 >> +272,7 @@ static int mdpy_create(struct kobject *kobj, struct mdev_device >> *mdev) >> mdpy_reset(mdev); >> >> mdpy_count++; >>...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...12 +725,7 @@ static struct attribute_group *mdev_type_groups[] > = { > NULL, > }; > > -static const struct mdev_parent_ops mdev_fops = { > - .owner = THIS_MODULE, > - .mdev_attr_groups = mdev_dev_groups, > - .supported_type_groups = mdev_type_groups, > - .create = mdpy_create, > - .remove = mdpy_remove, > +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { > .open = mdpy_open, > .release = mdpy_close, > .read = mdpy_read, > @@ -739,6 +734,15 @@ static const struct mdev_parent_ops mdev_fops = > { > .mmap = mdpy_mmap, >...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...12 +725,7 @@ static struct attribute_group *mdev_type_groups[] > = { > NULL, > }; > > -static const struct mdev_parent_ops mdev_fops = { > - .owner = THIS_MODULE, > - .mdev_attr_groups = mdev_dev_groups, > - .supported_type_groups = mdev_type_groups, > - .create = mdpy_create, > - .remove = mdpy_remove, > +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { > .open = mdpy_open, > .release = mdpy_close, > .read = mdpy_read, > @@ -739,6 +734,15 @@ static const struct mdev_parent_ops mdev_fops = > { > .mmap = mdpy_mmap, >...
2019 Sep 25
3
[PATCH V2 5/8] mdev: introduce device specific ops
...> #include "mdpy-defs.h" > > > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > > > return 0; > > > } > > > > > > +static const struct vfio_mdev_device_ops vfio_mdev_ops; > > > + > > > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > > > { > > > const struct mdpy_type *type = mdpy_find_type(kobj); > > > @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct > > mdev_device *mdev) > > > > > > mdpy_count+...
2019 Sep 25
3
[PATCH V2 5/8] mdev: introduce device specific ops
...> #include "mdpy-defs.h" > > > @@ -226,6 +227,8 @@ static int mdpy_reset(struct mdev_device *mdev) > > > return 0; > > > } > > > > > > +static const struct vfio_mdev_device_ops vfio_mdev_ops; > > > + > > > static int mdpy_create(struct kobject *kobj, struct mdev_device *mdev) > > > { > > > const struct mdpy_type *type = mdpy_find_type(kobj); > > > @@ -270,6 +273,7 @@ static int mdpy_create(struct kobject *kobj, struct > > mdev_device *mdev) > > > > > > mdpy_count+...
2019 Sep 12
0
[RFC PATCH 2/2] mdev: introduce device specific ops
...py.c +++ b/samples/vfio-mdev/mdpy.c @@ -725,12 +725,7 @@ static struct attribute_group *mdev_type_groups[] = { NULL, }; -static const struct mdev_parent_ops mdev_fops = { - .owner = THIS_MODULE, - .mdev_attr_groups = mdev_dev_groups, - .supported_type_groups = mdev_type_groups, - .create = mdpy_create, - .remove = mdpy_remove, +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { .open = mdpy_open, .release = mdpy_close, .read = mdpy_read, @@ -739,6 +734,15 @@ static const struct mdev_parent_ops mdev_fops = { .mmap = mdpy_mmap, }; +static const struct mdev_parent_ops md...
2019 Sep 17
0
[RFC PATCH 2/2] mdev: introduce device specific ops
...group *mdev_type_groups[] >> = { >> NULL, >> }; >> >> -static const struct mdev_parent_ops mdev_fops = { >> - .owner = THIS_MODULE, >> - .mdev_attr_groups = mdev_dev_groups, >> - .supported_type_groups = mdev_type_groups, >> - .create = mdpy_create, >> - .remove = mdpy_remove, >> +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { >> .open = mdpy_open, >> .release = mdpy_close, >> .read = mdpy_read, >> @@ -739,6 +734,15 @@ static const struct mdev_parent_ops mdev_fops = >> { &g...
2019 Sep 23
0
[PATCH 2/6] mdev: introduce device specific ops
...; #include "mdpy-defs.h" @@ -725,12 +726,7 @@ static struct attribute_group *mdev_type_groups[] = { NULL, }; -static const struct mdev_parent_ops mdev_fops = { - .owner = THIS_MODULE, - .mdev_attr_groups = mdev_dev_groups, - .supported_type_groups = mdev_type_groups, - .create = mdpy_create, - .remove = mdpy_remove, +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { .open = mdpy_open, .release = mdpy_close, .read = mdpy_read, @@ -739,6 +735,15 @@ static const struct mdev_parent_ops mdev_fops = { .mmap = mdpy_mmap, }; +static const struct mdev_parent_ops md...
2019 Sep 18
1
[RFC PATCH 2/2] mdev: introduce device specific ops
...gt; >> NULL, > >> }; > >> > >> -static const struct mdev_parent_ops mdev_fops = { > >> - .owner = THIS_MODULE, > >> - .mdev_attr_groups = mdev_dev_groups, > >> - .supported_type_groups = mdev_type_groups, > >> - .create = mdpy_create, > >> - .remove = mdpy_remove, > >> +static const struct vfio_mdev_parent_ops vfio_mdev_ops = { > >> .open = mdpy_open, > >> .release = mdpy_close, > >> .read = mdpy_read, > >> @@ -739,6 +734,15 @@ static const struct mdev_parent...