Home
last modified time | relevance | path

Searched refs:header_size (Results 1 – 25 of 38) sorted by relevance

12

/system/libufdt/utils/src/
Ddt_table.c26 const uint32_t header_size = sizeof(struct dt_table_header); in dt_table_header_init() local
29 dto_memset(header, 0, header_size); in dt_table_header_init()
35 header->total_size = cpu_to_fdt32(header_size); in dt_table_header_init()
36 header->header_size = cpu_to_fdt32(header_size); in dt_table_header_init()
38 header->dt_entries_offset = cpu_to_fdt32(header_size); in dt_table_header_init()
Ddt_table.h34 uint32_t header_size; /* sizeof(dt_table_header) */ member
Dmkdtboimg.py241 self.total_size, self.header_size,
278 metadata_offset = self.header_size
294 (self.magic, self.total_size, self.header_size,
303 if self.header_size != self._DT_TABLE_HEADER_SIZE:
305 (self.header_size))
354 self.__metadata_size = (self.header_size +
410 self.header_size = self._DT_TABLE_HEADER_SIZE
501 dt_offset = (self.header_size +
/system/extras/simpleperf/
Drecord_file_writer.cpp147 char header_buf[Record::header_size()]; in WriteRecord()
150 uint32_t bytes_to_write = std::min(RECORD_SIZE_LIMIT - Record::header_size(), left_bytes); in WriteRecord()
151 header.size = bytes_to_write + Record::header_size(); in WriteRecord()
154 if (!WriteData(header_buf, Record::header_size())) { in WriteRecord()
164 header.size = Record::header_size(); in WriteRecord()
167 return WriteData(header_buf, Record::header_size()); in WriteRecord()
202 if (!Read(record_buf.data(), Record::header_size())) { in ReadDataSection()
212 if (!Read(record_buf.data() + Record::header_size(), header.size - Record::header_size())) { in ReadDataSection()
487 header.header_size = sizeof(header); in WriteFileHeader()
DMapRecordReader.cpp163 if (fread(buffer.data(), Record::header_size(), 1, fp_.get()) != 1) { in ReadMapRecords()
174 if (fread(buffer.data() + Record::header_size(), header.size - Record::header_size(), 1, in ReadMapRecords()
Drecord_file_reader.cpp302 char header_buf[Record::header_size()]; in ReadRecord()
304 if (!Read(header_buf, Record::header_size()) || !header.Parse(header_buf)) { in ReadRecord()
312 size_t add_size = header.size - Record::header_size(); in ReadRecord()
319 if (!Read(header_buf, Record::header_size()) || !header.Parse(header_buf)) { in ReadRecord()
328 if (buf.size() < Record::header_size() || !header.Parse(buf.data()) || in ReadRecord()
337 memcpy(p.get(), header_buf, Record::header_size()); in ReadRecord()
338 if (header.size > Record::header_size()) { in ReadRecord()
339 if (!Read(p.get() + Record::header_size(), header.size - Record::header_size())) { in ReadRecord()
Drecord_file_format.h138 uint64_t header_size; member
Drecord.cpp278 SetSize(header_size() + sizeof(data) + Align(filename.size() + 1, 8) + sample_id.Size()); in SetDataAndFilename()
328 SetSize(header_size() + sizeof(data) + Align(filename.size() + 1, 8) + sample_id.Size()); in SetDataAndFilename()
372 SetSize(header_size() + sizeof(data) + Align(comm.size() + 1, 8) + sample_id_size); in CommRecord()
437 SetSize(header_size() + sizeof(data) + sample_id_size); in ForkRecord()
620 uint32_t size = header_size(); in SampleRecord()
747 *reinterpret_cast<uint64_t*>(binary_ + header_size()) = ip_data.ip; in ExcludeKernelCallChain()
1091 SetSize(header_size() + sizeof(this->pid) + Align(build_id.Size(), 8) + in BuildIdRecord()
1133 uint32_t size = header_size() + sizeof(DataType); in AuxTraceInfoRecord()
1211 SetSize(header_size() + sizeof(DataType)); in AuxTraceRecord()
1255 SetSize(header_size() + 4 + Align(kallsyms.size(), 8)); in KernelSymbolRecord()
[all …]
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h159 uint32_t header_size; member
275 uint32_t header_size; member
305 uint32_t header_size; member
/system/core/fastboot/
Dbootimg_utils.cpp67 hdr->header_size = sizeof(boot_img_hdr_v3); in mkbootimg_v3_and_above()
117 hdr->header_size = sizeof(boot_img_hdr_v1); in mkbootimg()
119 hdr->header_size = sizeof(boot_img_hdr_v2); in mkbootimg()
/system/tools/mkbootimg/rust/
Dbootimg_priv.rs159 pub header_size: u32, field
196 unsafe { ::core::ptr::addr_of!((*ptr).header_size) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v1()
198 concat!("Offset of field: ", stringify!(boot_img_hdr_v1), "::", stringify!(header_size)) in bindgen_test_layout_boot_img_hdr_v1()
258 pub header_size: u32, field
298 unsafe { ::core::ptr::addr_of!((*ptr).header_size) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v3()
300 concat!("Offset of field: ", stringify!(boot_img_hdr_v3), "::", stringify!(header_size)) in bindgen_test_layout_boot_img_hdr_v3()
339 pub header_size: u32, field
434 unsafe { ::core::ptr::addr_of!((*ptr).header_size) as usize - ptr as usize }, in bindgen_test_layout_vendor_boot_img_hdr_v3()
440 stringify!(header_size) in bindgen_test_layout_vendor_boot_img_hdr_v3()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_core.cpp116 if (!android::base::WriteFully(cow_fd_, &header, header.prefix.header_size)) { in CommitMerge()
255 total_mapped_addr_length_ = header.prefix.header_size + BUFFER_REGION_DEFAULT_SIZE; in MmapMetadata()
368 return (header.prefix.header_size + sizeof(BufferState)); in GetBufferMetadataOffset()
396 return (header.prefix.header_size + GetBufferMetadataSize()); in GetBufferDataOffset()
419 reinterpret_cast<struct BufferState*>((char*)mapped_addr_ + header.prefix.header_size); in GetBufferState()
/system/update_engine/payload_generator/
Dboot_img_filesystem.cc87 size_t header_size = in CreateFromFile() local
89 brillo::Blob header_blob(header_size); in CreateFromFile()
90 if (!ReadFullyAtOffset(fd, header_blob.data(), header_size, 0)) { in CreateFromFile()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h199 uint32_t header_size; member
390 uint32_t header_size; member
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dparser_v2.cpp71 size_t init_offset = header_.prefix.header_size + header_.buffer_size; in ParseOps()
78 pos = lseek(fd.get(), header_.prefix.header_size, SEEK_SET); in ParseOps()
79 if (pos != header_.prefix.header_size) { in ParseOps()
Dcow_reader.cpp57 if (header->prefix.header_size > sizeof(CowHeaderV3)) { in ReadCowHeader()
58 LOG(ERROR) << "Unknown CowHeader size (got " << header->prefix.header_size in ReadCowHeader()
67 return android::base::ReadFully(fd, header, header->prefix.header_size); in ReadCowHeader()
111 CHECK_GE(header_.prefix.header_size, sizeof(CowHeader)); in InitForMerge()
112 CHECK_LE(header_.prefix.header_size, sizeof(header_)); in InitForMerge()
114 if (!android::base::ReadFully(fd_, &header_, header_.prefix.header_size)) { in InitForMerge()
671 if (offset < header_.prefix.header_size || offset >= fd_size_ || offset + len > fd_size_ || in GetRawBytes()
Dwriter_v3.cpp95 header_.prefix.header_size = sizeof(CowHeaderV3); in SetupHeaders()
749 CHECK_GE(header_.prefix.header_size, sizeof(CowHeaderV3)); in Finalize()
750 CHECK_LE(header_.prefix.header_size, sizeof(header_)); in Finalize()
754 if (!android::base::WriteFullyAtOffset(fd_, &header_, header_.prefix.header_size, 0)) { in Finalize()
/system/core/fs_mgr/libvbmeta/
Dsuper_vbmeta_format_c.h95 uint32_t header_size; member
Dbuilder_test.cpp51 EXPECT_EQ(table->header.header_size, SUPER_VBMETA_HEADER_SIZE); in TEST()
Dreader.cpp71 const uint64_t descriptors_offset = offset + table->header.header_size; in ReadVBMetaTable()
/system/vold/
DCheckpoint.cpp428 uint16_t header_size; member
568 uint32_t index = le - ((log_entry*)&ls_buffer[ls.header_size]); in restoreSector()
693 if (ls.header_size < sizeof(log_sector_v1_0) || ls.header_size > ls.block_size) { in cp_restoreCheckpoint()
697 if (ls.count < 1 || ls.count > (ls.block_size - ls.header_size) / sizeof(log_entry)) { in cp_restoreCheckpoint()
703 reinterpret_cast<log_entry*>(&ls_buffer[ls.header_size]) + ls.count - 1; in cp_restoreCheckpoint()
704 le >= reinterpret_cast<log_entry*>(&ls_buffer[ls.header_size]); --le) { in cp_restoreCheckpoint()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_format.h67 uint16_t header_size; // size of CowHeader. member
298 return header.prefix.header_size + header.buffer_size; in GetSequenceOffset()
/system/core/fs_mgr/liblp/
Dreader.cpp193 if (header.header_size != expected_struct_size) { in ReadMetadataHeader()
199 if (size_t remaining_bytes = header.header_size - sizeof(LpMetadataHeaderV1_0)) { in ReadMetadataHeader()
212 SHA256(&temp, temp.header_size, temp.header_checksum); in ReadMetadataHeader()
Dio_test.cpp190 EXPECT_EQ(exported->header.header_size, imported->header.header_size); in TEST_F()
770 EXPECT_EQ(imported->header.header_size, sizeof(LpMetadataHeaderV1_2)); in TEST_F()
771 EXPECT_EQ(imported->header.header_size, exported->header.header_size); in TEST_F()
/system/libufdt/utils/
DREADME.md19 | dt_table_header | ^ | v dt_entries_offset | header_size
193 header_size = 32

12