Lines Matching refs:t2

3915 static bool btf_equal_common(struct btf_type *t1, struct btf_type *t2)  in btf_equal_common()  argument
3917 return t1->name_off == t2->name_off && in btf_equal_common()
3918 t1->info == t2->info && in btf_equal_common()
3919 t1->size == t2->size; in btf_equal_common()
3934 static bool btf_equal_int_tag(struct btf_type *t1, struct btf_type *t2) in btf_equal_int_tag() argument
3938 if (!btf_equal_common(t1, t2)) in btf_equal_int_tag()
3941 info2 = *(__u32 *)(t2 + 1); in btf_equal_int_tag()
3955 static bool btf_equal_enum_members(struct btf_type *t1, struct btf_type *t2) in btf_equal_enum_members() argument
3963 m2 = btf_enum(t2); in btf_equal_enum_members()
3973 static bool btf_equal_enum64_members(struct btf_type *t1, struct btf_type *t2) in btf_equal_enum64_members() argument
3981 m2 = btf_enum64(t2); in btf_equal_enum64_members()
3993 static bool btf_equal_enum(struct btf_type *t1, struct btf_type *t2) in btf_equal_enum() argument
3995 if (!btf_equal_common(t1, t2)) in btf_equal_enum()
4000 return btf_equal_enum_members(t1, t2); in btf_equal_enum()
4002 return btf_equal_enum64_members(t1, t2); in btf_equal_enum()
4010 static bool btf_compat_enum(struct btf_type *t1, struct btf_type *t2) in btf_compat_enum() argument
4012 if (!btf_is_enum_fwd(t1) && !btf_is_enum_fwd(t2)) in btf_compat_enum()
4013 return btf_equal_enum(t1, t2); in btf_compat_enum()
4020 return t1->name_off == t2->name_off && in btf_compat_enum()
4021 btf_is_any_enum(t1) && btf_is_any_enum(t2); in btf_compat_enum()
4050 static bool btf_shallow_equal_struct(struct btf_type *t1, struct btf_type *t2) in btf_shallow_equal_struct() argument
4056 if (!btf_equal_common(t1, t2)) in btf_shallow_equal_struct()
4061 m2 = btf_members(t2); in btf_shallow_equal_struct()
4094 static bool btf_equal_array(struct btf_type *t1, struct btf_type *t2) in btf_equal_array() argument
4098 if (!btf_equal_common(t1, t2)) in btf_equal_array()
4102 info2 = btf_array(t2); in btf_equal_array()
4113 static bool btf_compat_array(struct btf_type *t1, struct btf_type *t2) in btf_compat_array() argument
4115 if (!btf_equal_common(t1, t2)) in btf_compat_array()
4118 return btf_array(t1)->nelems == btf_array(t2)->nelems; in btf_compat_array()
4148 static bool btf_equal_fnproto(struct btf_type *t1, struct btf_type *t2) in btf_equal_fnproto() argument
4154 if (!btf_equal_common(t1, t2)) in btf_equal_fnproto()
4159 m2 = btf_params(t2); in btf_equal_fnproto()
4174 static bool btf_compat_fnproto(struct btf_type *t1, struct btf_type *t2) in btf_compat_fnproto() argument
4181 if (t1->name_off != t2->name_off || t1->info != t2->info) in btf_compat_fnproto()
4186 m2 = btf_params(t2); in btf_compat_fnproto()
4411 struct btf_type *t1, *t2; in btf_dedup_identical_types() local
4418 t2 = btf_type_by_id(d->btf, id2); in btf_dedup_identical_types()
4421 k2 = btf_kind(t2); in btf_dedup_identical_types()
4429 return btf_equal_int_tag(t1, t2); in btf_dedup_identical_types()
4432 return btf_compat_enum(t1, t2); in btf_dedup_identical_types()
4435 return btf_equal_common(t1, t2); in btf_dedup_identical_types()
4443 if (t1->info != t2->info || t1->name_off != t2->name_off) in btf_dedup_identical_types()
4446 id2 = t2->type; in btf_dedup_identical_types()
4451 if (!btf_compat_array(t1, t2)) in btf_dedup_identical_types()
4472 if (!btf_shallow_equal_struct(t1, t2)) in btf_dedup_identical_types()
4476 m2 = btf_members(t2); in btf_dedup_identical_types()
4489 if (!btf_compat_fnproto(t1, t2)) in btf_dedup_identical_types()
4492 if (t1->type != t2->type && in btf_dedup_identical_types()
4493 !btf_dedup_identical_types(d, t1->type, t2->type, depth - 1)) in btf_dedup_identical_types()
4497 p2 = btf_params(t2); in btf_dedup_identical_types()