Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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>
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/
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 …]
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 …]
Drk3566-anbernic-rgxx3.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>
14 stdout-path = "serial2:1500000n8";
17 adc-joystick {
18 compatible = "adc-joystick";
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Dadc-joystick.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2019-2020 Artur Rojek <contact@artur-rojek.eu>
18 s32 range[2]; 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/
Dadc-joystick.c1 // 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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/
Dcqm_test.c1 // SPDX-License-Identifier: GPL-2.0
34 if (p->num_of_runs >= NUM_OF_RUNS) in cqm_setup()
35 return -1; in cqm_setup()
37 p->num_of_runs++; in cqm_setup()
50 avg_llc_occu_resc = sum_llc_occu_resc / (NUM_OF_RUNS - 1); in show_cache_info()
51 avg_diff = (long)abs(span - avg_llc_occu_resc); in show_cache_info()
53 diff_percent = (((float)span - avg_llc_occu_resc) / span) * 100; in show_cache_info()
55 if ((abs((int)diff_percent) <= MAX_DIFF_PERCENT) || in show_cache_info()
56 (abs(avg_diff) <= MAX_DIFF)) in show_cache_info()
65 printf("# percent diff=%d\n", abs((int)diff_percent)); in show_cache_info()
[all …]
/kernel/linux/linux-5.10/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.
109 * result = -arg
115 res.value = -arg.value; in dc_fixpt_neg()
122 * result = abs(arg) := (arg >= 0) ? arg : -arg
235 arg.value = -arg.value; in dc_fixpt_shr()
238 arg.value = -arg.value; in dc_fixpt_shr()
255 ASSERT(((arg1.value >= 0) && (LLONG_MAX - arg1.value >= arg2.value)) || in dc_fixpt_add()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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()
24 struct ar9300_eeprom *eep = &ah->eeprom.ar9300_eep; 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()
41 if (le32_to_cpu(eep->modalHeader5G.papdRateMaskHt20) in ar9003_paprd_enable()
[all …]
Ddfs.c2 * 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 …]
/kernel/linux/linux-6.6/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 …]
Ddfs.c2 * 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 …]
/kernel/liteos_m/testsuites/unittest/posix/src/math/
Dmath_func_test.c2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
50 if (a == -INFINITY && b == -INFINITY) { in DoubleEquals()
56 if (a == -INFINITY && b != -INFINITY) { in DoubleEquals()
66 return fabs(a - b) < DBL_EPSILON; in DoubleEquals()
92 LOG("+-------------------------------------------+\n"); in PosixMathFuncTestSuiteTearDown()
98 * @tc.name test abs api
99 * @tc.desc [C- SOFTWARE -0100]
104 int testValues[] = {-3, 0, 3};
108 ret = abs(testValues[i]);
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Drl6231.c1 // 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 …]

12345678910>>...19