/linux-5.10/drivers/input/ |
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-5.10/Documentation/staging/ |
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-5.10/arch/arm/boot/dts/ |
D | imx6dl-prtvt7.dts | 1 // 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 …]
|
/linux-5.10/Documentation/devicetree/bindings/input/ |
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 …]
|
D | samsung-keypad.txt | 3 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 …]
|
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# 7 title: Device-Tree bindings for GPIO attached keys 10 - Rob Herring <robh@kernel.org> 15 - gpio-keys 16 - gpio-keys-polled 33 description: Descriptive name of the key. 35 linux,code: [all …]
|
D | qcom,pm8941-pwrkey.txt | 1 Qualcomm PM8941 PMIC Power Key 5 - compatible: 9 "qcom,pm8941-pwrkey" 10 "qcom,pm8941-resin" 12 - reg: 14 Value type: <prop-encoded-array> 17 - interrupts: 19 Value type: <prop-encoded-array> 20 Definition: key change interrupt; The format of the specifier is 24 - debounce: [all …]
|
/linux-5.10/include/linux/ |
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-5.10/kernel/ |
D | jump_label.c | 1 // 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 …]
|
/linux-5.10/samples/bpf/ |
D | xdp_monitor_kern.c | 1 /* 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 …]
|
/linux-5.10/include/crypto/ |
D | akcipher.h | 1 /* 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 …]
|
/linux-5.10/Documentation/crypto/ |
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 …]
|
D | api-samples.rst | 1 Code Examples 4 Code Example For Symmetric Key Cipher Operation 5 ----------------------------------------------- 7 This code encrypts some data with AES-256-XTS. For sake of example, 8 all inputs are random bytes, the encryption is done in-place, and it's 9 assumed the code is running in a context where it can sleep. 21 u8 iv[16]; /* AES-256-XTS takes a 16-byte IV */ 22 u8 key[64]; /* AES-256-XTS takes a 64-byte key */ 26 * Allocate a tfm (a transformation object) and set the key. 28 * In real-world use, a tfm and key are typically used for many [all …]
|
/linux-5.10/drivers/input/keyboard/ |
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 …]
|
/linux-5.10/drivers/tty/ |
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(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 …]
|
/linux-5.10/include/dt-bindings/input/ |
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-5.10/fs/ubifs/ |
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, 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 …]
|
/linux-5.10/Documentation/driver-api/media/ |
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-5.10/arch/mips/boot/dts/ingenic/ |
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"; 20 compatible = "regulator-fixed"; 22 regulator-name = "vcc"; 23 regulaor-min-microvolt = <3300000>; 24 regulaor-max-microvolt = <3300000>; [all …]
|
/linux-5.10/drivers/platform/x86/ |
D | dell-wmi.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" 36 #define DELL_EVENT_GUID "9DBB5994-A997-11DA-B012-B622A1EF5492" 81 /* Key code is followed by brightness level */ 88 /* Radio devices state change, key code is followed by other values */ 93 /* Key code is followed by: next, active and attached devices */ 96 /* Key code is followed by keyboard illumination level */ [all …]
|
/linux-5.10/arch/s390/crypto/ |
D | paes_s390.c | 1 // SPDX-License-Identifier: GPL-2.0 31 * Key blobs smaller/bigger than these defines are rejected 32 * by the common code even before the individual setkey function 33 * is called. As paes can handle different kinds of key blobs 48 * key point to the memory where the key is stored. 49 * The code distinguishes by checking keylen against 52 u8 *key; member 58 const u8 *key, in _key_to_kb() argument 74 /* clear key value, prepare pkey clear key token in keybuf */ in _key_to_kb() 75 memset(kb->keybuf, 0, sizeof(kb->keybuf)); in _key_to_kb() [all …]
|
/linux-5.10/Documentation/input/ |
D | uinput.rst | 12 that will be delivered to userspace and in-kernel consumers. 28 create uinput devices and send events. libevdev is less error-prone than 38 --------------- 41 send a key event. All default imports and error handlers were removed for 44 .. code-block:: c 48 void emit(int fd, int type, int code, int val) 53 ie.code = code; 71 * created, to pass key events, in this case the space key. 90 * to send. This pause is only needed in our example code! 94 /* Key press, report the event, send key release, and report again */ [all …]
|
/linux-5.10/arch/arm64/boot/dts/rockchip/ |
D | rk3308-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/input/input.h> 13 compatible = "rockchip,rk3308-evb", "rockchip,rk3308"; 16 stdout-path = "serial4:1500000n8"; 19 adc-keys0 { 20 compatible = "adc-keys"; 21 io-channels = <&saradc 0>; 22 io-channel-names = "buttons"; 23 poll-interval = <100>; [all …]
|
/linux-5.10/Documentation/input/devices/ |
D | atarikbd.rst | 12 provides a convenient connection point for a mouse and switch-type joysticks. 13 The ikbd processor also maintains a time-of-day clock with one second 18 The ikbd communicates with the main processor over a high speed bi-directional 27 The keyboard always returns key make/break scan codes. The ikbd generates 28 keyboard scan codes for each key press and release. The key scan make (key 30 ISO key position in the scan code table should exist even if no keyswitch 31 exists in that position on a particular keyboard. The break code for each key 32 is obtained by ORing 0x80 with the make code. 37 Code Command 41 0xF8-0xFB relative mouse position records (lsbs determined by [all …]
|
/linux-5.10/Documentation/process/ |
D | maintainer-pgp-guide.rst | 11 the more general "`Protecting Code Integrity`_" guide published by the 12 Linux Foundation. Please read that document for more in-depth discussion 15 .. _`Protecting Code Integrity`: https://github.com/lfit/itpol/blob/master/protecting-code-integrit… 20 PGP helps ensure the integrity of the code that is produced by the Linux 22 communication channels between developers via PGP-signed email exchange. 24 The Linux kernel source code is available in two main formats: 26 - Distributed source repositories (git) 27 - Periodic release snapshots (tarballs) 35 - git repositories provide PGP signatures on all tags 36 - tarballs provide detached PGP signatures with all downloads [all …]
|