Lines Matching refs:kptr_field

282 	struct btf_field *kptr_field;  member
4987 struct btf_field *kptr_field, in map_kptr_match_type() argument
4990 const char *targ_name = btf_type_name(kptr_field->kptr.btf, kptr_field->kptr.btf_id); in map_kptr_match_type()
4998 if (kptr_field->type == BPF_KPTR_UNREF) in map_kptr_match_type()
5044 kptr_field->kptr.btf, kptr_field->kptr.btf_id, in map_kptr_match_type()
5045 kptr_field->type == BPF_KPTR_REF)) in map_kptr_match_type()
5052 if (kptr_field->type == BPF_KPTR_UNREF) in map_kptr_match_type()
5094 struct btf_field *kptr_field) in check_map_kptr_access() argument
5115 if (class != BPF_LDX && kptr_field->type == BPF_KPTR_REF) { in check_map_kptr_access()
5125 mark_btf_ld_reg(env, cur_regs(env), value_regno, PTR_TO_BTF_ID, kptr_field->kptr.btf, in check_map_kptr_access()
5126 kptr_field->kptr.btf_id, in check_map_kptr_access()
5127 rcu_safe_kptr(kptr_field) && in_rcu_cs(env) ? in check_map_kptr_access()
5135 map_kptr_match_type(env, kptr_field, val_reg, value_regno)) in check_map_kptr_access()
5140 kptr_field->offset); in check_map_kptr_access()
6471 struct btf_field *kptr_field = NULL; in check_mem_access() local
6485 kptr_field = btf_record_find(reg->map_ptr->record, in check_mem_access()
6487 if (kptr_field) { in check_mem_access()
6488 err = check_map_kptr_access(env, regno, value_regno, insn_idx, kptr_field); in check_mem_access()
7295 struct btf_field *kptr_field; in process_kptr_func() local
7316 kptr_field = btf_record_find(map_ptr->record, kptr_off, BPF_KPTR); in process_kptr_func()
7317 if (!kptr_field) { in process_kptr_func()
7321 if (kptr_field->type != BPF_KPTR_REF) { in process_kptr_func()
7325 meta->kptr_field = kptr_field; in process_kptr_func()
7894 if (map_kptr_match_type(env, meta->kptr_field, reg, regno)) in check_reg_type()
7922 if (map_kptr_match_type(env, meta->kptr_field, reg, regno)) in check_reg_type()
9881 ret_btf = meta.kptr_field->kptr.btf; in check_helper_call()
9882 ret_btf_id = meta.kptr_field->kptr.btf_id; in check_helper_call()