Lines Matching refs:t
177 static inline __u16 btf_kind(const struct btf_type *t) in btf_kind() argument
179 return BTF_INFO_KIND(t->info); in btf_kind()
182 static inline __u16 btf_vlen(const struct btf_type *t) in btf_vlen() argument
184 return BTF_INFO_VLEN(t->info); in btf_vlen()
187 static inline bool btf_kflag(const struct btf_type *t) in btf_kflag() argument
189 return BTF_INFO_KFLAG(t->info); in btf_kflag()
192 static inline bool btf_is_void(const struct btf_type *t) in btf_is_void() argument
194 return btf_kind(t) == BTF_KIND_UNKN; in btf_is_void()
197 static inline bool btf_is_int(const struct btf_type *t) in btf_is_int() argument
199 return btf_kind(t) == BTF_KIND_INT; in btf_is_int()
202 static inline bool btf_is_ptr(const struct btf_type *t) in btf_is_ptr() argument
204 return btf_kind(t) == BTF_KIND_PTR; in btf_is_ptr()
207 static inline bool btf_is_array(const struct btf_type *t) in btf_is_array() argument
209 return btf_kind(t) == BTF_KIND_ARRAY; in btf_is_array()
212 static inline bool btf_is_struct(const struct btf_type *t) in btf_is_struct() argument
214 return btf_kind(t) == BTF_KIND_STRUCT; in btf_is_struct()
217 static inline bool btf_is_union(const struct btf_type *t) in btf_is_union() argument
219 return btf_kind(t) == BTF_KIND_UNION; in btf_is_union()
222 static inline bool btf_is_composite(const struct btf_type *t) in btf_is_composite() argument
224 __u16 kind = btf_kind(t); in btf_is_composite()
229 static inline bool btf_is_enum(const struct btf_type *t) in btf_is_enum() argument
231 return btf_kind(t) == BTF_KIND_ENUM; in btf_is_enum()
234 static inline bool btf_is_fwd(const struct btf_type *t) in btf_is_fwd() argument
236 return btf_kind(t) == BTF_KIND_FWD; in btf_is_fwd()
239 static inline bool btf_is_typedef(const struct btf_type *t) in btf_is_typedef() argument
241 return btf_kind(t) == BTF_KIND_TYPEDEF; in btf_is_typedef()
244 static inline bool btf_is_volatile(const struct btf_type *t) in btf_is_volatile() argument
246 return btf_kind(t) == BTF_KIND_VOLATILE; in btf_is_volatile()
249 static inline bool btf_is_const(const struct btf_type *t) in btf_is_const() argument
251 return btf_kind(t) == BTF_KIND_CONST; in btf_is_const()
254 static inline bool btf_is_restrict(const struct btf_type *t) in btf_is_restrict() argument
256 return btf_kind(t) == BTF_KIND_RESTRICT; in btf_is_restrict()
259 static inline bool btf_is_mod(const struct btf_type *t) in btf_is_mod() argument
261 __u16 kind = btf_kind(t); in btf_is_mod()
268 static inline bool btf_is_func(const struct btf_type *t) in btf_is_func() argument
270 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func()
273 static inline bool btf_is_func_proto(const struct btf_type *t) in btf_is_func_proto() argument
275 return btf_kind(t) == BTF_KIND_FUNC_PROTO; in btf_is_func_proto()
278 static inline bool btf_is_var(const struct btf_type *t) in btf_is_var() argument
280 return btf_kind(t) == BTF_KIND_VAR; in btf_is_var()
283 static inline bool btf_is_datasec(const struct btf_type *t) in btf_is_datasec() argument
285 return btf_kind(t) == BTF_KIND_DATASEC; in btf_is_datasec()
288 static inline __u8 btf_int_encoding(const struct btf_type *t) in btf_int_encoding() argument
290 return BTF_INT_ENCODING(*(__u32 *)(t + 1)); in btf_int_encoding()
293 static inline __u8 btf_int_offset(const struct btf_type *t) in btf_int_offset() argument
295 return BTF_INT_OFFSET(*(__u32 *)(t + 1)); in btf_int_offset()
298 static inline __u8 btf_int_bits(const struct btf_type *t) in btf_int_bits() argument
300 return BTF_INT_BITS(*(__u32 *)(t + 1)); in btf_int_bits()
303 static inline struct btf_array *btf_array(const struct btf_type *t) in btf_array() argument
305 return (struct btf_array *)(t + 1); in btf_array()
308 static inline struct btf_enum *btf_enum(const struct btf_type *t) in btf_enum() argument
310 return (struct btf_enum *)(t + 1); in btf_enum()
313 static inline struct btf_member *btf_members(const struct btf_type *t) in btf_members() argument
315 return (struct btf_member *)(t + 1); in btf_members()
319 static inline __u32 btf_member_bit_offset(const struct btf_type *t, in btf_member_bit_offset() argument
322 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bit_offset()
323 bool kflag = btf_kflag(t); in btf_member_bit_offset()
331 static inline __u32 btf_member_bitfield_size(const struct btf_type *t, in btf_member_bitfield_size() argument
334 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bitfield_size()
335 bool kflag = btf_kflag(t); in btf_member_bitfield_size()
340 static inline struct btf_param *btf_params(const struct btf_type *t) in btf_params() argument
342 return (struct btf_param *)(t + 1); in btf_params()
345 static inline struct btf_var *btf_var(const struct btf_type *t) in btf_var() argument
347 return (struct btf_var *)(t + 1); in btf_var()
351 btf_var_secinfos(const struct btf_type *t) in btf_var_secinfos() argument
353 return (struct btf_var_secinfo *)(t + 1); in btf_var_secinfos()