Home
last modified time | relevance | path

Searched refs:next_key (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/samples/bpf/
Dtest_maps.c23 long long key, next_key, value; in test_hashmap_sanity() local
71 assert(bpf_get_next_key(map_fd, &key, &next_key) == 0 && in test_hashmap_sanity()
72 (next_key == 1 || next_key == 2)); in test_hashmap_sanity()
73 assert(bpf_get_next_key(map_fd, &next_key, &next_key) == 0 && in test_hashmap_sanity()
74 (next_key == 1 || next_key == 2)); in test_hashmap_sanity()
75 assert(bpf_get_next_key(map_fd, &next_key, &next_key) == -1 && in test_hashmap_sanity()
87 assert(bpf_get_next_key(map_fd, &key, &next_key) == -1 && in test_hashmap_sanity()
94 int key, next_key, map_fd; in test_arraymap_sanity() local
131 assert(bpf_get_next_key(map_fd, &key, &next_key) == 0 && in test_arraymap_sanity()
132 next_key == 0); in test_arraymap_sanity()
[all …]
Dsockex2_user.c36 int key = 0, next_key; in main() local
39 while (bpf_get_next_key(map_fd[0], &key, &next_key) == 0) { in main()
40 bpf_lookup_elem(map_fd[0], &next_key, &value); in main()
42 inet_ntoa((struct in_addr){htonl(next_key)}), in main()
44 key = next_key; in main()
Dtracex4_user.c34 __u64 key, next_key; in print_old_objects() local
40 while (bpf_get_next_key(map_fd[0], &key, &next_key) == 0) { in print_old_objects()
41 bpf_lookup_elem(map_fd[0], &next_key, &v); in print_old_objects()
42 key = next_key; in print_old_objects()
47 next_key, (val - v.val) / 1000000000ll, v.ip); in print_old_objects()
Dtracex2_user.c60 long key, next_key, value; in main() local
83 while (bpf_get_next_key(map_fd[0], &key, &next_key) == 0) { in main()
84 bpf_lookup_elem(map_fd[0], &next_key, &value); in main()
85 printf("location 0x%lx count %ld\n", next_key, value); in main()
86 key = next_key; in main()
Dlibbpf.c67 int bpf_get_next_key(int fd, void *key, void *next_key) in bpf_get_next_key() argument
72 .next_key = ptr_to_u64(next_key), in bpf_get_next_key()
Dlibbpf.h12 int bpf_get_next_key(int fd, void *key, void *next_key);
/linux-4.1.27/kernel/bpf/
Dsyscall.c295 #define BPF_MAP_GET_NEXT_KEY_LAST_FIELD next_key
300 void __user *unext_key = u64_to_ptr(attr->next_key); in map_get_next_key()
304 void *key, *next_key; in map_get_next_key() local
324 next_key = kmalloc(map->key_size, GFP_USER); in map_get_next_key()
325 if (!next_key) in map_get_next_key()
329 err = map->ops->map_get_next_key(map, key, next_key); in map_get_next_key()
335 if (copy_to_user(unext_key, next_key, map->key_size) != 0) in map_get_next_key()
341 kfree(next_key); in map_get_next_key()
Darraymap.c75 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key() argument
79 u32 *next = (u32 *)next_key; in array_map_get_next_key()
Dhashtab.c146 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key() argument
176 memcpy(next_key, next_l->key, key_size); in htab_map_get_next_key()
194 memcpy(next_key, next_l->key, key_size); in htab_map_get_next_key()
/linux-4.1.27/tools/perf/ui/tui/
Dutil.c136 goto next_key; in ui_browser__input_window()
155 next_key: in ui_browser__input_window()
/linux-4.1.27/include/uapi/linux/
Dbpf.h146 __aligned_u64 next_key; member
/linux-4.1.27/fs/btrfs/
Dreada.c169 struct btrfs_key next_key; in __readahead_hook() local
173 btrfs_node_key_to_cpu(eb, &next_key, i + 1); in __readahead_hook()
175 next_key = re->top; in __readahead_hook()
199 btrfs_comp_cpu_keys(&next_key, &rc->key_start) > 0) in __readahead_hook()
200 reada_add_block(rc, bytenr, &next_key, in __readahead_hook()
Drelocation.c1763 struct btrfs_path *path, struct btrfs_key *next_key, argument
1804 if (next_key) {
1805 next_key->objectid = (u64)-1;
1806 next_key->type = (u8)-1;
1807 next_key->offset = (u64)-1;
1819 if (next_key && slot + 1 < btrfs_header_nritems(parent))
1820 btrfs_node_key_to_cpu(parent, next_key, slot + 1);
2115 struct btrfs_key next_key; local
2154 btrfs_node_key_to_cpu(path->nodes[level], &next_key,
2156 WARN_ON(memcmp(&key, &next_key, sizeof(key)));
[all …]
/linux-4.1.27/include/linux/
Dbpf.h21 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_security.c771 static void next_key(u8 *key, int round);
801 static void next_key(u8 *key, int round) in next_key() function
919 next_key(round_key, round); in aes128k128d()
932 next_key(round_key, round); in aes128k128d()
/linux-4.1.27/drivers/staging/rtl8712/
Drtl871x_security.c776 static void next_key(u8 *key, sint round) in next_key() function
887 next_key(round_key, round); in aes128k128d()
900 next_key(round_key, round); in aes128k128d()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_security.c857 static void next_key(u8 *key, int round) in next_key() function
984 next_key(round_key, round); in aes128k128d()
997 next_key(round_key, round); in aes128k128d()