| /linux/arch/arm64/boot/dts/allwinner/ |
| H A D | sun50i-h700-anbernic-rg35xx-h.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 7 #include "sun50i-h700-anbernic-rg35xx-plus.dts" 11 compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700"; 13 adc-joystick { 14 compatible = "adc-joystick"; 15 io-channels = <&adc_mux 0>, 19 pinctrl-0 = <&joy_mux_pin>; 20 pinctrl-names = "default"; 21 poll-interval = <60>; 22 #address-cells = <1>; [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 | rk3326-odroid-go3.dts | 1 // 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"; 17 pinctrl-0 = <&mux_en_pins>; 18 pinctrl-names = "default"; 19 #mux-control-cells = <0>; [all …]
|
| H A D | rk3326-odroid-go2.dts | 1 // 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 …]
|
| H A D | rk3326-odroid-go2-v11.dts | 1 // 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 …]
|
| 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 …]
|
| H A D | rk3326-gameforce-chi.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 16 chassis-type = "handset"; 24 stdout-path = "serial2:115200n8"; 27 adc_joystick: adc-joystick { 28 compatible = "adc-joystick"; [all …]
|
| /linux/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> 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 …]
|
| /linux/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> 28 int i, flat, count, range = (max - min); in pmu_backlight_init_curve() local 32 for (flat = 1; flat < (FB_BACKLIGHT_LEVELS / 16); ++flat) in pmu_backlight_init_curve() 33 bl_curve[flat] = min; in pmu_backlight_init_curve() 37 bl_curve[flat + i] = min + (range * (i + 1) / count); in pmu_backlight_init_curve() 42 int level = (FB_BACKLIGHT_LEVELS - 1); in pmu_backlight_curve_lookup() 51 int diff = abs(bl_curve[i] - value); in pmu_backlight_curve_lookup() [all …]
|
| /linux/drivers/virtio/ |
| H A D | virtio_input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include <linux/dma-mapping.h> 33 virtqueue_add_inbuf_cache_clean(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf() 38 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() 43 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events() 44 if (vi->ready) { in virtinput_recv_events() 45 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events() 46 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events() 47 input_event(vi->idev, in virtinput_recv_events() 48 le16_to_cpu(event->type), in virtinput_recv_events() [all …]
|
| /linux/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 …]
|
| /linux/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 33 #include "../input-compat.h" 81 lockdep_assert_held(&dev->event_lock); in uinput_dev_event() 85 udev->buff[udev->head] = (struct input_event) { in uinput_dev_event() [all …]
|
| /linux/drivers/input/ |
| H A D | input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 29 #include "input-compat.h" 30 #include "input-core-private.h" 31 #include "input-poller.h" 74 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event() 77 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event() 80 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event() 89 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat() 90 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat() [all …]
|
| /linux/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->valu in tda7419_vol_info() [all...] |
| /linux/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 --- [all...] |
| /linux/drivers/media/pci/cx25821/ |
| H A D | cx25821-medusa-video.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "cx25821-medusa-video.h" 13 #include "cx25821-biffuncs.h" 63 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl, &tmp); in medusa_enable_bluefield_output() 67 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl, value); in medusa_enable_bluefield_output() 69 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); in medusa_enable_bluefield_output() 73 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl_ns, value); in medusa_enable_bluefield_output() 84 /* set video format NTSC-M */ in medusa_initialize_ntsc() 85 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc() 90 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() [all …]
|
| /linux/drivers/hid/ |
| 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" 435 if ((drv_data->quirks & LG_RDESC) && *rsize >= 91 && rdesc[83] == 0x26 && in lg_report_fixup() 442 if ((drv_data->quirks & LG_RDESC_REL_ABS) && *rsize >= 51 && in lg_report_fixup() 446 "fixing up rel/abs in Logitech report descriptor\n"); in lg_report_fixup() [all …]
|
| H A D | hid-logitech-hidpp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2012-2013 Google (c) 7 * Copyright (c) 2013-2014 Red Hat Inc. 25 #include <linux/fixp-arith.h> 28 #include "hid-ids.h" 39 "Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently)."); 41 /* Define a non-zero software ID to identify our own requests */ 85 /* Convenience constant to check for any high-res support. */ 129 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; 135 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; [all …]
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | rtw8852b_common.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 178 struct rtw89_tssi_info *tssi = &rtwdev->tssi; in rtw8852bx_efuse_parsing_tssi() 179 struct rtw8852bx_tssi_offset *ofst[] = {&map->path_a_tssi, &map->path_b_tssi}; in rtw8852bx_efuse_parsing_tssi() 182 tssi->thermal[RF_PATH_A] = map->path_a_therm; in rtw8852bx_efuse_parsing_tssi() 183 tssi->thermal[RF_PATH_B] = map->path_b_therm; in rtw8852bx_efuse_parsing_tssi() 186 memcpy(tssi->tssi_cck[i], ofst[i]->cck_tssi, in rtw8852bx_efuse_parsing_tssi() 187 sizeof(ofst[i]->cck_tssi)); in rtw8852bx_efuse_parsing_tssi() 192 i, j, tssi->tssi_cck[i][j]); in rtw8852bx_efuse_parsing_tssi() 194 memcpy(tssi->tssi_mcs[i], ofst[i]->bw40_tssi, in rtw8852bx_efuse_parsing_tssi() 195 sizeof(ofst[i]->bw40_tssi)); in rtw8852bx_efuse_parsing_tssi() [all …]
|
| H A D | rtw8852c.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2019-2022 Realtek Corporation 78 9, /* CH 0-11 pre-cost */ 79 32, /* H2C pre-cost */ 80 146, /* WP CH 0-7 pre-cost */ 81 146, /* WP CH 8-11 pre-cost */ 82 1, /* CH 0-11 full condition */ 84 1, /* WP CH 0-7 full condition */ 85 1, /* WP CH 8-11 full condition */ 334 rtwdev->hci.type == RTW89_HCI_TYPE_USB) in rtw8852c_pwr_on_func() [all …]
|
| /linux/drivers/scsi/ |
| H A D | scsi_debug.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * Copyright (C) 2001 - 2021 Douglas Gilbert 33 #include <linux/crc-t10dif.h> 39 #include <linux/t10-pi.h> 109 #define DEF_SCSI_LEVEL 7 /* INQUIRY, byte2 [6->SPC-4; 7->SPC-5] */ 129 #define JDELAY_OVERRIDDEN -9999 193 /* As indicated in SAM-5 and SPC-4 Unit Attentions (UAs) are returned in 216 * per-device DEF_CMD_PER_LUN can be changed via sysfs: 224 /* UA - Unit Attention; SA - Service Action; SSU - Start Stop Unit */ 225 #define F_D_IN 1 /* Data-in command (e.g. READ) */ [all …]
|