Lines Matching refs:mmap_map

1586         if (!fb->mmap_map)  in atyfb_mmap()
1607 for (i = 0; fb->mmap_map[i].size; i++) { in atyfb_mmap()
1608 unsigned long start = fb->mmap_map[i].voff; in atyfb_mmap()
1609 unsigned long end = start + fb->mmap_map[i].size; in atyfb_mmap()
1617 map_size = fb->mmap_map[i].size - (offset - start); in atyfb_mmap()
1618 map_offset = fb->mmap_map[i].poff + (offset - start); in atyfb_mmap()
1628 pgprot_val(vma->vm_page_prot) &= ~(fb->mmap_map[i].prot_mask); in atyfb_mmap()
1629 pgprot_val(vma->vm_page_prot) |= fb->mmap_map[i].prot_flag; in atyfb_mmap()
2506 info->mmap_map = kmalloc(j * sizeof(*info->mmap_map), GFP_ATOMIC); in atyfb_init()
2507 if (!info->mmap_map) { in atyfb_init()
2513 memset(info->mmap_map, 0, j * sizeof(*info->mmap_map)); in atyfb_init()
2539 info->mmap_map[j].voff = (pbase + 0x10000000) & PAGE_MASK; in atyfb_init()
2540 info->mmap_map[j].poff = base & PAGE_MASK; in atyfb_init()
2541 info->mmap_map[j].size = (size + ~PAGE_MASK) & PAGE_MASK; in atyfb_init()
2542 info->mmap_map[j].prot_mask = _PAGE_CACHE; in atyfb_init()
2543 info->mmap_map[j].prot_flag = _PAGE_E; in atyfb_init()
2552 info->mmap_map[j].voff = (pbase + 0x800000) & PAGE_MASK; in atyfb_init()
2553 info->mmap_map[j].poff = (base+0x800000) & PAGE_MASK; in atyfb_init()
2554 info->mmap_map[j].size = 0x800000; in atyfb_init()
2555 info->mmap_map[j].prot_mask = _PAGE_CACHE; in atyfb_init()
2556 info->mmap_map[j].prot_flag = _PAGE_E|_PAGE_IE; in atyfb_init()
2561 info->mmap_map[j].voff = pbase & PAGE_MASK; in atyfb_init()
2562 info->mmap_map[j].poff = base & PAGE_MASK; in atyfb_init()
2563 info->mmap_map[j].size = (size + ~PAGE_MASK) & PAGE_MASK; in atyfb_init()
2564 info->mmap_map[j].prot_mask = _PAGE_CACHE; in atyfb_init()
2565 info->mmap_map[j].prot_flag = _PAGE_E; in atyfb_init()
2943 if (info->mmap_map) in atyfb_init()
2944 kfree(info->mmap_map); in atyfb_init()
2957 info->mmap_map[0].voff = 0x8000000000000000UL; in atyfb_init()
2958 info->mmap_map[0].poff = info->frame_buffer & PAGE_MASK; in atyfb_init()
2959 info->mmap_map[0].size = info->total_vram; in atyfb_init()
2960 info->mmap_map[0].prot_mask = _PAGE_CACHE; in atyfb_init()
2961 info->mmap_map[0].prot_flag = _PAGE_E; in atyfb_init()
2962 info->mmap_map[1].voff = info->mmap_map[0].voff + info->total_vram; in atyfb_init()
2963 info->mmap_map[1].poff = info->ati_regbase & PAGE_MASK; in atyfb_init()
2964 info->mmap_map[1].size = PAGE_SIZE; in atyfb_init()
2965 info->mmap_map[1].prot_mask = _PAGE_CACHE; in atyfb_init()
2966 info->mmap_map[1].prot_flag = _PAGE_E; in atyfb_init()
3417 if (info->mmap_map) in cleanup_module()
3418 kfree(info->mmap_map); in cleanup_module()