Lines Matching refs:map
32 struct bpf_map map; member
227 static void *trie_lookup_elem(struct bpf_map *map, void *_key) in trie_lookup_elem() argument
229 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_lookup_elem()
288 size += trie->map.value_size; in lpm_trie_node_alloc()
290 node = bpf_map_kmalloc_node(&trie->map, size, GFP_ATOMIC | __GFP_NOWARN, in lpm_trie_node_alloc()
291 trie->map.numa_node); in lpm_trie_node_alloc()
299 trie->map.value_size); in lpm_trie_node_alloc()
305 static int trie_update_elem(struct bpf_map *map, in trie_update_elem() argument
308 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_update_elem()
327 if (trie->n_entries == trie->map.max_entries) { in trie_update_elem()
436 static int trie_delete_elem(struct bpf_map *map, void *_key) in trie_delete_elem() argument
438 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_delete_elem()
568 bpf_map_init_from_attr(&trie->map, attr); in trie_alloc()
575 return &trie->map; in trie_alloc()
578 static void trie_free(struct bpf_map *map) in trie_free() argument
580 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_free()
617 static int trie_get_next_key(struct bpf_map *map, void *_key, void *_next_key) in trie_get_next_key() argument
620 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_get_next_key()
715 static int trie_check_btf(const struct bpf_map *map, in trie_check_btf() argument