Lines Matching refs:page

137 	struct page * (*nopage)(struct vm_area_struct * area, unsigned long address, int unused);
155 typedef struct page { struct
159 struct page *next_hash; /* Next page sharing our hash bucket in argument
166 struct page **pprev_hash; /* Complement to *next_hash. */ argument
203 static inline struct page *nth_page(struct page *page, int n) in nth_page() argument
205 return page + n; in nth_page()
311 #define arch_set_page_uptodate(page) argument
315 #define UnlockPage(page) unlock_page(page) argument
316 #define Page_Uptodate(page) test_bit(PG_uptodate, &(page)->flags) argument
318 #define SetPageUptodate(page) set_bit(PG_uptodate, &(page)->flags) argument
320 #define ClearPageUptodate(page) clear_bit(PG_uptodate, &(page)->flags) argument
321 #define PageDirty(page) test_bit(PG_dirty, &(page)->flags) argument
322 #define SetPageDirty(page) set_bit(PG_dirty, &(page)->flags) argument
323 #define ClearPageDirty(page) clear_bit(PG_dirty, &(page)->flags) argument
324 #define PageLocked(page) test_bit(PG_locked, &(page)->flags) argument
325 #define LockPage(page) set_bit(PG_locked, &(page)->flags) argument
326 #define TryLockPage(page) test_and_set_bit(PG_locked, &(page)->flags) argument
327 #define PageChecked(page) test_bit(PG_checked, &(page)->flags) argument
328 #define SetPageChecked(page) set_bit(PG_checked, &(page)->flags) argument
329 #define ClearPageChecked(page) clear_bit(PG_checked, &(page)->flags) argument
330 #define PageLaunder(page) test_bit(PG_launder, &(page)->flags) argument
331 #define SetPageLaunder(page) set_bit(PG_launder, &(page)->flags) argument
332 #define ClearPageLaunder(page) clear_bit(PG_launder, &(page)->flags) argument
333 #define ClearPageArch1(page) clear_bit(PG_arch_1, &(page)->flags) argument
345 static inline zone_t *page_zone(struct page *page) in page_zone() argument
347 return zone_table[page->flags >> ZONE_SHIFT]; in page_zone()
350 static inline void set_page_zone(struct page *page, unsigned long zone_num) in set_page_zone() argument
352 page->flags &= ~(~0UL << ZONE_SHIFT); in set_page_zone()
353 page->flags |= zone_num << ZONE_SHIFT; in set_page_zone()
364 #define set_page_address(page, address) \ argument
366 (page)->virtual = (address); \
370 #define set_page_address(page, address) do { } while(0) argument
379 #define page_address(page) ((page)->virtual) argument
383 #define page_address(page) \ argument
384 __va( (((page) - page_zone(page)->zone_mem_map) << PAGE_SHIFT) \
385 + page_zone(page)->zone_start_paddr)
389 extern void FASTCALL(set_page_dirty(struct page *));
397 #define PageError(page) test_bit(PG_error, &(page)->flags) argument
398 #define SetPageError(page) set_bit(PG_error, &(page)->flags) argument
399 #define ClearPageError(page) clear_bit(PG_error, &(page)->flags) argument
400 #define PageReferenced(page) test_bit(PG_referenced, &(page)->flags) argument
401 #define SetPageReferenced(page) set_bit(PG_referenced, &(page)->flags) argument
402 #define ClearPageReferenced(page) clear_bit(PG_referenced, &(page)->flags) argument
403 #define PageTestandClearReferenced(page) test_and_clear_bit(PG_referenced, &(page)->flags) argument
404 #define PageSlab(page) test_bit(PG_slab, &(page)->flags) argument
405 #define PageSetSlab(page) set_bit(PG_slab, &(page)->flags) argument
406 #define PageClearSlab(page) clear_bit(PG_slab, &(page)->flags) argument
407 #define PageReserved(page) test_bit(PG_reserved, &(page)->flags) argument
409 #define PageActive(page) test_bit(PG_active, &(page)->flags) argument
410 #define SetPageActive(page) set_bit(PG_active, &(page)->flags) argument
411 #define ClearPageActive(page) clear_bit(PG_active, &(page)->flags) argument
413 #define PageLRU(page) test_bit(PG_lru, &(page)->flags) argument
414 #define TestSetPageLRU(page) test_and_set_bit(PG_lru, &(page)->flags) argument
415 #define TestClearPageLRU(page) test_and_clear_bit(PG_lru, &(page)->flags) argument
418 #define PageHighMem(page) test_bit(PG_highmem, &(page)->flags) argument
420 #define PageHighMem(page) 0 /* needed to optimize away at compile time */ argument
423 #define SetPageReserved(page) set_bit(PG_reserved, &(page)->flags) argument
424 #define ClearPageReserved(page) clear_bit(PG_reserved, &(page)->flags) argument
430 #define NOPAGE_OOM ((struct page *) (-1))
441 extern struct page * FASTCALL(_alloc_pages(unsigned int gfp_mask, unsigned int order));
442 extern struct page * FASTCALL(__alloc_pages(unsigned int gfp_mask, unsigned int order, zonelist_t *…
443 extern struct page * alloc_pages_node(int nid, unsigned int gfp_mask, unsigned int order);
445 static inline struct page * alloc_pages(unsigned int gfp_mask, unsigned int order) in alloc_pages()
474 extern void FASTCALL(__free_pages(struct page *page, unsigned int order));
477 #define __free_page(page) __free_pages((page), 0) argument
485 extern int fail_writepage(struct page *);
486 struct page * shmem_nopage(struct vm_area_struct * vma, unsigned long address, int unused);
510 int len, int write, int force, struct page **pages, struct vm_area_struct **vmas);
528 extern void free_area_init_node(int nid, pg_data_t *pgdat, struct page *pmap,
537 #define PageSwapCache(page) ((page)->mapping == &swapper_space) argument
539 static inline int is_page_cache_freeable(struct page * page) in is_page_cache_freeable() argument
541 return page_count(page) - !!page->buffers == 1; in is_page_cache_freeable()
544 extern int FASTCALL(can_share_swap_page(struct page *));
545 extern int FASTCALL(remove_exclusive_swap_page(struct page *));
598 extern void remove_inode_page(struct page *);
599 extern unsigned long page_unuse(struct page *);
604 extern struct page *filemap_nopage(struct vm_area_struct *, unsigned long, int);
710 extern struct page * vmalloc_to_page(void *addr);