Lines Matching refs:nx

1042         unsigned long x, nx, y = page->count_info;  in get_page_from_l1e()  local
1058 nx = (x & ~PGC_cacheattr_mask) | (cacheattr << PGC_cacheattr_base); in get_page_from_l1e()
1059 } while ( (y = cmpxchg(&page->count_info, x, nx)) != x ); in get_page_from_l1e()
1067 nx = (x & ~PGC_cacheattr_mask) | cacheattr; in get_page_from_l1e()
1068 } while ( (y = cmpxchg(&page->count_info, x, nx)) != x ); in get_page_from_l1e()
1854 unsigned long x, nx; in page_lock() local
1859 nx = x + (1 | PGT_locked); in page_lock()
1862 !(nx & PGT_count_mask) ) in page_lock()
1864 } while ( cmpxchg(&page->u.inuse.type_info, x, nx) != x ); in page_lock()
1871 unsigned long x, nx, y = page->u.inuse.type_info; in page_unlock() local
1877 nx = x - (1 | PGT_locked); in page_unlock()
1879 ASSERT(nx & PGT_count_mask); in page_unlock()
1880 } while ( (y = cmpxchg(&page->u.inuse.type_info, x, nx)) != x ); in page_unlock()
2202 unsigned long nx, x, y = page->count_info; in put_page() local
2207 nx = x - 1; in put_page()
2209 while ( unlikely((y = cmpxchg(&page->count_info, x, nx)) != x) ); in put_page()
2211 if ( unlikely((nx & PGC_count_mask) == 0) ) in put_page()
2276 unsigned long x, nx, y = page->count_info; in get_page_light() local
2280 nx = x + 1; in get_page_light()
2282 BUG_ON(!(nx & PGC_count_mask)); /* Overflow? */ in get_page_light()
2283 y = cmpxchg(&page->count_info, x, nx); in get_page_light()
2457 unsigned long nx, x, y = page->u.inuse.type_info; in _put_page_type() local
2463 nx = x - 1; in _put_page_type()
2467 if ( unlikely((nx & PGT_count_mask) == 0) ) in _put_page_type()
2469 if ( unlikely((nx & PGT_type_mask) <= PGT_l4_page_table) && in _put_page_type()
2470 likely(nx & (PGT_validated|PGT_partial)) ) in _put_page_type()
2477 nx = x & ~(PGT_validated|PGT_partial); in _put_page_type()
2479 x, nx)) != x) ) in _put_page_type()
2503 else if ( unlikely((nx & (PGT_locked | PGT_count_mask)) == in _put_page_type()
2515 if ( likely((y = cmpxchg(&page->u.inuse.type_info, x, nx)) == x) ) in _put_page_type()
2536 unsigned long nx, x, y = page->u.inuse.type_info; in __get_page_type() local
2545 nx = x + 1; in __get_page_type()
2546 if ( unlikely((nx & PGT_count_mask) == 0) ) in __get_page_type()
2588 ((nx & PGT_type_mask) == PGT_writable_page)) ) in __get_page_type()
2595 nx &= ~(PGT_type_mask | PGT_validated); in __get_page_type()
2596 nx |= type; in __get_page_type()
2603 nx |= PGT_validated; in __get_page_type()
2640 nx = x & ~PGT_partial; in __get_page_type()
2643 if ( likely((y = cmpxchg(&page->u.inuse.type_info, x, nx)) == x) ) in __get_page_type()
2667 if ( unlikely(!(nx & PGT_validated)) ) in __get_page_type()
2678 if ( (x & PGT_partial) && !(nx & PGT_partial) ) in __get_page_type()