Lines Matching refs:t
320 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() argument
322 return BTF_INFO_KIND(t->info); in btf_kind()
325 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() argument
327 return BTF_INFO_VLEN(t->info); in btf_vlen()
330 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() argument
332 return BTF_INFO_KFLAG(t->info); in btf_kflag()
335 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void() argument
337 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void()
340 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int() argument
342 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
345 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr() argument
347 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
350 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array() argument
352 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
355 static inline bool btf_is_struct(const struct btf_type *t) in btf_is_struct() argument
357 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct()
360 static inline bool btf_is_union(const struct btf_type *t) in btf_is_union() argument
362 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union()
365 static inline bool btf_is_composite(const struct btf_type *t) in btf_is_composite() argument
367 __u16 kind = btf_kind(t); in btf_is_composite()
372 static inline bool btf_is_enum(const struct btf_type *t) in btf_is_enum() argument
374 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
377 static inline bool btf_is_enum64(const struct btf_type *t) in btf_is_enum64() argument
379 return btf_kind(t) == BTF_KIND_ENUM64; in btf_is_enum64()
382 static inline bool btf_is_fwd(const struct btf_type *t) in btf_is_fwd() argument
384 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd()
387 static inline bool btf_is_typedef(const struct btf_type *t) in btf_is_typedef() argument
389 return btf_kind(t) == BTF_KIND_TYPEDEF; in btf_is_typedef()
392 static inline bool btf_is_volatile(const struct btf_type *t) in btf_is_volatile() argument
394 return btf_kind(t) == BTF_KIND_VOLATILE; in btf_is_volatile()
397 static inline bool btf_is_const(const struct btf_type *t) in btf_is_const() argument
399 return btf_kind(t) == BTF_KIND_CONST; in btf_is_const()
402 static inline bool btf_is_restrict(const struct btf_type *t) in btf_is_restrict() argument
404 return btf_kind(t) == BTF_KIND_RESTRICT; in btf_is_restrict()
407 static inline bool btf_is_mod(const struct btf_type *t) in btf_is_mod() argument
409 __u16 kind = btf_kind(t); in btf_is_mod()
417 static inline bool btf_is_func(const struct btf_type *t) in btf_is_func() argument
419 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func()
422 static inline bool btf_is_func_proto(const struct btf_type *t) in btf_is_func_proto() argument
424 return btf_kind(t) == BTF_KIND_FUNC_PROTO; in btf_is_func_proto()
427 static inline bool btf_is_var(const struct btf_type *t) in btf_is_var() argument
429 return btf_kind(t) == BTF_KIND_VAR; in btf_is_var()
432 static inline bool btf_is_datasec(const struct btf_type *t) in btf_is_datasec() argument
434 return btf_kind(t) == BTF_KIND_DATASEC; in btf_is_datasec()
437 static inline bool btf_is_float(const struct btf_type *t) in btf_is_float() argument
439 return btf_kind(t) == BTF_KIND_FLOAT; in btf_is_float()
442 static inline bool btf_is_decl_tag(const struct btf_type *t) in btf_is_decl_tag() argument
444 return btf_kind(t) == BTF_KIND_DECL_TAG; in btf_is_decl_tag()
447 static inline bool btf_is_type_tag(const struct btf_type *t) in btf_is_type_tag() argument
449 return btf_kind(t) == BTF_KIND_TYPE_TAG; in btf_is_type_tag()
452 static inline bool btf_is_any_enum(const struct btf_type *t) in btf_is_any_enum() argument
454 return btf_is_enum(t) || btf_is_enum64(t); in btf_is_any_enum()
464 static inline __u8 btf_int_encoding(const struct btf_type *t) in btf_int_encoding() argument
466 return BTF_INT_ENCODING(*(__u32 *)(t + 1)); in btf_int_encoding()
469 static inline __u8 btf_int_offset(const struct btf_type *t) in btf_int_offset() argument
471 return BTF_INT_OFFSET(*(__u32 *)(t + 1)); in btf_int_offset()
474 static inline __u8 btf_int_bits(const struct btf_type *t) in btf_int_bits() argument
476 return BTF_INT_BITS(*(__u32 *)(t + 1)); in btf_int_bits()
479 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() argument
481 return (struct btf_array *)(t + 1); in btf_array()
484 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() argument
486 return (struct btf_enum *)(t + 1); in btf_enum()
491 static inline struct btf_enum64 *btf_enum64(const struct btf_type *t) in btf_enum64() argument
493 return (struct btf_enum64 *)(t + 1); in btf_enum64()
522 static inline struct btf_member *btf_members(const struct btf_type *t) in btf_members() argument
524 return (struct btf_member *)(t + 1); in btf_members()
528 static inline __u32 btf_member_bit_offset(const struct btf_type *t, in btf_member_bit_offset() argument
531 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bit_offset()
532 bool kflag = btf_kflag(t); in btf_member_bit_offset()
540 static inline __u32 btf_member_bitfield_size(const struct btf_type *t, in btf_member_bitfield_size() argument
543 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bitfield_size()
544 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
549 static inline struct btf_param *btf_params(const struct btf_type *t) in btf_params() argument
551 return (struct btf_param *)(t + 1); in btf_params()
554 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() argument
556 return (struct btf_var *)(t + 1); in btf_var()
560 btf_var_secinfos(const struct btf_type *t) in btf_var_secinfos() argument
562 return (struct btf_var_secinfo *)(t + 1); in btf_var_secinfos()
566 static inline struct btf_decl_tag *btf_decl_tag(const struct btf_type *t) in btf_decl_tag() argument
568 return (struct btf_decl_tag *)(t + 1); in btf_decl_tag()