Lines Matching refs:mem
185 void* mem = memalign(PAGE_SIZE, PAGE_SIZE); in TEST_F() local
186 ASSERT_NE(mem, NULL); in TEST_F()
187 memset(mem, 0x33, PAGE_SIZE); in TEST_F()
189 mem, PAGE_SIZE, in TEST_F()
192 printf("created memref %d for %p\n", ref, mem); in TEST_F()
195 EXPECT_EQ(*((volatile char*)mem), 0x77); in TEST_F()
198 free(mem); in TEST_F()
207 void* mem = memalign(PAGE_SIZE, PAGE_SIZE * 32); in TEST_F() local
208 ASSERT_NE(mem, NULL); in TEST_F()
209 memset(mem, 0x33, PAGE_SIZE); in TEST_F()
211 mem, PAGE_SIZE * 32, in TEST_F()
214 printf("created memref %d for %p\n", ref, mem); in TEST_F()
217 EXPECT_EQ(*((volatile char*)mem), 0x77); in TEST_F()
220 free(mem); in TEST_F()
225 void* mem = memalign(PAGE_SIZE, PAGE_SIZE); in TEST_F() local
226 ASSERT_NE(mem, NULL); in TEST_F()
227 memset(mem, 0x33, PAGE_SIZE); in TEST_F()
228 ref = memref_create(mem, PAGE_SIZE, in TEST_F()
231 printf("created memref %d for %p\n", ref, mem); in TEST_F()
235 EXPECT_EQ(*((volatile char*)mem), 0x77); in TEST_F()
238 free(mem); in TEST_F()
243 void* mem = memalign(PAGE_SIZE, PAGE_SIZE * 32); in TEST_F() local
244 ASSERT_NE(mem, NULL); in TEST_F()
245 memset(mem, 0x33, PAGE_SIZE); in TEST_F()
246 ref = memref_create(mem, PAGE_SIZE * 32, in TEST_F()
249 printf("created memref %d for %p\n", ref, mem); in TEST_F()
253 EXPECT_EQ(*((volatile char*)mem), 0x77); in TEST_F()
256 free(mem); in TEST_F()