Lines Matching refs:byte_sz

1759 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding)  in btf__add_int()  argument
1768 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16) in btf__add_int()
1792 t->size = byte_sz; in btf__add_int()
1794 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8); in btf__add_int()
1807 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz) in btf__add_float() argument
1817 if (byte_sz != 2 && byte_sz != 4 && byte_sz != 8 && byte_sz != 12 && in btf__add_float()
1818 byte_sz != 16) in btf__add_float()
1835 t->size = byte_sz; in btf__add_float()
1973 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() argument
1975 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz); in btf__add_struct()
1991 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_union() argument
1993 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz); in btf__add_union()
2066 static int btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz, in btf_add_enum_common() argument
2073 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8) in btf_add_enum_common()
2093 t->size = byte_sz; in btf_add_enum_common()
2111 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_enum() argument
2117 return btf_add_enum_common(btf, name, byte_sz, false, BTF_KIND_ENUM); in btf__add_enum()
2190 int btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz, in btf__add_enum64() argument
2193 return btf_add_enum_common(btf, name, byte_sz, is_signed, in btf__add_enum64()
2530 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_datasec() argument
2554 t->size = byte_sz; in btf__add_datasec()
2569 int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz) in btf__add_datasec_var_info() argument
2596 v->size = byte_sz; in btf__add_datasec_var_info()