/openbmc/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 …]
|
H A D | dlg,da7280.txt | 4 - 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
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-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 …]
|
/openbmc/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> 18 s32 range[2]; 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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945.h | 1 /* 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 …]
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | generic_fuzz.c | 2 * Generic Virtual-Device Fuzzing Target 10 * See the COPYING file in the top-level directory. 14 #include "qemu/range.h" 20 #include "tests/qtest/libqos/pci-pc.h" 25 #include "hw/qdev-core.h" 30 #include "hw/mem/sparse-mem.h" 108 if (info->index == 0) { in get_io_address_cb() 109 info->result.addr = (ram_addr_t)start; in get_io_address_cb() 110 info->result.size = (ram_addr_t)size; in get_io_address_cb() 111 info->found = 1; in get_io_address_cb() [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/include/linux/ |
H A D | kernel.h | 9 #define SHRT_MIN ((s16)(-SHRT_MAX - 1)) 11 #define INT_MIN (-INT_MAX - 1) 14 #define LONG_MIN (-LONG_MAX - 1) 17 #define LLONG_MIN (-LLONG_MAX - 1) 25 #define S8_MIN ((s8)(-S8_MAX - 1)) 28 #define S16_MIN ((s16)(-S16_MAX - 1)) 31 #define S32_MIN ((s32)(-S32_MAX - 1)) 34 #define S64_MIN ((s64)(-S64_MAX - 1)) 44 #define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1) 45 #define ALIGN_DOWN(x, a) ALIGN((x) - ((a) - 1), (a)) [all …]
|
/openbmc/openbmc-test-automation/redfish/managers/ |
H A D | test_managers_bmc_time.robot | 18 ${date_time_with_offset} 2019-04-25T26:24:46+00:00 19 ${expected_date_time} 2019-04-26T02:24:46+00:00 20 ${invalid_datetime} "2019-04-251T12:24:46+00:00" 33 ${time_diff}= Evaluate abs(${time_diff}) 52 ${time_diff}= Evaluate abs(${time_diff}) 73 Valid Range date_time_diff 0 ${max_time_diff_in_seconds} 96 ${time_diff}= Evaluate abs(${time_diff})
|
/openbmc/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 …]
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-radio-rx.c | 1 // 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 …]
|
/openbmc/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 …]
|
H A D | dfs.c | 2 * Copyright (c) 2008-2011 Atheros Communications Inc. 19 #include "hw-ops.h" 36 * - 20MHz chirp width over a pulse width of 50us 37 * - 5MHz chirp width over a pulse width of 100us 49 /* width range to be checked for chirping */ 83 is_ctl = fft_bitmap_weight(fft->lower_bins) != 0; in ath9k_get_max_index_ht40() 84 is_ext = fft_bitmap_weight(fft->upper_bins) != 0; in ath9k_get_max_index_ht40() 88 int mag_lower = fft_max_magnitude(fft->lower_bins); in ath9k_get_max_index_ht40() 89 int mag_upper = fft_max_magnitude(fft->upper_bins); in ath9k_get_max_index_ht40() 97 return fft_max_index(fft->lower_bins); in ath9k_get_max_index_ht40() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/include/linux/ |
H A D | math.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) 18 * round_up - round up to next specified power of 2 25 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) 28 * round_down - round down to next specified power of 2 43 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d)) 52 * roundup - round up to the next specified multiple 62 (((x) + (__y - 1)) / __y) * __y; \ 66 * rounddown - round down to next specified multiple 76 __x - (__x % (y)); \ [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A 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 …]
|
/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_sensor.robot | 57 ${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10 63 ... Inlet air temperature case-insensitive 76 FOR ${index} IN RANGE ${list_length} 78 ... Evaluate abs(${ambient_temp_redfish[${index}]} - ${ipmi_temp_list[${index}]}) 120 ${temp_reading}= Run IPMI Standard Command dcmi get_temp_reading -N 10 125 ... Baseboard temperature case-insensitive=True 139 FOR ${index} IN RANGE ${list_length} 140 …${baseboard_temp_diff}= Evaluate abs(${baseboard_temp_redfish[${index}]} - ${ipmi_temp_list[${in… 198 Upper Non-Critical UpperThresholdNonCritical 200 Lower Non-Critical LowerThresholdNonCritical [all …]
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-pll.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * +--------------------------------+ 16 * | +--+ | 17 * in >>-----[ /N ]--->| | +-----+ | 18 * | | |------| DCO |---->> out 19 * | +--------->| | +--v--+ | 20 * | | +--+ | | 22 * | +--[ *(M + (F/Fmax) ]<--+ | 24 * +--------------------------------+ 29 #include <linux/clk-provider.h> [all …]
|
/openbmc/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 …]
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 15 #include "standard-headers/linux/types.h" 17 #include "standard-headers/linux/input-event-codes.h" 53 * IOCTLs (0x00 - 0x7f) 64 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls 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 166 * If the request code is not an ABS_MT value, -EINVAL is returned. [all …]
|
/openbmc/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 - used by EVIOCGABS/EVIOCSABS ioctls 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 169 * If the request code is not an ABS_MT value, -EINVAL is returned. 179 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */ argument [all …]
|