| /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"; 18 #mux-control-cells = <0>; 20 mux-gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>, 24 joystick_mux: adc-mux { [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/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> 35 return (max + min) - val; in adc_joystick_invert() 43 for (i = 0; i < joy->num_chans; i++) { in adc_joystick_poll() 44 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll() 47 if (joy->axes[i].inverted) in adc_joystick_poll() 49 input_report_abs(input, joy->axes[i].code, val); in adc_joystick_poll() 62 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle() 64 for (i = 0; i < joy->num_chans; ++i) { in adc_joystick_handle() 65 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle() [all …]
|
| /linux/arch/arm64/boot/dts/amlogic/ |
| H A D | meson-g12b-odroid-go-ultra.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-g12b-s922x.dtsi" 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 12 #include <dt-bindings/sound/meson-g12a-toacodec.h> 13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 16 compatible = "hardkernel,odroid-go-ultra", "amlogic,s922x", "amlogic,g12b"; 17 model = "Hardkernel ODROID-GO-Ultra"; [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> 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 …]
|
| /linux/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 - use 98 __s32 flat; global() member 179 EVIOCGABS(abs) global() argument 180 EVIOCSABS(abs) global() argument [all...] |
| /linux/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 …]
|
| /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->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 …]
|
| /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 -------- 11 'perf config' [<file-option>] [section.name[=value] ...] 13 'perf config' [<file-option>] -l | --list 16 ----------- 20 ------- 22 -l:: 23 --list:: [all …]
|
| /linux/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> 31 #include <linux/i2c-algo-bit.h> 80 MODULE_PARM_DESC(mode_option, "Initial video mode e.g. '648x480-8@60'"); 82 MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)"); 167 fb_writeb(val, p->io_virt + reg); in t_outb() 172 return fb_readb(p->io_virt + reg); in t_inb() 177 fb_writel(v, par->io_virt + r); in writemmr() 182 return fb_readl(par->io_virt + r); in readmmr() 194 u8 reg = vga_mm_rcrt(par->io_virt, I2C) & DDC_MASK_TGUI; in tridentfb_ddc_setscl_tgui() [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 */ 84 /* Convenience constant to check for any high-res support. */ 128 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; 134 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 …]
|
| /linux/arch/x86/kvm/ |
| H A D | lapic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 51 #define mod_64(x, y) ((x) - (y) * div64_u64(x, y)) 64 * VM-Exit (to inject the guest event) and the subsequent VM-Enter to resume 75 /* step-by-step approximation to mitigate fluctuation */ 86 apic_set_reg(apic->regs, reg_off, val); in kvm_lapic_set_reg() 91 return apic_get_reg64(apic->regs, reg); in kvm_lapic_get_reg64() 97 apic_set_reg64(apic->regs, reg, val); in kvm_lapic_set_reg64() 102 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() 104 return apic_test_vector(vector, apic->regs + APIC_ISR) || in kvm_apic_pending_eoi() 105 apic_test_vector(vector, apic->regs + APIC_IRR); in kvm_apic_pending_eoi() [all …]
|