• Home
  • Raw
  • Download

Lines Matching refs:value

136 			- offsetof(struct bpf_array, value);  in array_map_alloc()
159 return array->value + (u64)array->elem_size * index; in array_map_elem_ptr()
171 return array->value + (u64)array->elem_size * (index & array->index_mask); in array_map_lookup_elem()
184 *imm = (unsigned long)array->value; in array_map_direct_value_addr()
192 u64 base = (unsigned long)array->value; in array_map_direct_value_meta()
217 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup()
263 int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value) in bpf_percpu_array_copy() argument
282 copy_map_value_long(map, value + off, per_cpu_ptr(pptr, cpu)); in bpf_percpu_array_copy()
283 check_and_init_map_value(map, value + off); in bpf_percpu_array_copy()
318 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem() argument
343 copy_map_value(map, val, value); in array_map_update_elem()
346 val = array->value + in array_map_update_elem()
349 copy_map_value_locked(map, val, value, false); in array_map_update_elem()
351 copy_map_value(map, val, value); in array_map_update_elem()
357 int bpf_percpu_array_update(struct bpf_map *map, void *key, void *value, in bpf_percpu_array_update() argument
388 copy_map_value_long(map, per_cpu_ptr(pptr, cpu), value + off); in bpf_percpu_array_update()
456 void *value; in array_map_seq_show_elem() local
460 value = array_map_lookup_elem(map, key); in array_map_seq_show_elem()
461 if (!value) { in array_map_seq_show_elem()
468 btf_type_seq_show(map->btf, map->btf_value_type_id, value, m); in array_map_seq_show_elem()
621 ctx.value = v; in __bpf_array_map_seq_show()
631 ctx.value = info->percpu_value_buf; in __bpf_array_map_seq_show()
807 int bpf_fd_array_map_lookup_elem(struct bpf_map *map, void *key, u32 *value) in bpf_fd_array_map_lookup_elem() argument
818 *value = map->ops->map_fd_sys_lookup_elem(ptr); in bpf_fd_array_map_lookup_elem()
828 void *key, void *value, u64 map_flags) in bpf_fd_array_map_update_elem() argument
840 ufd = *(u32 *)value; in bpf_fd_array_map_update_elem()
1168 u64 value; in perf_event_fd_array_get_ptr() local
1176 if (perf_event_read_local(event, &value, NULL, NULL) == -EOPNOTSUPP) in perf_event_fd_array_get_ptr()
1318 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_of_map_gen_lookup()