Searched refs:next_key (Results 1 - 25 of 50) sorted by last modified time

12

/linux-master/drivers/char/
H A Drandom.c654 u8 seed[BLAKE2S_HASH_SIZE], next_key[BLAKE2S_HASH_SIZE]; local
680 /* next_key = HASHPRF(seed, RDSEED || 0) */
682 blake2s(next_key, (u8 *)&block, seed, sizeof(next_key), sizeof(block), sizeof(seed));
683 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key));
686 memzero_explicit(next_key, sizeof(next_key));
/linux-master/kernel/bpf/
H A Dsyscall.c1710 #define BPF_MAP_GET_NEXT_KEY_LAST_FIELD next_key
1715 void __user *unext_key = u64_to_user_ptr(attr->next_key);
1718 void *key, *next_key; local
1745 next_key = kvmalloc(map->key_size, GFP_USER);
1746 if (!next_key)
1750 err = bpf_map_offload_get_next_key(map, key, next_key);
1755 err = map->ops->map_get_next_key(map, key, next_key);
1762 if (copy_to_user(unext_key, next_key, map->key_size) != 0)
1768 kvfree(next_key);
H A Dbloom_filter.c78 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
H A Darena.c83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
H A Dcpumap.c623 static int cpu_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
627 u32 *next = next_key;
H A Dstackmap.c602 void *next_key)
626 *(u32 *)next_key = id;
601 stack_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
H A Dlpm_trie.c619 struct bpf_lpm_trie_key_u8 *key = _key, *next_key = _next_key; local
705 next_key->prefixlen = next_node->prefixlen;
706 memcpy((void *)next_key + offsetof(struct bpf_lpm_trie_key_u8, data),
H A Dhashtab.c832 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
863 memcpy(next_key, next_l->key, key_size);
881 memcpy(next_key, next_l->key, key_size);
H A Ddevmap.c243 static int dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
247 u32 *next = next_key;
279 void *next_key)
282 u32 idx, *next = next_key;
278 dev_map_hash_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
H A Dbpf_struct_ops.c427 void *next_key)
432 *(u32 *)next_key = 0;
426 bpf_struct_ops_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
H A Darraymap.c291 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
295 u32 *next = (u32 *)next_key;
/linux-master/include/linux/
H A Dbpf.h87 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
541 void *key, void *next_key);
2955 void *key, void *next_key);
/linux-master/tools/lib/bpf/
H A Dlibbpf.c10391 const void *cur_key, void *next_key, size_t key_sz)
10399 return bpf_map_get_next_key(map->fd, cur_key, next_key);
10390 bpf_map__get_next_key(const struct bpf_map *map, const void *cur_key, void *next_key, size_t key_sz) argument
H A Dlibbpf.h1176 * @param next_key pointer to memory to write next key into
1185 const void *cur_key, void *next_key, size_t key_sz);
H A Dbpf.h160 LIBBPF_API int bpf_map_get_next_key(int fd, const void *key, void *next_key);
H A Dbpf.c495 int bpf_map_get_next_key(int fd, const void *key, void *next_key) argument
497 const size_t attr_sz = offsetofend(union bpf_attr, next_key);
504 attr.next_key = ptr_to_u64(next_key);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_progs.c552 __u32 key, next_key; local
564 while (bpf_map_get_next_key(map1_fd, &key, &next_key) == 0) {
565 err = bpf_map_lookup_elem(map2_fd, &next_key, val_buf);
569 key = next_key;
579 __u32 key, next_key, *cur_key_p, *next_key_p; local
602 next_key_p = &next_key;
H A Dtest_maps.c39 long long key, next_key, first_key, value; local
108 assert(bpf_map_get_next_key(fd, &key, &next_key) == 0 &&
109 (next_key == first_key));
110 assert(bpf_map_get_next_key(fd, &next_key, &next_key) == 0 &&
111 (next_key == 1 || next_key == 2) &&
112 (next_key != first_key));
113 assert(bpf_map_get_next_key(fd, &next_key, &next_key) <
156 long long key, next_key, first_key; local
293 long long key, value[VALUE_SIZE], next_key; local
363 int key, next_key, fd; local
419 int key, next_key, fd, i; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c5340 bool percpu_map, unsigned int next_key,
5353 percpu_map ? cpu : next_key,
5378 percpu_map ? cpu : next_key,
5506 unsigned int next_key; local
5510 next_key = ordered_map ? nr_read_elems : atoi(line);
5511 set_pprint_mapv(mapv_kind, mapv, next_key, num_cpus, rounded_value_size);
5530 next_key);
5546 percpu_map, next_key,
5338 get_pprint_expected_line(enum pprint_mapv_kind_t mapv_kind, char *expected_line, ssize_t line_size, bool percpu_map, unsigned int next_key, int cpu, void *mapv) argument
/linux-master/tools/include/uapi/linux/
H A Dbpf.h241 * the *next_key* pointer to the key of the first element.
243 * *next_key* pointer to the key of the next element.
1502 __aligned_u64 next_key; member in union:bpf_attr::__anon3131::__anon3132
/linux-master/include/uapi/linux/
H A Dbpf.h241 * the *next_key* pointer to the key of the first element.
243 * *next_key* pointer to the key of the next element.
1502 __aligned_u64 next_key; member in union:bpf_attr::__anon2590::__anon2591
/linux-master/fs/btrfs/
H A Dtree-log.c5924 goto next_key;
5970 next_key:
H A Dtree-checker.c1955 struct btrfs_key key, next_key; local
1978 btrfs_node_key_to_cpu(node, &next_key, slot + 1);
1992 if (unlikely(btrfs_comp_cpu_keys(&key, &next_key) >= 0)) {
1996 next_key.objectid, next_key.type,
1997 next_key.offset);
H A Drelocation.c1209 struct btrfs_path *path, struct btrfs_key *next_key,
1255 if (next_key) {
1256 next_key->objectid = (u64)-1;
1257 next_key->type = (u8)-1;
1258 next_key->offset = (u64)-1;
1272 if (next_key && slot + 1 < btrfs_header_nritems(parent))
1273 btrfs_node_key_to_cpu(parent, next_key, slot + 1);
1697 struct btrfs_key next_key; local
1736 btrfs_node_key_to_cpu(path->nodes[level], &next_key,
1738 WARN_ON(memcmp(&key, &next_key, sizeo
1207 replace_path(struct btrfs_trans_handle *trans, struct reloc_control *rc, struct btrfs_root *dest, struct btrfs_root *src, struct btrfs_path *path, struct btrfs_key *next_key, int lowest_level, int max_level) argument
[all...]
/linux-master/net/core/
H A Dbpf_sk_storage.c75 void *next_key)
74 notsupp_get_next_key(struct bpf_map *map, void *key, void *next_key) argument

Completed in 462 milliseconds

12