| /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> 20 s32 flat; 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-5.10/drivers/macintosh/ |
| D | via-pmu-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Backlight code for via-pmu 6 * Copyright (C) 2001-2002 Benjamin Herrenschmidt 7 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> 26 int i, flat, count, range = (max - min); in pmu_backlight_init_curve() local 30 for (flat = 1; flat < (FB_BACKLIGHT_LEVELS / 16); ++flat) in pmu_backlight_init_curve() 31 bl_curve[flat] = min; in pmu_backlight_init_curve() 35 bl_curve[flat + i] = min + (range * (i + 1) / count); in pmu_backlight_init_curve() 40 int level = (FB_BACKLIGHT_LEVELS - 1); in pmu_backlight_curve_lookup() 49 int diff = abs(bl_curve[i] - value); in pmu_backlight_curve_lookup() [all …]
|
| /kernel/linux/linux-4.19/drivers/macintosh/ |
| D | via-pmu-backlight.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Backlight code for via-pmu 6 * Copyright (C) 2001-2002 Benjamin Herrenschmidt 7 * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> 26 int i, flat, count, range = (max - min); in pmu_backlight_init_curve() local 30 for (flat = 1; flat < (FB_BACKLIGHT_LEVELS / 16); ++flat) in pmu_backlight_init_curve() 31 bl_curve[flat] = min; in pmu_backlight_init_curve() 35 bl_curve[flat + i] = min + (range * (i + 1) / count); in pmu_backlight_init_curve() 40 int level = (FB_BACKLIGHT_LEVELS - 1); in pmu_backlight_curve_lookup() 49 int diff = abs(bl_curve[i] - value); in pmu_backlight_curve_lookup() [all …]
|
| /kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
| D | input.h | 14 #include "input-event-codes.h" 47 __s32 flat; 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/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 73 * @flat: values that are within this value will be discarded by 95 __s32 flat; 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 73 * @flat: values that are within this value will be discarded by 95 __s32 flat; 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-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" 58 __s32 flat; 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 35 __le32 flat; member 52 struct virtio_input_absinfo abs; member
|
| /kernel/linux/linux-5.10/drivers/video/fbdev/geode/ |
| D | video_gx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 136 min = abs(pll_table[0].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 138 diff = abs(pll_table[i].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 171 } while (timeout-- && !(dotpll & MSR_GLCP_DOTPLL_LOCK)); in gx_set_dclk_frequency() 177 struct gxfb_par *par = info->par; in gx_configure_tft() 198 fp |= info->var.yres << FP_PT1_VSIZE_SHIFT; in gx_configure_tft() 208 if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT)) in gx_configure_tft() 211 if (!(info->var.sync & FB_SYNC_HOR_HIGH_ACT)) in gx_configure_tft() 234 struct gxfb_par *par = info->par; in gx_configure_display() 260 if (par->enable_crt) { in gx_configure_display() [all …]
|
| D | lxfb_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2006-2007, Advanced Micro Devices,Inc. 23 /* This is the complete list of PLL frequencies that we can set - 165 freq = (unsigned int) (1000000000 / info->var.pixclock); in lx_set_clock() 167 min = abs(pll_table[0].freq - freq); in lx_set_clock() 170 diff = abs(pll_table[i].freq - freq); in lx_set_clock() 182 struct lxfb_par *par = info->par; in lx_graphics_disable() 247 struct lxfb_par *par = info->par; in lx_graphics_enable() 263 if (info->var.sync & FB_SYNC_HOR_HIGH_ACT) in lx_graphics_enable() 266 if (info->var.sync & FB_SYNC_VERT_HIGH_ACT) in lx_graphics_enable() [all …]
|
| /kernel/linux/linux-4.19/drivers/video/fbdev/geode/ |
| D | video_gx.c | 140 min = abs(pll_table[0].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 142 diff = abs(pll_table[i].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 175 } while (timeout-- && !(dotpll & MSR_GLCP_DOTPLL_LOCK)); in gx_set_dclk_frequency() 181 struct gxfb_par *par = info->par; in gx_configure_tft() 202 fp |= info->var.yres << FP_PT1_VSIZE_SHIFT; in gx_configure_tft() 212 if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT)) in gx_configure_tft() 215 if (!(info->var.sync & FB_SYNC_HOR_HIGH_ACT)) in gx_configure_tft() 238 struct gxfb_par *par = info->par; in gx_configure_display() 264 if (par->enable_crt) { in gx_configure_display() 273 if (!(info->var.sync & FB_SYNC_HOR_HIGH_ACT)) in gx_configure_display() [all …]
|
| D | lxfb_ops.c | 3 * Copyright (C) 2006-2007, Advanced Micro Devices,Inc. 27 /* This is the complete list of PLL frequencies that we can set - 169 freq = (unsigned int) (1000000000 / info->var.pixclock); in lx_set_clock() 171 min = abs(pll_table[0].freq - freq); in lx_set_clock() 174 diff = abs(pll_table[i].freq - freq); in lx_set_clock() 186 struct lxfb_par *par = info->par; in lx_graphics_disable() 251 struct lxfb_par *par = info->par; in lx_graphics_enable() 267 if (info->var.sync & FB_SYNC_HOR_HIGH_ACT) in lx_graphics_enable() 270 if (info->var.sync & FB_SYNC_VERT_HIGH_ACT) in lx_graphics_enable() 273 if (par->output & OUTPUT_PANEL) { in lx_graphics_enable() [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-5.10/drivers/input/misc/ |
| D | uinput.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * - add UI_GET_SYSNAME ioctl 13 * - updated ff support for the changes in kernel interface 14 * - added MODULE_VERSION 16 * - added force feedback support 17 * - added UI_SET_PHYS 19 * - first public version 31 #include "../input-compat.h" 79 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 87 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() [all …]
|
| /kernel/linux/linux-4.19/drivers/input/misc/ |
| D | uinput.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * - add UI_GET_SYSNAME ioctl 26 * - updated ff support for the changes in kernel interface 27 * - added MODULE_VERSION 29 * - added force feedback support 30 * - added UI_SET_PHYS 32 * - first public version 44 #include "../input-compat.h" 92 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 100 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() [all …]
|
| /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" 59 if (value > (long)old_val - fuzz / 2 && in input_defuzz_abs_event() 63 if (value > (long)old_val - fuzz && in input_defuzz_abs_event() 67 if (value > (long)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 …]
|
| /kernel/linux/linux-4.19/drivers/input/ |
| D | input.c | 4 * Copyright (c) 1999-2002 Vojtech Pavlik 30 #include "input-compat.h" 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() 80 dev->repeat_key = code; in input_start_autorepeat() 81 mod_timer(&dev->timer, in input_start_autorepeat() [all …]
|
| /kernel/linux/linux-4.19/tools/perf/Documentation/ |
| D | perf-config.txt | 1 perf-config(1) 5 ---- 6 perf-config - Get and set variables in a configuration file. 9 -------- 11 'perf config' [<file-option>] [section.name[=value] ...] 13 'perf config' [<file-option>] -l | --list 16 ----------- 20 ------- 22 -l:: 23 --list:: [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | tda7419.c | 1 // SPDX-License-Identifier: GPL-2.0-only 136 if (tvc->reg == tvc->rreg) in tda7419_vol_is_stereo() 146 (struct tda7419_vol_control *)kcontrol->private_value; in tda7419_vol_info() 148 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in tda7419_vol_info() 149 uinfo->count = tda7419_vol_is_stereo(tvc) ? 2 : 1; in tda7419_vol_info() 150 uinfo->value.integer.min = tvc->min; in tda7419_vol_info() 151 uinfo->value.integer.max = tvc->max; in tda7419_vol_info() 163 val = 0 - val; in tda7419_vol_get_value() 166 val = val - thresh; in tda7419_vol_get_value() 168 val = thresh - val; in tda7419_vol_get_value() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/codecs/ |
| D | tda7419.c | 144 if (tvc->reg == tvc->rreg) in tda7419_vol_is_stereo() 154 (struct tda7419_vol_control *)kcontrol->private_value; in tda7419_vol_info() 156 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in tda7419_vol_info() 157 uinfo->count = tda7419_vol_is_stereo(tvc) ? 2 : 1; in tda7419_vol_info() 158 uinfo->value.integer.min = tvc->min; in tda7419_vol_info() 159 uinfo->value.integer.max = tvc->max; in tda7419_vol_info() 171 val = 0 - val; in tda7419_vol_get_value() 174 val = val - thresh; in tda7419_vol_get_value() 176 val = thresh - val; in tda7419_vol_get_value() 190 (struct tda7419_vol_control *)kcontrol->private_value; in tda7419_vol_get() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/i2c/ |
| D | mt9m111.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/v4l2-mediabus.h> 18 #include <media/v4l2-async.h> 19 #include <media/v4l2-clk.h> 20 #include <media/v4l2-common.h> 21 #include <media/v4l2-ctrls.h> 22 #include <media/v4l2-device.h> 23 #include <media/v4l2-event.h> 24 #include <media/v4l2-fwnode.h> 246 /* user point of view - 0: falling 1: rising edge */ [all …]
|