| /OK3568_Linux_fs/kernel/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> 19 const: adc-joystick 21 io-channels: 27 See Documentation/devicetree/bindings/iio/iio-bindings.txt for details. 29 '#address-cells': [all …]
|
| /OK3568_Linux_fs/kernel/scripts/ |
| H A D | bmpconvert | 2 # SPDX-License-Identifier: GPL-2.0 */ 3 # -*- coding: utf-8 -*- 41 self.read_other(self.biSize-40) 44 for i in range(4): 80 for i in range(n): 95 for height in range(abs(self.biHeight)): 99 for width in range(self.biWidth): 113 for height in range(abs(self.biHeight)): 115 for width in range(self.biWidth): 130 for n in range(data1): [all …]
|
| /OK3568_Linux_fs/buildroot/package/uhd/ |
| H A D | 0005-core-remove-boost-math-in-favor-of-std-cmath.patch | 3 Date: Fri, 2 Jul 2021 16:43:41 -0400 9 --- 11 _dsp_freq_offset = if_freq * (-if_freq_sign); 12 // boost::math::sign : 1 if x > 0, -1 if x < 0, and 0 if x is zero. 13 // ==> if if_freq_sign > 0 then * by -1 else +1 (effectively) 19 if_freq *= -1.0; 21 --- 24 off by the sign (+0.0 versus -0.0). 28 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 29 --- [all …]
|
| /OK3568_Linux_fs/kernel/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 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 …]
|
| /OK3568_Linux_fs/external/xserver/include/ |
| H A D | xserver-properties.h | 17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 29 * byte-ordering. */ 35 /* BOOL. 0 - device disabled, 1 - device enabled */ 42 * drivers. Read-Only */ 46 * FLOAT, 9 values in row-major order, coordinates in 0..1 range: 85 #define AXIS_LABEL_PROP_ABS_X "Abs X" 86 #define AXIS_LABEL_PROP_ABS_Y "Abs Y" 87 #define AXIS_LABEL_PROP_ABS_Z "Abs Z" 88 #define AXIS_LABEL_PROP_ABS_RX "Abs Rotary X" 89 #define AXIS_LABEL_PROP_ABS_RY "Abs Rotary Y" [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/geometry/util/ |
| H A D | normalize_spheroidal_coordinates.hpp | 3 // Copyright (c) 2015-2016, Oracle and/or its affiliates. 45 static CoordinateType const minus_pi = -math::pi<CoordinateType>(); in min_longitude() 57 = -math::half_pi<CoordinateType>(); in min_latitude() 82 return CoordinateType(-180.0); in min_longitude() 92 return CoordinateType(-90.0); in min_latitude() 112 - constants::half_period(); in normalize_up() 118 math::mod(value - constants::half_period(), constants::period()) in normalize_down() 126 if (math::equals(math::abs(longitude), constants::half_period())) in apply() 133 if (math::equals(longitude, -constants::half_period())) in apply() 138 else if (longitude < -constants::half_period()) in apply() [all …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/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)) 40 #define ALIGN(x,a) __ALIGN_MASK((x),(typeof(x))(a)-1) 43 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/accel/ |
| H A D | sc7a20.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 31 #include <linux/sensor-dev.h> 63 #define SC7A20_BOUNDARY (0x1 << (SC7A20_PRECISION - 1)) 69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/ 297 xoutp = xoutpt-x*16; in tilt_3axis_mtp() 298 youtp = youtpt-y*16; in tilt_3axis_mtp() 299 zoutp = zoutpt-z*16; in tilt_3axis_mtp() 339 //255-0 map to 7f-0-80-ff 354 return continuous - 128; in forword_MisDataSpaceConvert() [all …]
|
| H A D | sc7660.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 31 #include <linux/sensor-dev.h> 63 #define SC7660_BOUNDARY (0x1 << (SC7660_PRECISION - 1)) 69 /*noCreateAttr:the initial is 1-->no create attr. if created, change noCreateAttr to 0.*/ 284 xoutp = xoutpt-x*16; in tilt_3axis_mtp() 285 youtp = youtpt-y*16; in tilt_3axis_mtp() 286 zoutp = zoutpt-z*16; in tilt_3axis_mtp() 320 //255-0 map to 7f-0-80-ff 335 return continuous - 128; in forword_MisDataSpaceConvert() [all …]
|
| /OK3568_Linux_fs/kernel/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. 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 …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/OpenCV-android-sdk/sdk/native/jni/include/opencv2/core/ |
| H A D | base.hpp | 13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 70 StsBackTrace= -1, //!< pseudo error for back trace 71 StsError= -2, //!< unknown /unspecified error 72 StsInternal= -3, //!< internal error (bad state) 73 StsNoMem= -4, //!< insufficient memory 74 StsBadArg= -5, //!< function arg/param is bad 75 StsBadFunc= -6, //!< unsupported function 76 StsNoConv= -7, //!< iteration didn't converge 77 StsAutoTrace= -8, //!< tracing 78 HeaderIsNull= -9, //!< image header is NULL [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-armhf/include/opencv2/core/ |
| H A D | base.hpp | 13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 70 StsBackTrace= -1, //!< pseudo error for back trace 71 StsError= -2, //!< unknown /unspecified error 72 StsInternal= -3, //!< internal error (bad state) 73 StsNoMem= -4, //!< insufficient memory 74 StsBadArg= -5, //!< function arg/param is bad 75 StsBadFunc= -6, //!< unsupported function 76 StsNoConv= -7, //!< iteration didn't converge 77 StsAutoTrace= -8, //!< tracing 78 HeaderIsNull= -9, //!< image header is NULL [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/opencv/opencv-linux-aarch64/include/opencv2/core/ |
| H A D | base.hpp | 13 // Copyright (C) 2000-2008, Intel Corporation, all rights reserved. 70 StsBackTrace= -1, //!< pseudo error for back trace 71 StsError= -2, //!< unknown /unspecified error 72 StsInternal= -3, //!< internal error (bad state) 73 StsNoMem= -4, //!< insufficient memory 74 StsBadArg= -5, //!< function arg/param is bad 75 StsBadFunc= -6, //!< unsupported function 76 StsNoConv= -7, //!< iteration didn't converge 77 StsAutoTrace= -8, //!< tracing 78 HeaderIsNull= -9, //!< image header is NULL [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/resctrl/ |
| H A 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 …]
|
| /OK3568_Linux_fs/external/rockit/mpi/sdk/include/ |
| H A D | rk_comm_rgn.h | 1 /* GPL-2.0 WITH Linux-syscall-note OR Apache 2.0 */ 33 #define RGN_OVERLAY_MIN_X -8192 34 #define RGN_OVERLAY_MIN_Y -8192 70 /* is abs qp, RK_TRUE: overlay regions set to the qp; RK_FALSE: regions set around the qp. */ 97 /* color loop up table number, default 0. range:[0, RGN_CLUT_NUM) */ 111 * range:[0,255] 117 * range:[0,255] 121 RK_U32 u32Layer; /* OVERLAY region layer range:[0,7]*/ 156 RGN_COORDINATE_E enCoordinate; /* ratio coordiante or abs coordinate */ 170 RK_U32 u32Layer; /*MOSAIC region layer range:[0,3] */
|
| /OK3568_Linux_fs/kernel/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() 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 …]
|
| 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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/kernel/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 …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/lpc10/ |
| H A D | vparms.c | 9 /* -- translated by f2c (version 19951025). 11 -lf2c -lm (in that order) 31 /* Added some more comments about the range of INBUF and LPBUF that can */ 33 /* INBUF, which might be outside of its defined range, although that will */ 41 /* Finishing the job I said I did with the last check-in comments. */ 60 /* VWIN - Voicing window limits */ 62 /* INBUF - Input speech buffer */ 63 /* Indices START-1 through STOP read, */ 67 /* LPBUF - Low pass filtered speech */ 68 /* Indices START-MINTAU through STOP+MINTAU read, */ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/hid/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/cyttsp5/ |
| H A D | cyttsp5_device_access.c | 14 * Copyright (C) 2012-2015 Cypress Semiconductor 187 #define STATUS_FAIL -1 188 #define PIP_CMD_MAX_LENGTH ((1 << 16) - 1) 197 #define ABS(x) (((x) < 0) ? -(x) : (x)) macro 358 mutex_lock(&dad->sysfs_lock); in cyttsp5_status_show() 359 val = dad->status; in cyttsp5_status_show() 360 mutex_unlock(&dad->sysfs_lock); in cyttsp5_status_show() 376 mutex_lock(&dad->sysfs_lock); in cyttsp5_response_show() 378 "Status %d\n", dad->status); in cyttsp5_response_show() 379 if (!dad->status) in cyttsp5_response_show() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/sensors/angle/ |
| H A D | angle_kxtik.c | 3 * Copyright (C) 2012-2015 ROCKCHIP. 4 * Author: luowei <lw@rock-chips.com> 32 #include <linux/sensor-dev.h> 93 /* CTRL_REG1: set resolution, g-range, data ready enable */ 94 /* Output resolution: 8-bit valid or 12-bit valid */ 97 /* Output g-range: +/-2g, 4g, or 8g */ 113 #define KXTIK_BOUNDARY (0x1 << (KXTIK_PRECISION - 1)) 126 sensor->ops->ctrl_data = sensor_read_reg(client, sensor->ops->ctrl_reg); in sensor_active() 132 sensor->ops->ctrl_data |= status; in sensor_active() 137 sensor->ops->ctrl_data &= status; in sensor_active() [all …]
|
| /OK3568_Linux_fs/external/xserver/mi/ |
| H A D | mizerline.c | 47 #include <dix-config.h> 60 /* Draw lineSolid, fillStyle-independent zero width lines. 76 #define MAX_COORDINATE ((1 << (((sizeof(DDXPointRec) >> 1) << 3) - 1)) - 1) 82 if (xx < spans->x)\ 83 spans->x = xx;\ 91 spans->x = xx;\ 92 spans->y = yy;\ 120 unsigned int bias = miGetZeroLineBias(pDraw->pScreen); in miZeroLine() 124 xleft = pDraw->x; in miZeroLine() 125 ytop = pDraw->y; in miZeroLine() [all …]
|