Lines Matching defs:kptr_field

270 	struct btf_field *kptr_field;
4288 struct btf_field *kptr_field,
4291 const char *targ_name = btf_type_name(kptr_field->kptr.btf, kptr_field->kptr.btf_id);
4302 if (kptr_field->type == BPF_KPTR_UNREF)
4306 if (kptr_field->type == BPF_KPTR_PERCPU)
4350 kptr_field->kptr.btf, kptr_field->kptr.btf_id,
4351 kptr_field->type != BPF_KPTR_UNREF))
4358 if (kptr_field->type == BPF_KPTR_UNREF)
4405 static struct btf_record *kptr_pointee_btf_record(struct btf_field *kptr_field)
4409 if (btf_is_kernel(kptr_field->kptr.btf))
4412 meta = btf_find_struct_meta(kptr_field->kptr.btf,
4413 kptr_field->kptr.btf_id);
4426 static u32 btf_ld_kptr_type(struct bpf_verifier_env *env, struct btf_field *kptr_field)
4432 if (rcu_safe_kptr(kptr_field) && in_rcu_cs(env)) {
4434 if (kptr_field->type == BPF_KPTR_PERCPU)
4436 else if (!btf_is_kernel(kptr_field->kptr.btf))
4439 rec = kptr_pointee_btf_record(kptr_field);
4467 struct btf_field *kptr_field)
4478 * - kptr_field->offset == off + reg->var_off.value
4490 (kptr_field->type == BPF_KPTR_REF || kptr_field->type == BPF_KPTR_PERCPU)) {
4494 if (class != BPF_LDX && kptr_field->type == BPF_UPTR) {
4500 if (kptr_field->type == BPF_UPTR)
4501 return mark_uptr_ld_reg(env, value_regno, kptr_field);
4507 kptr_field->kptr.btf, kptr_field->kptr.btf_id,
4508 btf_ld_kptr_type(env, kptr_field));
4514 map_kptr_match_type(env, kptr_field, val_reg, value_regno))
4519 kptr_field->offset);
6099 struct btf_field *kptr_field = NULL;
6113 kptr_field = btf_record_find(reg->map_ptr->record,
6115 if (kptr_field) {
6116 err = check_map_kptr_access(env, value_regno, insn_idx, kptr_field);
7163 struct btf_field *kptr_field;
7194 kptr_field = btf_record_find(rec, kptr_off, BPF_KPTR);
7195 if (!kptr_field) {
7199 if (kptr_field->type != BPF_KPTR_REF && kptr_field->type != BPF_KPTR_PERCPU) {
7203 meta->kptr_field = kptr_field;
7926 if (map_kptr_match_type(env, meta->kptr_field, reg, reg_from_argno(argno)))
7966 map_kptr_match_type(env, meta->kptr_field, reg, regno))
10509 ret_btf = meta.kptr_field->kptr.btf;
10510 ret_btf_id = meta.kptr_field->kptr.btf_id;
10513 if (meta.kptr_field->type == BPF_KPTR_PERCPU)