Lines Matching refs:pfn
47 unsigned long pfn, n; in expect_pfn_sg() local
49 pfn = pt->start; in expect_pfn_sg()
54 if (page_to_pfn(page) != pfn) { in expect_pfn_sg()
56 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sg()
69 pfn += npages; in expect_pfn_sg()
71 if (pfn != pt->end) { in expect_pfn_sg()
73 __func__, who, pt->end, pfn); in expect_pfn_sg()
85 unsigned long pfn; in expect_pfn_sg_page_iter() local
87 pfn = pt->start; in expect_pfn_sg_page_iter()
91 if (page != pfn_to_page(pfn)) { in expect_pfn_sg_page_iter()
93 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sg_page_iter()
100 pfn++; in expect_pfn_sg_page_iter()
102 if (pfn != pt->end) { in expect_pfn_sg_page_iter()
104 __func__, who, pt->end, pfn); in expect_pfn_sg_page_iter()
117 unsigned long pfn; in expect_pfn_sgtiter() local
119 pfn = pt->start; in expect_pfn_sgtiter()
121 if (page != pfn_to_page(pfn)) { in expect_pfn_sgtiter()
123 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sgtiter()
130 pfn++; in expect_pfn_sgtiter()
132 if (pfn != pt->end) { in expect_pfn_sgtiter()
134 __func__, who, pt->end, pfn); in expect_pfn_sgtiter()
206 unsigned long n, pfn; in alloc_table() local
220 pfn = pt->start; in alloc_table()
226 if (!page_contiguous(pfn_to_page(pfn), in alloc_table()
227 pfn_to_page(pfn + npages), in alloc_table()
235 sg_set_page(sg, pfn_to_page(pfn), npages * PAGE_SIZE, 0); in alloc_table()
237 GEM_BUG_ON(page_to_pfn(sg_page(sg)) != pfn); in alloc_table()
241 pfn += npages; in alloc_table()
245 pt->end = pfn; in alloc_table()