/system/memory/libion/tests/ |
D | exit_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 39 ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &handle_fd)); in TEST_F() 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F() 66 << "failed on heap " << heap.name << ":" << heap.type << ":" << heap.heap_id in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 102 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 108 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 128 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() [all …]
|
D | allocate_test.cpp | 33 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 48 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 51 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), ION_FLAG_CACHED, &fd)); in TEST_F() 63 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 66 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 79 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 85 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 101 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 104 ion_alloc_fd(ionfd, totalRamSize, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() [all …]
|
D | map_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 85 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F() 110 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
|
D | invalid_values_test.cpp | 39 EXPECT_EQ(-EBADF, ion_alloc_fd(-1, 4096, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 41 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 43 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 0, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 45 int ret = ion_alloc_fd(ionfd, -1, 0, (1 << heap.heap_id), 0, &fd); in TEST_F() 55 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, nullptr)); in TEST_F()
|
D | heap_query.cpp | 32 << ":" << heap.heap_id); in TEST_F() 35 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F() 38 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_TYPE_DMA_MASK); in TEST_F()
|
D | system_heap.cpp | 32 EXPECT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F()
|
/system/memory/libdmabufheap/tests/ |
D | dmabuf_heap_bench.c | 62 int ion_heap_alloc(int ionfd, int heap_id, size_t len, unsigned int flags, int* dmabuf_fd) { in ion_heap_alloc() argument 67 alloc_data.heap_id_mask = 1 << heap_id; in ion_heap_alloc() 120 int heap_id; in ion_heap_bench() local 141 heap_id = MAX_HEAP_COUNT + 1; in ion_heap_bench() 144 heap_id = heap_data[i].heap_id; in ion_heap_bench() 148 if (heap_id > MAX_HEAP_COUNT) { in ion_heap_bench() 155 ret = ion_heap_alloc(ionfd, heap_id, size, flags, &dmabuf_fd); in ion_heap_bench()
|
/system/memory/libdmabufheap/ |
D | BufferAllocator.cpp | 130 int BufferAllocator::GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id) { in GetIonHeapIdByName() argument 133 *heap_id = it.heap_id; in GetIonHeapIdByName() 197 unsigned int heap_id; in GetIonConfig() local 198 ret = GetIonHeapIdByName(heap_name, &heap_id); in GetIonConfig() 200 heap_config.mask = 1 << heap_id; in GetIonConfig()
|
/system/memory/libion/original-kernel-headers/linux/ |
D | ion_4.12.h | 63 __u32 heap_id; member
|
D | ion_4.19.h | 91 __u32 heap_id; member
|
/system/memory/libion/kernel-headers/linux/ |
D | ion_4.12.h | 35 __u32 heap_id; member
|
D | ion_4.19.h | 47 __u32 heap_id; member
|
/system/memory/libdmabufheap/include/BufferAllocator/ |
D | BufferAllocator.h | 191 int GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id);
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo_test.cpp | 52 __u32 heap_id; member 528 ret |= (1 << it.heap_id); in get_ion_heap_mask()
|