| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | ttm_object.h | 3 * Copyright (c) 2006-2023 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 32 * Base- and reference object implementation for the various 34 * and release on file close. 40 #include <linux/dma-buf.h> 51 * Device-specific types should use the 73 * @hash: hash entry for the per-device object hash. 89 * already been taken out of the per-device hash. The parameter 94 * This function may, for example, release a lock held by a user-space [all …]
|
| H A D | ttm_object.c | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 4 * Copyright (c) 2009-2023 VMware, Inc., Palo Alto, CA., USA 21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 29 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 39 * Base- and reference object implementation for the various 41 * and release on file close. 70 * file release. 90 * This is the per-device data structure needed for ttm object management. 103 * @hash: Hash entry for the per-file object reference hash. 105 * @head: List entry for the per-file list of ref-objects. [all …]
|
| /linux/drivers/input/keyboard/ |
| H A D | max7359_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max7359_keypad.c - MAX7359 Key Switch Controller Driver 10 * Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/5456 57 /* matrix key code map */ 69 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg() 79 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg() 84 /* runs in an IRQ thread -- can (and will!) sleep */ 88 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt() 89 int val, row, col, release, code; in max7359_interrupt() local 91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | tc_conntrack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct efx_nic *efx = zone->efx; in efx_tc_ct_zone_free() 35 netif_err(efx, drv, efx->net_dev, in efx_tc_ct_zone_free() 37 zone->zone); in efx_tc_ct_zone_free() 39 nf_flow_table_offload_del_cb(zone->nf_ft, efx_tc_flow_block, zone); in efx_tc_ct_zone_free() 48 netif_err(efx, drv, efx->net_dev, in efx_tc_ct_free() 50 conn->cookie); in efx_tc_ct_free() 52 /* We can release the counter, but we can't remove the CT itself in efx_tc_ct_free() 55 efx_tc_flower_release_counter(efx, conn->cnt); in efx_tc_ct_free() 63 rc = rhashtable_init(&efx->tc->ct_zone_ht, &efx_tc_ct_zone_ht_params); in efx_tc_init_conntrack() [all …]
|
| H A D | tc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2020-2022 Xilinx Inc. 48 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 50 if (dev == efx->net_dev) in efx_tc_flower_lookup_efv() 53 if (dev->netdev_ops != &efx_ef100_rep_netdev_ops) in efx_tc_flower_lookup_efv() 54 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 59 if (efv->parent != efx) in efx_tc_flower_lookup_efv() 60 return ERR_PTR(-EOPNOTSUPP); in efx_tc_flower_lookup_efv() 64 /* Convert a driver-internal vport ID into an internal device (PF or VF) */ 74 efx_mae_mport_mport(efx, efv->mport, &mport); in efx_tc_flower_internal_mport() [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/tools/testing/selftests/drivers/net/ |
| H A D | netcons_fragmented_msg.sh | |
| /linux/Documentation/input/devices/ |
| H A 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 41 0xF8-0xFB relative mouse position records (lsbs determined by 43 0xFC time-of-day 49 The two shift keys return different scan codes in this mode. The ENTER key [all …]
|
| /linux/drivers/net/mctp/ |
| H A D | mctp-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * shared between all mux I2C busses underneath. For non-mux cases an I2C client 14 * mctp-i2c-controller.yml devicetree binding has further details. 23 #include <linux/i2c-mux.h> 31 #define MCTP_I2C_MAXMTU (MCTP_I2C_MAXBLOCK - 1) 41 #define MCTP_I2C_OF_PROP "mctp-controller" 118 return i2c_root_adapter(&adap->de in mux_root_adapter() 369 struct mctp_sk_key *key; mctp_i2c_get_tx_flow_state() local 457 struct mctp_sk_key *key; mctp_i2c_invalidate_tx_flow() local 460 bool release; mctp_i2c_invalidate_tx_flow() local 681 mctp_i2c_release_flow(struct mctp_dev * mdev,struct mctp_sk_key * key) mctp_i2c_release_flow() argument [all...] |
| /linux/block/ |
| H A D | blk-crypto-profile.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * DOC: blk-crypto profiles 9 * 'struct blk_crypto_profile' contains all generic inline encryption-related 17 * these keyslots in a device-independent way, using the driver-provided 19 * of which key and how many I/O requests are using each keyslot, getting 20 * keyslots for I/O requests, and handling key eviction requests. 22 * For more information, see Documentation/block/inline-encryption.rst. 25 #define pr_fmt(fmt) "blk-crypto: " fmt 27 #include <linux/blk-crypto-profile.h> 34 #include <linux/blk-integrity.h> [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. 48 At receiver, a simple low-pass filter can be used to convert the received 86 .. kernel-doc:: include/media/rc-core.h [all …]
|
| /linux/Documentation/devicetree/bindings/sound/ |
| H A D | ti,ts3a227e.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Dylan Reid <dgreid@chromium.org> 14 The TS3A227E detect headsets of 3-ring and 4-ring standards and 16 handles key press detection in accordance with the Android audio 22 - ti,ts3a227e 34 - 0 # 2.1 V 35 - 1 # 2.2 V 36 - 2 # 2.3 V [all …]
|
| /linux/crypto/ |
| H A D | af_alg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * af_alg: User-space algorithm interface 5 * This file provides the user-space API for algorithms. 15 #include <linux/key.h> 16 #include <linux/key-type.h> 25 #include <keys/user-type.h> 26 #include <keys/trusted-type.h> 27 #include <keys/encrypted-type.h> 45 const struct af_alg_type *type = ERR_PTR(-ENOENT); in alg_get_type() 50 if (strcmp(node->type->name, name)) in alg_get_type() [all …]
|
| /linux/kernel/sched/ |
| H A D | wait_bit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 struct wait_bit_key *key = arg; in wake_bit_function() local 29 if (wait_bit->key.flags != key->flags || in wake_bit_function() 30 wait_bit->key.bit_nr != key->bit_nr || in wake_bit_function() 31 test_bit(key->bit_nr, key->flags)) in wake_bit_function() 34 return autoremove_wake_function(wq_entry, mode, sync, key); in wake_bit_function() 39 * To allow interruptible waiting and asynchronous (i.e. non-blocking) 50 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit() 51 if (test_bit(wbq_entry->key.bit_nr, wbq_entry->key.flags)) in __wait_on_bit() 52 ret = (*action)(&wbq_entry->key, mode); in __wait_on_bit() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_ref_tracking.c | 1 // SPDX-License-Identifier: GPL-2.0 12 "*(u32*)(r10 - 8) = r2;" \ 13 "*(u64*)(r10 - 16) = r2;" \ 14 "*(u64*)(r10 - 24) = r2;" \ 15 "*(u64*)(r10 - 32) = r2;" \ 16 "*(u64*)(r10 - 40) = r2;" \ 17 "*(u64*)(r10 - 48) = r2;" \ 20 "r2 += -48;" \ 28 extern void bpf_key_put(struct bpf_key *key) __ksym; 54 __type(key, int); [all …]
|
| /linux/net/psp/ |
| H A D | psp_sock.c | 1 // SPDX-License-Identifier: GPL-2.0-only 20 psd = rcu_dereference(dst_dev_rcu(dst)->psp_dev); in psp_dev_get_for_sock() 37 good = !pas || rcu_access_pointer(dev->psp_dev) == pas->psd; in psp_validate_xmit() 51 lockdep_assert_held(&psd->lock); in psp_assoc_create() 53 pas = kzalloc_flex(*pas, drv_data, psd->caps->assoc_drv_sp in psp_assoc_create() 133 psp_sock_assoc_set_rx(struct sock * sk,struct psp_assoc * pas,struct psp_key_parsed * key,struct netlink_ext_ack * extack) psp_sock_assoc_set_rx() argument 178 psp_sock_assoc_set_tx(struct sock * sk,struct psp_dev * psd,u32 version,struct psp_key_parsed * key,struct netlink_ext_ack * extack) psp_sock_assoc_set_tx() argument [all...] |
| /linux/include/uapi/sound/ |
| H A D | sfnt_info.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 8 * Copyright (C) 1999-2000 Takashi Iwai 25 unsigned short key; /* use the key below */ member 79 unsigned short modrelease; /* modulation release time (0x807f) */ 80 short modkeyhold, modkeydecay; /* envelope change per key (not used) */ 84 unsigned short volrelease; /* volume release time (0x807f) */ 85 short volkeyhold, volkeydecay; /* envelope change per key (not used) */ 93 unsigned char filterQ; /* initial filter Q [0-15] (0x0) */ 114 short root; /* midi root key */ 116 unsigned char low, high; /* key note range */ [all …]
|
| /linux/Documentation/input/ |
| H A 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 71 * created, to pass key events, in this case the space key. 94 /* Key press, report the event, send key release, and report again */ 113 --------------- 118 .. code-block:: c 158 while (i--) { [all …]
|
| /linux/fs/nfs/ |
| H A D | fscache.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 static bool nfs_append_int(char *key, int *_len, unsigned long long x) in nfs_append_int() argument 34 key[(*_len)++] = ','; in nfs_append_int() 36 *_len += sprintf(key + *_len, ",%llx", x); in nfs_append_int() 41 * Get the per-client index cookie for an NFS client if the appropriate mount 43 * - We always try and get an index cookie for the client, but get filehandle 44 * cookies on a per-superblock basis, depending on the mount flags 47 char *key, int *_len) in nfs_fscache_get_client_key() argument 49 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &clp->cl_addr; in nfs_fscache_get_client_key() 50 const struct sockaddr_in *sin = (struct sockaddr_in *) &clp->cl_addr; in nfs_fscache_get_client_key() [all …]
|
| /linux/tools/hv/ |
| H A D | hv_kvp_daemon.c | 2 * An implementation of key value pair (KVP) functionality for Linux. 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 50 * fills in the value corresponding to the specified key. We overload the 61 IntegrationServicesVersion, /*This key is serviced in the kernel*/ 120 char key[HV_KVP_EXCHANGE_MAX_KEY_SIZE]; member 139 if (fcntl(kvp_file_info[pool].fd, F_SETLKW, &fl) == -1) { in kvp_acquire_lock() 151 if (fcntl(kvp_file_info[pool].fd, F_SETLK, &fl) == -1) { in kvp_release_lock() 152 syslog(LOG_ERR, "Failed to release the lock pool: %d; error: %d %s", pool, in kvp_release_lock() 163 * We are going to write our in-memory registry out to in kvp_update_file() 196 syslog(LOG_DEBUG, "pool: %d, %d/%d key=%s val=%s\n", in kvp_dump_initial_pools() [all …]
|
| /linux/fs/btrfs/ |
| H A D | delayed-inode.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include "delayed-inode.h" 14 #include "disk-io.h" 18 #include "inode-item.h" 19 #include "space-info.h" 21 #include "file-item.h" 33 return -ENOMEM; in btrfs_delayed_inode_init() 44 atomic_set(&delayed_root->items, 0); in btrfs_init_delayed_root() 45 atomic_set(&delayed_root->items_seq, 0); in btrfs_init_delayed_root() 46 delayed_root->nodes = 0; in btrfs_init_delayed_root() [all …]
|
| /linux/drivers/thunderbolt/ |
| H A D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 55 switch (entry->type) { in tb_property_entry_valid() 59 if (entry->length > block_len) in tb_property_entry_valid() 61 if (entry->value + entry->length > block_len) in tb_property_entry_valid() 66 if (entry->length != 1) in tb_property_entry_valid() 74 static bool tb_property_key_valid(const char *key) in tb_property_key_valid() argument 76 return key && strlen(key) <= TB_PROPERTY_KEY_SIZE; in tb_property_key_valid() 80 tb_property_alloc(const char *key, enum tb_property_type type) in tb_property_alloc() argument 88 strcpy(property->key, key); in tb_property_alloc() 89 property->type = type; in tb_property_alloc() [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| 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 …]
|
| H A D | omap-keypad.txt | 3 TI'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 9 This binding is based on the matrix-keymap binding with the following 12 keypad,num-rows and keypad,num-columns are required. 15 - compatible: should be one of the following 16 - "ti,omap4-keypad": For controllers compatible with omap4 keypad 20 - linux,keypad-no-autorepeat: do no enable autorepeat feature. 24 compatible = "ti,omap4-keypad"; 25 keypad,num-rows = <2>; [all …]
|
| /linux/drivers/auxdisplay/ |
| H A D | panel.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu> 5 * Copyright (C) 2016-2017 Glider bvba 10 * The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit 15 * data output pins or to the ground. The combinations have to be hard-coded 22 * - the initialization/deinitialization process is very dirty and should 26 * - document 24 keys keyboard (3 rows of 8 cols, 32 diodes + 2 inputs) 27 * - make the LCD a part of a virtual screen of Vx*Vy 28 * - make the inputs list smp-safe 29 * - change the keyboard to a double mapping : signals -> key_id -> values [all …]
|