Home
last modified time | relevance | path

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

12345678910>>...42

/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
58 • Scan Value
60 • Inverted Scan Value
[all …]
/linux/lib/kunit/
H A Dattributes.c1 // SPDX-License-Identifier: GPL-2.0
13 * PRINT_ALWAYS - attribute is printed for every test case and suite if set
14 * PRINT_SUITE - attribute is printed for every suite if set but not for test cases
15 * PRINT_NEVER - attribute is never printed
24 * struct kunit_attr - represents a test attribute and holds flexible
28 * @get_attr: function to return attribute value given a test
30 * attribute value
31 * @filter: function to indicate whether a given attribute value passes a
33 * @attr_default: default attribute value used during filtering
34 * @print: value of enum print_ops to indicate when to print attribute
[all …]
/linux/drivers/input/keyboard/
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()
35 int i, value, ret; in adc_keys_poll() local
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()
[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()
[all …]
/linux/Documentation/hid/
H A Dhid-sensor.rst20 INPUT(1)[INPUT]
26 Logical Minimum(-32767)
35 The report is indicating "sensor page (0x20)" contains an accelerometer-3D (0x73).
36 This accelerometer-3D has some fields. Here for example field 2 is motion intensity
37 (0x045f) with a logical minimum value of -32767 and logical maximum of 32767. The
38 order of fields and length of each field is important as the input event raw
46 data fields. It is difficult to have a common input event to user space applications,
51 - Core HID driver
52 - Individual sensor processing part (sensor drivers)
55 -----------
[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 …]
H A Dinput-programming.rst2 Creating an input device driver
8 Here comes a very simple example of an input device driver. The device has
12 #include <linux/input.h>
34 return -EBUSY;
40 error = -ENOMEM;
44 button_dev->evbit[0] = BIT_MASK(EV_KEY);
45 button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0);
74 First it has to include the <linux/input.h> file, which interfaces to the
75 input subsystem. This provides all the definitions needed.
81 Then it allocates a new input device structure with input_allocate_device()
[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/hid/
H A Dhid-steam.c1 // SPDX-License-Identifier: GPL-2.0+
18 * This driver will disable the lizard mode when the input device is opened
19 * and re-enable it when the input device is closed, so as not to break user
23 * the hidraw interface directly to create input devices (XTest, uinput...).
26 * - it will not send any command to the controller.
27 * - this input device will be removed, to avoid double input of the same
29 * When the client is closed, this input device will be created again.
31 * For additional functions, such as changing the right-pad margin or switching
32 * the led, you can use the user-space tool at:
38 #include <linux/input.h>
[all …]
H A Dhid-dr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 * - tested with a Tesun USB-703 game controller.
18 #include <linux/input.h>
23 #include "hid-ids.h"
38 strong = effect->u.rumble.strong_magnitude; in drff_play()
39 weak = effect->u.rumble.weak_magnitude; in drff_play()
48 this value is set, it causes the strong rumble to function in drff_play()
53 drff->report->field[0]->value[0] = 0x51; in drff_play()
54 drff->report->field[0]->value[1] = 0x00; in drff_play()
55 drff->report->field[0]->value[2] = weak; in drff_play()
[all …]
/linux/sound/pci/emu10k1/
H A Dp17v.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
8 /* Audigy2Value Tina (P17V) pointer-offset register set, */
12 /* 00 - 07: Not used */
16 /* 09 - 12: Not used */
20 /* 14 - 17: Not used */
24 /* 1b - 1f: Not used */
25 /* 20 - 2f: Not used */
26 /* 30 - 3b: Not used */
34 #define I2C_A_ADC_TRANS_MASK 0x00000010 /*Bit mask for I2c address DAC value */
[all …]
/linux/Documentation/admin-guide/media/
H A Dmgb4.rst1 .. SPDX-License-Identifier: GPL-2.0
7 ---------------
13 There are two types of parameters - global / PCI card related, found under
23 | 0 - No module present
24 | 1 - FPDL3
25 | 2 - GMSL
33 | 1 - FPDL3
34 | 2 - GMSL
42 PRODUCT-REVISION-SERIES-SERIAL
46 Common FPDL3/GMSL input parameters
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_apple_keyboard.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
15 logger = logging.getLogger("hidtools.test.apple-keyboard")
17 KERNEL_MODULE = ("apple", "hid-apple")
38 0x81, 0x02, # .Input (Data,Var,Abs)
41 0x81, 0x01, # .Input (Cnst,Arr,Abs)
58 0x81, 0x00, # .Input (Data,Arr,Abs)
73 0x81, 0x02, # ..Input (Data,Var,Abs)
84 0x81, 0x01, # .Input (Cnst,Arr,Abs)
89 0x81, 0x02, # .Input (Data,Var,Abs)
[all …]
/linux/drivers/hwmon/
H A Dscpi-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
23 char input[20]; member
57 static void scpi_scale_reading(u64 *value, struct sensor_data *sensor) in scpi_scale_reading() argument
59 if (scpi_scale[sensor->info.class] != sensor->scale) { in scpi_scale_reading()
60 *value *= scpi_scale[sensor->info.class]; in scpi_scale_reading()
61 do_div(*value, sensor->scale); in scpi_scale_reading()
68 struct scpi_sensors *scpi_sensors = zone->scpi_sensors; in scpi_read_temp()
69 struct scpi_ops *scpi_ops = scpi_sensors->scpi_ops; in scpi_read_temp()
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
71 u64 value; in scpi_read_temp() local
[all …]
/linux/drivers/input/misc/
H A Dpwm-beeper.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
7 #include <linux/input.h>
19 struct input_dev *input; member
36 pwm_get_state(beeper->pwm, &state); in pwm_beeper_on()
42 error = pwm_apply_might_sleep(beeper->pwm, &state); in pwm_beeper_on()
46 if (!beeper->amplifier_on) { in pwm_beeper_on()
47 error = regulator_enable(beeper->amplifier); in pwm_beeper_on()
49 pwm_disable(beeper->pwm); in pwm_beeper_on()
53 beeper->amplifier_on = true; in pwm_beeper_on()
[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 …]
H A Dtouchscreen.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generic helper functions for touchscreens and other two-dimensional
10 #include <linux/input.h>
11 #include <linux/input/mt.h>
12 #include <linux/input/touchscreen.h>
18 unsigned int *value) in touchscreen_get_prop_u32() argument
25 *value = default_value; in touchscreen_get_prop_u32()
29 *value = val; in touchscreen_get_prop_u32()
39 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params()
40 dev_warn(&dev->dev, in touchscreen_set_params()
[all …]
/linux/drivers/platform/x86/
H A Dsystem76_acpi.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <linux/hwmon-sysfs.h>
16 #include <linux/input.h>
43 struct input_dev *input; member
64 // Array of keyboard LED colors in 24-bit RGB format
75 // Get a System76 ACPI device value by name
82 handle = acpi_device_handle(data->acpi_dev); in system76_get()
86 return -ENODEV; in system76_get()
89 // Get a System76 ACPI device value by name with index
99 obj.integer.value = index; in system76_get_index()
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_7_ppt.c271 struct amdgpu_device *adev = smu->adev; in smu_v13_0_7_get_allowed_feature_mask()
274 return -EINVAL; in smu_v13_0_7_get_allowed_feature_mask()
280 if (adev->pm.pp_feature & PP_SCLK_DPM_MASK) { in smu_v13_0_7_get_allowed_feature_mask()
286 if (adev->pm.pp_feature & PP_GFXOFF_MASK) in smu_v13_0_7_get_allowed_feature_mask()
289 if (adev->pm.pp_feature & PP_MCLK_DPM_MASK) { in smu_v13_0_7_get_allowed_feature_mask()
298 if (adev->pm.pp_feature & PP_PCIE_DPM_MASK) in smu_v13_0_7_get_allowed_feature_mask()
301 if (adev->pm.pp_feature & PP_SCLK_DEEP_SLEEP_MASK) in smu_v13_0_7_get_allowed_feature_mask()
304 if (adev->pm.pp_feature & PP_ULV_MASK) in smu_v13_0_7_get_allowed_feature_mask()
327 if (adev->pm.pp_feature & PP_DCEFCLK_DPM_MASK) in smu_v13_0_7_get_allowed_feature_mask()
330 if ((adev->pg_flags & AMD_PG_SUPPORT_ATHUB) && in smu_v13_0_7_get_allowed_feature_mask()
[all …]
H A Dsmu_v13_0_0_ppt.c302 struct amdgpu_device *adev = smu->adev; in smu_v13_0_0_get_allowed_feature_mask()
305 return -EINVAL; in smu_v13_0_0_get_allowed_feature_mask()
309 if (!(adev->pm.pp_feature & PP_SCLK_DPM_MASK)) { in smu_v13_0_0_get_allowed_feature_mask()
314 if (!(adev->pg_flags & AMD_PG_SUPPORT_ATHUB) || in smu_v13_0_0_get_allowed_feature_mask()
315 !(adev->pg_flags & AMD_PG_SUPPORT_MMHUB)) in smu_v13_0_0_get_allowed_feature_mask()
318 if (!(adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)) in smu_v13_0_0_get_allowed_feature_mask()
322 if ((smu->smc_fw_version < 0x004e3a00) || in smu_v13_0_0_get_allowed_feature_mask()
323 !(adev->pm.pp_feature & PP_GFXOFF_MASK)) in smu_v13_0_0_get_allowed_feature_mask()
326 if (!(adev->pm.pp_feature & PP_MCLK_DPM_MASK)) { in smu_v13_0_0_get_allowed_feature_mask()
332 if (!(adev->pm.pp_feature & PP_SCLK_DEEP_SLEEP_MASK)) in smu_v13_0_0_get_allowed_feature_mask()
[all …]
/linux/Documentation/devicetree/bindings/input/
H A Dgpio-keys.yaml1 # 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#
10 - Rob Herring <robh@kernel.org>
15 - gpio-keys
16 - gpio-keys-polled
23 poll-interval: true
26 …"^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switc…
27 $ref: input.yaml#
[all …]
/linux/Documentation/hwmon/
H A Dbel-pfe.rst1 Kernel driver bel-pfe
10 Addresses scanned: -
12 … Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe1100-12-054xa.pdf
18 Addresses scanned: -
20 Datasheet: https://www.belfuse.com/resources/datasheets/powersolutions/ds-bps-pfe3000-series.pdf
26 -----------
33 1100 Watt AC to DC power-factor-corrected (PFC) power supply.
38 3000 Watt AC/DC power-factor-corrected (PFC) and DC-DC power supply.
46 -----------
48 This driver does not auto-detect devices. You will have to instantiate the
[all …]
/linux/drivers/gpu/drm/amd/pm/swsmu/smu14/
H A Dsmu_v14_0_2_ppt.c270 struct amdgpu_device *adev = smu->adev; in smu_v14_0_2_get_allowed_feature_mask()
274 return -EINVAL; in smu_v14_0_2_get_allowed_feature_mask()
278 if (adev->pm.pp_feature & PP_SCLK_DPM_MASK) { in smu_v14_0_2_get_allowed_feature_mask()
283 if (!(adev->pg_flags & AMD_PG_SUPPORT_ATHUB) || in smu_v14_0_2_get_allowed_feature_mask()
284 !(adev->pg_flags & AMD_PG_SUPPORT_MMHUB)) in smu_v14_0_2_get_allowed_feature_mask()
287 if (!(adev->pm.pp_feature & PP_SOCCLK_DPM_MASK)) in smu_v14_0_2_get_allowed_feature_mask()
293 !(adev->pm.pp_feature & PP_GFXOFF_MASK)) in smu_v14_0_2_get_allowed_feature_mask()
296 if (!(adev->pm.pp_feature & PP_MCLK_DPM_MASK)) { in smu_v14_0_2_get_allowed_feature_mask()
302 if (!(adev->pm.pp_feature & PP_SCLK_DEEP_SLEEP_MASK)) in smu_v14_0_2_get_allowed_feature_mask()
305 if (!(adev->pm.pp_feature & PP_PCIE_DPM_MASK)) { in smu_v14_0_2_get_allowed_feature_mask()
[all …]
/linux/Documentation/devicetree/bindings/hwmon/
H A Dti,ina3221.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jean Delvare <jdelvare@suse.com>
11 - Guenter Roeck <linux@roeck-us.net>
20 ti,single-shot:
22 This chip has two power modes: single-shot (chip takes one measurement
25 hardware monitor type device, but the single-shot mode is more power-
26 friendly and useful for battery-powered device which cares power
29 If this property is present, the single-shot mode will be used, instead
[all …]
/linux/drivers/input/mouse/
H A Dgpio_mouse.c1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/input.h>
19 * @up: GPIO line for up value.
20 * @down: GPIO line for down value.
21 * @left: GPIO line for left value.
22 * @right: GPIO line for right value.
44 * The dev input variable is set to the input_dev pointer.
46 static void gpio_mouse_scan(struct input_dev *input) in gpio_mouse_scan() argument
48 struct gpio_mouse *gpio = input_get_drvdata(input); in gpio_mouse_scan()
51 if (gpio->bleft) in gpio_mouse_scan()
[all …]

12345678910>>...42