| /linux/drivers/hid/bpf/progs/ |
| H A D | FR-TEC__Raptor-Mach-2.bpf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #define VID_BETOP_2185PC 0x11C0 11 #define PID_RAPTOR_MACH_2 0x5606 21 * 0x05, 0x01, // Usage Page (Generic Desktop) 0 22 * 0x09, 0x04, // Usage (Joystick) 2 23 * 0xa1, 0x01, // Collection (Application) 4 24 * 0x05, 0x01, // Usage Page (Generic Desktop) 6 25 * 0x85, 0x01, // Report ID (1) 8 26 * 0x05, 0x01, // Usage Page (Generic Desktop) 10 27 * 0x09, 0x30, // Usage (X) 12 [all …]
|
| /linux/fs/affs/ |
| H A D | symlink.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * 1995 Hans-Joachim Widmaier - Modified for affs. 17 struct inode *inode = folio->mapping->host; in affs_symlink_read_folio() 24 pr_debug("get_link(ino=%lu)\n", inode->i_ino); in affs_symlink_read_folio() 26 bh = affs_bread(inode->i_sb, inode->i_ino); in affs_symlink_read_folio() 29 i = 0; in affs_symlink_read_folio() 30 j = 0; in affs_symlink_read_folio() 31 lf = (struct slink_front *)bh->b_data; in affs_symlink_read_folio() 32 lc = 0; in affs_symlink_read_folio() 34 if (strchr(lf->symname,':')) { /* Handle assign or volume name */ in affs_symlink_read_folio() [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3566-anbernic-rg353x.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/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rgxx3.dtsi" 11 adc-joystick { 12 compatible = "adc-joystick"; 13 io-channels = <&adc_mux 0>, 17 pinctrl-0 = <&joy_mux_en>; [all …]
|
| H A D | rk3566-powkiddy-rk2023.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> 13 chassis-type = "handset"; 21 adc-joystick { 22 compatible = "adc-joystick"; [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_plane_helper_test.c | 1 // SPDX-License-Identifier: GPL-2.0 20 DRM_MODE("1024x768", 0, 65000, 1024, 1048, 21 1184, 1344, 0, 768, 771, 777, 806, 0, 49 const struct drm_check_plane_state_test *params = test->param_value; in drm_plane_helper_init() 59 fb->width = 2048; in drm_plane_helper_init() 60 fb->height = 2048; in drm_plane_helper_init() 64 mock->plane = plane; in drm_plane_helper_init() 65 mock->crtc = ZERO_SIZE_PTR; in drm_plane_helper_init() 66 mock->fb = fb; in drm_plane_helper_init() 67 mock->rotation = params->rotation; in drm_plane_helper_init() [all …]
|
| /linux/arch/arm/vfp/ |
| H A D | vfpdouble.c | 8 * This C source file is part of the SoftFloat IEC/IEEE Floating-point 14 * National Science Foundation under grant MIP-9311980. The original version 15 * of this code was written as part of a project to build a fixed-point vector 44 .sign = 0, 51 str, d->sign != 0, d->exponent, d->significand); in vfp_double_dump() 56 int bits = 31 - fls(vd->significand >> 32); in vfp_double_normalise_denormal() 58 bits = 63 - fls(vd->significand); in vfp_double_normalise_denormal() 63 vd->exponent -= bits - 1; in vfp_double_normalise_denormal() 64 vd->significand <<= bits; in vfp_double_normalise_denormal() 81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions)) in vfp_double_normaliseround() [all …]
|
| /linux/drivers/hid/ |
| H A D | wacom_wac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * USB Wacom tablet support - Wacom specific code 25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout() 45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout() 47 input_report_key(input, BTN_TOUCH, 0); in wacom_force_proxout() 48 input_report_key(input, BTN_STYLUS, 0); in wacom_force_proxout() 49 input_report_key(input, BTN_STYLUS2, 0); in wacom_force_proxout() 50 input_report_key(input, BTN_STYLUS3, 0); in wacom_force_proxout() 51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout() [all …]
|
| H A D | hid-kye.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hid-ids.h" 21 * - Add battery and sleep support for EasyPen M406W and MousePen M508WX 22 * - Investigate ScrollZ.MiceFMT buttons of EasyPen M406 26 0x05, 0x0C, /* Usage Page (Consumer), */ 27 0x09, 0x01, /* Usage (Consumer Control), */ 28 0xA1, 0x01, /* Collection (Application), */ 29 0x85, 0x12, /* Report ID (18), */ 30 0x0A, 0x45, 0x02, /* Usage (AC Rotate), */ 31 0x09, 0x40, /* Usage (Menu), */ [all …]
|
| H A D | hid-lg.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 8 * Copyright (c) 2006-2007 Jiri Kosina 25 #include "hid-ids.h" 26 #include "hid-lg.h" 27 #include "hid-lg4ff.h" 29 #define LG_RDESC 0x001 30 #define LG_BAD_RELATIVE_KEYS 0x002 31 #define LG_DUPLICATE_USAGES 0x004 [all …]
|
| /linux/net/phonet/ |
| H A D | sysctl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Author: Rémi Denis-Courmont 21 #define DYNAMIC_PORT_MIN 0x40 22 #define DYNAMIC_PORT_MAX 0x7f 25 static int local_port_range_min[2] = {0, 0}; 26 static int local_port_range_max[2] = {1023, 1023}; 33 local_port_range[0] = range[0]; in set_local_port_range() 45 *min = local_port_range[0]; in phonet_get_local_port_range() 55 int range[2] = {local_port_range[0], local_port_range[1]}; in proc_local_port_range() 59 .mode = table->mode, in proc_local_port_range() [all …]
|
| /linux/drivers/net/ethernet/ibm/ehea/ |
| H A D | ehea.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 11 * Jan-Bernd Themann <themann@de.ibm.com> 48 #define EHEA_MAX_CQE_COUNT 1023 49 #define EHEA_DEF_ENTRIES_SQ 1023 50 #define EHEA_DEF_ENTRIES_RQ1 1023 51 #define EHEA_DEF_ENTRIES_RQ2 1023 65 #define EHEA_SG_RQ2 0 66 #define EHEA_SG_RQ3 0 75 #define EHEA_PD_ID 0xaabcdeff 84 #define EHEA_SPEED_AUTONEG 0 [all …]
|
| /linux/arch/mips/math-emu/ |
| H A D | ieee754dp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * Copyright (C) 1994-2000 Algorithmics Ltd. 15 #define assert(expr) ((void)0) 17 #define DP_EBIAS 1023 18 #define DP_EMIN (-1022) 19 #define DP_EMAX 1023 38 ((rs > (DP_FBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0)) 51 while ((m >> DP_FBITS) == 0) { m <<= 1; e--; } 60 assert((s) == 0 || (s) == 1); in builddp() 61 assert((bx) >= DP_EMIN - 1 + DP_EBIAS in builddp() [all …]
|
| /linux/Documentation/misc-devices/ |
| H A D | apds990x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 ----------- 48 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip. Uses counting logic 58 0 disables the chip 60 RO - measured lux value 65 RO - lux0_input max value. 72 RW - measurement rate in Hz 75 RO - supported measurement rates [all …]
|
| /linux/drivers/gpu/drm/meson/ |
| H A D | meson_viu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 * - OSD1 RGB565/RGB888/xRGB8888 scanout 25 * - RGB conversion to x/cb/cr 26 * - Progressive or Interlace buffer scanout 27 * - OSD1 Commit on Vsync 28 * - HDR OSD matrix for GXL/GXM 32 * - BGR888/xBGR8888/BGRx8888/BGRx8888 modes 33 * - YUV4:2:2 Y0CbY1Cr scanout 34 * - Conversion to YUV 4:4:4 from 4:2:2 input 35 * - Colorkey Alpha matching [all …]
|
| /linux/drivers/net/ethernet/pasemi/ |
| H A D | pasemi_mac_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2008 PA Semi, Inc 19 { "rx-drops" }, 20 { "rx-bytes" }, 21 { "rx-packets" }, 22 { "rx-broadcast-packets" }, 23 { "rx-multicast-packets" }, 24 { "rx-crc-errors" }, 25 { "rx-undersize-errors" }, 26 { "rx-oversize-errors" }, [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | da9052_tsi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #define TSI_PEN_DOWN_STATUS 0x40 30 da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 0, on); in da9052_ts_adc_toggle() 31 tsi->adc_on = on; in da9052_ts_adc_toggle() 38 if (!tsi->stopped) { in da9052_ts_pendwn_irq() 40 da9052_disable_irq_nosync(tsi->da9052, DA9052_IRQ_PENDOWN); in da9052_ts_pendwn_irq() 41 da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); in da9052_ts_pendwn_irq() 45 schedule_delayed_work(&tsi->ts_pen_work, HZ / 50); in da9052_ts_pendwn_irq() 53 struct input_dev *input = tsi->dev; in da9052_ts_read() 58 ret = da9052_reg_read(tsi->da9052, DA9052_TSI_X_MSB_REG); in da9052_ts_read() [all …]
|
| H A D | ipaq-micro-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 #include <linux/mfd/ipaq-micro.h> 32 input_report_abs(ts->input, ABS_X, in micro_ts_receive() 34 input_report_abs(ts->input, ABS_Y, in micro_ts_receive() 35 be16_to_cpup((__be16 *) &msg[0])); in micro_ts_receive() 36 input_report_key(ts->input, BTN_TOUCH, 1); in micro_ts_receive() 37 input_sync(ts->input); in micro_ts_receive() 38 } else if (len == 0) { in micro_ts_receive() 39 input_report_abs(ts->input, ABS_X, 0); in micro_ts_receive() 40 input_report_abs(ts->input, ABS_Y, 0); in micro_ts_receive() [all …]
|
| /linux/lib/ |
| H A D | polynomial.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * Originally this was part of drivers/hwmon/bt1-pvt.c. 22 * to PVT data and vice-versa are following: 24 * N = 1.8322e-8*(T^4) + 2.343e-5*(T^3) + 8.7018e-3*(T^2) + 3.9269*(T^1) + 26 * T = -1.6743e-11*(N^4) + 8.1542e-8*(N^3) + -1.8201e-4*(N^2) + 27 * 3.1020e-1*(N^1) - 4.838e1 29 * where T = [-48.380, 147.438]C and N = [0, 1023]. 38 * N = (18322e-20*(T^4) + 2343e-13*(T^3) + 87018e-9*(T^2) + 39269e-3*T + 40 * T = -16743e-12*(D^4) + 81542e-9*(D^3) - 182010e-6*(D^2) + 310200e-3*D - 42 * where T = [-48380, 147438] mC and N = [0, 1023]. [all …]
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_sourcesink.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * f_sourcesink.c - USB peripheral source/sink configuration driver 5 * Copyright (C) 2003-2008 David Brownell 30 * plus two that support control-OUT tests. If the optional "autoresume" 32 * test harness from USB-IF. 58 /*-------------------------------------------------------------------------*/ 64 .bAlternateSetting = 0, 104 .wMaxPacketSize = cpu_to_le16(1023), 114 .wMaxPacketSize = cpu_to_le16(1023), 194 .bMaxBurst = 0, [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | fib_offload_lib.sh | 1 # SPDX-License-Identifier: GPL-2.0 13 ip -n $ns -j -p -$family route show $route \ 14 | jq -e '.[]["flags"] | contains(["trap"])' &> /dev/null 17 if [[ $ret -ne 0 ]]; then 18 return 0 60 RET=0 63 ip -n $ns link add name dummy$i type dummy 64 ip -n $ns link set dev dummy$i up 67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024 68 fib4_trap_check $ns "192.0.2.0/24 dev dummy1 tos 0 metric 1024" false [all …]
|
| /linux/drivers/media/usb/gspca/stv06xx/ |
| H A D | stv06xx_vv6410.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web 27 #define VV6410_DEVICEH 0x00 [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | configfs-usb-gadget-sourcesink | 1 What: /config/usb-gadget/gadget/functions/SourceSink.name 8 pattern 0 (all zeros), 1 (mod63), 2 (none) 10 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss) 11 isoc_mult 0..2 (hs/ss only) 12 isoc_maxburst 0..15 (ss only)
|
| /linux/arch/arm64/boot/dts/mediatek/ |
| H A D | mt8183-kukui-jacuzzi-fennel-sku1.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 7 #include "mt8183-kukui-jacuzzi-fennel.dtsi" 8 #include "mt8183-kukui-audio-da7219-rt1015p.dtsi" 12 chassis-type = "convertible"; 13 compatible = "google,fennel-sku1", "google,fennel", "mediatek,mt8183"; 16 compatible = "pwm-leds"; 17 keyboard_backlight: led-0 { 19 pwms = <&cros_ec_pwm 0>; 20 max-brightness = <1023>; [all …]
|
| /linux/arch/powerpc/sysdev/ |
| H A D | dcr-low.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 bge- 1f; \ 23 EMIT_BUG_ENTRY 1b,__FILE__,__LINE__,0; \ 35 mfdcr r3,0; blr 37 mtdcr 0,r4; blr 40 .rept 1023
|
| /linux/drivers/watchdog/ |
| H A D | via_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #define VIA_WDT_MMIO_BASE 0xe8 /* MMIO region base address */ 26 #define VIA_WDT_CONF 0xec /* watchdog enable state */ 29 #define VIA_WDT_CONF_ENABLE 0x01 /* 1: enable watchdog */ 30 #define VIA_WDT_CONF_MMIO 0x02 /* 1: enable watchdog MMIO */ 37 #define VIA_WDT_CTL 0 /* MMIO addr+0: state/control reg. */ 41 #define VIA_WDT_RUNNING 0x01 /* 0: stop, 1: running */ 42 #define VIA_WDT_FIRED 0x02 /* 1: restarted by expired watchdog */ 43 #define VIA_WDT_PWROFF 0x04 /* 0: reset, 1: poweroff */ 44 #define VIA_WDT_DISABLED 0x08 /* 1: timer is disabled */ [all …]
|