Lines Matching refs:map

34 	struct bpf_map			map;  member
238 static void *trie_lookup_elem(struct bpf_map *map, void *_key) in trie_lookup_elem() argument
240 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_lookup_elem()
306 trie->map.value_size); in lpm_trie_node_alloc()
315 if (trie->n_entries == trie->map.max_entries) in trie_check_add_elem()
322 static long trie_update_elem(struct bpf_map *map, in trie_update_elem() argument
325 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_update_elem()
457 static long trie_delete_elem(struct bpf_map *map, void *_key) in trie_delete_elem() argument
459 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_delete_elem()
593 bpf_map_init_from_attr(&trie->map, attr); in trie_alloc()
602 trie->map.value_size; in trie_alloc()
606 return &trie->map; in trie_alloc()
613 static void trie_free(struct bpf_map *map) in trie_free() argument
615 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_free()
656 static int trie_get_next_key(struct bpf_map *map, void *_key, void *_next_key) in trie_get_next_key() argument
659 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_get_next_key()
754 static int trie_check_btf(const struct bpf_map *map, in trie_check_btf() argument
764 static u64 trie_mem_usage(const struct bpf_map *map) in trie_mem_usage() argument
766 struct lpm_trie *trie = container_of(map, struct lpm_trie, map); in trie_mem_usage()
770 trie->map.value_size; in trie_mem_usage()