Lines Matching full:hdr

116 void vhdx_log_entry_hdr_le_import(VHDXLogEntryHeader *hdr)  in vhdx_log_entry_hdr_le_import()  argument
118 assert(hdr != NULL); in vhdx_log_entry_hdr_le_import()
120 hdr->signature = le32_to_cpu(hdr->signature); in vhdx_log_entry_hdr_le_import()
121 hdr->checksum = le32_to_cpu(hdr->checksum); in vhdx_log_entry_hdr_le_import()
122 hdr->entry_length = le32_to_cpu(hdr->entry_length); in vhdx_log_entry_hdr_le_import()
123 hdr->tail = le32_to_cpu(hdr->tail); in vhdx_log_entry_hdr_le_import()
124 hdr->sequence_number = le64_to_cpu(hdr->sequence_number); in vhdx_log_entry_hdr_le_import()
125 hdr->descriptor_count = le32_to_cpu(hdr->descriptor_count); in vhdx_log_entry_hdr_le_import()
126 leguid_to_cpus(&hdr->log_guid); in vhdx_log_entry_hdr_le_import()
127 hdr->flushed_file_offset = le64_to_cpu(hdr->flushed_file_offset); in vhdx_log_entry_hdr_le_import()
128 hdr->last_file_offset = le64_to_cpu(hdr->last_file_offset); in vhdx_log_entry_hdr_le_import()
131 void vhdx_log_entry_hdr_le_export(VHDXLogEntryHeader *hdr) in vhdx_log_entry_hdr_le_export() argument
133 assert(hdr != NULL); in vhdx_log_entry_hdr_le_export()
135 hdr->signature = cpu_to_le32(hdr->signature); in vhdx_log_entry_hdr_le_export()
136 hdr->checksum = cpu_to_le32(hdr->checksum); in vhdx_log_entry_hdr_le_export()
137 hdr->entry_length = cpu_to_le32(hdr->entry_length); in vhdx_log_entry_hdr_le_export()
138 hdr->tail = cpu_to_le32(hdr->tail); in vhdx_log_entry_hdr_le_export()
139 hdr->sequence_number = cpu_to_le64(hdr->sequence_number); in vhdx_log_entry_hdr_le_export()
140 hdr->descriptor_count = cpu_to_le32(hdr->descriptor_count); in vhdx_log_entry_hdr_le_export()
141 cpu_to_leguids(&hdr->log_guid); in vhdx_log_entry_hdr_le_export()
142 hdr->flushed_file_offset = cpu_to_le64(hdr->flushed_file_offset); in vhdx_log_entry_hdr_le_export()
143 hdr->last_file_offset = cpu_to_le64(hdr->last_file_offset); in vhdx_log_entry_hdr_le_export()
148 void vhdx_region_header_le_import(VHDXRegionTableHeader *hdr) in vhdx_region_header_le_import() argument
150 assert(hdr != NULL); in vhdx_region_header_le_import()
152 hdr->signature = le32_to_cpu(hdr->signature); in vhdx_region_header_le_import()
153 hdr->checksum = le32_to_cpu(hdr->checksum); in vhdx_region_header_le_import()
154 hdr->entry_count = le32_to_cpu(hdr->entry_count); in vhdx_region_header_le_import()
157 void vhdx_region_header_le_export(VHDXRegionTableHeader *hdr) in vhdx_region_header_le_export() argument
159 assert(hdr != NULL); in vhdx_region_header_le_export()
161 hdr->signature = cpu_to_le32(hdr->signature); in vhdx_region_header_le_export()
162 hdr->checksum = cpu_to_le32(hdr->checksum); in vhdx_region_header_le_export()
163 hdr->entry_count = cpu_to_le32(hdr->entry_count); in vhdx_region_header_le_export()
188 void vhdx_metadata_header_le_import(VHDXMetadataTableHeader *hdr) in vhdx_metadata_header_le_import() argument
190 assert(hdr != NULL); in vhdx_metadata_header_le_import()
192 hdr->signature = le64_to_cpu(hdr->signature); in vhdx_metadata_header_le_import()
193 hdr->entry_count = le16_to_cpu(hdr->entry_count); in vhdx_metadata_header_le_import()
196 void vhdx_metadata_header_le_export(VHDXMetadataTableHeader *hdr) in vhdx_metadata_header_le_export() argument
198 assert(hdr != NULL); in vhdx_metadata_header_le_export()
200 hdr->signature = cpu_to_le64(hdr->signature); in vhdx_metadata_header_le_export()
201 hdr->entry_count = cpu_to_le16(hdr->entry_count); in vhdx_metadata_header_le_export()