Lines Matching refs:byte_sz

1744 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding)  in btf__add_int()  argument
1753 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16) in btf__add_int()
1777 t->size = byte_sz; in btf__add_int()
1779 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8); in btf__add_int()
1792 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz) in btf__add_float() argument
1802 if (byte_sz != 2 && byte_sz != 4 && byte_sz != 8 && byte_sz != 12 && in btf__add_float()
1803 byte_sz != 16) in btf__add_float()
1820 t->size = byte_sz; in btf__add_float()
1958 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_struct() argument
1960 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz); in btf__add_struct()
1976 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_union() argument
1978 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz); in btf__add_union()
2051 static int btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz, in btf_add_enum_common() argument
2058 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8) in btf_add_enum_common()
2078 t->size = byte_sz; in btf_add_enum_common()
2096 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_enum() argument
2102 return btf_add_enum_common(btf, name, byte_sz, false, BTF_KIND_ENUM); in btf__add_enum()
2175 int btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz, in btf__add_enum64() argument
2178 return btf_add_enum_common(btf, name, byte_sz, is_signed, in btf__add_enum64()
2515 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz) in btf__add_datasec() argument
2539 t->size = byte_sz; in btf__add_datasec()
2554 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
2581 v->size = byte_sz; in btf__add_datasec_var_info()