Lines Matching refs:sz
72 static void append_payload_vec(struct kdbus_item **d, const void *p, size_t sz) {
74 assert(sz > 0);
85 (*d)->vec.size = sz;
90 static void append_payload_memfd(struct kdbus_item **d, int memfd, size_t start, size_t sz) {
93 assert(sz > 0);
100 (*d)->memfd.size = sz;
273 size_t sz, dl;
305 sz = offsetof(struct kdbus_msg, items);
308 sz += (1 + m->n_body_parts) * ALIGN8(offsetof(struct kdbus_item, vec) +
313 sz += ALIGN8(offsetof(struct kdbus_item, bloom_filter) +
320 sz += ALIGN8(offsetof(struct kdbus_item, str) + dl + 1);
325 sz += ALIGN8(offsetof(struct kdbus_item, fds) + sizeof(int)*m->n_fds);
327 m->kdbus = memalign(8, sz);
334 memzero(m->kdbus, sz);
404 assert(m->kdbus->size <= sz);
891 size_t l = 0, m = 0, sz;
942 sz = ALIGN8(offsetof(struct kdbus_cmd_hello, items)) +
946 sz += ALIGN8(offsetof(struct kdbus_item, creds) + sizeof(struct kdbus_creds));
949 sz += ALIGN8(offsetof(struct kdbus_item, pids) + sizeof(struct kdbus_pids));
953 sz += ALIGN8(offsetof(struct kdbus_item, str) + l + 1);
956 hello = alloca0_align(sz, 8);
957 hello->size = sz;