Searched refs:index_mask (Results 1 – 3 of 3) sorted by relevance
84 u32 elem_size, index_mask, max_entries; in array_map_alloc() local101 index_mask = mask64; in array_map_alloc()106 max_entries = index_mask + 1; in array_map_alloc()142 array->index_mask = index_mask; in array_map_alloc()171 return array->value + (u64)array->elem_size * (index & array->index_mask); in array_map_lookup_elem()221 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_map_gen_lookup()246 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem()260 return per_cpu_ptr(array->pptrs[index & array->index_mask], cpu); in percpu_array_map_lookup_percpu_elem()280 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()342 val = this_cpu_ptr(array->pptrs[index & array->index_mask]); in array_map_update_elem()[all …]
68 inner_array_meta->index_mask = inner_array->index_mask; in bpf_map_meta_alloc()
14423 map)->index_mask); in do_misc_fixups()