/external/pigweed/pw_kvs/ |
D | flash_memory.cc | 50 uint32_t alignment_bytes, // Defaults to flash alignment in FlashPartition() argument 57 alignment_bytes == 0 in FlashPartition() 58 ? flash_.alignment_bytes() in FlashPartition() 59 : std::max(alignment_bytes, uint32_t(flash_.alignment_bytes()))), in FlashPartition() 61 uint32_t misalignment = (alignment_bytes_ % flash_.alignment_bytes()); in FlashPartition() 91 const size_t address_alignment_offset = address % alignment_bytes(); in Write() 93 const size_t size_alignment_offset = data.size() % alignment_bytes(); in Write() 110 const size_t alignment = alignment_bytes(); in IsRegionErased()
|
D | flash_partition_test.cc | 38 const size_t alignment = partition.alignment_bytes(); in WriteData() 113 ASSERT_GE(kMaxFlashAlignment, test_partition.alignment_bytes()); in TEST() 137 ASSERT_GE(kMaxFlashAlignment, test_partition.alignment_bytes()); in TEST() 185 const size_t alignment = test_partition.alignment_bytes(); in TEST() 202 if (test_partition.alignment_bytes() == 1) { in TEST() 215 if (test_partition.alignment_bytes() == 1) { in TEST() 240 const size_t alignment = test_partition.alignment_bytes(); in TEST()
|
D | entry.cc | 89 alignment_bytes_to_units(partition.alignment_bytes()), in Entry() 104 alignment_bytes(), in Write() 115 alignment_bytes_to_units(partition_->alignment_bytes()); in Update() 132 AlignedWriterBuffer<kWriteBufferSize> writer(alignment_bytes(), output); in Copy() 257 PW_LOG_DEBUG(" Alignment = 0x%x", unsigned(alignment_bytes())); in DebugLog() 313 size_t padding_to_add = Padding(content_size(), alignment_bytes()); in AddPaddingBytesToChecksum()
|
D | fake_flash_memory.cc | 96 if (address % alignment_bytes() != 0 || in Write() 97 data.size() % alignment_bytes() != 0) { in Write() 101 unsigned(alignment_bytes())); in Write()
|
D | entry_test.cc | 48 for (size_t alignment_bytes = 1; alignment_bytes <= 4096; ++alignment_bytes) { in TEST() local 49 FlashPartition partition(&flash, 0, flash.sector_count(), alignment_bytes); in TEST() 50 const size_t align = AlignUp(alignment_bytes, Entry::kMinAlignmentBytes); in TEST()
|
D | key_value_store_test.cc | 55 FlashWithPartitionFake(size_t alignment_bytes) in FlashWithPartitionFake() 56 : memory(alignment_bytes), partition(&memory, 0, memory.sector_count()) {} in FlashWithPartitionFake()
|
D | key_value_store_initialized_test.cc | 46 return AlignUp(size, test_partition.alignment_bytes()); in RoundUpForAlignment()
|
D | key_value_store.cc | 1255 DBG(" Alignment = %u", unsigned(partition_.alignment_bytes())); in LogDebugInfo()
|
/external/pigweed/pw_kvs/public/pw_kvs/ |
D | alignment.h | 51 size_t alignment_bytes, in AlignedWriter() argument 54 write_size_(AlignDown(buffer.size(), alignment_bytes)), in AlignedWriter() 55 alignment_bytes_(alignment_bytes), in AlignedWriter() 116 size_t alignment_bytes, in AlignedWrite() argument 120 if (alignment_bytes > kBufferSize) { in AlignedWrite() 124 AlignedWriterBuffer<kBufferSize> buffer(alignment_bytes, output); in AlignedWrite() 140 size_t alignment_bytes, in AlignedWrite() argument 144 alignment_bytes, in AlignedWrite()
|
D | flash_partition_with_stats.h | 77 uint32_t alignment_bytes = 0, // Defaults to flash alignment 82 alignment_bytes, in FlashPartition() argument 99 uint32_t alignment_bytes = 0, // Defaults to flash alignment 105 alignment_bytes, in FlashPartitionWithStats() argument 110 flash, 0, flash->sector_count(), flash->alignment_bytes()) {} in FlashPartitionWithStatsBuffer()
|
D | fake_flash_memory.h | 91 size_t alignment_bytes = kDefaultAlignmentBytes, 94 : FlashMemory(sector_size, sector_count, alignment_bytes), in FlashMemory() argument 156 size_t alignment_bytes = kDefaultAlignmentBytes) 157 : FakeFlashMemoryBuffer(std::array<std::byte, 0>{}, alignment_bytes) {} in FakeFlashMemoryBuffer() argument 162 size_t alignment_bytes = kDefaultAlignmentBytes) 166 alignment_bytes, in FakeFlashMemory() argument
|
D | flash_memory.h | 116 constexpr size_t alignment_bytes() const { return alignment_; } in alignment_bytes() function 173 uint32_t alignment_bytes = 0, // Defaults to flash alignment 179 flash, 0, flash->sector_count(), flash->alignment_bytes()) {} in FlashPartition() 259 size_t alignment_bytes() const { return alignment_bytes_; } in alignment_bytes() function
|
/external/pigweed/pw_kvs/public/pw_kvs/internal/ |
D | entry.h | 136 std::max(partition.alignment_bytes(), kMinAlignmentBytes)); in size() 151 size_t size() const { return AlignUp(content_size(), alignment_bytes()); } in size() 195 size_t alignment_bytes() const { return (header_.alignment_units + 1) * 16; } in alignment_bytes() function 214 static constexpr uint8_t alignment_bytes_to_units(size_t alignment_bytes) { in alignment_bytes_to_units() argument 215 return (alignment_bytes + 15) / 16 - 1; // An alignment of 0 is invalid. in alignment_bytes_to_units()
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | scoped_allocator_mgr.cc | 185 size_t alignment_bytes = Allocator::kAllocatorAlignment - overshoot; in PopulateFields() local 186 bytes_allocated += alignment_bytes; in PopulateFields() 187 offset += alignment_bytes; in PopulateFields()
|
/external/pigweed/pw_blob_store/ |
D | blob_store.cc | 33 flash_write_size_bytes_ % partition_.alignment_bytes(); in Init() 36 PW_CHECK_UINT_GE(flash_write_size_bytes_, partition_.alignment_bytes()); in Init()
|