Lines Matching refs:desc_entries
346 VHDXLogDescEntries *desc_entries = NULL; in vhdx_log_read_desc() local
363 desc_entries = qemu_try_blockalign(bs->file->bs, in vhdx_log_read_desc()
365 if (desc_entries == NULL) { in vhdx_log_read_desc()
370 ret = vhdx_log_read_sectors(bs, log, §ors_read, desc_entries, in vhdx_log_read_desc()
382 desc = desc_entries->desc[i]; in vhdx_log_read_desc()
385 desc_entries->desc[i] = desc; in vhdx_log_read_desc()
393 desc_entries->hdr = hdr; in vhdx_log_read_desc()
396 *buffer = desc_entries; in vhdx_log_read_desc()
400 qemu_vfree(desc_entries); in vhdx_log_read_desc()
499 VHDXLogDescEntries *desc_entries = NULL; in vhdx_log_flush() local
531 ret = vhdx_log_read_desc(bs, s, &logs->log, &desc_entries, true); in vhdx_log_flush()
536 for (i = 0; i < desc_entries->hdr.descriptor_count; i++) { in vhdx_log_flush()
537 if (desc_entries->desc[i].signature == VHDX_LOG_DESC_SIGNATURE) { in vhdx_log_flush()
551 ret = vhdx_log_flush_desc(bs, &desc_entries->desc[i], data); in vhdx_log_flush()
556 if (file_length < desc_entries->hdr.last_file_offset) { in vhdx_log_flush()
557 new_file_size = desc_entries->hdr.last_file_offset; in vhdx_log_flush()
572 qemu_vfree(desc_entries); in vhdx_log_flush()
573 desc_entries = NULL; in vhdx_log_flush()
586 qemu_vfree(desc_entries); in vhdx_log_flush()