Lines Matching refs:pfn
751 unsigned long pfn = pte_pfn(pte); in vm_normal_page() local
758 if (!is_zero_pfn(pfn)) in vm_normal_page()
767 if (!pfn_valid(pfn)) in vm_normal_page()
773 if (pfn == vma->vm_pgoff + off) in vm_normal_page()
780 if (is_zero_pfn(pfn)) in vm_normal_page()
783 if (unlikely(pfn > highest_memmap_pfn)) { in vm_normal_page()
793 return pfn_to_page(pfn); in vm_normal_page()
1543 unsigned long pfn, pgprot_t prot) in insert_pfn() argument
1559 entry = pte_mkspecial(pfn_pte(pfn, prot)); in insert_pfn()
1588 unsigned long pfn) in vm_insert_pfn() argument
1602 BUG_ON((vma->vm_flags & VM_MIXEDMAP) && pfn_valid(pfn)); in vm_insert_pfn()
1606 if (track_pfn_insert(vma, &pgprot, pfn)) in vm_insert_pfn()
1609 ret = insert_pfn(vma, addr, pfn, pgprot); in vm_insert_pfn()
1616 unsigned long pfn) in vm_insert_mixed() argument
1630 if (!HAVE_PTE_SPECIAL && pfn_valid(pfn)) { in vm_insert_mixed()
1633 page = pfn_to_page(pfn); in vm_insert_mixed()
1636 return insert_pfn(vma, addr, pfn, vma->vm_page_prot); in vm_insert_mixed()
1647 unsigned long pfn, pgprot_t prot) in remap_pte_range() argument
1658 set_pte_at(mm, addr, pte, pte_mkspecial(pfn_pte(pfn, prot))); in remap_pte_range()
1659 pfn++; in remap_pte_range()
1668 unsigned long pfn, pgprot_t prot) in remap_pmd_range() argument
1673 pfn -= addr >> PAGE_SHIFT; in remap_pmd_range()
1681 pfn + (addr >> PAGE_SHIFT), prot)) in remap_pmd_range()
1689 unsigned long pfn, pgprot_t prot) in remap_pud_range() argument
1694 pfn -= addr >> PAGE_SHIFT; in remap_pud_range()
1701 pfn + (addr >> PAGE_SHIFT), prot)) in remap_pud_range()
1718 unsigned long pfn, unsigned long size, pgprot_t prot) in remap_pfn_range() argument
1747 vma->vm_pgoff = pfn; in remap_pfn_range()
1750 err = track_pfn_remap(vma, &prot, pfn, addr, PAGE_ALIGN(size)); in remap_pfn_range()
1757 pfn -= addr >> PAGE_SHIFT; in remap_pfn_range()
1763 pfn + (addr >> PAGE_SHIFT), prot); in remap_pfn_range()
1769 untrack_pfn(vma, pfn, PAGE_ALIGN(size)); in remap_pfn_range()
1790 unsigned long vm_len, pfn, pages; in vm_iomap_memory() local
1801 pfn = start >> PAGE_SHIFT; in vm_iomap_memory()
1803 if (pfn + pages < pfn) in vm_iomap_memory()
1809 pfn += vma->vm_pgoff; in vm_iomap_memory()
1818 return io_remap_pfn_range(vma, vma->vm_start, pfn, vm_len, vma->vm_page_prot); in vm_iomap_memory()
3466 unsigned long *pfn) in follow_pfn() argument
3478 *pfn = pte_pfn(*ptep); in follow_pfn()