Searched refs:page_map (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/drivers/char/agp/ |
H A D | ati-agp.c | 55 static int ati_create_page_map(struct ati_page_map *page_map) ati_create_page_map() argument 59 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); ati_create_page_map() 60 if (page_map->real == NULL) ati_create_page_map() 63 set_memory_uc((unsigned long)page_map->real, 1); ati_create_page_map() 64 err = map_page_into_agp(virt_to_page(page_map->real)); ati_create_page_map() 65 page_map->remapped = page_map->real; ati_create_page_map() 68 writel(agp_bridge->scratch_page, page_map->remapped+i); ati_create_page_map() 69 readl(page_map->remapped+i); /* PCI Posting. */ ati_create_page_map() 76 static void ati_free_page_map(struct ati_page_map *page_map) ati_free_page_map() argument 78 unmap_page_from_agp(virt_to_page(page_map->real)); ati_free_page_map() 79 set_memory_wb((unsigned long)page_map->real, 1); ati_free_page_map() 80 free_page((unsigned long) page_map->real); ati_free_page_map()
|
H A D | sworks-agp.c | 47 static int serverworks_create_page_map(struct serverworks_page_map *page_map) serverworks_create_page_map() argument 51 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); serverworks_create_page_map() 52 if (page_map->real == NULL) { serverworks_create_page_map() 56 set_memory_uc((unsigned long)page_map->real, 1); serverworks_create_page_map() 57 page_map->remapped = page_map->real; serverworks_create_page_map() 60 writel(agp_bridge->scratch_page, page_map->remapped+i); serverworks_create_page_map() 66 static void serverworks_free_page_map(struct serverworks_page_map *page_map) serverworks_free_page_map() argument 68 set_memory_wb((unsigned long)page_map->real, 1); serverworks_free_page_map() 69 free_page((unsigned long) page_map->real); serverworks_free_page_map()
|
H A D | amd-k7-agp.c | 36 static int amd_create_page_map(struct amd_page_map *page_map) amd_create_page_map() argument 40 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); amd_create_page_map() 41 if (page_map->real == NULL) amd_create_page_map() 44 set_memory_uc((unsigned long)page_map->real, 1); amd_create_page_map() 45 page_map->remapped = page_map->real; amd_create_page_map() 48 writel(agp_bridge->scratch_page, page_map->remapped+i); amd_create_page_map() 49 readl(page_map->remapped+i); /* PCI Posting. */ amd_create_page_map() 55 static void amd_free_page_map(struct amd_page_map *page_map) amd_free_page_map() argument 57 set_memory_wb((unsigned long)page_map->real, 1); amd_free_page_map() 58 free_page((unsigned long) page_map->real); amd_free_page_map()
|
/linux-4.1.27/drivers/gpu/drm/ |
H A D | drm_memory.c | 59 struct page **page_map; agp_remap() local 83 page_map = vmalloc(num_pages * sizeof(struct page *)); agp_remap() 84 if (!page_map) agp_remap() 89 page_map[i] = phys_page_map[i]; agp_remap() 90 addr = vmap(page_map, num_pages, VM_IOREMAP, PAGE_AGP); agp_remap() 91 vfree(page_map); agp_remap()
|
Completed in 166 milliseconds