Lines Matching refs:map_ptr
224 aux->map_ptr_state.map_ptr = map; in bpf_map_ptr_store()
269 struct bpf_map *map_ptr; member
412 rec = reg->map_ptr->record; in reg_btf_record()
1839 const struct bpf_map *map = reg->map_ptr; in mark_ptr_not_null_reg()
1843 reg->map_ptr = map->inner_map_meta; in mark_ptr_not_null_reg()
5190 struct bpf_map *map = regs[regno].map_ptr; in check_map_access_type()
5556 struct bpf_map *map = reg->map_ptr; in check_map_access()
6743 struct bpf_map *map = reg->map_ptr; in check_ptr_to_map_access()
6931 reg->map_ptr->key_size, false); in check_mem_access()
6951 kptr_field = btf_record_find(reg->map_ptr->record, in check_mem_access()
6956 struct bpf_map *map = reg->map_ptr; in check_mem_access()
7450 reg->map_ptr->key_size, false); in check_helper_mem_access()
7672 map = reg->map_ptr; in process_spin_lock()
7736 struct bpf_map *map = reg->map_ptr; in process_timer_func()
7759 if (meta->map_ptr) { in process_timer_func()
7764 meta->map_ptr = map; in process_timer_func()
7772 struct bpf_map *map = reg->map_ptr; in process_wq_func()
7790 struct bpf_map *map_ptr; in process_kptr_func() local
7797 map_ptr = reg->map_ptr; in process_kptr_func()
7798 if (!map_ptr->btf) { in process_kptr_func()
7800 map_ptr->name); in process_kptr_func()
7803 rec = map_ptr->record; in process_kptr_func()
7804 meta->map_ptr = map_ptr; in process_kptr_func()
8302 if (!meta->map_ptr) { in resolve_map_arg_type()
8308 switch (meta->map_ptr->map_type) { in resolve_map_arg_type()
8743 struct bpf_map *map = reg->map_ptr; in check_reg_const_str()
8893 if (meta->map_ptr) { in check_func_arg()
8906 if (meta->map_ptr != reg->map_ptr || in check_func_arg()
8914 meta->map_ptr = reg->map_ptr; in check_func_arg()
8922 if (!meta->map_ptr) { in check_func_arg()
8931 err = check_helper_mem_access(env, regno, meta->map_ptr->key_size, in check_func_arg()
8941 if (!meta->map_ptr) { in check_func_arg()
8947 err = check_helper_mem_access(env, regno, meta->map_ptr->value_size, in check_func_arg()
9852 callee->regs[BPF_REG_2].map_ptr = caller->regs[BPF_REG_1].map_ptr; in map_set_for_each_callback_args()
9856 callee->regs[BPF_REG_3].map_ptr = caller->regs[BPF_REG_1].map_ptr; in map_set_for_each_callback_args()
9890 map = insn_aux->map_ptr_state.map_ptr; in set_map_elem_callback_state()
9933 struct bpf_map *map_ptr = caller->regs[BPF_REG_1].map_ptr; in set_timer_callback_state() local
9940 callee->regs[BPF_REG_1].map_ptr = map_ptr; in set_timer_callback_state()
9944 callee->regs[BPF_REG_2].map_ptr = map_ptr; in set_timer_callback_state()
9948 callee->regs[BPF_REG_3].map_ptr = map_ptr; in set_timer_callback_state()
10221 struct bpf_map *map = meta->map_ptr; in record_func_map()
10253 if (!aux->map_ptr_state.map_ptr) in record_func_map()
10254 bpf_map_ptr_store(aux, meta->map_ptr, in record_func_map()
10255 !meta->map_ptr->bypass_spec_v1, false); in record_func_map()
10256 else if (aux->map_ptr_state.map_ptr != meta->map_ptr) in record_func_map()
10257 bpf_map_ptr_store(aux, meta->map_ptr, in record_func_map()
10258 !meta->map_ptr->bypass_spec_v1, true); in record_func_map()
10268 struct bpf_map *map = meta->map_ptr; in record_func_key()
10323 struct bpf_map *fmt_map = fmt_reg->map_ptr; in check_bpf_snprintf_call()
10764 if (meta.map_ptr == NULL) { in check_helper_call()
10769 regs[BPF_REG_0].map_ptr = meta.map_ptr; in check_helper_call()
10773 btf_record_has_field(meta.map_ptr->record, BPF_SPIN_LOCK)) { in check_helper_call()
10877 if (helper_multiple_ref_obj_use(func_id, meta.map_ptr)) { in check_helper_call()
10889 } else if (is_acquire_function(func_id, meta.map_ptr)) { in check_helper_call()
10904 err = check_map_func_compatibility(env, meta.map_ptr, func_id); in check_helper_call()
11620 ptr = reg->map_ptr; in check_reg_allocation_locked()
12033 if (!reg->map_ptr) { in check_kfunc_args()
12037 if (meta->map.ptr && reg->map_ptr->record->wq_off >= 0) { in check_kfunc_args()
12050 if (meta->map.ptr != reg->map_ptr || in check_kfunc_args()
12058 meta->map.ptr = reg->map_ptr; in check_kfunc_args()
12954 max = ptr_reg->map_ptr->value_size; in retrieve_ptr_limit()
15664 dst_reg->map_ptr = map; in check_ld_imm()
19948 struct bpf_map *map_ptr; in jit_subprogs() local
20176 map_ptr = prog->aux->poke_tab[i].tail_call.map; in jit_subprogs()
20177 map_ptr->ops->map_poke_untrack(map_ptr, prog->aux); in jit_subprogs()
20452 struct bpf_map *map_ptr; in do_misc_fixups() local
20803 .tail_call.map = aux->map_ptr_state.map_ptr, in do_misc_fixups()
20832 map_ptr = aux->map_ptr_state.map_ptr; in do_misc_fixups()
20834 map_ptr->max_entries, 2); in do_misc_fixups()
20836 container_of(map_ptr, in do_misc_fixups()
20940 map_ptr = aux->map_ptr_state.map_ptr; in do_misc_fixups()
20941 ops = map_ptr->ops; in do_misc_fixups()
20944 cnt = ops->map_gen_lookup(map_ptr, insn_buf); in do_misc_fixups()
21283 map_ptr = prog->aux->poke_tab[i].tail_call.map; in do_misc_fixups()
21284 if (!map_ptr->ops->map_poke_track || in do_misc_fixups()
21285 !map_ptr->ops->map_poke_untrack || in do_misc_fixups()
21286 !map_ptr->ops->map_poke_run) { in do_misc_fixups()
21291 ret = map_ptr->ops->map_poke_track(map_ptr, prog->aux); in do_misc_fixups()