Searched refs:pfn (Results 1 – 5 of 5) sorted by relevance
/tools/testing/scatterlist/ |
D | main.c | 18 #define pfn(...) (unsigned []){ __VA_ARGS__ } macro 26 unsigned *pfn; in main() member 31 { -EINVAL, 1, pfn(0), PAGE_SIZE, PAGE_SIZE + 1, 1 }, in main() 32 { -EINVAL, 1, pfn(0), PAGE_SIZE, 0, 1 }, in main() 33 { -EINVAL, 1, pfn(0), PAGE_SIZE, sgmax + 1, 1 }, in main() 34 { 0, 1, pfn(0), PAGE_SIZE, sgmax, 1 }, in main() 35 { 0, 1, pfn(0), 1, sgmax, 1 }, in main() 36 { 0, 2, pfn(0, 1), 2 * PAGE_SIZE, sgmax, 1 }, in main() 37 { 0, 2, pfn(1, 0), 2 * PAGE_SIZE, sgmax, 2 }, in main() 38 { 0, 3, pfn(0, 1, 2), 3 * PAGE_SIZE, sgmax, 1 }, in main() [all …]
|
/tools/testing/nvdimm/ |
D | pmem-dax.c | 11 long nr_pages, void **kaddr, pfn_t *pfn) in __pmem_direct_access() argument 29 if (pfn) in __pmem_direct_access() 30 *pfn = page_to_pfn_t(page); in __pmem_direct_access() 39 if (pfn) in __pmem_direct_access() 40 *pfn = phys_to_pfn_t(pmem->phys_addr + offset, pmem->pfn_flags); in __pmem_direct_access()
|
/tools/testing/selftests/vm/ |
D | transhuge-stress.c | 110 int64_t pfn; in main() local 112 pfn = allocate_transhuge(p); in main() 114 if (pfn < 0) { in main() 117 size_t idx = pfn >> (HPAGE_SHIFT - PAGE_SHIFT); in main()
|
/tools/vm/ |
D | page-types.c | 308 unsigned long pfn; in pagemap_pfn() local 311 pfn = PM_PFRAME(val); in pagemap_pfn() 313 pfn = 0; in pagemap_pfn() 315 return pfn; in pagemap_pfn() 730 unsigned long pfn; in walk_vma() local 740 pfn = pagemap_pfn(buf[i]); in walk_vma() 741 if (pfn) in walk_vma() 742 walk_pfn(index + i, pfn, 1, buf[i]); in walk_vma() 974 unsigned long nr_pages, pfn, i; in walk_file() local 1026 pfn = pagemap_pfn(buf[i]); in walk_file() [all …]
|
/tools/testing/scatterlist/linux/ |
D | mm.h | 52 #define pfn_to_page(pfn) (void *)((pfn) * PAGE_SIZE) argument
|