Lines Matching refs:virt
29 static inline void do_page_mapin(unsigned long phys, unsigned long virt, in do_page_mapin() argument
39 sun3_put_pte(virt, pte); in do_page_mapin()
43 print_pte_vaddr(virt); in do_page_mapin()
48 static inline void do_pmeg_mapin(unsigned long phys, unsigned long virt, in do_pmeg_mapin() argument
52 if(sun3_get_segmap(virt & ~SUN3_PMEG_MASK) == SUN3_INVALID_PMEG) in do_pmeg_mapin()
53 mmu_emu_map_pmeg(sun3_get_context(), virt); in do_pmeg_mapin()
56 do_page_mapin(phys, virt, type); in do_pmeg_mapin()
58 virt += PAGE_SIZE; in do_pmeg_mapin()
67 unsigned long offset, virt, ret; in sun3_ioremap() local
88 virt = (unsigned long)area->addr; in sun3_ioremap()
89 ret = virt + offset; in sun3_ioremap()
94 seg_pages = (SUN3_PMEG_SIZE - (virt & SUN3_PMEG_MASK)) / PAGE_SIZE; in sun3_ioremap()
98 do_pmeg_mapin(phys, virt, type, seg_pages); in sun3_ioremap()
102 virt += seg_pages * PAGE_SIZE; in sun3_ioremap()