Home
last modified time | relevance | path

Searched refs:heap_id (Results 1 – 13 of 13) 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.cpp32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F()
47 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
50 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), ION_FLAG_CACHED, &fd)); in TEST_F()
62 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << 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, &fd)); in TEST_F()
95 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F()
98 ion_alloc_fd(ionfd, 3UL * 1024 * 1024 * 1024, 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/
DBufferAllocator.cpp123 int BufferAllocator::GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id) { in GetIonHeapIdByName() argument
126 *heap_id = it.heap_id; in GetIonHeapIdByName()
175 unsigned int heap_id; in GetIonConfig() local
176 ret = GetIonHeapIdByName(heap_name, &heap_id); in GetIonConfig()
178 heap_config.mask = 1 << heap_id; in GetIonConfig()
/system/memory/libion/kernel-headers/linux/
Dion_4.12.h35 __u32 heap_id; member
Dion_4.19.h47 __u32 heap_id; member
/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/libdmabufheap/include/BufferAllocator/
DBufferAllocator.h135 int GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id);
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp47 __u32 heap_id; member
307 ret |= (1 << it.heap_id); in get_ion_heap_mask()