Lines Matching refs:pfn
48 unsigned long pfn, n; in expect_pfn_sg() local
50 pfn = pt->start; in expect_pfn_sg()
55 if (page_to_pfn(page) != pfn) { in expect_pfn_sg()
57 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sg()
70 pfn += npages; in expect_pfn_sg()
72 if (pfn != pt->end) { in expect_pfn_sg()
74 __func__, who, pt->end, pfn); in expect_pfn_sg()
86 unsigned long pfn; in expect_pfn_sg_page_iter() local
88 pfn = pt->start; in expect_pfn_sg_page_iter()
92 if (page != pfn_to_page(pfn)) { in expect_pfn_sg_page_iter()
94 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sg_page_iter()
101 pfn++; in expect_pfn_sg_page_iter()
103 if (pfn != pt->end) { in expect_pfn_sg_page_iter()
105 __func__, who, pt->end, pfn); in expect_pfn_sg_page_iter()
118 unsigned long pfn; in expect_pfn_sgtiter() local
120 pfn = pt->start; in expect_pfn_sgtiter()
122 if (page != pfn_to_page(pfn)) { in expect_pfn_sgtiter()
124 __func__, who, pfn, page_to_pfn(page)); in expect_pfn_sgtiter()
131 pfn++; in expect_pfn_sgtiter()
133 if (pfn != pt->end) { in expect_pfn_sgtiter()
135 __func__, who, pt->end, pfn); in expect_pfn_sgtiter()
221 unsigned long n, pfn; in alloc_table() local
239 pfn = pt->start; in alloc_table()
245 if (!page_contiguous(pfn_to_page(pfn), in alloc_table()
246 pfn_to_page(pfn + npages), in alloc_table()
254 sg_set_page(sg, pfn_to_page(pfn), npages * PAGE_SIZE, 0); in alloc_table()
256 GEM_BUG_ON(page_to_pfn(sg_page(sg)) != pfn); in alloc_table()
260 pfn += npages; in alloc_table()
264 pt->end = pfn; in alloc_table()