Home
last modified time | relevance | path

Searched refs:index_mask (Results 1 – 3 of 3) sorted by relevance

/kernel/bpf/
Darraymap.c85 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
102 index_mask = mask64; in array_map_alloc()
107 max_entries = index_mask + 1; in array_map_alloc()
143 array->index_mask = index_mask; in array_map_alloc()
167 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
217 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_map_gen_lookup()
242 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem()
262 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
321 memcpy(this_cpu_ptr(array->pptrs[index & array->index_mask]), in array_map_update_elem()
325 array->elem_size * (index & array->index_mask); in array_map_update_elem()
[all …]
Dmap_in_map.c64 container_of(inner_map_meta, struct bpf_array, map)->index_mask = in bpf_map_meta_alloc()
65 container_of(inner_map, struct bpf_array, map)->index_mask; in bpf_map_meta_alloc()
Dverifier.c13100 map)->index_mask); in do_misc_fixups()