Searched refs:pfn_base (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/arch/riscv/include/asm/ |
D | page.h | 90 extern unsigned long pfn_base; 112 (((pfn) >= pfn_base) && (((pfn)-pfn_base) < max_mapnr)) 114 #define ARCH_PFN_OFFSET (pfn_base)
|
/Linux-v4.19/arch/sparc/mm/ |
D | init_32.c | 49 unsigned long pfn_base; variable 50 EXPORT_SYMBOL(pfn_base); 86 unsigned long tmp = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in calc_max_low_pfn() 185 if (max_low_pfn > pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT)) { in bootmem_init() 186 highstart_pfn = pfn_base + (SRMMU_MAXMEM >> PAGE_SHIFT); in bootmem_init() 278 max_mapnr = last_valid_pfn - pfn_base; in mem_init()
|
D | srmmu.c | 982 npages = max_low_pfn - pfn_base; in srmmu_paging_init() 991 free_area_init_node(0, zones_size, pfn_base, zholes_size); in srmmu_paging_init()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | page_32.h | 122 extern unsigned long pfn_base; 130 #define ARCH_PFN_OFFSET (pfn_base) 133 #define pfn_valid(pfn) (((pfn) >= (pfn_base)) && (((pfn)-(pfn_base)) < max_mapnr))
|
D | pgtable_32.h | 89 extern unsigned long pfn_base;
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | gtt.c | 423 unsigned pfn_base; in psb_gtt_init() local 539 pfn_base = dev_priv->stolen_base >> PAGE_SHIFT; in psb_gtt_init() 542 num_pages, pfn_base << PAGE_SHIFT, 0); in psb_gtt_init() 544 pte = psb_gtt_mask_pte(pfn_base + i, PSB_MMU_CACHED_MEMORY); in psb_gtt_init() 552 pfn_base = page_to_pfn(dev_priv->scratch_page); in psb_gtt_init() 553 pte = psb_gtt_mask_pte(pfn_base, PSB_MMU_CACHED_MEMORY); in psb_gtt_init()
|
/Linux-v4.19/arch/riscv/kernel/ |
D | setup.c | 76 unsigned long pfn_base; variable 77 EXPORT_SYMBOL(pfn_base); 130 pfn_base = PFN_DOWN(pa); in setup_vm()
|
/Linux-v4.19/kernel/dma/ |
D | coherent.c | 15 unsigned long pfn_base; member 36 return (mem->pfn_base - dev->dma_pfn_offset) << PAGE_SHIFT; in dma_get_device_base() 74 dma_mem->pfn_base = PFN_DOWN(phys_addr); in dma_init_coherent_memory() 294 unsigned long pfn = mem->pfn_base + start + off; in __dma_mmap_from_coherent()
|
/Linux-v4.19/drivers/vfio/ |
D | vfio_iommu_type1.c | 397 long npage, unsigned long *pfn_base, in vfio_pin_pages_remote() argument 409 ret = vaddr_get_pfn(current->mm, vaddr, dma->prot, pfn_base); in vfio_pin_pages_remote() 414 rsvd = is_invalid_reserved_pfn(*pfn_base); in vfio_pin_pages_remote() 422 put_pfn(*pfn_base, dma->prot); in vfio_pin_pages_remote() 440 if (pfn != *pfn_base + pinned || in vfio_pin_pages_remote() 465 for (pfn = *pfn_base ; pinned ; pfn++, pinned--) in vfio_pin_pages_remote() 497 unsigned long *pfn_base, bool do_accounting) in vfio_pin_page_external() argument 506 ret = vaddr_get_pfn(mm, vaddr, dma->prot, pfn_base); in vfio_pin_page_external() 507 if (!ret && do_accounting && !is_invalid_reserved_pfn(*pfn_base)) { in vfio_pin_page_external() 510 put_pfn(*pfn_base, dma->prot); in vfio_pin_page_external()
|
/Linux-v4.19/arch/sparc/kernel/ |
D | setup_32.c | 354 pfn_base = phys_base >> PAGE_SHIFT; in setup_arch()
|