Home
last modified time | relevance | path

Searched +full:fn +full:- +full:keymap (Results 1 – 25 of 35) sorted by relevance

12

/openbmc/linux/Documentation/devicetree/bindings/input/
H A Dmatrix-keymap.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/matrix-keymap.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Common Key Matrices on Matrix-connected Key Boards
10 - Olof Johansson <olof@lixom.net>
13 A simple common binding for matrix-connected key boards. Currently targeted at
18 cases where there is a modifier key such as a Fn key. Proposed names
19 for said properties are "linux,fn-keymap" or with another descriptive
20 word for the modifier other from "Fn".
[all …]
H A Dnvidia,tegra20-kbc.txt7 - compatible: "nvidia,tegra20-kbc"
8 - reg: Register base address of KBC.
9 - interrupts: Interrupt number for the KBC.
10 - nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an
12 - nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an
14 - linux,keymap: The keymap for keys as described in the binding document
15 devicetree/bindings/input/matrix-keymap.txt.
16 - clocks: Must contain one entry, for the module clock.
17 See ../clocks/clock-bindings.txt for details.
18 - resets: Must contain an entry for each entry in reset-names.
[all …]
/openbmc/u-boot/include/
H A Dkey_matrix.h1 /* SPDX-License-Identifier: GPL-2.0+ */
22 * exist but fn may be NULL in which case it is not decoded.
25 const u8 *fn_keycode; /* ...when Fn held down */
26 int fn_pos; /* position of Fn key in key (or -1) */
27 int ghost_filter; /* non-zero to enable ghost filter */
44 * The plain keymap is used, unless the Fn key is detected along the way,
45 * at which point we switch to the Fn key map.
62 * Decode properties of named "linux,<type>keymap" where <type> is either
63 * empty, or "fn-". Then set up the plain key map (and the FN keymap if
69 * @return 0 if ok, -1 on error
[all …]
/openbmc/u-boot/drivers/input/
H A Dkey_matrix.c1 // SPDX-License-Identifier: GPL-2.0+
32 if (!config->ghost_filter || valid < 3) in has_ghosting()
38 * and the other is in the same column as the i-th key. in has_ghosting()
57 const u8 *keymap; in key_matrix_decode() local
62 keymap = config->plain_keycode; in key_matrix_decode()
66 debug(" valid=%d, row=%d, col=%d\n", key->valid, key->row, in key_matrix_decode()
67 key->col); in key_matrix_decode()
68 if (!key->valid) in key_matrix_decode()
70 pos = key->row * config->num_cols + key->col; in key_matrix_decode()
71 if (config->fn_keycode && pos == config->fn_pos) in key_matrix_decode()
[all …]
/openbmc/linux/drivers/platform/x86/dell/
H A Ddell-wmi-base.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2014-2015 Pali Rohár <pali@kernel.org>
22 #include <linux/input/sparse-keymap.h>
28 #include "dell-smbios.h"
29 #include "dell-wmi-descriptor.h"
30 #include "dell-wmi-privacy.h"
37 #define DELL_EVENT_GUID "9DBB5994-A997-11DA-B012-B622A1EF5492"
74 * Keymap for WMI events of type 0x0000
165 * Originally Matthew Garrett created this dell-wmi driver specially for
196 struct dell_bios_keymap_entry keymap[]; member
[all …]
/openbmc/linux/drivers/input/misc/
H A Dwistron_btns.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/input/sparse-keymap.h>
25 /* How often we poll keys - msecs */
43 module_param_named(keymap, keymap_name, charp, 0);
44 MODULE_PARM_DESC(keymap, "Keymap name, if it can't be autodetected [generic, 1557/MS2141]");
70 : "=a" (regs->eax), "=b" (regs->ebx), "=c" (regs->ecx) in call_bios()
71 : "0" (regs->eax), "1" (regs->ebx), "2" (regs->ecx), in call_bios()
89 return -1; in locate_wistron_bios()
103 return -ENODEV; in map_bios()
136 return -ENOMEM; in map_bios()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dpinephone-keyboard.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org>
18 #define DRV_NAME "pinephone-keyboard"
106 /* FN layer */
141 .keymap = ppkb_keymap,
160 struct i2c_client *client = adap->algo_data; in ppkb_adap_smbus_xfer()
165 buf[1] = data->byte; in ppkb_adap_smbus_xfer()
183 return -EIO; in ppkb_adap_smbus_xfer()
190 data->byte = ret; in ppkb_adap_smbus_xfer()
209 unsigned short *keymap = ppkb->input->keycode; in ppkb_update() local
[all …]
H A Dtegra-kbc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (c) 2009-2011, NVIDIA Corporation.
156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys()
165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys()
166 /* If driver uses Fn map, do not report the Fn key. */ in tegra_kbc_report_keys()
167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys()
178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys()
182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys()
190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys()
205 * If the platform uses Fn keymaps, translate keys on a Fn keypress. in tegra_kbc_report_keys()
[all …]
H A Datkbd.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2002 Vojtech Pavlik
12 * input-only controllers and AT keyboards connected over a one way RS232
22 #include <linux/input/vivaldi-fmap.h>
58 MODULE_PARM_DESC(scroll, "Enable scroll-wheel on MS Office and similar keyboards");
68 #define SCANCODE(keymap) ((keymap >> 16) & 0xFFFF) argument
69 #define KEYCODE(keymap) (keymap & 0xFFFF) argument
236 /* Serializes reconnect(), attr->set() and event work */
243 * System-specific keymap fixup routine
309 return vivaldi_function_row_physmap_show(&atkbd->vdata, buf); in atkbd_show_function_row_physmap()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dmsi-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Most stuff taken over from hp-wmi
14 #include <linux/input/sparse-keymap.h>
25 #define DRV_NAME "msi-wmi"
27 #define MSIWMI_BIOS_GUID "551A1F84-FBDD-4125-91DB-3EA8F44F1D45"
28 #define MSIWMI_MSI_EVENT_GUID "B6F3EEF2-3D2F-49DC-9DE3-85BCE18C62F2"
29 #define MSIWMI_WIND_EVENT_GUID "5B3CC38A-40D9-7245-8AE6-1145B751BE3F"
43 WIND_KEY_TOUCHPAD = 0x08, /* Fn+F3 touchpad toggle */
44 WIND_KEY_BLUETOOTH = 0x56, /* Fn+F11 Bluetooth toggle */
45 WIND_KEY_CAMERA, /* Fn+F6 webcam toggle */
[all …]
H A Dasus-nb-wmi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include <linux/input/sparse-keymap.h>
19 #include "asus-wmi.h"
21 #define ASUS_NB_WMI_FILE "asus-nb-wmi"
27 #define ASUS_NB_WMI_EVENT_GUID "0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C"
32 * WAPF defines the behavior of the Fn+Fx wlan key
40 static int wapf = -1;
44 static int tablet_mode_sw = -1;
46 …ULE_PARM_DESC(tablet_mode_sw, "Tablet mode detect: -1:auto 0:disable 1:kbd-dock 2:lid-flip 3:lid-f…
130 pr_info("Identified laptop model '%s'\n", dmi->ident); in dmi_matched()
[all …]
H A Dfujitsu-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*-*-linux-c-*-*/
10 Adrian Yee <brewt-fujitsu@brewt.org>
12 Templated from msi-laptop.c and thinkpad_acpi.c which is copyright
18 * fujitsu-laptop.c - Fujitsu laptop support, providing access to additional
22 * This driver implements a vendor-specific backlight control interface for
27 * P8010. It should work on most P-series and S-series Lifebooks, but
48 #include <linux/input/sparse-keymap.h>
68 /* FUNC interface - command values */
74 /* FUNC interface - responses */
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
12 x86 platforms, including vendor-specific laptop extension drivers.
23 This driver adds support for the ACPI-WMI (Windows Management
26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the
27 ACPI firmware to userspace - this is done through various vendor
38 any ACPI-WMI devices.
45 Say Y here if you want to be able to read a firmware-embedded
50 be called wmi-bmof.
64 control, fn-lock, mic-mute LED, and other extra features.
67 will be called huawei-wmi.
[all …]
H A Dmsi-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*-*-linux-c-*-*/
10 * msi-laptop.c - MSI S270 laptop support. This laptop is sold under
15 * This driver exports a few files in /sys/devices/platform/msi-laptop-pf/:
17 * lcd_level - Screen brightness: contains a single integer in the
20 * auto_brightness - Enable automatic brightness control: contains
25 * wlan - WLAN subsystem enabled: contains either 0 or 1. (ro)
27 * bluetooth - Bluetooth subsystem enabled: contains either 0 or 1
33 * available to userspace under /sys/class/backlight/msi-laptop-bl/.
53 #include <linux/input/sparse-keymap.h>
[all …]
H A Dtoshiba_acpi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * toshiba_acpi.c - Toshiba Laptop ACPI Extras
5 * Copyright (C) 2002-2004 John Belmonte
8 * Copyright (C) 2014-2016 Azael Avalos
14 * Jonathan A. Buzzard - Toshiba HCI info, and critical tips on reverse
16 * Yasushi Nagato - changes for linux kernel 2.4 -> 2.5
17 * Rob Miller - TV out and hotkeys help
36 #include <linux/input/sparse-keymap.h>
55 static int turn_on_panel_on_resume = -1;
58 "Call HCI_PANEL_POWER_ON on resume (-1 = auto, 0 = no, 1 = yes");
[all …]
H A Dideapad-laptop.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ideapad-laptop.c - Lenovo IdeaPad ACPI Extras
23 #include <linux/input/sparse-keymap.h>
34 #include "ideapad-laptop.h"
38 #include <dt-bindings/leds/common.h>
90 * These correspond to the number of supported states - 1
164 "Enable DYTC version 4 platform-profile support. "
165 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
171 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
176 "Enable driver based updates of the fn-lock LED on fn-lock changes. "
[all …]
/openbmc/u-boot/board/nokia/rx51/
H A Drx51.c1 // SPDX-License-Identifier: GPL-2.0+
6 * (C) Copyright 2011-2012
13 * (C) Copyright 2004-2008
20 * Richard Woodruff <r-woodruff2@ti.com>
33 #include <asm/mach-types.h>
47 "Nokia RX-51",
70 OMAP_TAG_WLAN_CX3110X_CONFIG(0x25, 0xff, 87, 42, -1),
84 OMAP_TAG_VERSION_STR_CONFIG("product", "RX-51"),
85 OMAP_TAG_VERSION_STR_CONFIG("hw-build", "2101"),
87 OMAP_TAG_VERSION_STR_CONFIG("boot-mode", "normal"),
[all …]
/openbmc/linux/arch/powerpc/boot/dts/
H A Dac14xx.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #address-cells = <1>;
15 #size-cells = <1>;
26 timebase-frequency = <40000000>; /* 40 MHz (csb/4) */
27 bus-frequency = <160000000>; /* 160 MHz csb bus */
28 clock-frequency = <400000000>; /* 400 MHz ppc core */
49 compatible = "cfi-flash";
51 #address-cells = <1>;
52 #size-cells = <1>;
53 bank-width = <2>;
[all …]
/openbmc/linux/drivers/input/
H A Dinput.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 1999-2002 Vojtech Pavlik
28 #include "input-compat.h"
29 #include "input-core-private.h"
30 #include "input-poller.h"
73 if (value > old_val - fuzz / 2 && value < old_val + fuzz / 2) in input_defuzz_abs_event()
76 if (value > old_val - fuzz && value < old_val + fuzz) in input_defuzz_abs_event()
79 if (value > old_val - fuzz * 2 && value < old_val + fuzz * 2) in input_defuzz_abs_event()
88 if (test_bit(EV_REP, dev->evbit) && in input_start_autorepeat()
89 dev->rep[REP_PERIOD] && dev->rep[REP_DELAY] && in input_start_autorepeat()
[all …]
/openbmc/linux/include/linux/
H A Dinput.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 1999-2002 Vojtech Pavlik
16 * In-kernel definitions.
27 * struct input_value - input value representation
46 * struct input_dev - represents an input device
69 * @getkeycode: optional legacy method to retrieve current keymap.
70 * @setkeycode: optional method to alter current keymap, used to implement
111 * (such as keymap or absmin, absmax, absfuzz, etc.) after device
116 * to make sure that dev->open() is only called when the first
117 * user opens device and dev->close() is called when the very
[all …]
/openbmc/linux/Documentation/admin-guide/laptops/
H A Dthinkpad-acpi.rst9 - Borislav Deianov <borislav@users.sf.net>
10 - Henrique de Moraes Holschuh <hmh@hmh.eng.br>
12 http://ibm-acpi.sf.net/
19 This driver used to be named ibm-acpi until kernel 2.6.21 and release
20 0.13-20070314. It used to be in the drivers/acpi tree, but it was
21 moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel
25 The driver is named "thinkpad-acpi". In some places, like module
29 "tpacpi" is used as a shorthand where "thinkpad-acpi" would be too
33 ------
38 - Fn key combinations
[all …]
/openbmc/linux/drivers/platform/x86/intel/
H A Dhid.c1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/input/sparse-keymap.h>
20 TABLET_SW_AUTO = -1,
30 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
35 "Enable SW_TABLET_MODE reporting -1:auto 0:off 1:at-first-event 2:at-probe. "
36 "If you need this please report this to: platform-driver-x86@vger.kernel.org");
58 /* 1: LSuper (Page 0x07, usage 0xE3) -- unclear what to do */
59 /* 2: Toggle SW_ROTATE_LOCK -- easy to implement if seen in wild */
68 /* 13 has two different meanings in the spec -- ignore it. */
76 /* 27: wake -- needs special handling */
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Datmel_mxt_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2011-2014 Atmel Corporation
30 #include <media/v4l2-device.h>
31 #include <media/v4l2-ioctl.h>
32 #include <media/videobuf2-v4l2.h>
33 #include <media/videobuf2-vmalloc.h>
34 #include <dt-bindings/input/atmel-maxtouch.h>
367 return obj->size_minus_one + 1; in mxt_obj_size()
372 return obj->instances_minus_one + 1; in mxt_obj_instances()
413 dev_dbg(&data->client->dev, "message: %*ph\n", in mxt_dump_message()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dbpf.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
21 #define BPF_DW 0x18 /* double word (64-bit) */
23 #define BPF_ATOMIC 0xc0 /* atomic memory ops - op type in immediate */
24 #define BPF_XADD 0xc0 /* exclusive add - legacy name */
32 #define BPF_TO_LE 0x00 /* convert to little-endian */
33 #define BPF_TO_BE 0x08 /* convert to big-endian */
51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */
69 /* BPF has 10 general purpose 64-bit registers and stack frame. */
111 BPF_CGROUP_ITER_DESCENDANTS_PRE, /* walk descendants in pre-order. */
[all …]
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com
21 #define BPF_DW 0x18 /* double word (64-bit) */
23 #define BPF_ATOMIC 0xc0 /* atomic memory ops - op type in immediate */
24 #define BPF_XADD 0xc0 /* exclusive add - legacy name */
32 #define BPF_TO_LE 0x00 /* convert to little-endian */
33 #define BPF_TO_BE 0x08 /* convert to big-endian */
51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */
69 /* BPF has 10 general purpose 64-bit registers and stack frame. */
111 BPF_CGROUP_ITER_DESCENDANTS_PRE, /* walk descendants in pre-order. */
[all …]

12