Lines Matching refs:mmap_map

83     struct pci_mmap_map *mmap_map;  member
251 if (!fb->mmap_map) in igafb_mmap()
262 for (i = 0; fb->mmap_map[i].size; i++) { in igafb_mmap()
263 unsigned long start = fb->mmap_map[i].voff; in igafb_mmap()
264 unsigned long end = start + fb->mmap_map[i].size; in igafb_mmap()
272 map_size = fb->mmap_map[i].size - (offset - start); in igafb_mmap()
273 map_offset = fb->mmap_map[i].poff + (offset - start); in igafb_mmap()
283 pgprot_val(vma->vm_page_prot) &= ~(fb->mmap_map[i].prot_mask); in igafb_mmap()
284 pgprot_val(vma->vm_page_prot) |= fb->mmap_map[i].prot_flag; in igafb_mmap()
679 info->mmap_map = kmalloc(4 * sizeof(*info->mmap_map), GFP_ATOMIC); in igafb_init()
680 if (!info->mmap_map) { in igafb_init()
688 memset(info->mmap_map, 0, 4 * sizeof(*info->mmap_map)); in igafb_init()
739 if (info->mmap_map) in igafb_init()
740 kfree(info->mmap_map); in igafb_init()
750 info->mmap_map[0].voff = 0x0; in igafb_init()
751 info->mmap_map[0].poff = info->frame_buffer_phys & PAGE_MASK; in igafb_init()
752 info->mmap_map[0].size = info->total_vram & PAGE_MASK; in igafb_init()
753 info->mmap_map[0].prot_mask = SRMMU_CACHE; in igafb_init()
754 info->mmap_map[0].prot_flag = SRMMU_WRITE; in igafb_init()
757 info->mmap_map[1].voff = info->frame_buffer_phys & PAGE_MASK; in igafb_init()
758 info->mmap_map[1].poff = info->io_base_phys & PAGE_MASK; in igafb_init()
759 info->mmap_map[1].size = PAGE_SIZE * 2; /* X wants 2 pages */ in igafb_init()
760 info->mmap_map[1].prot_mask = SRMMU_CACHE; in igafb_init()
761 info->mmap_map[1].prot_flag = SRMMU_WRITE; in igafb_init()