Lines Matching refs:index_mask
85 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()
364 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
443 pptr = array->pptrs[index & array->index_mask]; in percpu_array_map_seq_show_elem()
531 index = info->index & array->index_mask; in bpf_array_map_seq_start()
550 index = info->index & array->index_mask; in bpf_array_map_seq_next()
1320 *insn++ = BPF_ALU32_IMM(BPF_AND, ret, array->index_mask); in array_of_map_gen_lookup()