/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | gpio_keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <linux/input.h> 30 #include <dt-bindings/input/gpio-keys.h> 34 struct input_dev *input; member 40 unsigned int release_delay; /* in msecs, for IRQ-only buttons */ 43 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */ 55 struct input_dev *input; member 64 * There are 4 attributes under /sys/devices/platform/gpio-keys/ 65 * keys [ro] - bitmap of keys (EV_KEY) which can be 67 * switches [ro] - bitmap of switches (EV_SW) which can be [all …]
|
D | gpio_keys_polled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> 8 * This file was based on: /drivers/input/misc/cobalt_btns.c 11 * also was based on: /drivers/input/keyboard/gpio_keys.c 18 #include <linux/input.h> 26 #define DRV_NAME "gpio-keys-polled" 36 struct input_dev *input; member 44 static void gpio_keys_button_event(struct input_dev *input, in gpio_keys_button_event() argument 48 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_button_event() 49 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event() local [all …]
|
D | adc-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Input driver for resistor ladder connected on ADC 11 #include <linux/input.h> 32 static void adc_keys_poll(struct input_dev *input) in adc_keys_poll() argument 34 struct adc_keys_state *st = input_get_drvdata(input); in adc_keys_poll() 39 ret = iio_read_channel_processed(st->channel, &value); in adc_keys_poll() 42 value = st->keyup_voltage; in adc_keys_poll() 44 for (i = 0; i < st->num_keys; i++) { in adc_keys_poll() 45 diff = abs(st->map[i].voltage - value); in adc_keys_poll() 48 keycode = st->map[i].keycode; in adc_keys_poll() [all …]
|
D | tca6416-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/input.h> 28 { "tca6416-keys", 16, }, 29 { "tca6408-keys", 8, }, 35 struct input_dev *input; member 45 struct input_dev *input; member 58 error = chip->io_size > 8 ? in tca6416_write_reg() 59 i2c_smbus_write_word_data(chip->client, reg << 1, val) : in tca6416_write_reg() 60 i2c_smbus_write_byte_data(chip->client, reg, val); in tca6416_write_reg() 62 dev_err(&chip->client->dev, in tca6416_write_reg() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/ivtv/ |
D | ivtv-routing.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Audio/video-routing-related ivtv functions. 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 9 #include "ivtv-driver.h" 10 #include "ivtv-i2c.h" 11 #include "ivtv-cards.h" 12 #include "ivtv-gpio.h" 13 #include "ivtv-routing.h" 15 #include <media/drv-intf/msp3400.h> [all …]
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/ |
D | videodev2.h.rst.exceptions | 1 # SPDX-License-Identifier: GPL-2.0 14 # Those symbols should not be used by uAPI - don't document them 20 replace symbol V4L2_FIELD_ALTERNATE :c:type:`v4l2_field` 21 replace symbol V4L2_FIELD_ANY :c:type:`v4l2_field` 22 replace symbol V4L2_FIELD_BOTTOM :c:type:`v4l2_field` 23 replace symbol V4L2_FIELD_INTERLACED :c:type:`v4l2_field` 24 replace symbol V4L2_FIELD_INTERLACED_BT :c:type:`v4l2_field` 25 replace symbol V4L2_FIELD_INTERLACED_TB :c:type:`v4l2_field` 26 replace symbol V4L2_FIELD_NONE :c:type:`v4l2_field` 27 replace symbol V4L2_FIELD_SEQ_BT :c:type:`v4l2_field` [all …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | classmate-laptop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/input.h> 37 * Generic input device code. 50 return -ENOMEM; in cmpc_add_acpi_notify_device() 51 inputdev->name = name; in cmpc_add_acpi_notify_device() 52 inputdev->dev.parent = &acpi->dev; in cmpc_add_acpi_notify_device() 59 dev_set_drvdata(&acpi->dev, inputdev); in cmpc_add_acpi_notify_device() 65 struct input_dev *inputdev = dev_get_drvdata(&acpi->dev); in cmpc_remove_acpi_notify_device() 76 struct acpi_object_list input; in cmpc_start_accel_v4() local 79 param[0].type = ACPI_TYPE_INTEGER; in cmpc_start_accel_v4() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
D | pincfg-node.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/pincfg-node.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 21 bias-disable: 22 type: boolean 25 bias-high-impedance: 26 type: boolean 27 description: high impedance mode ("third-state", "floating") [all …]
|
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/ |
D | vidioc-enuminput.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_ENUMINPUT - Enumerate video inputs 29 Pointer to struct :c:type:`v4l2_input`. 34 To query the attributes of a video input applications initialize the 35 ``index`` field of struct :c:type:`v4l2_input` and call the 43 .. c:type:: v4l2_input 45 .. flat-table:: struct v4l2_input 46 :header-rows: 0 47 :stub-columns: 0 50 * - __u32 [all …]
|
D | audio.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 20 more than one video input or output. Assumed two composite video inputs 24 :c:type:`v4l2_input` or struct 25 :c:type:`v4l2_output`, where each bit represents the index 26 number, starting at zero, of one audio input or output. 32 The struct :c:type:`v4l2_audio` returned by the 34 status information applicable when the current audio input is queried. 38 audio input and output, respectively. 47 To select an audio input and change its properties applications call the 52 Drivers must implement all audio input ioctls when the device has [all …]
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | wacom_wac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/input/tablet/wacom_wac.c 5 * USB Wacom tablet support - Wacom specific code 13 #include <linux/input/mt.h> 29 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo 60 bool changed = battery->bat_status != bat_status || in __wacom_notify_battery() 61 battery->battery_capacity != bat_capacity || in __wacom_notify_battery() 62 battery->bat_charging != bat_charging || in __wacom_notify_battery() 63 battery->bat_connected != bat_connected || in __wacom_notify_battery() 64 battery->ps_connected != ps_connected; in __wacom_notify_battery() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/cx88/ |
D | cx88-cards.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * card-specific stuff. 19 static unsigned int tuner[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; 20 static unsigned int radio[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; 21 static unsigned int card[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET }; 27 MODULE_PARM_DESC(tuner, "tuner type"); 28 MODULE_PARM_DESC(radio, "radio tuner type"); 29 MODULE_PARM_DESC(card, "card type"); 45 /* ------------------------------------------------------------------ */ 58 .input = { { [all …]
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | sun4i-a10-inet9f-rev03.dts | 4 * This file is dual-licensed: you can use it either under the terms 43 /dts-v1/; 44 #include "sun4i-a10.dtsi" 45 #include "sunxi-common-regulators.dtsi" 46 #include <dt-bindings/gpio/gpio.h> 47 #include <dt-bindings/input/input.h> 48 #include <dt-bindings/interrupt-controller/irq.h> 51 model = "iNet-9F Rev 03"; 52 compatible = "inet-tek,inet9f-rev03", "allwinner,sun4i-a10"; 59 stdout-path = "serial0:115200n8"; [all …]
|
/kernel/linux/linux-5.10/drivers/input/ |
D | sparse-keymap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/input.h> 14 #include <linux/input/sparse-keymap.h> 28 for (key = dev->keycode; key->type != KE_END; key++) { in sparse_keymap_get_key_index() 29 if (key->type == KE_KEY) { in sparse_keymap_get_key_index() 45 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_by_index() 46 if (key->type == KE_KEY) in sparse_keymap_entry_by_index() 54 * sparse_keymap_entry_from_scancode - perform sparse keymap lookup 55 * @dev: Input device using sparse keymap 59 * input device using sparse keymap. [all …]
|
D | input.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * The input core 5 * Copyright (c) 1999-2002 Vojtech Pavlik 14 #include <linux/input/mt.h> 26 #include "input-compat.h" 27 #include "input-poller.h" 30 MODULE_DESCRIPTION("Input core"); 44 * input handlers. 70 if (value > (long)old_val - fuzz / 2 && in input_defuzz_abs_event() 74 if (value > (long)old_val - fuzz && in input_defuzz_abs_event() [all …]
|
D | ff-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Force feedback support for Linux input subsystem 14 #include <linux/input.h> 27 if (effect_id < 0 || effect_id >= ff->max_effects || in check_effect_access() 28 !ff->effect_owners[effect_id]) in check_effect_access() 29 return -EINVAL; in check_effect_access() 31 if (file && ff->effect_owners[effect_id] != file) in check_effect_access() 32 return -EACCES; in check_effect_access() 43 return e1->type == e2->type && in check_effects_compatible() 44 (e1->type != FF_PERIODIC || in check_effects_compatible() [all …]
|
/kernel/linux/linux-5.10/drivers/input/rmi4/ |
D | rmi_2d_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2011-2016 Synaptics Incorporated 10 #include <linux/input.h> 11 #include <linux/input/mt.h> 16 #define RMI_2D_REL_POS_MIN -128 26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process() 29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process() 32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process() 33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process() 35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
D | gpio-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/input/gpio-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Device-Tree bindings for GPIO attached keys 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 21 type: object 23 $ref: input.yaml# [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/ |
D | ddbridge-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ddbridge-core.c: Digital Devices bridge core functions 5 * Copyright (C) 2010-2017 Digital Devices GmbH 34 #include "ddbridge-i2c.h" 35 #include "ddbridge-regs.h" 36 #include "ddbridge-max.h" 37 #include "ddbridge-ci.h" 38 #include "ddbridge-io.h" 53 #include "ddbridge-dummy-fe.h" 66 "0-one adapter per io, 1-one per tab with io, 2-one per tab, 3-one for all"); [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_model.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 12 int (*val)(struct ixgbe_fdir_filter *input, 15 unsigned int type; member 20 struct ixgbe_fdir_filter *input; member 28 static inline int ixgbe_mat_prgm_sip(struct ixgbe_fdir_filter *input, in ixgbe_mat_prgm_sip() argument 32 input->filter.formatted.src_ip[0] = (__force __be32)val; in ixgbe_mat_prgm_sip() 33 mask->formatted.src_ip[0] = (__force __be32)m; in ixgbe_mat_prgm_sip() 37 static inline int ixgbe_mat_prgm_dip(struct ixgbe_fdir_filter *input, in ixgbe_mat_prgm_dip() argument 41 input->filter.formatted.dst_ip[0] = (__force __be32)val; in ixgbe_mat_prgm_dip() [all …]
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | max77650-onkey.c | 1 // SPDX-License-Identifier: GPL-2.0 6 // ONKEY driver for MAXIM 77650/77651 charger/power-supply. 9 #include <linux/input.h> 21 struct input_dev *input; member 29 input_report_key(onkey->input, onkey->code, 0); in max77650_onkey_falling() 30 input_sync(onkey->input); in max77650_onkey_falling() 39 input_report_key(onkey->input, onkey->code, 1); in max77650_onkey_rising() 40 input_sync(onkey->input); in max77650_onkey_rising() 51 unsigned int type; in max77650_onkey_probe() local 53 dev = &pdev->dev; in max77650_onkey_probe() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/bridge/ |
D | cdns,mhdp8546.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 10 - Swapnil Jakhade <sjakhade@cadence.com> 11 - Yuti Amonkar <yamonkar@cadence.com> 16 - cdns,mhdp8546 17 - ti,j721e-mhdp8546 23 - description: 27 - description: 30 reg-names: [all …]
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
D | ctdaio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * This file contains the implementation of Digital Audio Input Output 57 * For DAO, it is the input mapper index. And, for DAI, in daio_master() 58 * it is the output time-slot index. */ in daio_master() 59 rsc->conj = rsc->idx; in daio_master() 64 return rsc->conj; in daio_index() 69 rsc->conj += 2; in daio_out_next_conj() 74 rsc->conj += 0x200; in daio_in_next_conj_20k1() 79 rsc->conj += 0x100; in daio_in_next_conj_20k2() 103 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument [all …]
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | hdf.patch | 1 diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S 3 --- a/arch/arm64/kernel/vmlinux.lds.S 5 @@ -201,6 +201,15 @@ SECTIONS 21 diff --git a/drivers/Kconfig b/drivers/Kconfig 23 --- a/drivers/Kconfig 25 @@ -236,6 +236,8 @@ source "drivers/interconnect/Kconfig" 34 diff --git a/drivers/Makefile b/drivers/Makefile 36 --- a/drivers/Makefile 38 @@ -191,6 +191,7 @@ obj-$(CONFIG_SIOX) += siox/ 39 obj-$(CONFIG_GNSS) += gnss/ [all …]
|
/kernel/linux/linux-5.10/Documentation/input/ |
D | event-codes.rst | 1 .. _input-event-codes: 4 Input event codes 8 The input protocol uses a map of types and codes to express input device values 12 A single hardware event generates multiple input events. Each input event 13 contains the new value of a single data item. A special event type, EV_SYN, is 14 used to separate input events into packets of input data changes occurring at 16 input event encompassing a type, code, and value. 18 The input protocol is a stateful protocol. Events are emitted only when values 20 input subsystem; drivers do not need to maintain the state and may attempt to 22 event code values using the EVIOCG* ioctls defined in linux/input.h. The event [all …]
|