Home
last modified time | relevance | path

Searched refs:elems (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
Dstackmap.c27 void *elems; member
67 smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, in prealloc_elems_and_freelist()
69 if (!smap->elems) in prealloc_elems_and_freelist()
76 pcpu_freelist_populate(&smap->freelist, smap->elems, elem_size, in prealloc_elems_and_freelist()
81 bpf_map_area_free(smap->elems); in prealloc_elems_and_freelist()
611 bpf_map_area_free(smap->elems); in stack_map_free()
Dhashtab.c28 void *elems; member
97 return (struct htab_elem *) (htab->elems + i * htab->elem_size); in get_htab_elem()
116 bpf_map_area_free(htab->elems); in htab_free_elems()
142 htab->elems = bpf_map_area_alloc(htab->elem_size * num_entries, in prealloc_init()
144 if (!htab->elems) in prealloc_init()
177 bpf_lru_populate(&htab->lru, htab->elems, in prealloc_init()
182 htab->elems + offsetof(struct htab_elem, fnode), in prealloc_init()