Home
last modified time | relevance | path

Searched refs:buffer_size (Results 1 – 20 of 20) sorted by relevance

/systemd-251/src/import/
Dimport-compress.c247 static int enlarge_buffer(void **buffer, size_t *buffer_size, size_t *buffer_allocated) { in enlarge_buffer() argument
251 if (*buffer_allocated > *buffer_size) in enlarge_buffer()
254 l = MAX(16*1024U, (*buffer_size * 2)); in enlarge_buffer()
265 …portCompress *c, const void *data, size_t size, void **buffer, size_t *buffer_size, size_t *buffer… in import_compress() argument
270 assert(buffer_size); in import_compress()
281 *buffer_size = 0; in import_compress()
293 r = enlarge_buffer(buffer, buffer_size, buffer_allocated); in import_compress()
297 c->xz.next_out = (uint8_t*) *buffer + *buffer_size; in import_compress()
298 c->xz.avail_out = *buffer_allocated - *buffer_size; in import_compress()
304 *buffer_size += (*buffer_allocated - *buffer_size) - c->xz.avail_out; in import_compress()
[all …]
Dimport-tar.c53 size_t buffer_size; member
268 assert(i->buffer_size < sizeof(i->buffer)); in tar_import_process()
270 l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size); in tar_import_process()
279 i->buffer_size += l; in tar_import_process()
287 r = import_uncompress_detect(&i->compress, i->buffer, i->buffer_size); in tar_import_process()
301 r = import_uncompress(&i->compress, i->buffer, i->buffer_size, tar_import_write, i); in tar_import_process()
307 i->written_compressed += i->buffer_size; in tar_import_process()
308 i->buffer_size = 0; in tar_import_process()
Dexport-raw.c45 size_t buffer_size; member
178 while (e->buffer_size <= 0) { in raw_export_process()
194 … r = import_compress_finish(&e->compress, &e->buffer, &e->buffer_size, &e->buffer_allocated); in raw_export_process()
197 … r = import_compress(&e->compress, input, l, &e->buffer, &e->buffer_size, &e->buffer_allocated); in raw_export_process()
205 l = write(e->output_fd, e->buffer, e->buffer_size); in raw_export_process()
214 assert((size_t) l <= e->buffer_size); in raw_export_process()
215 memmove(e->buffer, (uint8_t*) e->buffer + l, e->buffer_size - l); in raw_export_process()
216 e->buffer_size -= l; in raw_export_process()
Dexport-tar.c35 size_t buffer_size; member
187 while (e->buffer_size <= 0) { in tar_export_process()
203 … r = import_compress_finish(&e->compress, &e->buffer, &e->buffer_size, &e->buffer_allocated); in tar_export_process()
206 … r = import_compress(&e->compress, input, l, &e->buffer, &e->buffer_size, &e->buffer_allocated); in tar_export_process()
214 l = write(e->output_fd, e->buffer, e->buffer_size); in tar_export_process()
223 assert((size_t) l <= e->buffer_size); in tar_export_process()
224 memmove(e->buffer, (uint8_t*) e->buffer + l, e->buffer_size - l); in tar_export_process()
225 e->buffer_size -= l; in tar_export_process()
Dimport-raw.c52 size_t buffer_size; member
336 if ((uint64_t) p != (uint64_t) i->buffer_size) in raw_import_try_reflink()
402 assert(i->buffer_size < sizeof(i->buffer)); in raw_import_process()
404 l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size); in raw_import_process()
413 i->buffer_size += l; in raw_import_process()
421 r = import_uncompress_detect(&i->compress, i->buffer, i->buffer_size); in raw_import_process()
441 r = import_uncompress(&i->compress, i->buffer, i->buffer_size, raw_import_write, i); in raw_import_process()
447 i->written_compressed += i->buffer_size; in raw_import_process()
448 i->buffer_size = 0; in raw_import_process()
Dimport-compress.h44 …portCompress *c, const void *data, size_t size, void **buffer, size_t *buffer_size, size_t *buffer…
45 int import_compress_finish(ImportCompress *c, void **buffer, size_t *buffer_size, size_t *buffer_al…
/systemd-251/src/boot/efi/
Dmeasure.c17 UINTN buffer_size, in tpm1_measure_to_pcr_and_event_log() argument
39 buffer, buffer_size, in tpm1_measure_to_pcr_and_event_log()
50 UINT64 buffer_size, in tpm2_measure_to_pcr_and_event_log() argument
74 buffer, buffer_size, in tpm2_measure_to_pcr_and_event_log()
142 EFI_STATUS tpm_log_event(UINT32 pcrindex, EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHA… in tpm_log_event() argument
154 … return tpm2_measure_to_pcr_and_event_log(tpm2, pcrindex, buffer, buffer_size, description); in tpm_log_event()
158 … return tpm1_measure_to_pcr_and_event_log(tpm1, pcrindex, buffer, buffer_size, description); in tpm_log_event()
Dinitrd.c44 UINTN *buffer_size, in initrd_load_file() argument
49 if (!this || !buffer_size || !file_path) in initrd_load_file()
59 if (!buffer || *buffer_size < loader->length) { in initrd_load_file()
60 *buffer_size = loader->length; in initrd_load_file()
65 *buffer_size = loader->length; in initrd_load_file()
Dcpio.c321 UINTN dirent_size = 0, buffer_size = 0, n_items = 0, n_allocated = 0; in pack_cpio() local
425 err = pack_cpio_prefix(target_dir_prefix, dir_mode, &inode, &buffer, &buffer_size); in pack_cpio()
445 &buffer, &buffer_size); in pack_cpio()
450 err = pack_cpio_trailer(&buffer, &buffer_size); in pack_cpio()
458 buffer_size, in pack_cpio()
465 *ret_buffer_size = buffer_size; in pack_cpio()
Dmeasure.h23 EFI_STATUS tpm_log_event(UINT32 pcrindex, EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHA…
32 …ATUS tpm_log_event(UINT32 pcrindex, EFI_PHYSICAL_ADDRESS buffer, UINTN buffer_size, const CHAR16 *… in tpm_log_event() argument
Dutil.c531 UINTN *buffer_size) { in readdir_harder() argument
538 assert(buffer_size); in readdir_harder()
551 *buffer_size = sz; in readdir_harder()
553 sz = *buffer_size; in readdir_harder()
559 *buffer_size = sz; in readdir_harder()
569 *buffer_size = 0; in readdir_harder()
Dutil.h117 EFI_STATUS readdir_harder(EFI_FILE *handle, EFI_FILE_INFO **buffer, UINTN *buffer_size);
/systemd-251/src/basic/
Drecurse-dir.c49 de->buffer_size = 0; in readdir_all()
55 assert(bs > de->buffer_size); in readdir_all()
57 … n = getdents64(dir_fd, (uint8_t*) de->buffer + de->buffer_size, bs - de->buffer_size); in readdir_all()
63 msan_unpoison((uint8_t*) de->buffer + de->buffer_size, n); in readdir_all()
65 de->buffer_size += n; in readdir_all()
67 … if (de->buffer_size < bs - DIRENT_SIZE_MAX) /* Still room for one more entry, then try to in readdir_all()
83 FOREACH_DIRENT_IN_BUFFER(entry, de->buffer, de->buffer_size) { in readdir_all()
90 sz = ALIGN(offsetof(DirectoryEntries, buffer) + de->buffer_size); in readdir_all()
100 … = (struct dirent**) ((uint8_t*) de + ALIGN(offsetof(DirectoryEntries, buffer) + de->buffer_size)); in readdir_all()
103 FOREACH_DIRENT_IN_BUFFER(entry, de->buffer, de->buffer_size) { in readdir_all()
Drecurse-dir.h73 size_t buffer_size; member
/systemd-251/src/shared/
Dtpm2-util.h40 …2B_PRIVATE_Marshal)(TPM2B_PRIVATE const *src, uint8_t buffer[], size_t buffer_size, size_t *offset…
41 extern TSS2_RC (*sym_Tss2_MU_TPM2B_PRIVATE_Unmarshal)(uint8_t const buffer[], size_t buffer_size, s…
42 …PM2B_PUBLIC_Marshal)(TPM2B_PUBLIC const *src, uint8_t buffer[], size_t buffer_size, size_t *offset…
43 extern TSS2_RC (*sym_Tss2_MU_TPM2B_PUBLIC_Unmarshal)(uint8_t const buffer[], size_t buffer_size, si…
Dtpm2-util.c48 …2B_PRIVATE_Marshal)(TPM2B_PRIVATE const *src, uint8_t buffer[], size_t buffer_size, size_t *offset…
49 TSS2_RC (*sym_Tss2_MU_TPM2B_PRIVATE_Unmarshal)(uint8_t const buffer[], size_t buffer_size, size_t *…
50 …PM2B_PUBLIC_Marshal)(TPM2B_PUBLIC const *src, uint8_t buffer[], size_t buffer_size, size_t *offset…
51 TSS2_RC (*sym_Tss2_MU_TPM2B_PUBLIC_Unmarshal)(uint8_t const buffer[], size_t buffer_size, size_t *o…
/systemd-251/src/journal/
Djournald-native.c297 const char *buffer, size_t buffer_size, in server_process_native_message() argument
302 size_t remaining = buffer_size; in server_process_native_message()
307 assert(buffer || buffer_size == 0); in server_process_native_message()
317 … (const uint8_t*) buffer + (buffer_size - remaining), &remaining, in server_process_native_message()
Djournald-audit.c416 size_t buffer_size, in server_process_audit_message() argument
425 if (buffer_size < ALIGN(sizeof(struct nlmsghdr))) in server_process_audit_message()
444 if (!NLMSG_OK(nl, buffer_size)) { in server_process_audit_message()
Djournald-audit.h7 void server_process_audit_message(Server *s, const void *buffer, size_t buffer_size, const struct u…
Djournald-native.h9 size_t buffer_size,