Lines Matching refs:status_page
25 static inline int status_check(char *status_page, int status_bit) in status_check() argument
27 return status_page[status_bit >> 3] & (1 << (status_bit & 7)); in status_check()
194 char *status_page; in TEST_F() local
199 status_page = mmap(NULL, page_size, PROT_READ, MAP_SHARED, in TEST_F()
218 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
219 ASSERT_NE(NULL, status_page); in TEST_F()
220 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F()
224 ASSERT_NE(0, status_check(status_page, reg.status_bit)); in TEST_F()
228 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F()
240 ASSERT_EQ(0, munmap(status_page, page_size)); in TEST_F()
249 char *status_page; in TEST_F() local
264 status_page = mmap(NULL, page_size, PROT_READ, MAP_SHARED, in TEST_F()
273 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
274 ASSERT_NE(NULL, status_page); in TEST_F()
275 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F()
290 ASSERT_NE(0, status_check(status_page, reg.status_bit)); in TEST_F()
337 char *status_page; in TEST_F() local
339 status_page = mmap(NULL, page_size, PROT_READ, MAP_SHARED, in TEST_F()
351 ASSERT_NE(MAP_FAILED, status_page); in TEST_F()
352 ASSERT_NE(NULL, status_page); in TEST_F()
353 ASSERT_EQ(0, status_check(status_page, reg.status_bit)); in TEST_F()
372 ASSERT_NE(0, status_check(status_page, reg.status_bit)); in TEST_F()