Home
last modified time | relevance | path

Searched refs:heap_id (Results 1 – 14 of 14) sorted by relevance

/system/memory/libion/tests/
Dexit_test.cpp32 << "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 …]
Dallocate_test.cpp33 << "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 …]
Dmap_test.cpp32 << "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()
Dinvalid_values_test.cpp39 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()
Dheap_query.cpp32 << ":" << 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()
Dsystem_heap.cpp32 EXPECT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F()
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_bench.c62 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/
DBufferAllocator.cpp130 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/
Dion_4.12.h63 __u32 heap_id; member
Dion_4.19.h91 __u32 heap_id; member
/system/memory/libion/kernel-headers/linux/
Dion_4.12.h35 __u32 heap_id; member
Dion_4.19.h47 __u32 heap_id; member
/system/memory/libdmabufheap/include/BufferAllocator/
DBufferAllocator.h191 int GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id);
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp52 __u32 heap_id; member
528 ret |= (1 << it.heap_id); in get_ion_heap_mask()