Searched refs:pfn_first (Results 1 – 4 of 4) sorted by relevance
/linux/arch/powerpc/kvm/ |
A D | book3s_hv_uvmem.c | 689 unsigned long pfn_last, pfn_first; in kvmppc_uvmem_get_page() local 691 pfn_first = kvmppc_uvmem_pgmap.range.start >> PAGE_SHIFT; in kvmppc_uvmem_get_page() 692 pfn_last = pfn_first + in kvmppc_uvmem_get_page() 697 pfn_last - pfn_first); in kvmppc_uvmem_get_page() 698 if (bit >= (pfn_last - pfn_first)) in kvmppc_uvmem_get_page() 707 uvmem_pfn = bit + pfn_first; in kvmppc_uvmem_get_page() 1154 unsigned long pfn_last, pfn_first; in kvmppc_uvmem_init() local 1186 pfn_first = res->start >> PAGE_SHIFT; in kvmppc_uvmem_init() 1187 pfn_last = pfn_first + (resource_size(res) >> PAGE_SHIFT); in kvmppc_uvmem_init() 1188 kvmppc_uvmem_bitmap = kcalloc(BITS_TO_LONGS(pfn_last - pfn_first), in kvmppc_uvmem_init()
|
/linux/mm/ |
A D | memremap.c | 73 static unsigned long pfn_first(struct dev_pagemap *pgmap, int range_id) in pfn_first() function 92 return pfn >= pfn_first(pgmap, i); in pgmap_pfn_valid() 113 for (pfn = pfn_first(map, i); pfn < pfn_end(map, i); pfn = pfn_next(pfn)) 145 first_page = pfn_to_page(pfn_first(pgmap, range_id)); in pageunmap_range() 299 - pfn_first(pgmap, range_id)); in pagemap_range()
|
/linux/lib/ |
A D | test_hmm.c | 460 unsigned long pfn_first; in dmirror_allocate_chunk() local 502 pfn_first = devmem->pagemap.range.start >> PAGE_SHIFT; in dmirror_allocate_chunk() 503 pfn_last = pfn_first + (range_len(&devmem->pagemap.range) >> PAGE_SHIFT); in dmirror_allocate_chunk() 512 pfn_first, pfn_last); in dmirror_allocate_chunk() 515 for (pfn = pfn_first; pfn < pfn_last; pfn++) { in dmirror_allocate_chunk()
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_dmem.c | 233 unsigned long i, pfn_first; in nouveau_dmem_chunk_alloc() local 278 pfn_first = chunk->pagemap.range.start >> PAGE_SHIFT; in nouveau_dmem_chunk_alloc() 279 page = pfn_to_page(pfn_first); in nouveau_dmem_chunk_alloc()
|
Completed in 14 milliseconds