Home
last modified time | relevance | path

Searched +full:input +full:- +full:type (Results 1 – 25 of 1165) sorted by relevance

12345678910>>...47

/linux/drivers/input/keyboard/
H A Dgpio_keys.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <linux/input.h>
31 #include <dt-bindings/input/gpio-keys.h>
35 struct input_dev *input; member
41 unsigned int release_delay; /* in msecs, for IRQ-only buttons */
45 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */
60 struct input_dev *input; member
69 * There are 4 attributes under /sys/devices/platform/gpio-keys/
70 * keys [ro] - bitmap of keys (EV_KEY) which can be
72 * switches [ro] - bitmap of switches (EV_SW) which can be
[all …]
H A Dgpio_keys_polled.c1 // 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 …]
H A Dtca6416-keypad.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <linux/input.h>
29 { "tca6416-keys", 16, },
30 { "tca6408-keys", 8, },
41 struct input_dev *input; member
52 error = chip->io_size > 8 ? in tca6416_write_reg()
53 i2c_smbus_write_word_data(chip->client, reg << 1, val) : in tca6416_write_reg()
54 i2c_smbus_write_byte_data(chip->client, reg, val); in tca6416_write_reg()
56 dev_err(&chip->client->dev, in tca6416_write_reg()
69 retval = chip->io_size > 8 ? in tca6416_read_reg()
[all …]
H A Dadc-keys.c1 // 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 …]
/linux/drivers/media/pci/ivtv/
H A Divtv-routing.c1 // 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 …]
/linux/Documentation/devicetree/bindings/iio/addac/
H A Dadi,ad74115.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Cosmin Tanislav <cosmin.tanislav@analog.com>
13 The AD74115H is a single-channel software configurable input/output
15 analog output, analog input, digital output, digital input, resistance
17 chip solution with an SPI interface. The device features a 16-bit ADC and a
18 14-bit DAC.
25 - adi,ad74115h
30 spi-max-frequency:
[all …]
/linux/Documentation/userspace-api/media/
H A Dvideodev2.h.rst.exceptions1 # 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 …]
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dpincfg-node.yaml1 # 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 …]
/linux/arch/arm64/boot/dts/allwinner/
H A Dsun50i-h700-anbernic-rg35xx-2024.dts1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
6 /dts-v1/;
8 #include "sun50i-h616.dtsi"
9 #include "sun50i-h616-cpu-opp.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/linux-event-codes.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/leds/common.h>
17 chassis-type = "handset";
18 compatible = "anbernic,rg35xx-2024", "allwinner,sun50i-h700";
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-enuminput.rst1 .. 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 …]
H A Daudio.rst1 .. 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 …]
/linux/drivers/media/pci/cx88/
H A Dcx88-cards.c1 // 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 …]
/linux/arch/arm/boot/dts/allwinner/
H A Dsun4i-a10-inet9f-rev03.dts4 * 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 …]
/linux/drivers/media/pci/ddbridge/
H A Dddbridge-core.c1 // SPDX-License-Identifier: GPL-2.0
3 * ddbridge-core.c: Digital Devices bridge core functions
5 * Copyright (C) 2010-2017 Digital Devices GmbH
25 #include "ddbridge-i2c.h"
26 #include "ddbridge-regs.h"
27 #include "ddbridge-max.h"
28 #include "ddbridge-ci.h"
29 #include "ddbridge-io.h"
44 #include "ddbridge-dummy-fe.h"
57 "0-one adapter per io, 1-one per tab with io, 2-one per tab, 3-one for all");
[all …]
/linux/drivers/input/
H A Dsparse-keymap.c1 // 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 …]
/linux/drivers/input/rmi4/
H A Drmi_2d_sensor.c1 // 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 …]
/linux/tools/testing/selftests/damon/
H A Dsysfs.sh2 # SPDX-License-Identifier: GPL-2.0
4 # Kselftest frmework requirement - SKIP code is 4.
39 if [ "$to_ensure" = "exist" ] && [ ! -d "$dir" ]
43 elif [ "$to_ensure" = "not_exist" ] && [ -d "$dir" ]
57 if [ ! -f "$file" ]
62 perm=$(stat -c "%a" "$file")
68 elif [ "$to_ensure" = "not_exist" ] && [ -f "$dir" ]
103 ensure_file "$filter_dir/type" "exist" "600"
104 ensure_write_succ "$filter_dir/type" "anon" "valid input"
105 ensure_write_succ "$filter_dir/type" "memcg" "valid input"
[all …]
/linux/drivers/acpi/
H A Dbutton.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * button.c - ACPI Button Driver
18 #include <linux/input.h>
72 /* GP-electronic T701, _LID method points to a floating GPIO */
171 unsigned int type; member
172 struct input_dev *input; member
173 char phys[32]; /* for input device */
182 static long lid_init_state = -1;
197 status = acpi_evaluate_integer(device->handle, "_LID", NULL, &lid_state); in acpi_lid_evaluate_state()
199 return -ENODEV; in acpi_lid_evaluate_state()
[all …]
/linux/Documentation/netlink/specs/
H A Ddpll.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
8 -
9 type: enum
16 -
18 doc: input can be only selected by sending a request to dpll
20 -
22 doc: highest prio input pin auto selected by dpll
23 render-max: true
24 -
25 type: enum
[all …]
/linux/sound/pci/ctxfi/
H A Dctdaio.c1 // 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->con in daio_index()
103 daio_device_index(enum DAIOTYP type,struct hw * hw) daio_device_index() argument
156 dao_set_left_input(struct dao * dao,struct rsc * input) dao_set_left_input() argument
185 dao_set_right_input(struct dao * dao,struct rsc * input) dao_set_right_input() argument
506 daio_mgr_get_rsc(struct rsc_mgr * mgr,enum DAIOTYP type) daio_mgr_get_rsc() argument
516 daio_mgr_put_rsc(struct rsc_mgr * mgr,enum DAIOTYP type) daio_mgr_put_rsc() argument
[all...]
/linux/Documentation/arch/sparc/oradax/
H A Ddax-hv-api.txt3 Publication date 2017-09-25 08:21
5 Extracted via "pdftotext -f 547 -l 572 -layout sun4v_20170925.pdf"
16 live-migration and other system management activities.
20 …high speed processoring of database-centric operations. The coprocessors may support one or more of
28 …e Completion Area and, unless execution order is specifically restricted through the use of serial-
45 …device node in the guest MD (Section 8.24.17, “Database Analytics Accelerators (DAX) virtual-device
51 36.1.1.1. "ORCL,sun4v-dax" Device Compatibility
54 • No-op/Sync
77 …See Section 36.2.1, “Query CCB Command Formats” for the corresponding CCB input and output formats.
81 36.1.1.2. "ORCL,sun4v-dax-fc" Device Compatibility
[all …]
/linux/drivers/input/misc/
H A Dmax77650-onkey.c1 // 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 …]
H A Dcs40l50-vibra.c1 // SPDX-License-Identifier: GPL-2.0
4 * integrated DSP, and closed-loop algorithms
12 #include <linux/input.h>
52 enum cs40l50_bank_type type; member
58 enum cs40l50_bank_type type; member
82 struct input_dev *input; member
100 .type = CS40L50_WVFRM_BANK_RAM,
105 .type = CS40L50_WVFRM_BANK_ROM,
110 .type = CS40L50_WVFRM_BANK_OWT,
133 if (effect->id == id) in cs40l50_find_effect()
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_model.h1 /* 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 …]
/linux/Documentation/input/
H A Devent-codes.rst1 .. _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 …]

12345678910>>...47