Home
last modified time | relevance | path

Searched refs:key (Results 1076 – 1100 of 5260) sorted by relevance

1...<<41424344454647484950>>...211

/openbmc/linux/samples/bpf/
H A Dtc_l2_redirect_kern.c65 int key = 0, *ifindex; in _l2_to_iptun_ingress_forward() local
72 ifindex = bpf_map_lookup_elem(&tun_iface, &key); in _l2_to_iptun_ingress_forward()
116 int key = 0, *ifindex; in _l2_to_iptun_ingress_redirect() local
123 ifindex = bpf_map_lookup_elem(&tun_iface, &key); in _l2_to_iptun_ingress_redirect()
157 int key = 0, *ifindex; in _l2_to_ip6tun_ingress_redirect() local
162 ifindex = bpf_map_lookup_elem(&tun_iface, &key); in _l2_to_ip6tun_ingress_redirect()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_resource.c44 u32 key; member
72 u32 cpp_id, key; in nfp_cpp_resource_find() local
82 key = crc32_posix(res->name, NFP_RESOURCE_ENTRY_NAME_SZ); in nfp_cpp_resource_find()
92 if (entry.mutex.key != key) in nfp_cpp_resource_find()
98 NFP_RESOURCE_TBL_TARGET, addr, key); in nfp_cpp_resource_find()
/openbmc/u-boot/drivers/input/
H A Dtegra-kbc.c72 struct key_matrix_key keys[KBC_MAX_KPENT], *key; in tegra_kbc_find_keys() local
76 for (key = keys, i = 0; i < KBC_MAX_KPENT; i++, key++) { in tegra_kbc_find_keys()
81 key->valid = (kp_ent & KBC_KPENT_VALID) != 0; in tegra_kbc_find_keys()
82 key->row = (kp_ent >> 3) & 0xf; in tegra_kbc_find_keys()
83 key->col = kp_ent & 0x7; in tegra_kbc_find_keys()
/openbmc/linux/drivers/media/usb/dvb-usb/
H A Ddvb-usb.h80 static inline u8 rc5_custom(struct rc_map_table *key) in rc5_custom() argument
82 return (key->scancode >> 8) & 0xff; in rc5_custom()
85 static inline u8 rc5_data(struct rc_map_table *key) in rc5_data() argument
87 return key->scancode & 0xff; in rc5_data()
90 static inline u16 rc5_scan(struct rc_map_table *key) in rc5_scan() argument
92 return key->scancode & 0xffff; in rc5_scan()
/openbmc/linux/include/crypto/
H A Dakcipher.h122 int (*set_pub_key)(struct crypto_akcipher *tfm, const void *key,
124 int (*set_priv_key)(struct crypto_akcipher *tfm, const void *key,
472 const void *key, in crypto_akcipher_set_pub_key() argument
477 return alg->set_pub_key(tfm, key, keylen); in crypto_akcipher_set_pub_key()
494 const void *key, in crypto_akcipher_set_priv_key() argument
499 return alg->set_priv_key(tfm, key, keylen); in crypto_akcipher_set_priv_key()
/openbmc/linux/Documentation/bpf/
H A Dmaps.rst64 Lookup key in a given map using ``attr->map_fd``, ``attr->key``,
70 Create or update key/value pair in a given map using ``attr->map_fd``, ``attr->key``,
75 Find and delete element by key in a given map using ``attr->map_fd``,
76 ``attr->key``. Returns zero on success or negative error on failure.
H A Dmap_of_maps.rst32 For ``BPF_MAP_TYPE_ARRAY_OF_MAPS`` the key is an unsigned 32-bit integer index
36 For ``BPF_MAP_TYPE_HASH_OF_MAPS`` the key type can be chosen when defining the
37 map. The kernel is responsible for allocating and freeing key/value pairs, up to
53 void *bpf_map_lookup_elem(struct bpf_map *map, const void *key)
73 __type(key, __u32);
80 __type(key, __u32);
103 sizeof(__u32), /* key size */
H A Dmap_queue_stack.rst75 int bpf_map_update_elem (int fd, const void *key, const void *value, __u64 flags)
78 ``bpf_map_update_elem`` function. The ``key`` parameter must be set to
88 int bpf_map_lookup_elem (int fd, const void *key, void *value)
91 using the libbpf ``bpf_map_lookup_elem`` function. The ``key`` parameter must be
100 int bpf_map_lookup_and_delete_elem (int fd, const void *key, void *value)
103 the libbpf ``bpf_map_lookup_and_delete_elem`` function. The ``key`` parameter
136 0, /* key size, must be zero */
/openbmc/linux/arch/arm/crypto/
H A Dpoly1305-glue.c21 void poly1305_init_arm(void *state, const u8 *key);
32 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch()
34 poly1305_init_arm(&dctx->h, key); in poly1305_init_arch()
35 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch()
36 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch()
37 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch()
38 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch()
H A Daes-neonbs-glue.c53 struct aesbs_ctx key; member
58 struct aesbs_ctx key; member
64 struct aesbs_ctx key; /* must be first member */ member
138 ctx->key.rounds = 6 + key_len / 4; in aesbs_cbc_setkey()
141 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); in aesbs_cbc_setkey()
182 ctx->key.rk, ctx->key.rounds, blocks, in cbc_decrypt()
226 ctx->key.rounds = 6 + key_len / 4; in aesbs_ctr_setkey_sync()
229 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); in aesbs_ctr_setkey_sync()
379 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->key.rk, in __xts_crypt()
380 ctx->key.rounds, blocks, walk.iv, reorder_last_tweak); in __xts_crypt()
/openbmc/qemu/ui/
H A Dinput-legacy.c59 int index_from_key(const char *key, size_t key_length) in index_from_key() argument
64 if (!strncmp(key, QKeyCode_str(i), key_length) && in index_from_key()
117 InputKeyEvent *key = evt->u.key.data; in legacy_kbd_event() local
122 count = qemu_input_key_value_to_scancode(key->key, in legacy_kbd_event()
123 key->down, in legacy_kbd_event()
/openbmc/linux/kernel/bpf/
H A Dbpf_task_storage.c90 static void *bpf_pid_task_storage_lookup_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_lookup_elem() argument
98 fd = *(int *)key; in bpf_pid_task_storage_lookup_elem()
123 static long bpf_pid_task_storage_update_elem(struct bpf_map *map, void *key, in bpf_pid_task_storage_update_elem() argument
132 fd = *(int *)key; in bpf_pid_task_storage_update_elem()
176 static long bpf_pid_task_storage_delete_elem(struct bpf_map *map, void *key) in bpf_pid_task_storage_delete_elem() argument
183 fd = *(int *)key; in bpf_pid_task_storage_delete_elem()
305 static int notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) in notsupp_get_next_key() argument
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_gre.c73 __be16 key = 0; in gre_keymap_lookup() local
77 key = km->tuple.src.u.gre.key; in gre_keymap_lookup()
82 pr_debug("lookup src key 0x%x for ", key); in gre_keymap_lookup()
85 return key; in gre_keymap_lookup()
179 tuple->dst.u.gre.key = pgrehdr->call_id; in gre_pkt_to_tuple()
181 tuple->src.u.gre.key = srckey; in gre_pkt_to_tuple()
/openbmc/linux/drivers/md/bcache/
H A Ddebug.c26 (void *) i < (void *) (start) + (KEY_SIZE(&b->key) << 9) &&\
47 bkey_copy(&v->key, &b->key); in bch_btree_verify()
54 bio->bi_iter.bi_sector = PTR_OFFSET(&b->key, 0); in bch_btree_verify()
55 bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9; in bch_btree_verify()
62 memcpy(ondisk, sorted, KEY_SIZE(&v->key) << 9); in bch_btree_verify()
199 bch_extent_to_text(kbuf, sizeof(kbuf), &w->key); in bch_dump_read()
/openbmc/linux/drivers/crypto/
H A Dgeode-aes.c97 _writefield(AES_WRITEKEY0_REG, tctx->key); in geode_aes_crypt()
110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip() argument
118 memcpy(tctx->key, key, len); in geode_setkey_cip()
133 return crypto_cipher_setkey(tctx->fallback.cip, key, len); in geode_setkey_cip()
136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in geode_setkey_skcipher() argument
144 memcpy(tctx->key, key, len); in geode_setkey_skcipher()
160 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); in geode_setkey_skcipher()
/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/
H A D0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch27 unsigned long *key, int n)
29 longcpy(bkey(geo, node, n), key, geo->keylen);
31 /* FIXME: If the right-most key on higher levels is
34 - setkey(geo, node, key, i);
35 + _setkey(geo, node, key, i);
62 /* Set parent key */
76 /* Set parent key */
112 - setkey(geo, node, key, pos);
113 + _setkey(geo, node, key, pos);
/openbmc/openbmc/poky/meta/lib/oe/package_manager/ipk/
H A Drootfs.py155 def _file_equal(self, key, f1, f2): argument
180 key = str(os.path.join("/", os.path.relpath(item, dir)))
183 if key in files:
185 if allow_rep.match(key):
188 if os.path.exists(files[key]) and \
190 not self._file_equal(key, files[key], item):
193 (error_prompt, item, files[key]))
197 files[key] = item
/openbmc/linux/kernel/futex/
H A Dwaitwake.c147 union futex_key key = FUTEX_KEY_INIT; in futex_wake() local
154 ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &key, FUTEX_READ); in futex_wake()
158 hb = futex_hash(&key); in futex_wake()
167 if (futex_match (&this->key, &key)) { in futex_wake()
287 if (futex_match (&this->key, &key1)) { in futex_wake_op()
301 if (futex_match (&this->key, &key2)) { in futex_wake_op()
427 &vs[i].q.key, FUTEX_READ); in futex_wait_multiple_setup()
602 ret = get_futex_key(uaddr, flags & FLAGS_SHARED, &q->key, FUTEX_READ); in futex_wait_setup()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline.c53 static __noinline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
56 const unsigned char *k = key; in jhash()
169 __type(key, struct vip);
176 __type(key, __u32);
183 __type(key, __u32);
190 __type(key, __u32);
197 __type(key, __u32);
216 __u32 key = RING_SIZE * vip_info->vip_num + hash % RING_SIZE; in get_packet_dst() local
223 real_pos = bpf_map_lookup_elem(&ch_rings, &key); in get_packet_dst()
226 key = *real_pos; in get_packet_dst()
[all …]
H A Dtest_l4lb.c57 static inline u32 jhash(const void *key, u32 length, u32 initval) in jhash() argument
60 const unsigned char *k = key; in jhash()
173 __type(key, struct vip);
180 __type(key, __u32);
187 __type(key, __u32);
194 __type(key, __u32);
201 __type(key, __u32);
221 __u32 key = RING_SIZE * vip_info->vip_num + hash; in get_packet_dst() local
224 real_pos = bpf_map_lookup_elem(&ch_rings, &key); in get_packet_dst()
227 key = *real_pos; in get_packet_dst()
[all …]
H A Dtest_xdp_noinline.c56 const unsigned char *k = key; in jhash()
178 __type(key, struct flow_key);
185 __type(key, __u32);
192 __type(key, __u32);
199 __type(key, __u32);
206 __type(key, __u32);
515 __u32 *real_pos, hash, key; in get_packet_dst() local
532 key = *real_pos; in get_packet_dst()
554 new_dst_lru.pos = key; in get_packet_dst()
568 __u32 key; in connection_table_lookup() local
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Duverbs_uapi.c21 if (key == UVERBS_API_KEY_ERR) in uapi_add_elm()
27 rc = radix_tree_insert(&uapi->radix, key, elm); in uapi_add_elm()
41 elm = uapi_add_elm(uapi, key, alloc_size); in uapi_add_get_elm()
50 elm = radix_tree_lookup(&uapi->radix, key); in uapi_add_get_elm()
509 static void uapi_key_okay(u32 key) in uapi_key_okay() argument
513 if (uapi_key_is_object(key)) in uapi_key_okay()
515 if (uapi_key_is_ioctl_method(key)) in uapi_key_okay()
517 if (uapi_key_is_write_method(key)) in uapi_key_okay()
519 if (uapi_key_is_write_ex_method(key)) in uapi_key_okay()
521 if (uapi_key_is_attr(key)) in uapi_key_okay()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_features.c136 static error_t parse_arg(int key, char *arg, struct argp_state *state) in parse_arg() argument
138 switch (key) { in parse_arg()
282 unsigned int key = 0; in dut_attach_xdp_prog() local
291 &key, sizeof(key), in dut_attach_xdp_prog()
320 &key, sizeof(key), in dut_attach_xdp_prog()
456 unsigned int key = 0, val; in dut_run() local
460 &key, sizeof(key), in dut_run()
498 unsigned int err, key = 0, val; in tester_collect_detected_cap() local
503 err = bpf_map__lookup_elem(skel->maps.stats, &key, sizeof(key), in tester_collect_detected_cap()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_alloc_btree.c182 union xfs_btree_key *key, in xfs_allocbt_init_key_from_rec() argument
185 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
191 union xfs_btree_key *key, in xfs_bnobt_init_high_key_from_rec() argument
198 key->alloc.ar_startblock = cpu_to_be32(x); in xfs_bnobt_init_high_key_from_rec()
199 key->alloc.ar_blockcount = 0; in xfs_bnobt_init_high_key_from_rec()
204 union xfs_btree_key *key, in xfs_cntbt_init_high_key_from_rec() argument
208 key->alloc.ar_startblock = 0; in xfs_cntbt_init_high_key_from_rec()
235 const union xfs_btree_key *key) in xfs_bnobt_key_diff() argument
238 const struct xfs_alloc_rec *kp = &key->alloc; in xfs_bnobt_key_diff()
246 const union xfs_btree_key *key) in xfs_cntbt_key_diff() argument
[all …]
H A Dxfs_rmap_btree.c171 union xfs_btree_key *key, in xfs_rmapbt_init_key_from_rec() argument
174 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_key_from_rec()
175 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_key_from_rec()
188 union xfs_btree_key *key, in xfs_rmapbt_init_high_key_from_rec() argument
196 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_high_key_from_rec()
197 be32_add_cpu(&key->rmap.rm_startblock, adj); in xfs_rmapbt_init_high_key_from_rec()
198 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_high_key_from_rec()
203 off = be64_to_cpu(key->rmap.rm_offset); in xfs_rmapbt_init_high_key_from_rec()
205 key->rmap.rm_offset = cpu_to_be64(off); in xfs_rmapbt_init_high_key_from_rec()
245 const union xfs_btree_key *key) in xfs_rmapbt_key_diff() argument
[all …]

1...<<41424344454647484950>>...211