/system/libufdt/utils/src/ |
D | dt_table.c | 26 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()
|
D | dt_table.h | 34 uint32_t header_size; /* sizeof(dt_table_header) */ member
|
D | mkdtboimg.py | 241 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/ |
D | record_file_writer.cpp | 147 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()
|
D | MapRecordReader.cpp | 163 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()
|
D | record_file_reader.cpp | 302 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()
|
D | record_file_format.h | 138 uint64_t header_size; member
|
D | record.cpp | 278 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/ |
D | bootimg.h | 159 uint32_t header_size; member 275 uint32_t header_size; member 305 uint32_t header_size; member
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 67 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/ |
D | bootimg_priv.rs | 159 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/ |
D | snapuserd_core.cpp | 116 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/ |
D | boot_img_filesystem.cc | 87 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/ |
D | metadata_format.h | 199 uint32_t header_size; member 390 uint32_t header_size; member
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | parser_v2.cpp | 71 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()
|
D | cow_reader.cpp | 57 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()
|
D | writer_v3.cpp | 95 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/ |
D | super_vbmeta_format_c.h | 95 uint32_t header_size; member
|
D | builder_test.cpp | 51 EXPECT_EQ(table->header.header_size, SUPER_VBMETA_HEADER_SIZE); in TEST()
|
D | reader.cpp | 71 const uint64_t descriptors_offset = offset + table->header.header_size; in ReadVBMetaTable()
|
/system/vold/ |
D | Checkpoint.cpp | 428 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/ |
D | cow_format.h | 67 uint16_t header_size; // size of CowHeader. member 298 return header.prefix.header_size + header.buffer_size; in GetSequenceOffset()
|
/system/core/fs_mgr/liblp/ |
D | reader.cpp | 193 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()
|
D | io_test.cpp | 190 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/ |
D | README.md | 19 | dt_table_header | ^ | v dt_entries_offset | header_size 193 header_size = 32
|