Lines Matching refs:mmap_map
63 struct pci_mmap_map *mmap_map; member
229 if (!par->mmap_map) in igafb_mmap()
237 for (i = 0; par->mmap_map[i].size; i++) { in igafb_mmap()
238 unsigned long start = par->mmap_map[i].voff; in igafb_mmap()
239 unsigned long end = start + par->mmap_map[i].size; in igafb_mmap()
247 map_size = par->mmap_map[i].size - (offset - start); in igafb_mmap()
248 map_offset = par->mmap_map[i].poff + (offset - start); in igafb_mmap()
258 pgprot_val(vma->vm_page_prot) &= ~(par->mmap_map[i].prot_mask); in igafb_mmap()
259 pgprot_val(vma->vm_page_prot) |= par->mmap_map[i].prot_flag; in igafb_mmap()
466 par->mmap_map = kzalloc(4 * sizeof(*par->mmap_map), GFP_ATOMIC); in igafb_init()
467 if (!par->mmap_map) { in igafb_init()
532 kfree(par->mmap_map); in igafb_init()
543 par->mmap_map[0].voff = 0x0; in igafb_init()
544 par->mmap_map[0].poff = par->frame_buffer_phys & PAGE_MASK; in igafb_init()
545 par->mmap_map[0].size = info->fix.smem_len & PAGE_MASK; in igafb_init()
546 par->mmap_map[0].prot_mask = SRMMU_CACHE; in igafb_init()
547 par->mmap_map[0].prot_flag = SRMMU_WRITE; in igafb_init()
550 par->mmap_map[1].voff = par->frame_buffer_phys & PAGE_MASK; in igafb_init()
551 par->mmap_map[1].poff = info->fix.smem_start & PAGE_MASK; in igafb_init()
552 par->mmap_map[1].size = PAGE_SIZE * 2; /* X wants 2 pages */ in igafb_init()
553 par->mmap_map[1].prot_mask = SRMMU_CACHE; in igafb_init()
554 par->mmap_map[1].prot_flag = SRMMU_WRITE; in igafb_init()