Home
last modified time | relevance | path

Searched +full:abs +full:- +full:fuzz (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/
Dadc-joystick.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
4 ---
5 $id: http://devicetree.org/schemas/input/adc-joystick.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Artur Rojek <contact@artur-rojek.eu>
18 - $ref: input.yaml#
22 const: adc-joystick
24 io-channels:
31 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dadc-joystick.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright 2019-2020 Artur Rojek
4 ---
5 $id: "http://devicetree.org/schemas/input/adc-joystick.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
11 - Artur Rojek <contact@artur-rojek.eu>
19 const: adc-joystick
21 io-channels:
27 See Documentation/devicetree/bindings/iio/iio-bindings.txt for details.
29 '#address-cells':
[all …]
/kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/
Drk3326-odroid-go3.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Super";
13 compatible = "hardkernel,rk3326-odroid-go3", "rockchip,rk3326";
15 joystick_mux_controller: mux-controller {
16 compatible = "gpio-mux";
18 #mux-control-cells = <0>;
20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>,
24 joystick_mux: adc-mux {
[all …]
Drk3326-odroid-go2.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Advance";
13 compatible = "hardkernel,rk3326-odroid-go2", "rockchip,rk3326";
15 analog_sticks: adc-joystick {
16 compatible = "adc-joystick";
17 io-channels = <&saradc 1>,
19 poll-interval = <60>;
20 #address-cells = <1>;
[all …]
Drk3326-odroid-go2-v11.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 /dts-v1/;
9 #include "rk3326-odroid-go.dtsi"
12 model = "ODROID-GO Advance Black Edition";
13 compatible = "hardkernel,rk3326-odroid-go2-v11", "rockchip,rk3326";
19 analog_sticks: adc-joystick {
20 compatible = "adc-joystick";
21 io-channels = <&saradc 1>,
23 poll-interval = <60>;
24 #address-cells = <1>;
[all …]
Drk3566-anbernic-rgxx3.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 /dts-v1/;
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/soc/rockchip,vop2.h>
14 stdout-path = "serial2:1500000n8";
17 adc-joystick {
18 compatible = "adc-joystick";
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu>
19 s32 fuzz; member
39 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
41 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
42 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
43 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
44 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle()
45 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle()
66 return -EINVAL; in adc_joystick_handle()
[all …]
/kernel/linux/linux-6.6/drivers/input/joystick/
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu>
19 s32 fuzz; member
37 for (i = 0; i < joy->num_chans; i++) { in adc_joystick_poll()
38 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll()
41 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll()
54 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
56 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
57 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
58 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle()
[all …]
/kernel/liteos_m/testsuites/unittest/fuzz/src/stdlib/
Dabs_fuzz.c2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
49 dprintf("Fuzz test in line [%d]\n", __LINE__); in AbsFuzzTest()
59 (void)abs(absNum); in AbsFuzzTest()
62 printf("Fuzz test in line [%d] abs ok\n", __LINE__); in AbsFuzzTest()
/kernel/linux/linux-6.6/arch/arm64/boot/dts/amlogic/
Dmeson-g12b-odroid-go-ultra.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include "meson-g12b-s922x.dtsi"
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/gpio/meson-g12a-gpio.h>
12 #include <dt-bindings/sound/meson-g12a-toacodec.h>
13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
16 compatible = "hardkernel,odroid-go-ultra", "amlogic,s922x", "amlogic,g12b";
17 model = "Hardkernel ODROID-GO-Ultra";
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dinput.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (c) 1999-2002 Vojtech Pavlik
20 #include "input-event-codes.h"
56 * IOCTLs (0x00 - 0x7f)
67 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls
71 * @fuzz: specifies fuzz value that is used to filter noise from
94 __s32 fuzz; member
100 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls
101 * @scancode: scancode represented in machine-endian form.
145 * EVIOCGMTSLOTS(len) - get MT slot values
[all …]
/kernel/linux/linux-6.6/include/uapi/linux/
Dinput.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (c) 1999-2002 Vojtech Pavlik
20 #include "input-event-codes.h"
56 * IOCTLs (0x00 - 0x7f)
67 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls
71 * @fuzz: specifies fuzz value that is used to filter noise from
97 __s32 fuzz; member
103 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls
104 * @scancode: scancode represented in machine-endian form.
148 * EVIOCGMTSLOTS(len) - get MT slot values
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dinput.h14 #include "input-event-codes.h"
46 __s32 fuzz; member
81 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) argument
82 #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) argument
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_input.c1 // SPDX-License-Identifier: GPL-2.0-only
29 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
34 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events()
39 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
40 if (vi->ready) { in virtinput_recv_events()
41 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
42 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events()
43 input_event(vi->idev, in virtinput_recv_events()
44 le16_to_cpu(event->type), in virtinput_recv_events()
45 le16_to_cpu(event->code), in virtinput_recv_events()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dinput.h11 *** source file (e.g. under external/kernel-headers/original/) then
25 #include "input-event-codes.h"
57 __s32 fuzz; member
92 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) argument
93 #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) argument
Dvirtio_input.h11 *** source file (e.g. under external/kernel-headers/original/) then
34 __le32 fuzz; member
52 struct virtio_input_absinfo abs; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
Dinput.h11 *** source file (e.g. under external/kernel-headers/original/) then
25 #include "input-event-codes.h"
57 __s32 fuzz; member
92 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) argument
93 #define EVIOCSABS(abs) _IOW('E', 0xc0 + (abs), struct input_absinfo) argument
Dvirtio_input.h11 *** source file (e.g. under external/kernel-headers/original/) then
34 __le32 fuzz; member
52 struct virtio_input_absinfo abs; member
/kernel/linux/linux-6.6/drivers/virtio/
Dvirtio_input.c1 // SPDX-License-Identifier: GPL-2.0-only
30 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
35 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events()
40 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
41 if (vi->ready) { in virtinput_recv_events()
42 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
43 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events()
44 input_event(vi->idev, in virtinput_recv_events()
45 le16_to_cpu(event->type), in virtinput_recv_events()
46 le16_to_cpu(event->code), in virtinput_recv_events()
[all …]
/kernel/linux/linux-5.10/drivers/input/
Dinput.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2002 Vojtech Pavlik
26 #include "input-compat.h"
27 #include "input-poller.h"
67 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument
69 if (fuzz) { in input_defuzz_abs_event()
70 if (value > (long)old_val - fuzz / 2 && in input_defuzz_abs_event()
71 value < (long)old_val + fuzz / 2) in input_defuzz_abs_event()
74 if (value > (long)old_val - fuzz && in input_defuzz_abs_event()
75 value < (long)old_val + fuzz) in input_defuzz_abs_event()
[all …]
Dinput-mt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2008-2010 Henrik Rydberg
16 if (dev->absinfo && test_bit(src, dev->absbit)) { in copy_abs()
17 dev->absinfo[dst] = dev->absinfo[src]; in copy_abs()
18 dev->absinfo[dst].fuzz = 0; in copy_abs()
19 __set_bit(dst, dev->absbit); in copy_abs()
24 * input_mt_init_slots() - initialize MT input slots
35 * May be called repeatedly. Returns -EINVAL if attempting to
41 struct input_mt *mt = dev->mt; in input_mt_init_slots()
47 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
[all …]
/kernel/linux/linux-6.6/drivers/input/
Dinput.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2002 Vojtech Pavlik
28 #include "input-compat.h"
29 #include "input-core-private.h"
30 #include "input-poller.h"
70 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument
72 if (fuzz) { in input_defuzz_abs_event()
73 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event()
76 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event()
79 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event()
[all …]
Dinput-mt.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2008-2010 Henrik Rydberg
11 #include "input-core-private.h"
17 if (dev->absinfo && test_bit(src, dev->absbit)) { in copy_abs()
18 dev->absinfo[dst] = dev->absinfo[src]; in copy_abs()
19 dev->absinfo[dst].fuzz = 0; in copy_abs()
20 __set_bit(dst, dev->absbit); in copy_abs()
25 * input_mt_init_slots() - initialize MT input slots
36 * May be called repeatedly. Returns -EINVAL if attempting to
42 struct input_mt *mt = dev->mt; in input_mt_init_slots()
[all …]
/kernel/linux/linux-6.6/drivers/misc/lis3lv02d/
Dlis3lv02d.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver
5 * Copyright (C) 2007-2008 Yan Burman
7 * Copyright (C) 2008-2009 Pavel Machek
42 #define SELFTEST_FAIL -1
43 #define SELFTEST_IRQ -2
51 * to keep the interrupt for the free-fall event. The values are updated at
61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG
67 /* Sensitivity values for -2G +2G scale */
72 * LIS331DLH spec says 1LSBs corresponds 4G/4096 -> 1LSB is 1000/1024 mG.
[all …]
/kernel/linux/linux-5.10/drivers/misc/lis3lv02d/
Dlis3lv02d.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver
5 * Copyright (C) 2007-2008 Yan Burman
7 * Copyright (C) 2008-2009 Pavel Machek
42 #define SELFTEST_FAIL -1
43 #define SELFTEST_IRQ -2
51 * to keep the interrupt for the free-fall event. The values are updated at
61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG
67 /* Sensitivity values for -2G +2G scale */
72 * LIS331DLH spec says 1LSBs corresponds 4G/4096 -> 1LSB is 1000/1024 mG.
[all …]

12