Lines Matching refs:ret_btf
286 struct btf *ret_btf; member
9695 meta->ret_btf = reg->btf; in check_func_arg()
11616 t = btf_type_skip_modifiers(meta.ret_btf, meta.ret_btf_id, NULL); in check_helper_call()
11623 ret = btf_resolve_size(meta.ret_btf, t, &tsize); in check_helper_call()
11625 tname = btf_name_by_offset(meta.ret_btf, t->name_off); in check_helper_call()
11645 regs[BPF_REG_0].btf = meta.ret_btf; in check_helper_call()
11652 struct btf *ret_btf; in check_helper_call() local
11658 ret_btf = meta.kptr_field->kptr.btf; in check_helper_call()
11660 if (!btf_is_kernel(ret_btf)) { in check_helper_call()
11672 ret_btf = btf_vmlinux; in check_helper_call()
11681 regs[BPF_REG_0].btf = ret_btf; in check_helper_call()
13662 struct btf *ret_btf; in check_kfunc_call() local
13673 ret_btf = env->prog->aux->btf; in check_kfunc_call()
13677 if (!ret_btf) { in check_kfunc_call()
13682 ret_t = btf_type_by_id(ret_btf, ret_btf_id); in check_kfunc_call()
13717 struct_meta = btf_find_struct_meta(ret_btf, ret_btf_id); in check_kfunc_call()
13719 if (!__btf_type_is_scalar_struct(env, ret_btf, ret_t, 0)) { in check_kfunc_call()
13732 regs[BPF_REG_0].btf = ret_btf; in check_kfunc_call()