search for: virtio_bitmap_or

Displaying 10 results from an estimated 10 matches for "virtio_bitmap_or".

2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...ts 0-7, second 8-15 etc. linux kernel bitmaps ops > are operating on longs, and native byteorder longs would be something > else ... This still looks too complex. At least, this needs a comment explaining what the function does, and maybe wrap it in a helper like virtio_input_bitmap_copy or virtio_bitmap_or. > > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma); > > > + virtio_cread(...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...ts 0-7, second 8-15 etc. linux kernel bitmaps ops > are operating on longs, and native byteorder longs would be something > else ... This still looks too complex. At least, this needs a comment explaining what the function does, and maybe wrap it in a helper like virtio_input_bitmap_copy or virtio_bitmap_or. > > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma); > > > + virtio_cread(...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
Hi, > > At least, this needs a comment explaining what the function does, > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > virtio_bitmap_or. > > Can do that, sure. Well, the function where this is in already cares about the bitmap copy only. Can add a comment though. > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > virtio_cread will do byteswaps differently without VERSION_1. > > Just...
2015 Mar 23
2
[PATCH 1/1] Add virtio-input driver.
Hi, > > At least, this needs a comment explaining what the function does, > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > virtio_bitmap_or. > > Can do that, sure. Well, the function where this is in already cares about the bitmap copy only. Can add a comment though. > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > virtio_cread will do byteswaps differently without VERSION_1. > > Just...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...ficient way, but hey, it's not in the hot path and I'm sure I'm setting the bits correctly because this uses the standard linux kernel bitops. > At least, this needs a comment explaining what the function does, > and maybe wrap it in a helper like virtio_input_bitmap_copy or > virtio_bitmap_or. Can do that, sure. > > > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &m...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
On Mon, Mar 23, 2015 at 02:44:52PM +0100, Gerd Hoffmann wrote: > Hi, > > > > At least, this needs a comment explaining what the function does, > > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > > virtio_bitmap_or. > > > > Can do that, sure. > > Well, the function where this is in already cares about the bitmap copy > only. Can add a comment though. OK, I think that will be enough for now. > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > >...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...ficient way, but hey, it's not in the hot path and I'm sure I'm setting the bits correctly because this uses the standard linux kernel bitops. > At least, this needs a comment explaining what the function does, > and maybe wrap it in a helper like virtio_input_bitmap_copy or > virtio_bitmap_or. Can do that, sure. > > > > + size = virtinput_cfg_select(vi, VIRTIO_INPUT_CFG_ABS_INFO, abs); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &m...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
On Mon, Mar 23, 2015 at 02:44:52PM +0100, Gerd Hoffmann wrote: > Hi, > > > > At least, this needs a comment explaining what the function does, > > > and maybe wrap it in a helper like virtio_input_bitmap_copy or > > > virtio_bitmap_or. > > > > Can do that, sure. > > Well, the function where this is in already cares about the bitmap copy > only. Can add a comment though. OK, I think that will be enough for now. > > > You are doing leXXX everywhere, that's VERSION_1 dependency. > > >...
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
On Thu, Mar 19, 2015 at 10:13:11AM +0100, Gerd Hoffmann wrote: > virtio-input is basically evdev-events-over-virtio, so this driver isn't > much more than reading configuration from config space and forwarding > incoming events to the linux input layer. > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> What worries me is how well are these events specified. Will we
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
On Thu, Mar 19, 2015 at 10:13:11AM +0100, Gerd Hoffmann wrote: > virtio-input is basically evdev-events-over-virtio, so this driver isn't > much more than reading configuration from config space and forwarding > incoming events to the linux input layer. > > Signed-off-by: Gerd Hoffmann <kraxel at redhat.com> What worries me is how well are these events specified. Will we