Lines Matching refs:map_fd
34 int map_fd = -1; in TEST_F() local
36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
37 ASSERT_GE(map_fd, 0); in TEST_F()
40 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
42 ASSERT_EQ(0, close(map_fd)); in TEST_F()
55 int map_fd = -1; in TEST_F() local
57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F()
58 ASSERT_GE(map_fd, 0); in TEST_F()
62 map_fd, 0); in TEST_F()
70 ptr = (unsigned char*)mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, in TEST_F()
76 ASSERT_EQ(0, close(map_fd)); in TEST_F()
87 int map_fd = -1; in TEST_F() local
90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
91 ASSERT_GE(map_fd, 0); in TEST_F()
94 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
96 ASSERT_EQ(0, close(map_fd)); in TEST_F()
112 int map_fd = -1; in TEST_F() local
115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
116 ASSERT_GE(map_fd, 0); in TEST_F()
119 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in TEST_F()
121 ASSERT_EQ(0, close(map_fd)); in TEST_F()