Lines Matching defs:byte_sz

2066 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding)
2074 /* byte_sz must be power of 2 */
2075 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16)
2099 t->size = byte_sz;
2101 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8);
2114 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz)
2123 /* byte_sz must be one of the explicitly allowed values */
2124 if (byte_sz != 2 && byte_sz != 4 && byte_sz != 8 && byte_sz != 12 &&
2125 byte_sz != 16)
2142 t->size = byte_sz;
2271 * - *byte_sz* - size of the struct, in bytes;
2280 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz)
2282 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz);
2288 * - *byte_sz* - size of the union, in bytes;
2298 int btf__add_union(struct btf *btf, const char *name, __u32 byte_sz)
2300 return btf_add_composite(btf, BTF_KIND_UNION, name, byte_sz);
2373 static int btf_add_enum_common(struct btf *btf, const char *name, __u32 byte_sz,
2379 /* byte_sz must be power of 2 */
2380 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 8)
2400 t->size = byte_sz;
2408 * - *byte_sz* - size of the enum, in bytes.
2418 int btf__add_enum(struct btf *btf, const char *name, __u32 byte_sz)
2424 return btf_add_enum_common(btf, name, byte_sz, false, BTF_KIND_ENUM);
2486 * - *byte_sz* - size of the enum, in bytes.
2497 int btf__add_enum64(struct btf *btf, const char *name, __u32 byte_sz,
2500 return btf_add_enum_common(btf, name, byte_sz, is_signed,
2845 * - *byte_sz* - data section size, in bytes.
2854 int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz)
2878 t->size = byte_sz;
2887 * - *byte_sz* - variable size, in bytes.
2893 int btf__add_datasec_var_info(struct btf *btf, int var_type_id, __u32 offset, __u32 byte_sz)
2920 v->size = byte_sz;