| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | adc-joystick.yaml | 1 # 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-5.10/drivers/input/joystick/ |
| D | adc-joystick.c | 1 // 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/liteos_m/testsuites/unittest/fuzz/src/stdlib/ |
| D | abs_fuzz.c | 2 * 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-5.10/include/uapi/linux/ |
| D | input.h | 1 /* 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-4.19/include/uapi/linux/ |
| D | input.h | 1 /* 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/patches/linux-4.19/prebuilts/usr/include/linux/ |
| D | input.h | 14 #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/ |
| D | virtio_input.c | 1 // 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/linux-4.19/drivers/virtio/ |
| D | virtio_input.c | 27 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf() 32 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() 37 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 38 if (vi->ready) { in virtinput_recv_events() 39 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events() 40 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events() 41 input_event(vi->idev, in virtinput_recv_events() 42 le16_to_cpu(event->type), in virtinput_recv_events() 43 le16_to_cpu(event->code), in virtinput_recv_events() 44 le32_to_cpu(event->value)); in virtinput_recv_events() [all …]
|
| /kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
| D | input.h | 11 *** 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
|
| D | virtio_input.h | 11 *** source file (e.g. under external/kernel-headers/original/) then 34 __le32 fuzz; member 52 struct virtio_input_absinfo abs; member
|
| /kernel/linux/linux-5.10/drivers/input/ |
| D | input.c | 1 // 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 > (long)old_val - fuzz / 2 && in input_defuzz_abs_event() 60 value < (long)old_val + fuzz / 2) in input_defuzz_abs_event() 63 if (value > (long)old_val - fuzz && in input_defuzz_abs_event() 64 value < (long)old_val + fuzz) in input_defuzz_abs_event() [all …]
|
| D | input-mt.c | 1 // 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-4.19/drivers/input/ |
| D | input.c | 4 * Copyright (c) 1999-2002 Vojtech Pavlik 30 #include "input-compat.h" 59 static int input_defuzz_abs_event(int value, int old_val, int fuzz) in input_defuzz_abs_event() argument 61 if (fuzz) { in input_defuzz_abs_event() 62 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 65 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 68 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() 77 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat() 78 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat() 79 dev->timer.function) { in input_start_autorepeat() [all …]
|
| D | input-mt.c | 4 * Copyright (c) 2008-2010 Henrik Rydberg 19 if (dev->absinfo && test_bit(src, dev->absbit)) { in copy_abs() 20 dev->absinfo[dst] = dev->absinfo[src]; in copy_abs() 21 dev->absinfo[dst].fuzz = 0; in copy_abs() 22 dev->absbit[BIT_WORD(dst)] |= BIT_MASK(dst); in copy_abs() 27 * input_mt_init_slots() - initialize MT input slots 38 * May be called repeatedly. Returns -EINVAL if attempting to 44 struct input_mt *mt = dev->mt; in input_mt_init_slots() 50 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots() 56 mt->num_slots = num_slots; in input_mt_init_slots() [all …]
|
| /kernel/linux/linux-4.19/drivers/misc/lis3lv02d/ |
| D | lis3lv02d.c | 2 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver 4 * Copyright (C) 2007-2008 Yan Burman 6 * Copyright (C) 2008-2009 Pavel Machek 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 #include <linux/input-polldev.h> 55 #define SELFTEST_FAIL -1 56 #define SELFTEST_IRQ -2 64 * to keep the interrupt for the free-fall event. The values are updated at 74 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG 80 /* Sensitivity values for -2G +2G scale */ [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/lis3lv02d/ |
| D | lis3lv02d.c | 1 // 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-4.19/drivers/hid/ |
| D | hid-lg.c | 5 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 6 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 7 * Copyright (c) 2006-2007 Jiri Kosina 28 #include "hid-ids.h" 29 #include "hid-lg.h" 30 #include "hid-lg4ff.h" 394 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup() 401 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup() 405 "fixing up rel/abs in Logitech report descriptor\n"); in lg_report_fixup() 409 switch (hdev->product) { in lg_report_fixup() [all …]
|
| D | wacom_wac.c | 4 * USB Wacom tablet support - Wacom specific code 33 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 64 bool changed = battery->bat_status != bat_status || in __wacom_notify_battery() 65 battery->battery_capacity != bat_capacity || in __wacom_notify_battery() 66 battery->bat_charging != bat_charging || in __wacom_notify_battery() 67 battery->bat_connected != bat_connected || in __wacom_notify_battery() 68 battery->ps_connected != ps_connected; in __wacom_notify_battery() 71 battery->bat_status = bat_status; in __wacom_notify_battery() 72 battery->battery_capacity = bat_capacity; in __wacom_notify_battery() 73 battery->bat_charging = bat_charging; in __wacom_notify_battery() [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-lg.c | 1 // 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 …]
|
| D | wacom_wac.c | 1 // 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 …]
|
| D | hid-logitech-hidpp.c | 1 // 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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/ |
| D | drm_edid.c | 3 * Copyright (c) 2007-2008 Intel Corporation 24 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 45 (((edid)->version > (maj)) || \ 46 ((edid)->version == (maj) && (edid)->revision > (min))) 75 /* Force reduced-blanking timings for detailed modes */ 116 /* BOE model on HP Pavilion 15-n233sl reports 8 bpc, but is a 6 bpc panel */ 122 /* SDC panel of Lenovo B50-80 reports 8 bpc, but is a 6 bpc panel */ 132 /* Envision Peripherals, Inc. EN-7100e */ 144 /* LG Philips LCD LP154W01-A5 */ 156 /* Samsung SyncMaster 22[5-6]BW */ [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| D | drm_edid.c | 3 * 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 …]
|
| /kernel/linux/linux-4.19/kernel/sched/ |
| D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 28 * Targeted preemption latency for CPU-bound tasks: 31 * 'timeslice length' - timeslices in CFS are of variable length 32 * and have no persistent notion like in traditional, time-slice 36 * run vmstat and monitor the context-switches (cs) field) 44 * The initial- and re-scaling of tunables is configurable 48 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 49 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 50 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 57 * Minimal preemption granularity for CPU-bound tasks: [all …]
|
| /kernel/linux/linux-5.10/kernel/sched/ |
| D | fair.c | 1 // SPDX-License-Identifier: GPL-2.0 55 * Targeted preemption latency for CPU-bound tasks: 58 * 'timeslice length' - timeslices in CFS are of variable length 59 * and have no persistent notion like in traditional, time-slice 63 * run vmstat and monitor the context-switches (cs) field) 71 * The initial- and re-scaling of tunables is configurable 75 * SCHED_TUNABLESCALING_NONE - unscaled, always *1 76 * SCHED_TUNABLESCALING_LOG - scaled logarithmical, *1+ilog(ncpus) 77 * SCHED_TUNABLESCALING_LINEAR - scaled linear, *ncpus 84 * Minimal preemption granularity for CPU-bound tasks: [all …]
|