Lines Matching refs:map_ptr
249 struct bpf_map *map_ptr; member
457 map_value_has_spin_lock(reg->map_ptr); in reg_may_point_to_spin_lock()
897 reg->map_ptr->key_size, in print_verifier_state()
898 reg->map_ptr->value_size); in print_verifier_state()
1409 const struct bpf_map *map = reg->map_ptr; in mark_ptr_not_null_reg()
1413 reg->map_ptr = map->inner_map_meta; in mark_ptr_not_null_reg()
3777 struct bpf_map *map = regs[regno].map_ptr; in check_map_access_type()
4060 struct bpf_map *map = reg->map_ptr; in check_map_access()
4838 struct bpf_map *map = reg->map_ptr; in check_ptr_to_map_access()
5001 reg->map_ptr->key_size, false); in check_mem_access()
5021 kptr_off_desc = bpf_map_kptr_off_contains(reg->map_ptr, in check_mem_access()
5027 struct bpf_map *map = reg->map_ptr; in check_mem_access()
5473 reg->map_ptr->key_size, false); in check_helper_mem_access()
5684 struct bpf_map *map = reg->map_ptr; in process_spin_lock()
5745 struct bpf_map *map = reg->map_ptr; in process_timer_func()
5779 if (meta->map_ptr) { in process_timer_func()
5784 meta->map_ptr = map; in process_timer_func()
5793 struct bpf_map *map_ptr = reg->map_ptr; in process_kptr_func() local
5803 if (!map_ptr->btf) { in process_kptr_func()
5805 map_ptr->name); in process_kptr_func()
5808 if (!map_value_has_kptrs(map_ptr)) { in process_kptr_func()
5809 ret = PTR_ERR_OR_ZERO(map_ptr->kptr_off_tab); in process_kptr_func()
5811 verbose(env, "map '%s' has more than %d kptr\n", map_ptr->name, in process_kptr_func()
5814 verbose(env, "map '%s' has repeating kptr BTF tags\n", map_ptr->name); in process_kptr_func()
5816 verbose(env, "map '%s' has no valid kptr\n", map_ptr->name); in process_kptr_func()
5820 meta->map_ptr = map_ptr; in process_kptr_func()
5822 off_desc = bpf_map_kptr_off_contains(map_ptr, kptr_off); in process_kptr_func()
5865 if (!meta->map_ptr) { in resolve_map_arg_type()
5871 switch (meta->map_ptr->map_type) { in resolve_map_arg_type()
6244 if (meta->map_ptr) { in check_func_arg()
6257 if (meta->map_ptr != reg->map_ptr || in check_func_arg()
6265 meta->map_ptr = reg->map_ptr; in check_func_arg()
6273 if (!meta->map_ptr) { in check_func_arg()
6283 meta->map_ptr->key_size, false, in check_func_arg()
6293 if (!meta->map_ptr) { in check_func_arg()
6300 meta->map_ptr->value_size, false, in check_func_arg()
6419 struct bpf_map *map = reg->map_ptr; in check_func_arg()
7057 callee->regs[BPF_REG_2].map_ptr = caller->regs[BPF_REG_1].map_ptr; in map_set_for_each_callback_args()
7061 callee->regs[BPF_REG_3].map_ptr = caller->regs[BPF_REG_1].map_ptr; in map_set_for_each_callback_args()
7158 struct bpf_map *map_ptr = caller->regs[BPF_REG_1].map_ptr; in set_timer_callback_state() local
7165 callee->regs[BPF_REG_1].map_ptr = map_ptr; in set_timer_callback_state()
7169 callee->regs[BPF_REG_2].map_ptr = map_ptr; in set_timer_callback_state()
7173 callee->regs[BPF_REG_3].map_ptr = map_ptr; in set_timer_callback_state()
7331 struct bpf_map *map = meta->map_ptr; in record_func_map()
7364 bpf_map_ptr_store(aux, meta->map_ptr, in record_func_map()
7365 !meta->map_ptr->bypass_spec_v1); in record_func_map()
7366 else if (BPF_MAP_PTR(aux->map_ptr_state) != meta->map_ptr) in record_func_map()
7368 !meta->map_ptr->bypass_spec_v1); in record_func_map()
7378 struct bpf_map *map = meta->map_ptr; in record_func_key()
7433 struct bpf_map *fmt_map = fmt_reg->map_ptr; in check_bpf_snprintf_call()
7758 if (meta.map_ptr == NULL) { in check_helper_call()
7763 regs[BPF_REG_0].map_ptr = meta.map_ptr; in check_helper_call()
7767 map_value_has_spin_lock(meta.map_ptr)) { in check_helper_call()
7862 if (helper_multiple_ref_obj_use(func_id, meta.map_ptr)) { in check_helper_call()
7871 } else if (is_acquire_function(func_id, meta.map_ptr)) { in check_helper_call()
7884 err = check_map_func_compatibility(env, meta.map_ptr, func_id); in check_helper_call()
8180 max = ptr_reg->map_ptr->value_size; in retrieve_ptr_limit()
10686 dst_reg->map_ptr = map; in check_ld_imm()
13908 struct bpf_map *map_ptr; in jit_subprogs() local
14107 map_ptr = prog->aux->poke_tab[i].tail_call.map; in jit_subprogs()
14108 map_ptr->ops->map_poke_untrack(map_ptr, prog->aux); in jit_subprogs()
14226 struct bpf_map *map_ptr; in do_misc_fixups() local
14417 map_ptr = BPF_MAP_PTR(aux->map_ptr_state); in do_misc_fixups()
14419 map_ptr->max_entries, 2); in do_misc_fixups()
14421 container_of(map_ptr, in do_misc_fixups()
14507 map_ptr = BPF_MAP_PTR(aux->map_ptr_state); in do_misc_fixups()
14508 ops = map_ptr->ops; in do_misc_fixups()
14511 cnt = ops->map_gen_lookup(map_ptr, insn_buf); in do_misc_fixups()
14712 map_ptr = prog->aux->poke_tab[i].tail_call.map; in do_misc_fixups()
14713 if (!map_ptr->ops->map_poke_track || in do_misc_fixups()
14714 !map_ptr->ops->map_poke_untrack || in do_misc_fixups()
14715 !map_ptr->ops->map_poke_run) { in do_misc_fixups()
14720 ret = map_ptr->ops->map_poke_track(map_ptr, prog->aux); in do_misc_fixups()