Home
last modified time | relevance | path

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

12345678910>>...38

/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dttm_object.h3 * 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 …]
Dttm_object.c1 /* 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-6.12.1/drivers/input/keyboard/
Dmax7359_keypad.c1 // 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 …]
Dimx_keypad.c1 // 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-6.12.1/include/linux/
Dcred.h1 /* 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-6.12.1/drivers/platform/x86/intel/
Dvbtn.c1 // 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-6.12.1/drivers/net/ethernet/sfc/
Dtc_conntrack.c1 // 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 …]
Dtc.c1 // 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-6.12.1/drivers/target/
Dtarget_core_pr.c1 // 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-6.12.1/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(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-6.12.1/block/
Dblk-crypto-profile.c1 // 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-6.12.1/drivers/net/mctp/
Dmctp-i2c.c1 // 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-6.12.1/Documentation/driver-api/media/
Drc-core.rst1 .. 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-6.12.1/Documentation/input/devices/
Datarikbd.rst12 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-6.12.1/Documentation/devicetree/bindings/sound/
Dti,ts3a227e.yaml1 # 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-6.12.1/include/net/
Dflow_offload.h12 void *key; member
16 struct flow_dissector_key_meta *key, *mask; member
20 struct flow_dissector_key_basic *key, *mask; member
24 struct flow_dissector_key_control *key, *mask; member
28 struct flow_dissector_key_eth_addrs *key, *mask; member
32 struct flow_dissector_key_vlan *key, *mask; member
36 struct flow_dissector_key_arp *key, *mask; member
40 struct flow_dissector_key_ipv4_addrs *key, *mask; member
44 struct flow_dissector_key_ipv6_addrs *key, *mask; member
48 struct flow_dissector_key_ip *key, *mask; member
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/fs/fuse/
Dcuse.c1 // 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>
116 dev_t devt = inode->i_cdev->dev; in cuse_open()
123 if (pos->dev->devt == devt) { in cuse_open()
124 fuse_conn_get(&pos->fc); in cuse_open()
132 return -ENODEV; in cuse_open()
138 rc = fuse_do_open(&cc->fm, 0, file, 0); in cuse_open()
140 fuse_conn_put(&cc->fc); in cuse_open()
146 struct fuse_file *ff = file->private_data; in cuse_release()
[all …]
/linux-6.12.1/fs/bcachefs/
Ddebug.c1 // 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-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_tcp_check_syncookie_kern.c1 // SPDX-License-Identifier: GPL-2.0
21 __type(key, __u32);
30 __u32 thlen = tcph->doff * 4; in gen_syncookie()
32 if (tcph->syn && !tcph->ack) { in gen_syncookie()
57 __u32 key = 0; in check_syncookie() local
64 switch (bpf_ntohs(ethh->h_proto)) { in check_syncookie()
70 if (ipv4h->ihl != 5) in check_syncookie()
77 tup.ipv4.saddr = ipv4h->saddr; in check_syncookie()
78 tup.ipv4.daddr = ipv4h->daddr; in check_syncookie()
79 tup.ipv4.sport = tcph->source; in check_syncookie()
[all …]
Dverifier_ref_tracking.c1 // 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-6.12.1/crypto/
Daf_alg.c1 // 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-6.12.1/fs/hfs/
Dbfind.c1 // 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-6.12.1/Documentation/devicetree/bindings/input/
Dmediatek,pmic-keys.yaml1 # 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-6.12.1/include/uapi/sound/
Dsfnt_info.h1 /* 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 …]

12345678910>>...38