Lines Matching refs:PTR_TO_BTF_ID
464 type == PTR_TO_MEM || type == PTR_TO_BTF_ID; in reg_type_may_be_refcounted_or_null()
561 [PTR_TO_BTF_ID] = "ptr_", in reg_type_str()
570 if (base_type(type) == PTR_TO_BTF_ID) in reg_type_str()
867 if (base_type(t) == PTR_TO_BTF_ID) in print_verifier_state()
1740 regs[regno].type = PTR_TO_BTF_ID | flag; in mark_btf_ld_reg()
2958 case PTR_TO_BTF_ID: in is_spillable_regtype()
3697 if (base_type(reg->type) != PTR_TO_BTF_ID || (type_flag(reg->type) & ~perm_flags)) in map_kptr_match_type()
3748 verbose(env, "expected=%s%s", reg_type_str(env, PTR_TO_BTF_ID), targ_name); in map_kptr_match_type()
3750 verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), in map_kptr_match_type()
3790 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, off_desc->kptr.btf, in check_map_kptr_access()
3991 if (base_type(*reg_type) == PTR_TO_BTF_ID) { in check_ctx_access()
4856 if (base_type(reg_type) == PTR_TO_BTF_ID) { in check_mem_access()
4919 } else if (base_type(reg->type) == PTR_TO_BTF_ID && in check_mem_access()
5163 base_type(state->stack[spi].spilled_ptr.type) == PTR_TO_BTF_ID) in check_stack_range_initialized()
5668 PTR_TO_BTF_ID,
5702 static const struct bpf_reg_types btf_ptr_types = { .types = { PTR_TO_BTF_ID } };
5704 static const struct bpf_reg_types percpu_btf_ptr_types = { .types = { PTR_TO_BTF_ID | MEM_PERCPU } …
5792 if (reg->type == PTR_TO_BTF_ID) { in check_reg_type()
5867 case PTR_TO_BTF_ID: in check_func_arg_reg_off()
6927 callee->regs[BPF_REG_2].type = PTR_TO_BTF_ID; in set_find_vma_callback_state()
7541 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
7553 regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; in check_helper_call()
7770 regs[BPF_REG_0].type = PTR_TO_BTF_ID; in check_kfunc_call()
10365 case PTR_TO_BTF_ID: in check_ld_imm()
12132 case PTR_TO_BTF_ID: in reg_type_mismatch_ok()
12600 aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; in check_pseudo_btf_id()
12620 aux->btf_var.reg_type = PTR_TO_BTF_ID; in check_pseudo_btf_id()
13514 case PTR_TO_BTF_ID: in convert_ctx_accesses()
13515 case PTR_TO_BTF_ID | PTR_UNTRUSTED: in convert_ctx_accesses()