Home
last modified time | relevance | path

Searched +full:key +full:- +full:code (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/kernel/linux/linux-5.10/drivers/input/
Dsparse-keymap.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/input/
Dsparse-keymap.c17 #include <linux/input/sparse-keymap.h>
28 struct key_entry *key; in sparse_keymap_get_key_index() local
31 for (key = dev->keycode; key->type != KE_END; key++) { in sparse_keymap_get_key_index()
32 if (key->type == KE_KEY) { in sparse_keymap_get_key_index()
33 if (key == k) in sparse_keymap_get_key_index()
45 struct key_entry *key; in sparse_keymap_entry_by_index() local
48 for (key = dev->keycode; key->type != KE_END; key++) in sparse_keymap_entry_by_index()
49 if (key->type == KE_KEY) in sparse_keymap_entry_by_index()
51 return key; in sparse_keymap_entry_by_index()
57 * sparse_keymap_entry_from_scancode - perform sparse keymap lookup
[all …]
/kernel/linux/linux-4.19/kernel/
Djump_label.c39 if (jea->key < jeb->key) in jump_label_cmp()
40 return -1; in jump_label_cmp()
42 if (jea->key > jeb->key) in jump_label_cmp()
53 size = (((unsigned long)stop - (unsigned long)start) in jump_label_sort_entries()
58 static void jump_label_update(struct static_key *key);
69 int static_key_count(struct static_key *key) in static_key_count() argument
72 * -1 means the first static_key_slow_inc() is in progress. in static_key_count()
75 int n = atomic_read(&key->enabled); in static_key_count()
81 void static_key_slow_inc_cpuslocked(struct static_key *key) in static_key_slow_inc_cpuslocked() argument
85 STATIC_KEY_CHECK_USE(key); in static_key_slow_inc_cpuslocked()
[all …]
/kernel/linux/linux-5.10/Documentation/staging/
Dstatic-keys.rst19 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 …]
/kernel/linux/linux-4.19/Documentation/
Dstatic-keys.txt19 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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/input/
Dpxa27x-keypad.txt4 - 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 …]
Dsamsung-keypad.txt3 Samsung's Keypad controller is used to interface a SoC with a matrix-type
5 A key can be placed at each intersection of a unique row and a unique column.
6 The keypad controller can sense a key-press and key-release and report the
10 - compatible: should be one of the following
11 - "samsung,s3c6410-keypad": For controllers compatible with s3c6410 keypad
13 - "samsung,s5pv210-keypad": For controllers compatible with s5pv210 keypad
16 - reg: physical base address of the controller and length of memory mapped
19 - interrupts: The interrupt number to the cpu.
22 - samsung,keypad-num-rows: Number of row lines connected to the keypad
25 - samsung,keypad-num-columns: Number of column lines connected to the
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dpxa27x-keypad.txt4 - 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 …]
Dsamsung-keypad.txt3 Samsung's Keypad controller is used to interface a SoC with a matrix-type
5 A key can be placed at each intersection of a unique row and a unique column.
6 The keypad controller can sense a key-press and key-release and report the
10 - compatible: should be one of the following
11 - "samsung,s3c6410-keypad": For controllers compatible with s3c6410 keypad
13 - "samsung,s5pv210-keypad": For controllers compatible with s5pv210 keypad
16 - reg: physical base address of the controller and length of memory mapped
19 - interrupts: The interrupt number to the cpu.
22 - samsung,keypad-num-rows: Number of row lines connected to the keypad
25 - samsung,keypad-num-columns: Number of column lines connected to the
[all …]
/kernel/linux/linux-5.10/include/linux/
Djump_label.h1 /* 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 …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx6dl-prtvt7.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/sound/fsl-imx-audmux.h>
22 backlight_lcd: backlight-lcd {
23 compatible = "pwm-backlight";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_backlight>;
[all …]
/kernel/linux/linux-4.19/include/crypto/
Dakcipher.h2 * Public Key Encryption
18 * struct akcipher_request - public key request
42 * struct crypto_akcipher - user-instantiated objects which encapsulate
52 * struct akcipher_alg - generic public key algorithm
54 * @sign: Function performs a sign operation as defined by public key
56 * the req->dst_len will be updated to the size required for the
58 * @verify: Function performs a sign operation as defined by public key
60 * the req->dst_len will be updated to the size required for the
62 * @encrypt: Function performs an encrypt operation as defined by public key
64 * the req->dst_len will be updated to the size required for the
[all …]
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_monitor_kern.c1 /* SPDX-License-Identifier: GPL-2.0
2 * Copyright(c) 2017-2018 Jesper Dangaard Brouer, Red Hat Inc.
11 __type(key, u32);
20 __type(key, u32);
26 * Code in: kernel/include/trace/events/xdp.h
29 u64 __pad; // First 8 bytes are not accessible by bpf code
47 u32 key = XDP_REDIRECT_ERROR; in xdp_redirect_collect_stat() local
48 int err = ctx->err; in xdp_redirect_collect_stat()
52 key = XDP_REDIRECT_SUCCESS; in xdp_redirect_collect_stat()
54 cnt = bpf_map_lookup_elem(&redirect_err_cnt, &key); in xdp_redirect_collect_stat()
[all …]
/kernel/linux/linux-4.19/Documentation/crypto/
Ddescore-readme.txt2 ------------------------------------------------------------------------------
4 des - fast & portable DES encryption & decryption.
31 2. PORTABILITY to any byte-addressable host with a 32bit unsigned C type
32 3. Plug-compatible replacement for KERBEROS's low-level routines.
35 register-starved machines. My discussions with Richard Outerbridge,
38 To more rapidly understand the code in this package, inspect desSmallFips.i
40 up in a parameterized fashion so it can easily be modified by speed-daemon
46 performance comparison to other available des code which i could
47 compile on a SPARCStation 1 (cc -O4, gcc -O2):
49 this code (byte-order independent):
[all …]
/kernel/linux/linux-5.10/kernel/
Djump_label.c1 // SPDX-License-Identifier: GPL-2.0-only
41 * Entrires are sorted by key. in jump_label_cmp()
44 return -1; in jump_label_cmp()
50 * In the batching mode, entries should also be sorted by the code in jump_label_cmp()
55 return -1; in jump_label_cmp()
65 long delta = (unsigned long)a - (unsigned long)b; in jump_label_swap()
70 jea->code = jeb->code - delta; in jump_label_swap()
71 jea->target = jeb->target - delta; in jump_label_swap()
72 jea->key = jeb->key - delta; in jump_label_swap()
74 jeb->code = tmp.code + delta; in jump_label_swap()
[all …]
/kernel/linux/linux-5.10/include/crypto/
Dakcipher.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Public Key Encryption
13 * struct akcipher_request - public key request
43 * struct crypto_akcipher - user-instantiated objects which encapsulate
53 * struct akcipher_alg - generic public key algorithm
55 * @sign: Function performs a sign operation as defined by public key
57 * the req->dst_len will be updated to the size required for the
60 * public key algorithm, returning verification status. Requires
62 * @encrypt: Function performs an encrypt operation as defined by public key
64 * the req->dst_len will be updated to the size required for the
[all …]
/kernel/linux/linux-5.10/drivers/tty/
Dsysrq.c1 // 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(int key) in sysrq_handle_loglevel() argument
105 i = key - '0'; in sysrq_handle_loglevel()
112 .help_msg = "loglevel(0-9)",
118 static void sysrq_handle_SAK(int key) in sysrq_handle_SAK() argument
134 static void sysrq_handle_unraw(int key) in sysrq_handle_unraw() argument
149 static void sysrq_handle_crash(int key) in sysrq_handle_crash() argument
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dpxa27x_keypad.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/input/keyboard/
Dpxa27x_keypad.c32 #include <linux/platform_data/keypad-pxa27x.h>
37 #define KPDK 0x0008 /* Keypad Direct Key register */
39 #define KPMK 0x0018 /* Keypad Matrix Key register */
42 /* Keypad Automatic Scan Multiple Key Presser register 0-3 */
50 #define KPC_MKRN(n) ((((n) - 1) & 0x7) << 26) /* matrix key row number */
51 #define KPC_MKCN(n) ((((n) - 1) & 0x7) << 23) /* matrix key column number */
52 #define KPC_DKN(n) ((((n) - 1) & 0x7) << 6) /* direct key number */
57 #define KPC_IMKP (0x1 << 21) /* Ignore Multiple Key Press */
65 #define KPC_DI (0x1 << 5) /* Direct key interrupt bit */
93 #define keypad_readl(off) __raw_readl(keypad->mmio_base + (off))
[all …]
/kernel/linux/linux-5.10/Documentation/crypto/
Ddescore-readme.rst1 .. 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 …]
/kernel/linux/linux-4.19/drivers/tty/
Dsysrq.c1 // SPDX-License-Identifier: GPL-2.0
3 * Linux Magic System Request Key Hacks
9 * overhauled to use key registration
87 static void sysrq_handle_loglevel(int key) in sysrq_handle_loglevel() argument
91 i = key - '0'; in sysrq_handle_loglevel()
98 .help_msg = "loglevel(0-9)",
104 static void sysrq_handle_SAK(int key) in sysrq_handle_SAK() argument
120 static void sysrq_handle_unraw(int key) in sysrq_handle_unraw() argument
135 static void sysrq_handle_crash(int key) in sysrq_handle_crash() argument
156 static void sysrq_handle_reboot(int key) in sysrq_handle_reboot() argument
[all …]
/kernel/linux/linux-5.10/fs/ubifs/
Dtnc.c1 // 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,
48 * insert_old_idx - record an index node obsoleted since the last commit start.
49 * @c: UBIFS file-system description object
53 * Returns %0 on success, and a negative error code on failure.
61 * That means that the garbage collection and the in-the-gaps method of
66 * they cannot be easily found. In those cases, an entry is added to an RB-tree.
67 * That is what this function does. The RB-tree is ordered by LEB number and
[all …]
/kernel/linux/linux-4.19/fs/ubifs/
Dtnc.c4 * Copyright (C) 2006-2008 Nokia Corporation.
17 * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 * the UBIFS B-tree.
39 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key,
60 * insert_old_idx - record an index node obsoleted since the last commit start.
61 * @c: UBIFS file-system description object
65 * Returns %0 on success, and a negative error code on failure.
73 * That means that the garbage collection and the in-the-gaps method of
78 * they cannot be easily found. In those cases, an entry is added to an RB-tree.
79 * That is what this function does. The RB-tree is ordered by LEB number and
[all …]
/kernel/linux/linux-5.10/include/dt-bindings/input/
Dinput.h1 /* 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))
/kernel/linux/linux-4.19/include/dt-bindings/input/
Dinput.h1 /* 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))

12345678910>>...44