Home
last modified time | relevance | path

Searched refs:ion_alloc_fd (Results 1 – 9 of 9) sorted by relevance

/system/memory/libion/tests/
Dinvalid_values_test.cpp33 TEST_F(InvalidValues, ion_alloc_fd) { in TEST_F() argument
36 EXPECT_EQ(-ENODEV, ion_alloc_fd(ionfd, 4096, 0, 0, 0, &fd)); in TEST_F()
39 EXPECT_EQ(-EBADF, ion_alloc_fd(-1, 4096, 0, (1 << heap.heap_id), 0, &fd)); 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()
Dallocate_test.cpp35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F()
50 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), ION_FLAG_CACHED, &fd)); in TEST_F()
65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << 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()
98 ion_alloc_fd(ionfd, 3UL * 1024 * 1024 * 1024, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F()
113 ASSERT_EQ(0, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
133 ASSERT_EQ(0, ion_alloc_fd(new_ionfd, 4096, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
Dexit_test.cpp39 ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &handle_fd)); in TEST_F()
60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F()
84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
108 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
134 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
159 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
186 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
212 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F()
Dmap_test.cpp36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
Dsystem_heap.cpp41 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize(), 0, ION_HEAP_SYSTEM_MASK, 0, &fd)); in TEST_F()
/system/memory/libion/include/ion/
Dion.h35 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask,
/system/memory/libion/
Dion.c160 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc_fd() function
/system/memory/libdmabufheap/
DBufferAllocator.cpp218 ret = ion_alloc_fd(ion_fd_, len, 0, heap_config.mask, flags, &alloc_fd); in IonAlloc()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp243 int err = ion_alloc_fd(ion_fd, size, 0, ion_heap_mask, 0, &fd); in allocate()