• Home
  • Raw
  • Download

Lines Matching refs:index

146 	u32 index = *(u32 *)key;  in array_map_lookup_elem()  local
148 if (unlikely(index >= array->map.max_entries)) in array_map_lookup_elem()
151 return array->value + array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
192 const int index = BPF_REG_2; in array_map_gen_lookup() local
195 *insn++ = BPF_LDX_MEM(BPF_W, ret, index, 0); in array_map_gen_lookup()
218 u32 index = *(u32 *)key; in percpu_array_map_lookup_elem() local
220 if (unlikely(index >= array->map.max_entries)) in percpu_array_map_lookup_elem()
223 return this_cpu_ptr(array->pptrs[index & array->index_mask]); in percpu_array_map_lookup_elem()
229 u32 index = *(u32 *)key; in bpf_percpu_array_copy() local
234 if (unlikely(index >= array->map.max_entries)) in bpf_percpu_array_copy()
243 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
256 u32 index = key ? *(u32 *)key : U32_MAX; in array_map_get_next_key() local
259 if (index >= array->map.max_entries) { in array_map_get_next_key()
264 if (index == array->map.max_entries - 1) in array_map_get_next_key()
267 *next = index + 1; in array_map_get_next_key()
276 u32 index = *(u32 *)key; in array_map_update_elem() local
283 if (unlikely(index >= array->map.max_entries)) in array_map_update_elem()
296 memcpy(this_cpu_ptr(array->pptrs[index & array->index_mask]), in array_map_update_elem()
300 array->elem_size * (index & array->index_mask); in array_map_update_elem()
313 u32 index = *(u32 *)key; in bpf_percpu_array_update() local
322 if (unlikely(index >= array->map.max_entries)) in bpf_percpu_array_update()
338 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
396 u32 index = *(u32 *)key; in percpu_array_map_seq_show_elem() local
403 pptr = array->pptrs[index & array->index_mask]; in percpu_array_map_seq_show_elem()
530 u32 index = *(u32 *)key, ufd; in bpf_fd_array_map_update_elem() local
535 if (index >= array->map.max_entries) in bpf_fd_array_map_update_elem()
543 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
554 u32 index = *(u32 *)key; in fd_array_map_delete_elem() local
556 if (index >= array->map.max_entries) in fd_array_map_delete_elem()
559 old_ptr = xchg(array->ptrs + index, NULL); in fd_array_map_delete_elem()
811 const int index = BPF_REG_2; in array_of_map_gen_lookup() local
814 *insn++ = BPF_LDX_MEM(BPF_W, ret, index, 0); in array_of_map_gen_lookup()