/linux/drivers/input/ |
H A D | sparse-keymap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/input/sparse-keymap.h> 25 struct key_entry *key; in sparse_keymap_get_key_index() local 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() 30 if (key == k) in sparse_keymap_get_key_index() 42 struct key_entry *key; in sparse_keymap_entry_by_index() local 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() 48 return key; in sparse_keymap_entry_by_index() [all …]
|
/linux/Documentation/bpf/ |
H A D | map_devmap.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 9 - ``BPF_MAP_TYPE_DEVMAP`` was introduced in kernel version 4.14 10 - ``BPF_MAP_TYPE_DEVMAP_HASH`` was introduced in kernel version 5.4 14 ``BPF_MAP_TYPE_DEVMAP`` is backed by an array that uses the key as 16 is backed by a hash table that uses a key to lookup a reference to a net device. 17 The user provides either <``key``/ ``ifindex``> or <``key``/ ``struct bpf_devmap_val``> 21 - The key to a hash map doesn't have to be an ``ifindex``. 22 - While ``BPF_MAP_TYPE_DEVMAP_HASH`` allows for densely packing the net devices 23 it comes at the cost of a hash of the key when performing a look up. 25 The setup and packet enqueue/send code is shared between the two types of [all …]
|
H A D | map_sockmap.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 9 - ``BPF_MAP_TYPE_SOCKMAP`` was introduced in kernel version 4.14 10 - ``BPF_MAP_TYPE_SOCKHASH`` was introduced in kernel version 4.18 18 ``BPF_MAP_TYPE_SOCKMAP`` is backed by an array that uses an integer key as the 26 the map holds to user-space is neither safe nor useful. 44 .. code-block:: c 59 - ``msg_parser`` program - ``BPF_SK_MSG_VERDICT``. 60 - ``stream_parser`` program - ``BPF_SK_SKB_STREAM_PARSER``. 61 - ``stream_verdict`` program - ``BPF_SK_SKB_STREAM_VERDICT``. 62 - ``skb_verdict`` program - ``BPF_SK_SKB_VERDICT``. [all …]
|
H A D | map_lpm_trie.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 9 - ``BPF_MAP_TYPE_LPM_TRIE`` was introduced in kernel version 4.11 19 of 8, in the range from 8 to 2048. The key used for lookup and update 23 - For IPv4 addresses the data length is 4 bytes 24 - For IPv6 addresses the data length is 16 bytes 36 ---------- 41 .. code-block:: c 43 void *bpf_map_lookup_elem(struct bpf_map *map, const void *key) 47 value associated with the longest matching ``key``, or ``NULL`` if no 50 The ``key`` should have ``prefixlen`` set to ``max_prefixlen`` when [all …]
|
H A D | map_hash.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 3 .. Copyright (C) 2022-2023 Isovalent, Inc. 10 - ``BPF_MAP_TYPE_HASH`` was introduced in kernel version 3.19 11 - ``BPF_MAP_TYPE_PERCPU_HASH`` was introduced in version 4.6 12 - Both ``BPF_MAP_TYPE_LRU_HASH`` and ``BPF_MAP_TYPE_LRU_PERCPU_HASH`` 16 purpose hash map storage. Both the key and the value can be structs, 19 The kernel is responsible for allocating and freeing key/value pairs, up 20 to the max_entries limit that you specify. Hash maps use pre-allocation 22 used to disable pre-allocation when it is too memory expensive. 25 CPU. The per-cpu values are stored internally in an array. [all …]
|
H A D | map_cpumap.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 9 - ``BPF_MAP_TYPE_CPUMAP`` was introduced in kernel version 4.15 11 .. kernel-doc:: kernel/bpf/cpumap.c 14 An example use-case for this map type is software based Receive Side Scaling (RSS). 16 The CPUMAP represents the CPUs in the system indexed as the map-key, and the 17 map-value is the config setting (per CPUMAP entry). Each CPUMAP entry has a dedicated 32 ---------- 35 .. code-block:: c 37 long bpf_redirect_map(struct bpf_map *map, u32 key, u64 flags) 39 Redirect the packet to the endpoint referenced by ``map`` at index ``key``. [all …]
|
H A D | map_queue_stack.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 9 - ``BPF_MAP_TYPE_QUEUE`` and ``BPF_MAP_TYPE_STACK`` were introduced 18 - ``BPF_MAP_LOOKUP_ELEM`` -> peek 19 - ``BPF_MAP_LOOKUP_AND_DELETE_ELEM`` -> pop 20 - ``BPF_MAP_UPDATE_ELEM`` -> push 29 ---------- 34 .. code-block:: c 48 .. code-block:: c 59 .. code-block:: c 68 --------- [all …]
|
/linux/Documentation/staging/ |
H A D | static-keys.rst | 19 DEFINE_STATIC_KEY_TRUE(key); 20 DEFINE_STATIC_KEY_FALSE(key); 30 performance-sensitive fast-path kernel code, via a GCC feature and a code 33 DEFINE_STATIC_KEY_FALSE(key); 37 if (static_branch_unlikely(&key)) 38 do unlikely code 40 do likely code 43 static_branch_enable(&key); 45 static_branch_disable(&key); 48 The static_branch_unlikely() branch will be generated into the code with as little [all …]
|
/linux/Documentation/devicetree/bindings/input/ |
H A 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# 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… 35 - items: [all …]
|
H A D | pxa27x-keypad.txt | 4 - compatible : should be "marvell,pxa27x-keypad" 5 - reg : Address and length of the register set for the device 6 - interrupts : The interrupt for the keypad controller 7 - marvell,debounce-interval : How long time the key will be 9 is debounce interval for direct key and bit[15:0] is debounce 10 interval for matrix key. The value is in binary number of 2ms 13 Please refer to matrix-keymap.txt 16 - marvell,direct-key-count : How many direct keyes are used. 17 - marvell,direct-key-mask : The mask indicates which keyes 18 are used. If bit[X] of the mask is set, the direct key X [all …]
|
H A D | samsung,s3c6410-keypad.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/input/samsung,s3c6410-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 Samsung SoC Keypad controller is used to interface a SoC with a matrix-type 12 A key can be placed at each intersection of a unique row and a unique column. 13 The keypad controller can sense a key-press and key-release and report the 17 - Krzysztof Kozlowski <krzk@kernel.org> 22 - samsung,s3c6410-keypad 23 - samsung,s5pv210-keypad [all …]
|
/linux/include/linux/ |
H A D | jump_label.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * Copyright (C) 2009-2012 Jason Baron <jbaron@redhat.com> 9 * Copyright (C) 2011-2012 Red Hat, Inc., Peter Zijlstra 23 * DEFINE_STATIC_KEY_TRUE(key); 24 * DEFINE_STATIC_KEY_FALSE(key); 31 * self-modifying code. Assuming toolchain and architecture support, if we 32 * define a "key" that is initially false via "DEFINE_STATIC_KEY_FALSE(key)", 33 * an "if (static_branch_unlikely(&key))" statement is an unconditional branch 34 * (which defaults to false - and the true block is placed out of line). 35 * Similarly, we can define an initially true key via [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos4412-smdk4412.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. 12 /dts-v1/; 14 #include "exynos-mfc-reserved-memory.dtsi" 31 stdout-path = "serial1:115200n8"; 34 fixed-rate-clocks { 36 compatible = "samsung,clock-xxti"; 37 clock-frequency = <0>; 41 compatible = "samsung,clock-xusbxti"; 42 clock-frequency = <24000000>; [all …]
|
H A D | exynos4210-smdkv310.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2010-2011 Linaro Ltd. 14 /dts-v1/; 16 #include <dt-bindings/gpio/gpio.h> 17 #include "exynos-mfc-reserved-memory.dtsi" 34 stdout-path = "serial1:115200n8"; 37 fixed-rate-clocks { 39 compatible = "samsung,clock-xxti"; 40 clock-frequency = <12000000>; [all …]
|
H A D | s5pv210-smdkv210.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 12 * NOTE: This file is completely based on original board file for mach-smdkv210 17 /dts-v1/; 18 #include <dt-bindings/interrupt-controller/irq.h> 19 #include <dt-bindings/input/input.h> 35 pmic_ap_clk: clock-0 { 37 compatible = "fixed-clock"; 38 #clock-cells = <0>; 39 clock-frequency = <32768>; [all …]
|
/linux/Documentation/crypto/ |
H A D | descore-readme.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 ------------------------------------------------------------------------------ 15 des - fast & portable DES encryption & decryption. 42 2. PORTABILITY to any byte-addressable host with a 32bit unsigned C type 43 3. Plug-compatible replacement for KERBEROS's low-level routines. 46 register-starved machines. My discussions with Richard Outerbridge, 49 To more rapidly understand the code in this package, inspect desSmallFips.i 51 up in a parameterized fashion so it can easily be modified by speed-daemon 57 performance comparison to other available des code which i could 58 compile on a SPARCStation 1 (cc -O4, gcc -O2): [all …]
|
/linux/drivers/input/keyboard/ |
H A D | pxa27x_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #include <linux/platform_data/keypad-pxa27x.h> 34 #define KPDK 0x0008 /* Keypad Direct Key register */ 36 #define KPMK 0x0018 /* Keypad Matrix Key register */ 39 /* Keypad Automatic Scan Multiple Key Presser register 0-3 */ 47 #define KPC_MKRN(n) ((((n) - 1) & 0x7) << 26) /* matrix key row number */ 48 #define KPC_MKCN(n) ((((n) - 1) & 0x7) << 23) /* matrix key column number */ 49 #define KPC_DKN(n) ((((n) - 1) & 0x7) << 6) /* direct key number */ 54 #define KPC_IMKP (0x1 << 21) /* Ignore Multiple Key Press */ 62 #define KPC_DI (0x1 << 5) /* Direct key interrupt bit */ [all …]
|
H A D | pinephone-keyboard.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org> 18 #define DRV_NAME "pinephone-keyboard" 46 KEY(0, 0, KEY_ESC), 47 KEY(0, 1, KEY_1), 48 KEY(0, 2, KEY_2), 49 KEY(0, 3, KEY_3), 50 KEY(0, 4, KEY_4), 51 KEY(0, 5, KEY_5), 52 KEY(0, 6, KEY_6), [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | am3517-evm-ui.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2018 Logic PD, Inc - https://www.logicpd.com/ 6 #include <dt-bindings/input/input.h> 10 compatible = "simple-audio-card"; 11 simple-audio-card,name = "tlv320aic23-hifi"; 13 simple-audio-card,widgets = 18 simple-audio-card,routing = 25 simple-audio-card,format = "i2s"; 26 simple-audio-card,bitclock-master = <&sound_master>; 27 simple-audio-card,frame-master = <&sound_master>; [all …]
|
/linux/drivers/tty/ |
H A D | sysrq.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Linux Magic System Request Key Hacks 9 * overhauled to use key registration 68 * sysrq_mask - Getter for sysrq_enabled mask. 101 static void sysrq_handle_loglevel(u8 key) in sysrq_handle_loglevel() argument 103 u8 loglevel = key - '0'; in sysrq_handle_loglevel() 111 .help_msg = "loglevel(0-9)", 117 static void sysrq_handle_SAK(u8 key) in sysrq_handle_SAK() argument 134 static void sysrq_handle_unraw(u8 key) in sysrq_handle_unraw() argument 149 static void sysrq_handle_crash(u8 key) in sysrq_handle_crash() argument [all …]
|
/linux/fs/ubifs/ |
H A D | tnc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2006-2008 Nokia Corporation. 13 * the UBIFS B-tree. 27 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key, 53 p = &c->old_idx.rb_node; in do_insert_old_idx() 57 if (old_idx->lnum < o->lnum) in do_insert_old_idx() 58 p = &(*p)->rb_left; in do_insert_old_idx() 59 else if (old_idx->lnum > o->lnum) in do_insert_old_idx() 60 p = &(*p)->rb_right; in do_insert_old_idx() 61 else if (old_idx->offs < o->offs) in do_insert_old_idx() [all …]
|
/linux/drivers/platform/x86/dell/ |
H A D | dell-wmi-base.c | 1 // 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" 83 /* Meta key lock */ 86 /* Meta key unlock */ 89 /* Key code is followed by brightness level */ [all …]
|
/linux/Documentation/driver-api/media/ |
H A D | rc-core.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------------------------- 12 Every time a key is pressed on a remote controller, a scan code is produced. 13 Also, on most hardware, keeping a key pressed for more than a few dozens of 14 milliseconds produce a repeat key event. That's somewhat similar to what 22 produces one event for a key press and another one for key release. On 23 infrared-based remote controllers, there's no key release event. Instead, 24 an extra code is produced to indicate key repeats. 43 scan code, being 8 bits for address (usually it is a fixed number for a 44 given remote controller), followed by 8 bits of code. A bit "1" is modulated [all …]
|
/linux/include/dt-bindings/input/ |
H A D | input.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Most input bindings include key code, matrix key code format. 6 * In most cases, key code and matrix key code format uses 13 #include "linux-event-codes.h" 15 #define MATRIX_KEY(row, col, code) \ argument 16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
/linux/arch/mips/boot/dts/ingenic/ |
H A D | rs90.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/input/linux-event-codes.h> 12 model = "RS-90"; 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 24 vmem: video-memory@1f00000 { [all …]
|