Home
last modified time | relevance | path

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

/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 …]
/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 …]
/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 …]
/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 …]
/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"
56 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument
58 if (fuzz) { in input_defuzz_abs_event()
59 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event()
62 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event()
65 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event()
74 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat()
[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 …]
/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 …]
/linux-5.10/drivers/hid/
Dhid-lg.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz>
7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc
8 * Copyright (c) 2006-2007 Jiri Kosina
25 #include "hid-ids.h"
26 #include "hid-lg.h"
27 #include "hid-lg4ff.h"
435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup()
442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup()
446 "fixing up rel/abs in Logitech report descriptor\n"); in lg_report_fixup()
[all …]
Dwacom_wac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * USB Wacom tablet support - Wacom specific code
29 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo
60 bool changed = battery->bat_status != bat_status || in __wacom_notify_battery()
61 battery->battery_capacity != bat_capacity || in __wacom_notify_battery()
62 battery->bat_charging != bat_charging || in __wacom_notify_battery()
63 battery->bat_connected != bat_connected || in __wacom_notify_battery()
64 battery->ps_connected != ps_connected; in __wacom_notify_battery()
67 battery->bat_status = bat_status; in __wacom_notify_battery()
68 battery->battery_capacity = bat_capacity; in __wacom_notify_battery()
[all …]
Dhid-logitech-hidpp.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2012-2013 Google (c)
7 * Copyright (c) 2013-2014 Red Hat Inc.
25 #include <linux/fixp-arith.h>
28 #include "hid-ids.h"
42 "Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently).");
83 /* Convenience constant to check for any high-res support. */
123 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U];
129 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U];
158 * struct hidpp_scroll_counter - Utility class for processing high-resolution
[all …]
/linux-5.10/drivers/gpu/drm/
Ddrm_edid.c3 * Copyright (c) 2007-2008 Intel Corporation
24 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
48 (((edid)->version > (maj)) || \
49 ((edid)->version == (maj) && (edid)->revision > (min)))
76 /* Force reduced-blanking timings for detailed modes */
115 /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */
121 /* SDC panel of Lenovo B50-80 reports 8 bpc, but is a 6 bpc panel */
131 /* Envision Peripherals, Inc. EN-7100e */
143 /* LG Philips LCD LP154W01-A5 */
149 /* Samsung SyncMaster 22[5-6]BW */
[all …]
/linux-5.10/kernel/sched/
Dfair.c1 // SPDX-License-Identifier: GPL-2.0
26 * Targeted preemption latency for CPU-bound tasks:
29 * 'timeslice length' - timeslices in CFS are of variable length
30 * and have no persistent notion like in traditional, time-slice
34 * run vmstat and monitor the context-switches (cs) field)
42 * The initial- and re-scaling of tunables is configurable
46 * SCHED_TUNABLESCALING_NONE - unscaled, always *1
47 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus)
48 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus
55 * Minimal preemption granularity for CPU-bound tasks:
[all …]