/system/core/libcutils/ |
D | memset_test.cpp | 126 void RunMemsetTests(test_e test_type, uint32_t value, int align[][2], size_t num_aligns) { in RunMemsetTests() 147 buf.get()+FENCEPOST_LENGTH, align[i][0], align[i][1])); in RunMemsetTests() 159 << "Failed size " << len << " align " << align[i][0] << " " << align[i][1] << "\n"; in RunMemsetTests()
|
/system/core/storaged/include/ |
D | storaged.h | 38 #define IS_ALIGNED(x, align) (!((x) & ((align) - 1))) argument 39 #define ROUND_UP(x, align) (((x) + ((align) - 1)) & ~((align) - 1)) argument
|
/system/core/libion/ |
D | ion.c | 78 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc() argument 85 .len = len, .align = align, .heap_id_mask = heap_mask, .flags = flags, in ion_alloc() 150 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc_fd() argument 166 ret = ion_alloc(fd, len, align, heap_mask, flags, &handle); in ion_alloc_fd()
|
D | ion_test.c | 33 size_t len = 1024*1024, align = 0; variable 49 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle); in _ion_alloc_test() 108 _ion_alloc_test(len, align, flags, &fd, &handle); in ion_map_test() 241 align = atol(optarg); in main() 273 " alloc_flags %d\n", test, len, align, map_flags, prot, in main()
|
/system/core/libion/include/ion/ |
D | ion.h | 33 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, 35 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
|
/system/tools/hidl/ |
D | DeathRecipientType.cpp | 77 void DeathRecipientType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 78 *align = *size = 0; // this object should only be used in passthrough mode in getAlignmentAndSize()
|
D | CompoundType.h | 145 void getAlignmentAndSize(size_t *align, size_t *size) const override; 152 size_t align; member 155 Layout() : offset(0), align(1), size(0) {} in Layout() 156 static size_t getPad(size_t offset, size_t align);
|
D | CompoundType.cpp | 575 << layout.align in emitLayoutAsserts() 668 << layout.discriminator.align << "))) "; in emitSafeUnionTypeDeclarations() 2187 void CompoundType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 2189 *align = layout.overall.align; in getAlignmentAndSize() 2203 &(discriminator.align), &(discriminator.size)); in getCompoundAlignmentAndSize() 2221 innerStruct.align = std::max(innerStruct.align, fieldAlign); in getCompoundAlignmentAndSize() 2226 innerStruct.align); in getCompoundAlignmentAndSize() 2230 innerStruct.align); in getCompoundAlignmentAndSize() 2240 overall.align = std::max(innerStruct.align, discriminator.align); in getCompoundAlignmentAndSize() 2241 overall.size += Layout::getPad(overall.size, overall.align); in getCompoundAlignmentAndSize() [all …]
|
D | MemoryType.cpp | 153 void MemoryType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 154 *align = 8; // hidl_memory in getAlignmentAndSize()
|
D | FmqType.cpp | 149 size_t *align, size_t *size) const { in getAlignmentAndSize() argument 150 *align = 8; // MQDescriptor<> in getAlignmentAndSize()
|
D | HandleType.cpp | 182 void HandleType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 183 *align = 8; // hidl_handle in getAlignmentAndSize()
|
D | VectorType.cpp | 493 size_t align, size; in emitJavaReaderWriter() local 494 getAlignmentAndSize(&align, &size); in emitJavaReaderWriter() 766 void VectorType::getAlignmentAndSizeStatic(size_t *align, size_t *size) { in getAlignmentAndSizeStatic() argument 767 *align = 8; // hidl_vec<T> in getAlignmentAndSizeStatic() 771 void VectorType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 772 VectorType::getAlignmentAndSizeStatic(align, size); in getAlignmentAndSize()
|
D | StringType.cpp | 220 void StringType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 221 *align = 8; // hidl_string in getAlignmentAndSize()
|
D | ScalarType.cpp | 285 void ScalarType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument 300 *align = *size = kAlign[mKind]; in getAlignmentAndSize()
|
D | DeathRecipientType.h | 48 void getAlignmentAndSize(size_t *align, size_t *size) const override;
|
D | VectorType.h | 134 void getAlignmentAndSize(size_t *align, size_t *size) const override; 135 static void getAlignmentAndSizeStatic(size_t *align, size_t *size);
|
D | MemoryType.h | 64 void getAlignmentAndSize(size_t *align, size_t *size) const override;
|
D | FmqType.h | 59 void getAlignmentAndSize(size_t *align, size_t *size) const override;
|
/system/netd/libnetdutils/ |
D | Netlink.cpp | 34 tail = drop(tail, align(len, 2)); in forEachNetlinkMessage() 46 tail = drop(tail, align(len, 2)); in forEachNetlinkAttribute()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Math.h | 33 inline constexpr const T align(const T& x, const int shift) { in align() function
|
/system/core/libutils/include/utils/ |
D | Flattenable.h | 35 static size_t align(size_t size) { in align() function 41 static size_t align(void const*& buffer) { in align() function 49 static size_t align(void*& buffer) { in align() function
|
/system/core/libion/kernel-headers/linux/ |
D | ion.h | 47 size_t align; member
|
/system/core/libion/original-kernel-headers/linux/ |
D | ion.h | 88 size_t align; member
|
/system/core/libmemunreachable/ |
D | Allocator.cpp | 119 static void* MapAligned(size_t size, size_t align) { in MapAligned() argument 126 size_t map_size = size + align - kPageSize; in MapAligned() 139 std::align(align, size, aligned_ptr, aligned_size); in MapAligned()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 42 AlignedAlloc(size_t size, size_t align) { in AlignedAlloc() argument 43 posix_memalign(&m_ptr, align, size); in AlignedAlloc()
|