Lines Matching refs:size

399  * that if some type is "embedded" into a struct/union, it's size needs to be
413 * struct B definition, as struct B has a pointer to struct A, so the size of
414 * field x is known without knowing struct A size: it's sizeof(void *).
425 * In this case, struct B's field x is a pointer, so it's size is known
426 * regardless of the size of (anonymous) struct it points to. But because this
850 /* size of a non-packed struct has to be a multiple of its alignment */
851 if (t->size % max_align != 0)
1013 btf_dump_emit_bit_padding(d, off, t->size * 8, align, false, lvl + 1);
1019 if (vlen || t->size) {
1138 if (t->size == 1) {
1141 } else if (t->size == 8 && d->ptr_sz == 8) {
1759 /* Maximum supported bitfield size is 64 bits */
1760 if (t->size > 8) {
1761 pr_warn("unexpected bitfield size %d\n", t->size);
1769 for (i = t->size - 1; i >= 0; i--)
1773 for (i = 0; i < t->size; i++)
1775 nr_copy_bits = t->size * 8 - bits_offset;
1831 /* For pointer types, pointer size is not defined on a per-type basis.
1832 * On dump creation however, we store the pointer size.
1837 nr_bytes = t->size;
1840 pr_warn("unexpected size %d for id [%u]\n", nr_bytes, id);
1869 int sz = t->size;
1872 pr_warn("unexpected size %d for id [%u]\n", sz, type_id);
1965 int sz = t->size;
1984 pr_warn("unexpected size %d for id [%u]\n", sz, type_id);
2039 pr_warn("unexpected elem size %zd for array type [%u]\n",
2047 * char arrays, so if size is 1 and element is
2166 switch (t->size) {
2180 pr_warn("unexpected size %d for enum, id:[%u]\n", t->size, id);
2248 /* return size of type, or if base type overflows, return -E2BIG. */
2256 __s64 size;
2271 size = btf__resolve_size(d->btf, id);
2273 if (size < 0 || size >= INT_MAX) {
2274 pr_warn("unexpected size [%zu] for id [%u]\n",
2275 (size_t)size, id);
2299 if (data + bits_offset / 8 + size > d->typed_dump->data_end)
2305 return (int)size;
2390 /* btf_int_bits() does not store member bitfield size;
2391 * bitfield size needs to be stored here so int display
2415 /* returns size of data dumped, or error. */
2424 int size, err = 0;
2426 size = btf_dump_type_data_check_overflow(d, t, id, data, bits_offset, bit_sz);
2427 if (size < 0)
2428 return size;
2435 return size;
2504 return size;