| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-h.dts | 1 // 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/Documentation/devicetree/bindings/input/ |
| H A 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 …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3566-anbernic-rg353x.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/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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | rk3566-powkiddy-rk2023.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> 13 chassis-type = "handset"; 21 adc-joystick { 22 compatible = "adc-joystick"; [all …]
|
| H A D | rk3326-gameforce-chi.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 16 chassis-type = "handset"; 24 stdout-path = "serial2:115200n8"; 27 adc_joystick: adc-joystick { 28 compatible = "adc-joystick"; [all …]
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | XPPen__Artist24.bpf.c | 1 // 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 …]
|
| H A D | Microsoft__Xbox-Elite-2.bpf.c | 1 // 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 …]
|
| /linux/drivers/input/joystick/ |
| H A D | adc-joystick.c | 1 // 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/arch/arm64/boot/dts/amlogic/ |
| H A 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 …]
|
| /linux/drivers/gpu/drm/amd/display/include/ |
| H A D | fixed31_32.h | 2 * 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/Documentation/mm/damon/ |
| H A D | index.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 DAMON: Data Access MONitoring and Access-aware System Operations 11 - *accurate* (the monitoring output is useful enough for DRAM level memory 13 - *light-weight* (the monitoring overhead is low enough to be applied online), 15 - *scalable* (the upper-bound of the overhead is in constant range regardless 19 access-aware fashion. Because the features are also exposed to the :doc:`user 20 space </admin-guide/mm/damon/index>`, users who have special information about 25 :ref:`DAMOS <damon_design_damos>` (DAMon-based Operation Schemes) in addition 27 spaces </admin-guide/mm/damon/index>` can do access-aware system operations 36 maintainer-profile [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_paprd.c | 2 * 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 …]
|
| /linux/tools/perf/Documentation/ |
| H A D | perf-diff.txt | 1 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/sound/soc/codecs/ |
| H A D | rl6231.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rl6231.c - RL6231 class device shared support 17 * rl6231_get_pre_div - Return the value of pre divider. 54 pd = -EINVAL; in rl6231_get_pre_div() 63 * rl6231_calc_dmic_clk - Calculate the frequency divider parameter of dmic. 68 * 1MHz - 3MHz range. 77 return -EINVAL; in rl6231_calc_dmic_clk() 89 return -EINVAL; in rl6231_calc_dmic_clk() 131 * rl6231_pll_calc - Calcualte PLL M/N/K code. 147 unsigned int red_t = abs(freq_out - freq_in); in rl6231_pll_calc() [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_mouse.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 18 # workaround https://gitlab.freedesktop.org/libevdev/python-libevdev/issues/6 121 0x81, 0x02, # ....Input (Data,Var,Abs) 28 124 0x81, 0x03, # ....Input (Cnst,Var,Abs) 34 128 0x15, 0x81, # ....Logical Minimum (-127) 42 157 x = max(-127, min(127, x)) 158 y = max(-127, min(127, y)) 177 0x81, 0x02, # .Input (Data,Var,Abs) 20 180 0x81, 0x03, # .Input (Cnst,Var,Abs) 26 [all …]
|
| /linux/drivers/phy/freescale/ |
| H A D | phy-fsl-samsung-hdmi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <linux/clk-provider.h> 286 /* PHY_REG(1-7) pix clk specific */ 332 u32 pclk = cfg->pixclk; in fsl_samsung_hdmi_phy_configure_pll_lock_det() 345 return -EINVAL; in fsl_samsung_hdmi_phy_configure_pll_lock_det() 347 writeb(FIELD_PREP(REG12_CK_DIV_MASK, div), phy->regs + PHY_REG(12)); in fsl_samsung_hdmi_phy_configure_pll_lock_det() 365 phy->regs + PHY_REG(13)); in fsl_samsung_hdmi_phy_configure_pll_lock_det() 369 phy->regs + PHY_REG(14)); in fsl_samsung_hdmi_phy_configure_pll_lock_det() 383 * Figure 13-78 of the reference manual states the PLL should be TMDS x 5 in fsl_samsung_hdmi_phy_find_pms() 389 /* The ref manual states the values of 'P' range from 1 to 11 */ in fsl_samsung_hdmi_phy_find_pms() [all …]
|
| /linux/include/uapi/linux/ |
| H A 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 - use 179 EVIOCGABS(abs) global() argument 180 EVIOCSABS(abs) global() argument [all...] |
| /linux/arch/powerpc/platforms/512x/ |
| H A D | mpc512x_shared.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <linux/fsl-diu-fb.h> 36 out_be32(&reset_module_base->rpr, 0x52535445); in mpc512x_restart() 38 out_be32(&reset_module_base->rcr, 0x2); in mpc512x_restart() 47 u8 gamma[0x300]; /* 32-bit aligned! */ 48 struct diu_ad ad0; /* 32-bit aligned! */ 63 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock() 71 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock() 85 * determine the acceptable clock range for the monitor (+/- 5%), in mpc512x_set_pixel_clock() 88 pr_debug("DIU pixclock in ps - %u\n", pixclock); in mpc512x_set_pixel_clock() [all …]
|
| /linux/drivers/macintosh/ |
| H A 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 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() 157 props.max_brightness = FB_BACKLIGHT_LEVELS - 1; in pmu_backlight_init() 167 level = bd->props.max_brightness; in pmu_backlight_init() [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | ad3552r-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2010-2024 Analog Devices Inc. 18 [AD3552R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 19 [AD3552R_CH_OUTPUT_RANGE_NEG_10__10V] = { -10000, 10000 } 26 [AD3542R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 27 [AD3542R_CH_OUTPUT_RANGE_NEG_2P5__7P5V] = { -2500, 7500 } 91 FIELD_PREP(AD3552R_MASK_CH_OFFSET_BIT_8, abs(goffs)) | in ad3552r_calc_custom_gain() 103 * Vmax = 2.5 - [(GainP + Offset / 1024) * 2.5 * Rfb * 1.03] in ad3552r_get_custom_range() 108 common = 2575 * ch_data->rfb; in ad3552r_get_custom_range() 109 offset = ch_data->gain_offset; in ad3552r_get_custom_range() [all …]
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | stb0899_algo.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 50 struct stb0899_internal *internal = &state->internal; 55 return stb0899_calc_srate(internal->master_clk, sfr); 71 dprintk(state->verbose, FE_DEBUG, 1, "-->"); in stb0899_set_srate() 122 struct stb0899_internal *internal = &state->internal; in stb0899_carr_width() 124 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width() 133 struct stb0899_internal *internal = &state->internal; in stb0899_first_subrange() 134 struct stb0899_params *params = &state->params; in stb0899_first_subrange() 135 struct stb0899_config *config = state->config; in stb0899_first_subrange() 137 int range = 0; in stb0899_first_subrange() local [all …]
|
| /linux/drivers/clk/at91/ |
| H A D | clk-generated.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Based on clk-programmable & clk-peripheral drivers by Boris BREZILLON. 10 #include <linux/clk-provider.h> 24 struct clk_range range; member 43 spin_lock_irqsave(gck->lock, flags); in clk_generated_set() 44 regmap_write(gck->regmap, gck->layout->offset, in clk_generated_set() 45 (gck->id & gck->layout->pid_mask)); in clk_generated_set() 46 regmap_update_bits(gck->regmap, gck->layout->offset, in clk_generated_set() 47 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->gckcss_mask | in clk_generated_set() 48 gck->layout->cmd | enable, in clk_generated_set() [all …]
|