| /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/include/linux/ |
| H A D | cred.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Credentials management - see Documentation/security/credentials.rst 13 #include <linux/key.h> 33 * get_group_info - Get a reference to a group info structure 43 refcount_inc(&gi->usage); in get_group_info() 48 * put_group_info - Release a reference to a group info structure 49 * @group_info: The group info to release 53 if (refcount_dec_and_test(&(group_info)->usage)) \ 97 * upon another object, be that a file, a task, a key or whatever. 99 * Note that some members of this structure belong to both categories - the [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | netcons_fragmented_msg.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # - Correct fragmentation of large messages 9 # - Proper reassembly of fragments at the receiver 10 # - Preservation of userdata across fragments 11 # - Behavior with and without kernel release version appending 15 set -euo pipefail 17 SCRIPTDIR=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")") 27 # set userdata to a long value. In this case, it is "1-2-3-4...50-" 28 USERDATA_VALUE=$(printf -- '%.2s-' {1..60}) 32 # A header looks like "13,468,514729715,-,ncfrag=0/1135;". If [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/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->dev); in mux_root_adapter() 120 /* In non-mux config all i2c adapters are root adapters */ in mux_root_adapter() 135 if (client->flags & I2C_CLIENT_TEN) { in mctp_i2c_new_client() 136 dev_err(&client->dev, "failed, MCTP requires a 7-bit I2C address, addr=0x%x\n", in mctp_i2c_new_client() [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/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/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/fuse/ |
| H A D | cuse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2009 SUSE Linux Products GmbH 6 * Copyright (C) 2008-2009 Tejun Heo <tj@kernel.org> 117 dev_t devt = inode->i_cdev->dev; in cuse_open() 124 if (pos->dev->devt == devt) { in cuse_open() 125 fuse_conn_get(&pos->fc); in cuse_open() 133 return -ENODEV; in cuse_open() 139 rc = fuse_do_open(&cc->fm, 0, file, 0); in cuse_open() 141 fuse_conn_put(&cc->fc); in cuse_open() 147 struct fuse_file *ff = file->private_data; in cuse_release() [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/fs/afs/ |
| H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 .release = afs_release, 72 * Discard a pin on a writeback key. 76 if (wbk && refcount_dec_and_test(&wbk->usage)) { in afs_put_wb_key() 77 key_put(wbk->key); in afs_put_wb_key() 83 * Cache key for writeback. 91 return -ENOMEM; in afs_cache_wb_key() 92 refcount_set(&wbk->usage, 2); in afs_cache_wb_key() 93 wbk->key = af->key; in afs_cache_wb_key() 95 spin_lock(&vnode->wb_lock); in afs_cache_wb_key() [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(struct_size(pas, drv_data, psd->caps->assoc_drv_spc), in psp_assoc_create() 58 pas->psd = psd; in psp_assoc_create() 59 pas->dev_id = psd->id; in psp_assoc_create() 60 pas->generation = psd->generation; in psp_assoc_create() 62 refcount_set(&pas->refcnt, 1); in psp_assoc_create() 64 list_add_tail(&pas->assocs_list, &psd->active_assocs); in psp_assoc_create() [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/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 = kzalloc(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 …]
|
| /linux/fs/hfs/ |
| H A D | bfind.c | 1 // SPDX-License-Identifier: GPL-2.0 20 return -EINVAL; in hfs_find_init() 22 fd->tree = tree; in hfs_find_init() 23 fd->bnode = NULL; in hfs_find_init() 24 ptr = kzalloc(tree->max_key_len * 2 + 4, GFP_KERNEL); in hfs_find_init() 26 return -ENOMEM; in hfs_find_init() 27 fd->search_key = ptr; in hfs_find_init() 28 fd->key = ptr + tree->max_key_len + 2; in hfs_find_init() 30 tree->cnid, __builtin_return_address(0)); in hfs_find_init() 31 switch (tree->cnid) { in hfs_find_init() [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 …]
|