Lines Matching refs:index_mask
84 u32 elem_size, index_mask, max_entries; in array_map_alloc() local
101 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()
347 (u64)array->elem_size * (index & array->index_mask); in array_map_update_elem()
386 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
429 void __percpu *pptr = array->pptrs[i & array->index_mask]; in array_map_free()
485 pptr = array->pptrs[index & array->index_mask]; in percpu_array_map_seq_show_elem()
573 index = info->index & array->index_mask; in bpf_array_map_seq_start()
592 index = info->index & array->index_mask; in bpf_array_map_seq_next()
1322 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_of_map_gen_lookup()