| /kernel/linux/linux-6.6/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> 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/ |
| 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-6.6/arch/arm64/boot/dts/rockchip/ |
| D | rk3326-odroid-go3.dts | 1 // 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 …]
|
| D | rk3326-odroid-go2.dts | 1 // 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 …]
|
| D | rk3326-odroid-go2-v11.dts | 1 // 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 …]
|
| D | rk3566-anbernic-rgxx3.dtsi | 1 // 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/ |
| 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-6.6/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 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/linux/linux-6.6/arch/arm64/boot/dts/amlogic/ |
| D | meson-g12b-odroid-go-ultra.dts | 1 // 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/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-6.6/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> 25 int i, flat, count, range = (max - min); in pmu_backlight_init_curve() local 29 for (flat = 1; flat < (FB_BACKLIGHT_LEVELS / 16); ++flat) in pmu_backlight_init_curve() 30 bl_curve[flat] = min; in pmu_backlight_init_curve() 34 bl_curve[flat + i] = min + (range * (i + 1) / count); in pmu_backlight_init_curve() 39 int level = (FB_BACKLIGHT_LEVELS - 1); in pmu_backlight_curve_lookup() 48 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-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-6.6/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 98 __s32 flat; 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/linux-6.6/drivers/virtio/ |
| D | virtio_input.c | 1 // 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/patches/linux-6.6/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/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /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-6.6/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-6.6/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" 80 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 88 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() [all …]
|