Lines Matching refs:npages
53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); in expect_pfn_sg() local
61 if (sg->length != npages * PAGE_SIZE) { in expect_pfn_sg()
63 __func__, who, npages * PAGE_SIZE, sg->length); in expect_pfn_sg()
70 pfn += npages; in expect_pfn_sg()
209 unsigned long npages) in page_contiguous() argument
211 return first + npages == last; in page_contiguous()
238 unsigned long npages = npages_fn(n, count, rnd); in alloc_table() local
242 pfn_to_page(pfn + npages), in alloc_table()
243 npages)) { in alloc_table()
250 sg_set_page(sg, pfn_to_page(pfn), npages * PAGE_SIZE, 0); in alloc_table()
253 GEM_BUG_ON(sg->length != npages * PAGE_SIZE); in alloc_table()
256 pfn += npages; in alloc_table()
288 const npages_fn_t *npages; in igt_sg_alloc() local
292 for (npages = npages_funcs; *npages; npages++) { in igt_sg_alloc()
295 err = alloc_table(&pt, sz, sz, *npages, &prng, in igt_sg_alloc()
304 err = expect_pfn_sgtable(&pt, *npages, &prng, in igt_sg_alloc()
330 const npages_fn_t *npages; in igt_sg_trim() local
333 for (npages = npages_funcs; *npages; npages++) { in igt_sg_trim()
337 err = alloc_table(&pt, prime, max, *npages, &prng, in igt_sg_trim()
354 *npages, &prng, in igt_sg_trim()