| /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/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> 20 s32 flat; 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/kernel/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 30 for (flat = 1; flat < (FB_BACKLIGHT_LEVELS / 16); ++flat) in pmu_backlight_init_curve() 31 bl_curve[flat] = min; in pmu_backlight_init_curve() 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/virtio/ |
| H A D | virtio_input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf() 35 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() 40 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 41 if (vi->ready) { in virtinput_recv_events() 42 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events() 43 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events() 44 input_event(vi->idev, in virtinput_recv_events() 45 le16_to_cpu(event->type), in virtinput_recv_events() 46 le16_to_cpu(event->code), in virtinput_recv_events() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 18 #include "input-event-codes.h" 53 * IOCTLs (0x00 - 0x7f) 64 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls 70 * @flat: values that are within this value will be discarded by 92 __s32 flat; member 97 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls 98 * @scancode: scancode represented in machine-endian form. 142 * EVIOCGMTSLOTS(len) - get MT slot values [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 3 * Copyright (c) 1999-2002 Vojtech Pavlik 18 #include "input-event-codes.h" 53 * IOCTLs (0x00 - 0x7f) 64 * struct input_absinfo - used by EVIOCGABS/EVIOCSABS ioctls 70 * @flat: values that are within this value will be discarded by 92 __s32 flat; member 97 * struct input_keymap_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls 98 * @scancode: scancode represented in machine-endian form. 142 * EVIOCGMTSLOTS(len) - get MT slot values [all …]
|
| /OK3568_Linux_fs/kernel/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 73 * @flat: values that are within this value will be discarded by 95 __s32 flat; member 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 [all …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/plugins/imxwayland/qmlvideofx/shaders/ |
| H A D | pagecurl.fsh | 3 ** Copyright (C) 2015 The Qt Company Ltd and/or its subsidiary(-ies). 14 ** and conditions see http://www.qt.io/terms-conditions. For further 15 ** information use the contact form at http://www.qt.io/contact-us. 24 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 34 // Based on http://rectalogic.github.com/webvfx/examples_2transition-shader-pagecurl_8html-example.… 42 const float minAmount = -0.16; 49 float amount = curlExtent * (maxAmount - minAmount) + minAmount; 67 float dd = pow(1.0 - distance / 2.0, sharpness); 68 return ((color2 - color1) * dd) + color1; 73 float dx = abs(point.x > 0.5 ? 1.0 - point.x : point.x); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/geode/ |
| H A D | video_gx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 136 min = abs(pll_table[0].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 138 diff = abs(pll_table[i].pixclock - info->var.pixclock); in gx_set_dclk_frequency() 171 } while (timeout-- && !(dotpll & MSR_GLCP_DOTPLL_LOCK)); in gx_set_dclk_frequency() 177 struct gxfb_par *par = info->par; in gx_configure_tft() 198 fp |= info->var.yres << FP_PT1_VSIZE_SHIFT; in gx_configure_tft() 208 if (!(info->var.sync & FB_SYNC_VERT_HIGH_ACT)) in gx_configure_tft() 211 if (!(info->var.sync & FB_SYNC_HOR_HIGH_ACT)) in gx_configure_tft() 234 struct gxfb_par *par = info->par; in gx_configure_display() 260 if (par->enable_crt) { in gx_configure_display() [all …]
|
| H A D | lxfb_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2006-2007, Advanced Micro Devices,Inc. 23 /* This is the complete list of PLL frequencies that we can set - 165 freq = (unsigned int) (1000000000 / info->var.pixclock); in lx_set_clock() 167 min = abs(pll_table[0].freq - freq); in lx_set_clock() 170 diff = abs(pll_table[i].freq - freq); in lx_set_clock() 182 struct lxfb_par *par = info->par; in lx_graphics_disable() 247 struct lxfb_par *par = info->par; in lx_graphics_enable() 263 if (info->var.sync & FB_SYNC_HOR_HIGH_ACT) in lx_graphics_enable() 266 if (info->var.sync & FB_SYNC_VERT_HIGH_ACT) in lx_graphics_enable() [all …]
|
| /OK3568_Linux_fs/kernel/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" 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/lis3lv02d/ |
| H A D | lis3lv02d.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * lis3lv02d.c - ST LIS3LV02DL accelerometer driver 5 * Copyright (C) 2007-2008 Yan Burman 7 * Copyright (C) 2008-2009 Pavel Machek 42 #define SELFTEST_FAIL -1 43 #define SELFTEST_IRQ -2 51 * to keep the interrupt for the free-fall event. The values are updated at 61 * LIS3LV02D spec says 1024 LSBs corresponds 1 G -> 1LSB is 1000/1024 mG 67 /* Sensitivity values for -2G +2G scale */ 72 * LIS331DLH spec says 1LSBs corresponds 4G/4096 -> 1LSB is 1000/1024 mG. [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> 86 #define FLAT 3 macro 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/ |
| H A D | input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 26 #include "input-compat.h" 27 #include "input-poller.h" 70 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 73 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 76 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() 85 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat() 86 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat() 87 dev->timer.function) { in input_start_autorepeat() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | tda7419.c | 1 // SPDX-License-Identifier: GPL-2.0-only 136 if (tvc->reg == tvc->rreg) in tda7419_vol_is_stereo() 146 (struct tda7419_vol_control *)kcontrol->private_value; in tda7419_vol_info() 148 uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; in tda7419_vol_info() 149 uinfo->count = tda7419_vol_is_stereo(tvc) ? 2 : 1; in tda7419_vol_info() 150 uinfo->value.integer.min = tvc->min; in tda7419_vol_info() 151 uinfo->value.integer.max = tvc->max; in tda7419_vol_info() 163 val = 0 - val; in tda7419_vol_get_value() 166 val = val - thresh; in tda7419_vol_get_value() 168 val = thresh - val; in tda7419_vol_get_value() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/text/ |
| H A D | collision_index.cpp | 44 // how much space it would take up if it were drawn flat on the tile in approximateTileDistance() 46 // Incidence angle 90 -> head on, sin(incidence_angle) = 1, no stretch in approximateTileDistance() 47 // Incidence angle 1 -> very oblique, sin(incidence_angle) =~ 0, lots of stretch in approximateTileDistance() 48 // ground_angle = u_pitch + PI/2 -> sin(ground_angle) = cos(u_pitch) in approximateTileDistance() 55 (incidenceStretch - 1) * lastSegmentTile * std::abs(std::sin(lastSegmentAngle)); in approximateTileDistance() 140 …leDistance = approximateTileDistance(*(firstAndLastGlyph->first.tileDistance), firstAndLastGlyph->… in placeLineFeature() 141 …eDistance = approximateTileDistance(*(firstAndLastGlyph->second.tileDistance), firstAndLastGlyph->… in placeLineFeature() 149 (boxSignedDistanceFromAnchor < -firstTileDistance) || in placeLineFeature() 159 const float tileUnitRadius = (circle.x2 - circle.x1) / 2; in placeLineFeature() 163 const CollisionBox& previousCircle = feature.boxes[i - 1]; in placeLineFeature() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/share/man/man1/ |
| H A D | arm-none-linux-gnueabihf-objcopy.1 | 18 .\" Set up some character translations and predefined strings. \*(-- will 24 .tr \(*W- 27 . ds -- \(*W- 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 37 . ds -- \|\(em\| 73 .\" Fear. Run. Save yourself. No user-serviceable parts. 83 . ds #H ((1u-(\\\\n(.fu%2u))*.13m) 99 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 100 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/man/man1/ |
| H A D | aarch64-none-linux-gnu-objcopy.1 | 18 .\" Set up some character translations and predefined strings. \*(-- will 24 .tr \(*W- 27 . ds -- \(*W- 29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch 30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch 37 . ds -- \|\(em\| 73 .\" Fear. Run. Save yourself. No user-serviceable parts. 83 . ds #H ((1u-(\\\\n(.fu%2u))*.13m) 99 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" 100 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' [all …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | rk818_battery.c | 5 * chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk818-bat: "fmt, ##args) 275 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 296 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 297 d /= table[i] - table[i - 1]; in interpolate() 298 d = d + (i - 1) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 319 c = -c; in ab_div_c() 326 ans = -ans; in ab_div_c() 335 ret = regmap_read(di->regmap, reg, &val); in rk818_bat_read() 337 dev_err(di->dev, "read reg:0x%x failed\n", reg); in rk818_bat_read() [all …]
|
| H A D | rk816_battery.c | 5 * Author: chenjh <chenjh@rock-chips.com> 51 #define BAT_INFO(fmt, args...) pr_info("rk816-bat: "fmt, ##args) 316 return (get_boot_sec() > x) ? (get_boot_sec() - x) : 0; in base2sec() 337 d = (value - table[i - 1]) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 338 d /= table[i] - table[i - 1]; in interpolate() 339 d = d + (i - 1) * (MAX_INTERPOLATE / (size - 1)); in interpolate() 360 c = -c; in ab_div_c() 367 ans = -ans; in ab_div_c() 376 ret = regmap_read(di->regmap, reg, &val); in rk816_bat_read() 378 dev_err(di->dev, "read reg:0x%x failed\n", reg); in rk816_bat_read() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/Documentation/ |
| H A D | perf-config.txt | 1 perf-config(1) 5 ---- 6 perf-config - Get and set variables in a configuration file. 9 -------- 11 'perf config' [<file-option>] [section.name[=value] ...] 13 'perf config' [<file-option>] -l | --list 16 ----------- 20 ------- 22 -l:: 23 --list:: [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | mt9m111.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/v4l2-mediabus.h> 18 #include <media/v4l2-async.h> 19 #include <media/v4l2-clk.h> 20 #include <media/v4l2-common.h> 21 #include <media/v4l2-ctrls.h> 22 #include <media/v4l2-device.h> 23 #include <media/v4l2-event.h> 24 #include <media/v4l2-fwnode.h> 246 /* user point of view - 0: falling 1: rising edge */ [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/clipper/ |
| H A D | clipper.cpp | 7 * Copyright : Angus Johnson 2010-2015 * 16 * Communications of the ACM, Vol 35, Issue 7 (July 1992) pp 56-63. * 26 * Paper no. DETC2005-85513 pp. 565-575 * 29 * September 24-28, 2005 , Long Beach, California, USA * 59 static int const Unassigned = -1; //edge not currently 'owning' a solution 60 static int const Skip = -2; //edge that would otherwise close a path 62 #define HORIZONTAL (-1.0E+40) 63 #define TOLERANCE (1.0e-20) 64 #define NEAR_ZERO(val) (((val) > -TOLERANCE) && ((val) < TOLERANCE)) 73 int WindDelta; //1 or -1 depending on winding direction [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | tridentfb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2001, 2002 - Jani Monoses <jani@iv.ro> 30 #include <linux/i2c-algo-bit.h> 79 MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'"); 81 MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)"); 166 fb_writeb(val, p->io_virt + reg); in t_outb() 171 return fb_readb(p->io_virt + reg); in t_inb() 176 fb_writel(v, par->io_virt + r); in writemmr() 181 return fb_readl(par->io_virt + r); in readmmr() 193 u8 reg = vga_mm_rcrt(par->io_virt, I2C) & DDC_MASK_TGUI; in tridentfb_ddc_setscl_tgui() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/share/doc/binutils.html/ |
| H A D | objcopy.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt… 3 <!-- Copyright (C) 1991-2021 Free Software Foundation, Inc. 8 with no Invariant Sections, with no Front-Cover Texts, and with no 9 Back-Cover Texts. A copy of the license is included in the 11 --> 12 <!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> 18 <meta name="resource-type" content="document"> 21 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 23 <link href="Binutils-Index.html#Binutils-Index" rel="index" title="Binutils Index"> 29 <!-- [all …]
|