Lines Matching refs:page_map
56 static int ati_create_page_map(struct ati_page_map *page_map) in ati_create_page_map() argument
60 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); in ati_create_page_map()
61 if (page_map->real == NULL) in ati_create_page_map()
64 set_memory_uc((unsigned long)page_map->real, 1); in ati_create_page_map()
65 err = map_page_into_agp(virt_to_page(page_map->real)); in ati_create_page_map()
66 page_map->remapped = page_map->real; in ati_create_page_map()
69 writel(agp_bridge->scratch_page, page_map->remapped+i); in ati_create_page_map()
70 readl(page_map->remapped+i); /* PCI Posting. */ in ati_create_page_map()
77 static void ati_free_page_map(struct ati_page_map *page_map) in ati_free_page_map() argument
79 unmap_page_from_agp(virt_to_page(page_map->real)); in ati_free_page_map()
80 set_memory_wb((unsigned long)page_map->real, 1); in ati_free_page_map()
81 free_page((unsigned long) page_map->real); in ati_free_page_map()