Home
last modified time | relevance | path

Searched refs:page_map (Results 1 – 7 of 7) sorted by relevance

/drivers/gpu/drm/
Ddrm_memory.c59 struct page **page_map; in agp_remap() local
83 page_map = vmalloc(num_pages * sizeof(struct page *)); in agp_remap()
84 if (!page_map) in agp_remap()
89 page_map[i] = phys_page_map[i]; in agp_remap()
90 addr = vmap(page_map, num_pages, VM_IOREMAP, PAGE_AGP); in agp_remap()
91 vfree(page_map); in agp_remap()
/drivers/char/agp/
Dati-agp.c55 static int ati_create_page_map(struct ati_page_map *page_map) in ati_create_page_map() argument
59 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); in ati_create_page_map()
60 if (page_map->real == NULL) in ati_create_page_map()
63 set_memory_uc((unsigned long)page_map->real, 1); in ati_create_page_map()
64 err = map_page_into_agp(virt_to_page(page_map->real)); in ati_create_page_map()
65 page_map->remapped = page_map->real; in ati_create_page_map()
68 writel(agp_bridge->scratch_page, page_map->remapped+i); in ati_create_page_map()
69 readl(page_map->remapped+i); /* PCI Posting. */ in ati_create_page_map()
76 static void ati_free_page_map(struct ati_page_map *page_map) in ati_free_page_map() argument
78 unmap_page_from_agp(virt_to_page(page_map->real)); in ati_free_page_map()
[all …]
Damd-k7-agp.c36 static int amd_create_page_map(struct amd_page_map *page_map) in amd_create_page_map() argument
40 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); in amd_create_page_map()
41 if (page_map->real == NULL) in amd_create_page_map()
44 set_memory_uc((unsigned long)page_map->real, 1); in amd_create_page_map()
45 page_map->remapped = page_map->real; in amd_create_page_map()
48 writel(agp_bridge->scratch_page, page_map->remapped+i); in amd_create_page_map()
49 readl(page_map->remapped+i); /* PCI Posting. */ in amd_create_page_map()
55 static void amd_free_page_map(struct amd_page_map *page_map) in amd_free_page_map() argument
57 set_memory_wb((unsigned long)page_map->real, 1); in amd_free_page_map()
58 free_page((unsigned long) page_map->real); in amd_free_page_map()
Dsworks-agp.c47 static int serverworks_create_page_map(struct serverworks_page_map *page_map) in serverworks_create_page_map() argument
51 page_map->real = (unsigned long *) __get_free_page(GFP_KERNEL); in serverworks_create_page_map()
52 if (page_map->real == NULL) { in serverworks_create_page_map()
56 set_memory_uc((unsigned long)page_map->real, 1); in serverworks_create_page_map()
57 page_map->remapped = page_map->real; in serverworks_create_page_map()
60 writel(agp_bridge->scratch_page, page_map->remapped+i); in serverworks_create_page_map()
66 static void serverworks_free_page_map(struct serverworks_page_map *page_map) in serverworks_free_page_map() argument
68 set_memory_wb((unsigned long)page_map->real, 1); in serverworks_free_page_map()
69 free_page((unsigned long) page_map->real); in serverworks_free_page_map()
/drivers/infiniband/hw/mlx4/
Dmr.c295 mr->page_map = dma_map_single(device->dma_device, mr->pages, in mlx4_alloc_priv_pages()
298 if (dma_mapping_error(device->dma_device, mr->page_map)) { in mlx4_alloc_priv_pages()
316 dma_unmap_single(device->dma_device, mr->page_map, in mlx4_free_priv_pages()
541 ib_dma_sync_single_for_cpu(ibmr->device, mr->page_map, in mlx4_ib_map_mr_sg()
546 ib_dma_sync_single_for_device(ibmr->device, mr->page_map, in mlx4_ib_map_mr_sg()
Dmlx4_ib.h137 dma_addr_t page_map; member
Dqp.c2723 fseg->buf_list = cpu_to_be64(mr->page_map); in set_reg_seg()