search for: dev_attr_groups

Displaying 20 results from an estimated 69 matches for "dev_attr_groups".

Did you mean: mdev_attr_groups
2019 Sep 17
1
[RFC PATCH 2/2] mdev: introduce device specific ops
...ps - Structure to be registered for each parent device to > - * register the device to mdev module. > + * struct vfio_mdev_parent_ops - Structure to be registered for each > + * parent device to register the device to vfio-mdev module. > * > - * @owner: The module owner. > - * @dev_attr_groups: Attributes of the parent device. > - * @mdev_attr_groups: Attributes of the mediated device. > - * @supported_type_groups: Attributes to define supported types. It is mandatory > - * to provide supported types. > - * @create: Called to allocate basic resources in parent device's...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...019..64823998fd58 100644 > --- a/drivers/gpu/drm/i915/gvt/kvmgt.c > +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c > @@ -1600,20 +1600,22 @@ static const struct attribute_group > *intel_vgpu_groups[] = { > NULL, > }; > > -static struct mdev_parent_ops intel_vgpu_ops = { > - .mdev_attr_groups = intel_vgpu_groups, > - .create = intel_vgpu_create, > - .remove = intel_vgpu_remove, > - > +static struct vfio_mdev_parent_ops intel_vfio_vgpu_ops = { > .open = intel_vgpu_open, > .release = intel_vgpu_release, > - > .read = intel_vgpu_read, > .wr...
2019 Sep 17
2
[RFC PATCH 2/2] mdev: introduce device specific ops
...019..64823998fd58 100644 > --- a/drivers/gpu/drm/i915/gvt/kvmgt.c > +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c > @@ -1600,20 +1600,22 @@ static const struct attribute_group > *intel_vgpu_groups[] = { > NULL, > }; > > -static struct mdev_parent_ops intel_vgpu_ops = { > - .mdev_attr_groups = intel_vgpu_groups, > - .create = intel_vgpu_create, > - .remove = intel_vgpu_remove, > - > +static struct vfio_mdev_parent_ops intel_vfio_vgpu_ops = { > .open = intel_vgpu_open, > .release = intel_vgpu_release, > - > .read = intel_vgpu_read, > .wr...
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...tered for each parent device to 7b96953bc640b6 Kirti Wankhede 2016-11-17 31 * register the device to mdev module. 7b96953bc640b6 Kirti Wankhede 2016-11-17 32 * 7b96953bc640b6 Kirti Wankhede 2016-11-17 33 * @owner: The module owner. 7b96953bc640b6 Kirti Wankhede 2016-11-17 34 * @dev_attr_groups: Attributes of the parent device. 7b96953bc640b6 Kirti Wankhede 2016-11-17 35 * @mdev_attr_groups: Attributes of the mediated device. 7b96953bc640b6 Kirti Wankhede 2016-11-17 36 * @supported_type_groups: Attributes to define supported types. It is mandatory 7b96953bc640b6 Kirti Wankhede...
2019 Sep 23
2
[PATCH 2/6] mdev: introduce device specific ops
...tered for each parent device to 7b96953bc640b6 Kirti Wankhede 2016-11-17 31 * register the device to mdev module. 7b96953bc640b6 Kirti Wankhede 2016-11-17 32 * 7b96953bc640b6 Kirti Wankhede 2016-11-17 33 * @owner: The module owner. 7b96953bc640b6 Kirti Wankhede 2016-11-17 34 * @dev_attr_groups: Attributes of the parent device. 7b96953bc640b6 Kirti Wankhede 2016-11-17 35 * @mdev_attr_groups: Attributes of the mediated device. 7b96953bc640b6 Kirti Wankhede 2016-11-17 36 * @supported_type_groups: Attributes to define supported types. It is mandatory 7b96953bc640b6 Kirti Wankhede...
2019 Sep 12
0
[RFC PATCH 2/2] mdev: introduce device specific ops
...ers/gpu/drm/i915/gvt/kvmgt.c index 19d51a35f019..64823998fd58 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -1600,20 +1600,22 @@ static const struct attribute_group *intel_vgpu_groups[] = { NULL, }; -static struct mdev_parent_ops intel_vgpu_ops = { - .mdev_attr_groups = intel_vgpu_groups, - .create = intel_vgpu_create, - .remove = intel_vgpu_remove, - +static struct vfio_mdev_parent_ops intel_vfio_vgpu_ops = { .open = intel_vgpu_open, .release = intel_vgpu_release, - .read = intel_vgpu_read, .write = intel_vgpu_write, .mmap = intel_v...
2019 Sep 17
0
[RFC PATCH 2/2] mdev: introduce device specific ops
...a/drivers/gpu/drm/i915/gvt/kvmgt.c >> +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c >> @@ -1600,20 +1600,22 @@ static const struct attribute_group >> *intel_vgpu_groups[] = { >> NULL, >> }; >> >> -static struct mdev_parent_ops intel_vgpu_ops = { >> - .mdev_attr_groups = intel_vgpu_groups, >> - .create = intel_vgpu_create, >> - .remove = intel_vgpu_remove, >> - >> +static struct vfio_mdev_parent_ops intel_vfio_vgpu_ops = { >> .open = intel_vgpu_open, >> .release = intel_vgpu_release, >> - >> .r...
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2019 Sep 12
9
[RFC PATCH 0/2] Mdev: support mutiple kinds of devices
Hi all: During the development of virtio-mdev[1]. I find that mdev needs to be extended to support devices other than vfio mdev device. So this series tries to extend the mdev to be able to differ from different devices by: - device id and matching for mdev bus - device speicfic callbacks and move vfio callbacks there Sent for early reivew, compile test only! Thanks [1]
2019 Sep 18
1
[RFC PATCH 2/2] mdev: introduce device specific ops
...>> +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c > >> @@ -1600,20 +1600,22 @@ static const struct attribute_group > >> *intel_vgpu_groups[] = { > >> NULL, > >> }; > >> > >> -static struct mdev_parent_ops intel_vgpu_ops = { > >> - .mdev_attr_groups = intel_vgpu_groups, > >> - .create = intel_vgpu_create, > >> - .remove = intel_vgpu_remove, > >> - > >> +static struct vfio_mdev_parent_ops intel_vfio_vgpu_ops = { > >> .open = intel_vgpu_open, > >> .release = intel_vgpu_rele...
2015 Mar 20
2
[PATCH v2] Add virtio-input driver.
...*vi = input_get_drvdata(idev); + + if (a == &dev_attr_serial.attr && !strlen(vi->serial)) + return 0; + + return a->mode; +} + +static struct attribute_group dev_attr_grp = { + .attrs = dev_attrs, + .is_visible = dev_attrs_are_visible, +}; + +static const struct attribute_group *dev_attr_groups[] = { + &dev_attr_grp, + NULL +}; + +static void virtinput_queue_evtbuf(struct virtio_input *vi, + struct virtio_input_event *evtbuf) +{ + struct scatterlist sg[1]; + + sg_init_one(sg, evtbuf, sizeof(*evtbuf)); + virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); +} + +static voi...
2015 Mar 20
2
[PATCH v2] Add virtio-input driver.
...*vi = input_get_drvdata(idev); + + if (a == &dev_attr_serial.attr && !strlen(vi->serial)) + return 0; + + return a->mode; +} + +static struct attribute_group dev_attr_grp = { + .attrs = dev_attrs, + .is_visible = dev_attrs_are_visible, +}; + +static const struct attribute_group *dev_attr_groups[] = { + &dev_attr_grp, + NULL +}; + +static void virtinput_queue_evtbuf(struct virtio_input *vi, + struct virtio_input_event *evtbuf) +{ + struct scatterlist sg[1]; + + sg_init_one(sg, evtbuf, sizeof(*evtbuf)); + virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); +} + +static voi...
2015 Mar 19
5
[PATCH 0/1] Add virtio-input driver.
Hi, This patch adds a virtio driver for input devices. Specification: https://www.kraxel.org/cgit/virtio-spec/log/?h=virtio-input https://www.kraxel.org/virtio/virtio-v1.0-csprd03-virtio-input.html#x1-2640007 Qemu patches; https://lists.gnu.org/archive/html/qemu-devel/2015-03/threads.html#03973 Gerd Hoffmann (1): Add virtio-input driver. drivers/virtio/Kconfig | 10 ++
2015 Mar 19
5
[PATCH 0/1] Add virtio-input driver.
Hi, This patch adds a virtio driver for input devices. Specification: https://www.kraxel.org/cgit/virtio-spec/log/?h=virtio-input https://www.kraxel.org/virtio/virtio-v1.0-csprd03-virtio-input.html#x1-2640007 Qemu patches; https://lists.gnu.org/archive/html/qemu-devel/2015-03/threads.html#03973 Gerd Hoffmann (1): Add virtio-input driver. drivers/virtio/Kconfig | 10 ++
2019 Sep 23
0
[PATCH 2/6] mdev: introduce device specific ops
...t device to > 7b96953bc640b6 Kirti Wankhede 2016-11-17 31 * register the device to mdev module. > 7b96953bc640b6 Kirti Wankhede 2016-11-17 32 * > 7b96953bc640b6 Kirti Wankhede 2016-11-17 33 * @owner: The module owner. > 7b96953bc640b6 Kirti Wankhede 2016-11-17 34 * @dev_attr_groups: Attributes of the parent device. > 7b96953bc640b6 Kirti Wankhede 2016-11-17 35 * @mdev_attr_groups: Attributes of the mediated device. > 7b96953bc640b6 Kirti Wankhede 2016-11-17 36 * @supported_type_groups: Attributes to define supported types. It is mandatory > 7b96953bc640b6 K...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...*vi = input_get_drvdata(idev); + + if (a == &dev_attr_serial.attr && !strlen(vi->serial)) + return 0; + + return a->mode; +} + +static struct attribute_group dev_attr_grp = { + .attrs = dev_attrs, + .is_visible = dev_attrs_are_visible, +}; + +static const struct attribute_group *dev_attr_groups[] = { + &dev_attr_grp, + NULL +}; + +static void virtinput_queue_evtbuf(struct virtio_input *vi, + struct virtio_input_event *evtbuf) +{ + struct scatterlist sg[1]; + + sg_init_one(sg, evtbuf, sizeof(*evtbuf)); + virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); +} + +static voi...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...*vi = input_get_drvdata(idev); + + if (a == &dev_attr_serial.attr && !strlen(vi->serial)) + return 0; + + return a->mode; +} + +static struct attribute_group dev_attr_grp = { + .attrs = dev_attrs, + .is_visible = dev_attrs_are_visible, +}; + +static const struct attribute_group *dev_attr_groups[] = { + &dev_attr_grp, + NULL +}; + +static void virtinput_queue_evtbuf(struct virtio_input *vi, + struct virtio_input_event *evtbuf) +{ + struct scatterlist sg[1]; + + sg_init_one(sg, evtbuf, sizeof(*evtbuf)); + virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); +} + +static voi...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...t;serial)) > + return 0; > + > + return a->mode; > +} > + > +static struct attribute_group dev_attr_grp = { > + .attrs = dev_attrs, > + .is_visible = dev_attrs_are_visible, > +}; > + > +static const struct attribute_group *dev_attr_groups[] = { > + &dev_attr_grp, > + NULL > +}; > + > +static void virtinput_queue_evtbuf(struct virtio_input *vi, > + struct virtio_input_event *evtbuf) > +{ > + struct scatterlist sg[1]; > + > + sg_init_one(sg, evt...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...t;serial)) > + return 0; > + > + return a->mode; > +} > + > +static struct attribute_group dev_attr_grp = { > + .attrs = dev_attrs, > + .is_visible = dev_attrs_are_visible, > +}; > + > +static const struct attribute_group *dev_attr_groups[] = { > + &dev_attr_grp, > + NULL > +}; > + > +static void virtinput_queue_evtbuf(struct virtio_input *vi, > + struct virtio_input_event *evtbuf) > +{ > + struct scatterlist sg[1]; > + > + sg_init_one(sg, evt...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...; + > > + return a->mode; > > +} > > + > > +static struct attribute_group dev_attr_grp = { > > + .attrs = dev_attrs, > > + .is_visible = dev_attrs_are_visible, > > +}; > > + > > +static const struct attribute_group *dev_attr_groups[] = { > > + &dev_attr_grp, > > + NULL > > +}; > > + > > +static void virtinput_queue_evtbuf(struct virtio_input *vi, > > + struct virtio_input_event *evtbuf) > > +{ > > + struct scatterlist sg[1];...