Home
last modified time | relevance | path

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

1234567891011

/linux-6.12.1/arch/arm64/boot/dts/allwinner/
Dsun50i-h700-anbernic-rg35xx-h.dts1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
7 #include "sun50i-h700-anbernic-rg35xx-plus.dts"
11 compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700";
13 adc-joystick {
14 compatible = "adc-joystick";
15 io-channels = <&adc_mux 0>,
19 pinctrl-0 = <&joy_mux_pin>;
20 pinctrl-names = "default";
21 poll-interval = <60>;
22 #address-cells = <1>;
[all …]
/linux-6.12.1/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 …]
Ddlg,da7280.txt4 - compatible: Should be "dlg,da7280".
5 - reg: Specifies the I2C slave address.
7 - interrupt-parent : Specifies the phandle of the interrupt controller to
10 - dlg,actuator-type: Set Actuator type. it should be one of:
11 "LRA" - Linear Resonance Actuator type.
12 "ERM-bar" - Bar type Eccentric Rotating Mass.
13 "ERM-coin" - Coin type Eccentric Rotating Mass.
15 - dlg,const-op-mode: Haptic operation mode for FF_CONSTANT.
17 1 - Direct register override(DRO) mode triggered by i2c(default),
18 2 - PWM data source mode controlled by PWM duty,
[all …]
/linux-6.12.1/arch/arm64/boot/dts/rockchip/
Drk3566-anbernic-rg353x.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/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rgxx3.dtsi"
11 adc-joystick {
12 compatible = "adc-joystick";
13 io-channels = <&adc_mux 0>,
17 pinctrl-0 = <&joy_mux_en>;
[all …]
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 …]
Drk3566-anbernic-rg503.dts1 // 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/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rgxx3.dtsi"
20 adc-joystick {
21 compatible = "adc-joystick";
22 io-channels = <&adc_mux 0>,
26 pinctrl-0 = <&joy_mux_en>;
[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 …]
Drk3588s-gameforce-ace.dts1 // 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/pwm/pwm.h>
10 #include <dt-bindings/thermal/thermal.h>
11 #include <dt-bindings/usb/pd.h>
16 chassis-type = "handset";
[all …]
Drk3566-powkiddy-rk2023.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>
13 chassis-type = "handset";
21 adc-joystick {
22 compatible = "adc-joystick";
[all …]
Drk3566-powkiddy-x55.dts1 // 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 chassis-type = "handset";
25 stdout-path = "serial2:1500000n8";
28 adc_joystick: adc-joystick {
[all …]
/linux-6.12.1/drivers/hid/bpf/progs/
DXPPen__Artist24.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * - the device reports Eraser instead of using Secondary Barrel Switch
22 * - the pen doesn't have a rubber tail, so basically we are removing any
39 0x81, 0x02, // Input (Data,Var,Abs) 26
41 0x81, 0x03, // Input (Cnst,Var,Abs) 30
42 0x09, 0x32, // Usage (In Range) 32
44 0x81, 0x02, // Input (Data,Var,Abs) 36
46 0x81, 0x03, // Input (Cnst,Var,Abs) 40
54 0x55, 0x0d, // Unit Exponent (-3) 55
57 0x81, 0x02, // Input (Data,Var,Abs) 63
[all …]
DHuion__Kamvas-Pro-19.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
25 * - the second button is reported through Secondary Tip Switch instead of Secondary Barrel Switch
26 * - the third button is reported through Invert, and we need some room to report it.
45 0x81, 0x02, // Input (Data,Var,Abs) 30
49 0x81, 0x02, // Input (Data,Var,Abs) /* inserted */
51 0x09, 0x32, // Usage (In Range) 32
54 0x81, 0x02, // Input (Data,Var,Abs) 38
55 0x81, 0x03, // Input (Cnst,Var,Abs) 40
59 0x55, 0x0d, // Unit Exponent (-3) 48
66 0x81, 0x02, // Input (Data,Var,Abs) 64
[all …]
DHuion__Inspiroy-2-S.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* Filled in by udev-hid-bpf */
33 * To switch the tablet use e.g. https://github.com/whot/huion-switcher
36 * This BPF works for both modes. The huion-switcher tool sets the
37 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware
54 * # 0x81, 0x02, // Input (Data,Var,Abs) 15
59 * https://github.com/whot/huion-switcher
75 * # 0x09, 0x3c, // Usage (Invert) 18 <-- has no Invert eraser
80 * # 0x81, 0x02, // Input (Data,Var,Abs) 28
81 * # 0x09, 0x32, // Usage (In Range) 30
[all …]
DHuion__Dial-2.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
19 /* Filled in by udev-hid-bpf */
34 * To switch the tablet use e.g. https://github.com/whot/huion-switcher
37 * This BPF works for both modes. The huion-switcher tool sets the
38 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware
54 * # 0x81, 0x02, // Input (Data,Var,Abs) 15
59 * https://github.com/whot/huion-switcher
81 * # 0x81, 0x02, // Input (Data,Var,Abs) 28
82 * # 0x09, 0x32, // Usage (In Range) 30
85 * # 0x81, 0x02, // Input (Data,Var,Abs) 36
[all …]
DMicrosoft__Xbox-Elite-2.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
26 * Given that over USB the kernel uses BTN_TRIGGER_HAPPY[5-8], we
28 * - We need an application collection of gamepad (so we have to close the current
30 * - We need to change the usage to be buttons from 0x15 to 0x18
42 0x81, 0x02, // Input (Data,Var,Abs) 223
47 0x81, 0x03, // Input (Cnst,Var,Abs) 233
53 0x81, 0x02, // Input (Data,Var,Abs) 247
60 * portion than just the "Assign Selection" range, because
62 * the kernel to use BTN_TRIGGER_HAPPY[4-7].
70 0x81, 0x02, // Input (Data,Var,Abs) 223
[all …]
DXPPen__ArtistPro16Gen2.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * - the device reports Eraser instead of using Secondary Barrel Switch
22 * - when the eraser button is pressed and the stylus is touching the tablet,
38 … // Usage (Eraser) 16 /* created over a padding bit at offset 29-33 */
43 0x81, 0x02, // Input (Data,Var,Abs) 28
44 0x09, 0x32, // Usage (In Range) 34
48 0x81, 0x02, // Input (Data,Var,Abs) 42
50 0x81, 0x03, // Input (Cnst,Var,Abs) 46
58 0x55, 0x0d, // Unit Exponent (-3) 61
61 0x81, 0x02, // Input (Data,Var,Abs) 69
[all …]
/linux-6.12.1/drivers/input/joystick/
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu>
35 return (max + min) - val; in adc_joystick_invert()
43 for (i = 0; i < joy->num_chans; i++) { in adc_joystick_poll()
44 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll()
47 if (joy->axes[i].inverted) in adc_joystick_poll()
49 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll()
62 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle()
64 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle()
65 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/
D3945.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
32 #define IL3945_FW_PRE "iwlwifi-3945-"
41 * Use default noise value of -127 ... this is below the range of measurable
43 * Also, -127 works better than 0 when averaging frames with/without
46 * averages within an s8's (used in some apps) range of negative values. */
47 #define IL_NOISE_MEAS_NOT_AVAILABLE (-127)
49 /* Module parameters accessible from iwl-*.c */
146 #define IL_INVALID_VALUE -1
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Dspl_fixpt31_32.h1 /* SPDX-License-Identifier: MIT */
18 #define LLONG_MIN (-LLONG_MAX - 1ll)
26 #define LLONG_MAX (-1LL>>1)
32 * represented as fixed-point numbers.
88 * result = -arg
94 res.value = -arg.value; in spl_fixpt_neg()
101 * result = abs(arg) := (arg >= 0) ? arg : -arg
214 arg.value = -arg.value; in spl_fixpt_shr()
217 arg.value = -arg.value; in spl_fixpt_shr()
234 ASSERT(((arg1.value >= 0) && (LLONG_MAX - arg1.value >= arg2.value)) || in spl_fixpt_add()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/include/
Dfixed31_32.h2 * Copyright 2012-15 Advanced Micro Devices, Inc.
33 #define LLONG_MIN (-LLONG_MAX - 1ll)
41 #define LLONG_MAX (-1LL>>1)
47 * represented as fixed-point numbers.
103 * result = -arg
109 res.value = -arg.value; in dc_fixpt_neg()
116 * result = abs(arg) := (arg >= 0) ? arg : -arg
229 arg.value = -arg.value; in dc_fixpt_shr()
232 arg.value = -arg.value; in dc_fixpt_shr()
249 ASSERT(((arg1.value >= 0) && (LLONG_MAX - arg1.value >= arg2.value)) || in dc_fixpt_add()
[all …]
/linux-6.12.1/tools/perf/Documentation/
Dperf-diff.txt1 perf-diff(1)
5 ----
6 perf-diff - Read perf.data files and display the differential profile
9 --------
14 -----------
29 -------
30 -D::
31 --dump-raw-trace::
34 --kallsyms=<file>::
37 -m::
[all …]
/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-radio-rx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * vivid-radio-rx.c - radio receiver support functions.
12 #include <linux/v4l2-dv-timings.h>
15 #include <media/v4l2-common.h>
16 #include <media/v4l2-event.h>
17 #include <media/v4l2-dv-timings.h>
19 #include "vivid-core.h"
20 #include "vivid-ctrls.h"
21 #include "vivid-radio-common.h"
22 #include "vivid-rds-gen.h"
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c2 * Copyright (c) 2010-2011 Atheros Communications Inc.
23 struct ath9k_channel *chan = ah->curchan; in ar9003_paprd_enable()
28 * is used for sub-band disabling of PAPRD. in ar9003_paprd_enable()
29 * 5G band is divided into 3 sub-bands -- upper, in ar9003_paprd_enable()
32 * -- disable PAPRD for upper band 5GHz in ar9003_paprd_enable()
34 * -- disable PAPRD for middle band 5GHz in ar9003_paprd_enable()
36 * -- disable PAPRD for lower band 5GHz in ar9003_paprd_enable()
40 if (chan->channel >= UPPER_5G_SUB_BAND_START) { in ar9003_paprd_enable()
44 } else if (chan->channel >= MID_5G_SUB_BAND_START) { in ar9003_paprd_enable()
56 ah->paprd_table_write_done = true; in ar9003_paprd_enable()
[all …]

1234567891011