search for: virtio_input_cfg_abs_info

Displaying 20 results from an estimated 39 matches for "virtio_input_cfg_abs_info".

2015 Mar 24
6
[PATCH v3] Add virtio-input driver.
...& (1 << (bit % 8))) + __set_bit(bit, bits); + } + kfree(virtio_bits); + + if (select == VIRTIO_INPUT_CFG_EV_BITS) + __set_bit(subsel, vi->idev->evbit); +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 mi, ma, re, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); + virtio_cread(vi->vdev, struct virtio_input_config, u.abs...
2015 Mar 24
6
[PATCH v3] Add virtio-input driver.
...& (1 << (bit % 8))) + __set_bit(bit, bits); + } + kfree(virtio_bits); + + if (select == VIRTIO_INPUT_CFG_EV_BITS) + __set_bit(subsel, vi->idev->evbit); +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 mi, ma, re, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); + virtio_cread(vi->vdev, struct virtio_input_config, u.abs...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...if (cfg & (1 << (bit % 8))) > + set_bit(bit, bits); > + } > +} > + > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 size, mi, ma, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > + virtio_cread(v...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...if (cfg & (1 << (bit % 8))) > + set_bit(bit, bits); > + } > +} > + > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 size, mi, ma, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > + virtio_cread(v...
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
...voke bitmap ops? Looks like the buffer is at most 256 bytes: too large to be on stack, but you can allocate it at probe time. > +} > + > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 size, mi, ma, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > + virtio_cread(vi->vdev, struct virti...
2015 Mar 19
2
[PATCH 1/1] Add virtio-input driver.
...voke bitmap ops? Looks like the buffer is at most 256 bytes: too large to be on stack, but you can allocate it at probe time. > +} > + > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 size, mi, ma, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > + virtio_cread(vi->vdev, struct virti...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > > >...
2015 Mar 21
3
[PATCH 1/1] Add virtio-input driver.
...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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > > >...
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 ++
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...virtio_cread(vi->vdev, struct virtio_input_config, + u.bitmap[bit/8], &cfg); + if (cfg & (1 << (bit % 8))) + set_bit(bit, bits); + } +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 size, mi, ma, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); + virtio_cread(vi->vdev, struct virtio_input_config, u.ab...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...virtio_cread(vi->vdev, struct virtio_input_config, + u.bitmap[bit/8], &cfg); + if (cfg & (1 << (bit % 8))) + set_bit(bit, bits); + } +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 size, mi, ma, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); + virtio_cread(vi->vdev, struct virtio_input_config, u.ab...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...C, eww. But everyone does that for input_event() callbacks.. Yea, did it this way because I saw it elsewhere. > we should fix that for user-space input one day. Sounds like I have to use GFP_ATOMIC and can't switch to GFP_KERNEL, correct? > > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > > +...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...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, &ma); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu);...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
Hi, > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 mi, ma, re, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); > + virtio_cread(vi->vdev, struct virtio...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
...C, eww. But everyone does that for input_event() callbacks.. Yea, did it this way because I saw it elsewhere. > we should fix that for user-space input one day. Sounds like I have to use GFP_ATOMIC and can't switch to GFP_KERNEL, correct? > > + 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(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); > > +...
2015 Mar 23
0
[PATCH 1/1] Add virtio-input driver.
...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, &ma); > > > > + virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu);...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
Hi, > +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) > +{ > + u32 mi, ma, re, fu, fl; > + > + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); > + virtio_cread(vi->vdev, struct virtio...
2015 Mar 24
3
[PATCH v4] Add virtio-input driver.
...& (1 << (bit % 8))) + __set_bit(bit, bits); + } + kfree(virtio_bits); + + if (select == VIRTIO_INPUT_CFG_EV_BITS) + __set_bit(subsel, vi->idev->evbit); +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 mi, ma, re, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); + virtio_cread(vi->vdev, struct virtio_input_config, u.abs...
2015 Mar 24
3
[PATCH v4] Add virtio-input driver.
...& (1 << (bit % 8))) + __set_bit(bit, bits); + } + kfree(virtio_bits); + + if (select == VIRTIO_INPUT_CFG_EV_BITS) + __set_bit(subsel, vi->idev->evbit); +} + +static void virtinput_cfg_abs(struct virtio_input *vi, int abs) +{ + u32 mi, ma, re, fu, fl; + + 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(vi->vdev, struct virtio_input_config, u.abs.res, &re); + virtio_cread(vi->vdev, struct virtio_input_config, u.abs...