Displaying 20 results from an estimated 36 matches for "input_ev".
Did you mean:
input_dev
2015 Mar 24
2
[PATCH v3] Add virtio-input driver.
...virtio_device *vdev;
> > + struct input_dev *idev;
> > + char name[64];
> > + char serial[64];
> > + char phys[64];
> > + struct virtqueue *evt, *sts;
> > + struct virtio_input_event evts[64];
> > + spinlock_t lock;
> > +};
> > +
> > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > + struct virtio_input_event *evtbuf)
> > +{
> > + struct scatterlist sg[1];
> > +
> > + sg_init_one(sg,...
2015 Mar 24
2
[PATCH v3] Add virtio-input driver.
...virtio_device *vdev;
> > + struct input_dev *idev;
> > + char name[64];
> > + char serial[64];
> > + char phys[64];
> > + struct virtqueue *evt, *sts;
> > + struct virtio_input_event evts[64];
> > + spinlock_t lock;
> > +};
> > +
> > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > + struct virtio_input_event *evtbuf)
> > +{
> > + struct scatterlist sg[1];
> > +
> > + sg_init_one(sg,...
2015 Mar 24
2
[virtio-dev] Re: [PATCH v3] Add virtio-input driver.
Hi,
> > + spin_lock_irqsave(&vi->lock, flags);
> > + while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) {
> > + input_event(vi->idev,
> > + le16_to_cpu(event->type),
> > + le16_to_cpu(event->code),
> > + le32_to_cpu(event->value));
>
> What happens if input layer gets an
> unexpected event code or value?
input layer checks it and ignores events not supported...
2015 Mar 24
2
[virtio-dev] Re: [PATCH v3] Add virtio-input driver.
Hi,
> > + spin_lock_irqsave(&vi->lock, flags);
> > + while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) {
> > + input_event(vi->idev,
> > + le16_to_cpu(event->type),
> > + le16_to_cpu(event->code),
> > + le32_to_cpu(event->value));
>
> What happens if input layer gets an
> unexpected event code or value?
input layer checks it and ignores events not supported...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
...t; > > + struct input_dev *idev;
> > > + char name[64];
> > > + char serial[64];
> > > + char phys[64];
> > > + struct virtqueue *evt, *sts;
> > > + struct virtio_input_event evts[64];
> > > + spinlock_t lock;
> > > +};
> > > +
> > > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > > + struct virtio_input_event *evtbuf)
> > > +{
> > > + struct scatterlist sg[1];
>...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
...t; > > + struct input_dev *idev;
> > > + char name[64];
> > > + char serial[64];
> > > + char phys[64];
> > > + struct virtqueue *evt, *sts;
> > > + struct virtio_input_event evts[64];
> > > + spinlock_t lock;
> > > +};
> > > +
> > > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > > + struct virtio_input_event *evtbuf)
> > > +{
> > > + struct scatterlist sg[1];
>...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...o_device *vdev;
> + struct input_dev *idev;
> + char name[64];
> + char serial[64];
> + char phys[64];
> + struct virtqueue *evt, *sts;
> + struct virtio_input_event evts[64];
> +};
> +
> +static ssize_t serial_show(struct device *dev,
> + struct device_attribute *attr, char *buf)
> +{
> + struct input_dev *idev = to_input_dev(dev);
> + struct virtio_input *vi = input_get_drvdata(idev);
> +...
2015 Mar 19
5
[PATCH 1/1] Add virtio-input driver.
...o_device *vdev;
> + struct input_dev *idev;
> + char name[64];
> + char serial[64];
> + char phys[64];
> + struct virtqueue *evt, *sts;
> + struct virtio_input_event evts[64];
> +};
> +
> +static ssize_t serial_show(struct device *dev,
> + struct device_attribute *attr, char *buf)
> +{
> + struct input_dev *idev = to_input_dev(dev);
> + struct virtio_input *vi = input_get_drvdata(idev);
> +...
2015 Mar 24
1
[PATCH v3] Add virtio-input driver.
...ut_dev *idev;
> > > > + char name[64];
> > > > + char serial[64];
> > > > + char phys[64];
> > > > + struct virtqueue *evt, *sts;
> > > > + struct virtio_input_event evts[64];
> > > > + spinlock_t lock;
> > > > +};
> > > > +
> > > > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > > > + struct virtio_input_event *evtbuf)
> > > > +{
> > > &g...
2015 Mar 24
1
[PATCH v3] Add virtio-input driver.
...ut_dev *idev;
> > > > + char name[64];
> > > > + char serial[64];
> > > > + char phys[64];
> > > > + struct virtqueue *evt, *sts;
> > > > + struct virtio_input_event evts[64];
> > > > + spinlock_t lock;
> > > > +};
> > > > +
> > > > +static void virtinput_queue_evtbuf(struct virtio_input *vi,
> > > > + struct virtio_input_event *evtbuf)
> > > > +{
> > > &g...
2015 Mar 24
6
[PATCH v3] Add virtio-input driver.
...i/linux/virtio_input.h>
+
+struct virtio_input {
+ struct virtio_device *vdev;
+ struct input_dev *idev;
+ char name[64];
+ char serial[64];
+ char phys[64];
+ struct virtqueue *evt, *sts;
+ struct virtio_input_event evts[64];
+ spinlock_t lock;
+};
+
+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);
+...
2015 Mar 24
6
[PATCH v3] Add virtio-input driver.
...i/linux/virtio_input.h>
+
+struct virtio_input {
+ struct virtio_device *vdev;
+ struct input_dev *idev;
+ char name[64];
+ char serial[64];
+ char phys[64];
+ struct virtqueue *evt, *sts;
+ struct virtio_input_event evts[64];
+ spinlock_t lock;
+};
+
+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);
+...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...; + struct input_dev *idev;
> > + char name[64];
> > + char serial[64];
> > + char phys[64];
> > + struct virtqueue *evt, *sts;
> > + struct virtio_input_event evts[64];
> > +};
> > +
> > +static ssize_t serial_show(struct device *dev,
> > + struct device_attribute *attr, char *buf)
> > +{
> > + struct input_dev *idev = to_input_dev(dev);
> > + struct virtio_input *vi = inp...
2015 Mar 19
0
[PATCH 1/1] Add virtio-input driver.
...; + struct input_dev *idev;
> > + char name[64];
> > + char serial[64];
> > + char phys[64];
> > + struct virtqueue *evt, *sts;
> > + struct virtio_input_event evts[64];
> > +};
> > +
> > +static ssize_t serial_show(struct device *dev,
> > + struct device_attribute *attr, char *buf)
> > +{
> > + struct input_dev *idev = to_input_dev(dev);
> > + struct virtio_input *vi = inp...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
Hi,
> > +static int virtinput_send_status(struct virtio_input *vi,
> > + u16 type, u16 code, s32 value)
> > +{
> > + struct virtio_input_event *stsbuf;
> > + struct scatterlist sg[1];
> > +
> > + stsbuf = kzalloc(sizeof(*stsbuf), GFP_ATOMIC);
> > + if (!stsbuf)
> > + return -ENOMEM;
> > +
> > + stsbuf->type = cpu_to_le16(type);
> > + stsbuf-...
2015 Mar 24
0
[virtio-dev] Re: [PATCH v3] Add virtio-input driver.
On Tue, Mar 24, 2015 at 12:46:21PM +0100, Gerd Hoffmann wrote:
> Hi,
>
> > > + spin_lock_irqsave(&vi->lock, flags);
> > > + while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) {
> > > + input_event(vi->idev,
> > > + le16_to_cpu(event->type),
> > > + le16_to_cpu(event->code),
> > > + le32_to_cpu(event->value));
> >
> > What happens if input layer gets an
> > unexpected event code or value?
>
> input layer che...
2015 Mar 20
0
[PATCH 1/1] Add virtio-input driver.
Hi,
> > +static int virtinput_send_status(struct virtio_input *vi,
> > + u16 type, u16 code, s32 value)
> > +{
> > + struct virtio_input_event *stsbuf;
> > + struct scatterlist sg[1];
> > +
> > + stsbuf = kzalloc(sizeof(*stsbuf), GFP_ATOMIC);
> > + if (!stsbuf)
> > + return -ENOMEM;
> > +
> > + stsbuf->type = cpu_to_le16(type);
> > + stsbuf-...
2015 Mar 24
0
[virtio-dev] Re: [PATCH v3] Add virtio-input driver.
On Tue, Mar 24, 2015 at 12:46:21PM +0100, Gerd Hoffmann wrote:
> Hi,
>
> > > + spin_lock_irqsave(&vi->lock, flags);
> > > + while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) {
> > > + input_event(vi->idev,
> > > + le16_to_cpu(event->type),
> > > + le16_to_cpu(event->code),
> > > + le32_to_cpu(event->value));
> >
> > What happens if input layer gets an
> > unexpected event code or value?
>
> input layer che...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
...t virtio_input {
> + struct virtio_device *vdev;
> + struct input_dev *idev;
> + char name[64];
> + char serial[64];
> + char phys[64];
> + struct virtqueue *evt, *sts;
> + struct virtio_input_event evts[64];
> + spinlock_t lock;
> +};
> +
> +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_a...
2015 Mar 24
0
[PATCH v3] Add virtio-input driver.
...t virtio_input {
> + struct virtio_device *vdev;
> + struct input_dev *idev;
> + char name[64];
> + char serial[64];
> + char phys[64];
> + struct virtqueue *evt, *sts;
> + struct virtio_input_event evts[64];
> + spinlock_t lock;
> +};
> +
> +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_a...