Lines Matching refs:map_fd
82 int map_fd = -1; in TEST_F()
84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
85 ASSERT_GE(map_fd, 0); in TEST_F()
88 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
106 int map_fd = -1; in TEST_F()
108 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
109 ASSERT_GE(map_fd, 0); in TEST_F()
112 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
132 int map_fd = -1; in TEST_F()
135 ION_FLAG_CACHED, &map_fd)); in TEST_F()
136 ASSERT_GE(map_fd, 0); in TEST_F()
139 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
157 int map_fd = -1; in TEST_F()
160 ION_FLAG_CACHED, &map_fd)); in TEST_F()
161 ASSERT_GE(map_fd, 0); in TEST_F()
164 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
184 int map_fd = -1; in TEST_F()
188 &map_fd)); in TEST_F()
189 ASSERT_GE(map_fd, 0); in TEST_F()
192 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
210 int map_fd = -1; in TEST_F()
214 &map_fd)); in TEST_F()
215 ASSERT_GE(map_fd, 0); in TEST_F()
218 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()