| /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-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> 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-5.10/drivers/net/wireless/intel/iwlegacy/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/intel/iwlegacy/ |
| D | 3945.h | 3 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. 23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 47 #define IL3945_FW_PRE "iwlwifi-3945-" 56 * Use default noise value of -127 ... this is below the range of measurable 58 * Also, -127 works better than 0 when averaging frames with/without 61 * averages within an s8's (used in some apps) range of negative values. */ 62 #define IL_NOISE_MEAS_NOT_AVAILABLE (-127) 64 /* Module parameters accessible from iwl-*.c */ 164 #define IL_INVALID_VALUE -1 178 x->u.rx_frame.stats.payload + \ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/resctrl/ |
| D | cqm_test.c | 1 // 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 …]
|
| D | cat_test.c | 1 // SPDX-License-Identifier: GPL-2.0 42 if (p->num_of_runs >= NUM_OF_RUNS) in cat_setup() 43 return -1; in cat_setup() 45 if (p->num_of_runs == 0) { in cat_setup() 46 sprintf(schemata, "%lx", p->mask); in cat_setup() 47 ret = write_schemata(p->ctrlgrp, schemata, p->cpu_no, in cat_setup() 48 p->resctrl_val); in cat_setup() 50 p->num_of_runs++; in cat_setup() 62 avg_llc_perf_miss = sum_llc_perf_miss / (NUM_OF_RUNS - 1); in show_cache_info() 63 diff_percent = ((float)allocated_cache_lines - avg_llc_perf_miss) / in show_cache_info() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/ |
| 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. 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-4.19/drivers/gpu/drm/amd/display/include/ |
| 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. 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-4.19/drivers/media/platform/vivid/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
| 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 …]
|
| /kernel/linux/linux-5.10/tools/perf/Documentation/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
| D | ar9003_paprd.c | 2 * 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 …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/net/wireless/ath/ath9k/ |
| D | ar9003_paprd.c | 2 * 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 …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/sound/soc/codecs/ |
| D | rl6231.c | 2 * rl6231.c - RL6231 class device shared support 20 * rl6231_get_pre_div - Return the value of pre divider. 57 pd = -EINVAL; in rl6231_get_pre_div() 66 * rl6231_calc_dmic_clk - Calculate the frequency divider parameter of dmic. 71 * 1MHz - 3MHz range. 80 return -EINVAL; in rl6231_calc_dmic_clk() 92 return -EINVAL; in rl6231_calc_dmic_clk() 130 * rl6231_pll_calc - Calcualte PLL M/N/K code. 146 unsigned int red_t = abs(freq_out - freq_in); in rl6231_pll_calc() 151 return -EINVAL; in rl6231_pll_calc() [all …]
|
| /kernel/liteos_m/testsuites/unittest/posix/src/math/ |
| D | math_func_test.c | 2 * 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-5.10/sound/soc/codecs/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-sony.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 10 * Copyright (c) 2006-2013 Jiri Kosina 12 * Copyright (c) 2014-2016 Frank Praznik <frank.praznik@gmail.com> 40 #include "hid-ids.h" 194 0x81, 0x01, /* MInput 0x01 (Const[0] Arr[1] Abs[2]) */ 207 0x81, 0x02, /* MInput 0x02 (Data[0] Var[1] Abs[2]) */ 230 0x81, 0x01, /* MInput 0x01 (Const[0] Arr[1] Abs[2]) */ 239 0x81, 0x02, /* MInput 0x02 (Data[0] Var[1] Abs[2]) */ [all …]
|
| /kernel/linux/linux-4.19/drivers/hid/ |
| D | hid-sony.c | 5 * Copyright (c) 2000-2005 Vojtech Pavlik <vojtech@suse.cz> 6 * Copyright (c) 2005 Michael Haboustak <mike-@cinci.rr.com> for Concept2, Inc 9 * Copyright (c) 2006-2013 Jiri Kosina 11 * Copyright (c) 2014-2016 Frank Praznik <frank.praznik@gmail.com> 43 #include "hid-ids.h" 196 0x81, 0x01, /* MInput 0x01 (Const[0] Arr[1] Abs[2]) */ 209 0x81, 0x02, /* MInput 0x02 (Data[0] Var[1] Abs[2]) */ 232 0x81, 0x01, /* MInput 0x01 (Const[0] Arr[1] Abs[2]) */ 241 0x81, 0x02, /* MInput 0x02 (Data[0] Var[1] Abs[2]) */ 312 * ------------------- [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/meson/ |
| 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 …]
|
| /kernel/linux/linux-5.10/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" 79 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 87 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() [all …]
|
| /kernel/linux/linux-4.19/drivers/input/misc/ |
| D | uinput.c | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * - add UI_GET_SYSNAME ioctl 26 * - updated ff support for the changes in kernel interface 27 * - added MODULE_VERSION 29 * - added force feedback support 30 * - added UI_SET_PHYS 32 * - first public version 44 #include "../input-compat.h" 92 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() 100 udev->head = (udev->head + 1) % UINPUT_BUFFER_SIZE; in uinput_dev_event() [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 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. 176 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */ argument [all …]
|
| /kernel/linux/linux-4.19/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 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. 176 #define EVIOCGABS(abs) _IOR('E', 0x40 + (abs), struct input_absinfo) /* get abs value/limits */ argument [all …]
|