/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 …]
|
H A D | imx_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0 28 #define KBD_STAT_KPKD (0x1 << 0) /* Key Press Interrupt Status bit (w1c) */ 29 #define KBD_STAT_KPKR (0x1 << 1) /* Key Release Interrupt Status bit (w1c) */ 30 #define KBD_STAT_KDSC (0x1 << 2) /* Key Depress Synch Chain Status bit (w1c)*/ 31 #define KBD_STAT_KRSS (0x1 << 3) /* Key Release Synch Status bit (w1c)*/ 32 #define KBD_STAT_KDIE (0x1 << 8) /* Key Depress Interrupt Enable Status bit */ 33 #define KBD_STAT_KRIE (0x1 << 9) /* Key Release Interrupt Enable */ 71 * -stable: achieved after a complete debounce process. 72 * -unstable: used in the debouncing process. 86 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() [all …]
|
/linux/drivers/platform/x86/intel/ |
H A D | vbtn.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <linux/input/sparse-keymap.h> 41 { KE_KEY, 0xC0, { KEY_POWER } }, /* power key press */ 42 { KE_IGNORE, 0xC1, { KEY_POWER } }, /* power key release */ 43 { KE_KEY, 0xC2, { KEY_LEFTMETA } }, /* 'Windows' key press */ 44 { KE_KEY, 0xC3, { KEY_LEFTMETA } }, /* 'Windows' key release */ 45 { KE_KEY, 0xC4, { KEY_VOLUMEUP } }, /* volume-up key press */ 46 { KE_IGNORE, 0xC5, { KEY_VOLUMEUP } }, /* volume-up key release */ 47 { KE_KEY, 0xC6, { KEY_VOLUMEDOWN } }, /* volume-down key press */ 48 { KE_IGNORE, 0xC7, { KEY_VOLUMEDOWN } }, /* volume-down key release */ [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/target/ |
H A D | target_core_pr.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * This file contains SPC-3 compliant persistent reservations and 6 * legacy SPC-2 reservations with compatible reservation handling (CRH=1) 8 * (c) Copyright 2009-2013 Datera, Inc. 48 if (!pr_reg->isid_present_at_reg) { in core_pr_dump_initiator_port() 53 snprintf(buf, size, ",i,0x%s", pr_reg->pr_reg_isid); in core_pr_dump_initiator_port() 77 pr_res_type = pr_res_holder->pr_res_type; in is_reservation_holder() 89 struct se_device *dev = cmd->se_dev; in target_scsi2_reservation_check() 90 struct se_session *sess = cmd->se_sess; in target_scsi2_reservation_check() 92 switch (cmd->t_task_cdb[0]) { in target_scsi2_reservation_check() [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/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/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/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/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/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/fs/bcachefs/ |
H A D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0 36 struct btree *v = c->verify_data; in bch2_btree_verify_replica() 37 struct btree_node *n_ondisk = c->verify_ondisk; in bch2_btree_verify_replica() 38 struct btree_node *n_sorted = c->verify_data->data; in bch2_btree_verify_replica() 39 struct bset *sorted, *inmemory = &b->data->keys; in bch2_btree_verify_replica() 47 bio = bio_alloc_bioset(ca->disk_sb.bdev, in bch2_btree_verify_replica() 51 &c->btree_bio); in bch2_btree_verify_replica() 52 bio->bi_iter.bi_sector = pick.ptr.offset; in bch2_btree_verify_replica() 58 percpu_ref_put(&ca->io_ref); in bch2_btree_verify_replica() 62 v->written = 0; in bch2_btree_verify_replica() [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/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_check_syncookie_kern.c |
|
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 += -4 [all...] |
/linux/fs/hfs/ |
H A D | bfind.c | 1 // SPDX-License-Identifier: GPL-2.0 19 fd->tree = tree; in hfs_find_init() 20 fd->bnode = NULL; in hfs_find_init() 21 ptr = kmalloc(tree->max_key_len * 2 + 4, GFP_KERNEL); in hfs_find_init() 23 return -ENOMEM; in hfs_find_init() 24 fd->search_key = ptr; in hfs_find_init() 25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 27 tree->cnid, __builtin_return_address(0)); in hfs_find_init() 28 switch (tree->cnid) { in hfs_find_init() 30 mutex_lock_nested(&tree->tree_lock, CATALOG_BTREE_MUTEX); in hfs_find_init() [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/Documentation/devicetree/bindings/input/ |
H A D | mediatek,pmic-keys.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chen Zhong <chen.zhong@mediatek.com> 13 - $ref: input.yaml# 16 There are two key functions provided by MT6397, MT6323 and other MediaTek 18 The key functions are defined as the subnode of the function node provided 19 by the PMIC that is defined as a Multi-Function Device (MFD). 27 - mediatek,mt6323-keys [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/Documentation/filesystems/xfs/ |
H A D | xfs-maintainer-entry-profile.rst | 5 -------- 6 XFS is a well known high-performance filesystem in the Linux kernel. 10 Patches are generally merged to the for-next branch of the appropriate 12 After a testing period, the for-next branch is merged to the master 15 Kernel code are merged to the xfs-linux tree[0]. 18 Ondisk format documentation are merged to the xfs-documentation tree[3]. 21 list linux-xfs@vger.kernel.org. 24 ----- 25 There are eight key roles in the XFS project. 31 - **Outside Contributor**: Anyone who sends a patch but is not involved [all …]
|
/linux/fs/hfsplus/ |
H A D | bfind.c | 1 // SPDX-License-Identifier: GPL-2.0 19 fd->tree = tree; in hfs_find_init() 20 fd->bnode = NULL; in hfs_find_init() 21 ptr = kmalloc(tree->max_key_len * 2 + 4, GFP_KERNEL); in hfs_find_init() 23 return -ENOMEM; in hfs_find_init() 24 fd->search_key = ptr; in hfs_find_init() 25 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 27 tree->cnid, __builtin_return_address(0)); in hfs_find_init() 28 mutex_lock_nested(&tree->tree_lock, in hfs_find_init() 35 hfs_bnode_put(fd->bnode); in hfs_find_exit() [all …]
|