Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 44) sorted by relevance

12

/system/core/libcutils/
Dmemset_test.cpp126 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/
Dstoraged.h38 #define IS_ALIGNED(x, align) (!((x) & ((align) - 1))) argument
39 #define ROUND_UP(x, align) (((x) + ((align) - 1)) & ~((align) - 1)) argument
/system/core/libion/
Dion.c78 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()
Dion_test.c33 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/
Dion.h33 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/
DDeathRecipientType.cpp77 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()
DCompoundType.h145 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);
DCompoundType.cpp575 << 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 …]
DMemoryType.cpp153 void MemoryType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
154 *align = 8; // hidl_memory in getAlignmentAndSize()
DFmqType.cpp149 size_t *align, size_t *size) const { in getAlignmentAndSize() argument
150 *align = 8; // MQDescriptor<> in getAlignmentAndSize()
DHandleType.cpp182 void HandleType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
183 *align = 8; // hidl_handle in getAlignmentAndSize()
DVectorType.cpp493 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()
DStringType.cpp220 void StringType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
221 *align = 8; // hidl_string in getAlignmentAndSize()
DScalarType.cpp285 void ScalarType::getAlignmentAndSize(size_t *align, size_t *size) const { in getAlignmentAndSize() argument
300 *align = *size = kAlign[mKind]; in getAlignmentAndSize()
DDeathRecipientType.h48 void getAlignmentAndSize(size_t *align, size_t *size) const override;
DVectorType.h134 void getAlignmentAndSize(size_t *align, size_t *size) const override;
135 static void getAlignmentAndSizeStatic(size_t *align, size_t *size);
DMemoryType.h64 void getAlignmentAndSize(size_t *align, size_t *size) const override;
DFmqType.h59 void getAlignmentAndSize(size_t *align, size_t *size) const override;
/system/netd/libnetdutils/
DNetlink.cpp34 tail = drop(tail, align(len, 2)); in forEachNetlinkMessage()
46 tail = drop(tail, align(len, 2)); in forEachNetlinkAttribute()
/system/netd/libnetdutils/include/netdutils/
DMath.h33 inline constexpr const T align(const T& x, const int shift) { in align() function
/system/core/libutils/include/utils/
DFlattenable.h35 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/
Dion.h47 size_t align; member
/system/core/libion/original-kernel-headers/linux/
Dion.h88 size_t align; member
/system/core/libmemunreachable/
DAllocator.cpp119 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/
Dzram-perf.cpp42 AlignedAlloc(size_t size, size_t align) { in AlignedAlloc() argument
43 posix_memalign(&m_ptr, align, size); in AlignedAlloc()

12