Lines Matching defs:page
55 #include <xen/page.h>
136 * granted domain, frame is the page frame to be granted, and flags is
495 struct page *page;
529 entry->ref, page_to_pfn(entry->page),
531 put_page(entry->page);
555 static void gnttab_add_deferred(grant_ref_t ref, struct page *page)
562 if (!page) {
565 page = pfn_to_page(gfn_to_pfn(gfn));
566 get_page(page);
573 entry->page = page;
585 ref, page ? page_to_pfn(page) : -1, deferred, leaked);
590 ref, page ? page_to_pfn(page) : -1, deferred, leaked);
605 void gnttab_end_foreign_access(grant_ref_t ref, struct page *page)
608 if (page)
609 put_page(page);
611 gnttab_add_deferred(ref, page);
865 int gnttab_pages_set_private(int nr_pages, struct page **pages)
891 int gnttab_alloc_pages(int nr_pages, struct page **pages)
918 static inline struct page *cache_deq(struct gnttab_page_cache *cache)
920 struct page *page;
922 page = cache->pages;
923 cache->pages = page->zone_device_data;
925 return page;
928 static inline void cache_enq(struct gnttab_page_cache *cache, struct page *page)
930 page->zone_device_data = cache->pages;
931 cache->pages = page;
944 static inline struct page *cache_deq(struct gnttab_page_cache *cache)
946 struct page *page;
948 page = list_first_entry(&cache->pages, struct page, lru);
949 list_del(&page->lru);
951 return page;
954 static inline void cache_enq(struct gnttab_page_cache *cache, struct page *page)
956 list_add(&page->lru, &cache->pages);
968 int gnttab_page_cache_get(struct gnttab_page_cache *cache, struct page **page)
976 return gnttab_alloc_pages(1, page);
979 page[0] = cache_deq(cache);
988 void gnttab_page_cache_put(struct gnttab_page_cache *cache, struct page **page,
997 cache_enq(cache, page[i]);
1006 struct page *page[10];
1013 page[i] = cache_deq(cache);
1015 if (++i == ARRAY_SIZE(page)) {
1017 gnttab_free_pages(i, page);
1026 gnttab_free_pages(i, page);
1030 void gnttab_pages_clear_private(int nr_pages, struct page **pages)
1050 void gnttab_free_pages(int nr_pages, struct page **pages)
1088 struct page *page = pfn_to_page(pfn);
1090 args->pages[i] = page;
1091 args->frames[i] = xen_page_to_gfn(page);
1092 xenmem_reservation_scrub_page(page);
1199 void gnttab_foreach_grant_in_range(struct page *page,
1212 xen_pfn = page_to_xen_pfn(page) + XEN_PFN_DOWN(offset);
1225 void gnttab_foreach_grant(struct page **pages,
1249 struct page **pages, unsigned int count)
1294 struct page **pages, unsigned int count)