/openbsd/sys/dev/pci/drm/include/linux/ |
H A D | scatterlist.h | 38 unsigned int nents; member 70 unsigned int nents, unsigned long pgoffset) in __sg_page_iter_start() argument 74 iter->__nents = nents; in __sg_page_iter_start() 128 #define for_each_sg(sgl, sg, nents, i) \ argument 129 for (i = 0, sg = (sgl); i < (nents); i++, sg = sg_next(sg)) 131 #define for_each_sg_page(sgl, iter, nents, pgoffset) \ argument 132 __sg_page_iter_start((iter), (sgl), (nents), (pgoffset)); \
|
/openbsd/sys/dev/pci/drm/i915/ |
H A D | i915_scatterlist.c | 21 if (orig_st->nents == orig_st->orig_nents) in i915_sg_trim() 24 if (sg_alloc_table(&new_st, orig_st->nents, GFP_KERNEL | __GFP_NOWARN)) in i915_sg_trim() 28 for_each_sg(orig_st->sgl, sg, orig_st->nents, i) { in i915_sg_trim() 113 st->nents = 0; in i915_rsgt_from_mm_node() 122 if (st->nents) in i915_rsgt_from_mm_node() 130 st->nents++; in i915_rsgt_from_mm_node() 199 st->nents = 0; in i915_rsgt_from_buddy_resource() 212 if (st->nents) in i915_rsgt_from_buddy_resource() 220 st->nents++; in i915_rsgt_from_buddy_resource()
|
H A D | i915_gem_gtt.c | 34 pages->sgl, pages->nents, in i915_gem_gtt_prepare_pages() 72 dma_unmap_sg(i915->drm.dev, pages->sgl, pages->nents, in i915_gem_gtt_finish_pages()
|
H A D | i915_vma.c | 982 st->nents++; in rotate_pages() 1001 st->nents++; in rotate_pages() 1037 st->nents = 0; in intel_rotate_pages() 1064 st->nents++; in add_padding_pages() 1112 st->nents++; in remap_tiled_color_plane_pages() 1160 st->nents++; in remap_contiguous_pages() 1247 st->nents = 0; in intel_remap_pages() 1285 st->nents = 0; in intel_partial_pages()
|
/openbsd/sys/dev/pci/drm/i915/selftests/ |
H A D | scatterlist.c | 51 for_each_sg(pt->st.sgl, sg, pt->st.nents, n) { in expect_pfn_sg() 53 unsigned int npages = npages_fn(n, pt->st.nents, rnd); in expect_pfn_sg() 89 for_each_sg_page(pt->st.sgl, &sgiter, pt->st.nents, 0) { in expect_pfn_sg_page_iter() 263 pt->st.nents = n; in alloc_table() 350 pt.st.nents != prime) { in igt_sg_trim() 352 pt.st.nents, pt.st.orig_nents, prime); in igt_sg_trim()
|
H A D | i915_vma.c | 649 if (vma->pages->nents > expected_pages) { in igt_vma_rotate_remap() 651 expected_pages, vma->pages->nents); in igt_vma_rotate_remap()
|
/openbsd/sys/dev/pci/drm/i915/gem/ |
H A D | i915_gem_internal.c | 69 st->nents = 0; in i915_gem_object_get_pages_internal() 88 st->nents++; in i915_gem_object_get_pages_internal()
|
H A D | i915_gem_shmem.c | 119 st->nents = 0; in shmem_sg_alloc_table() 181 st->nents++; in shmem_sg_alloc_table() 195 st->nents = 0; in shmem_sg_alloc_table() 208 st->nents++; in shmem_sg_alloc_table()
|
H A D | i915_gem_mman.c | 658 for_each_sg_page(pages->sgl, &sg_iter, pages->nents, 0) { in vm_fault_cpu()
|
/openbsd/sys/dev/pci/drm/i915/gem/selftests/ |
H A D | huge_pages.c | 102 st->nents = 0; in get_huge_pages() 125 st->nents++; in get_huge_pages() 235 st->nents = 0; in fake_get_huge_pages() 248 st->nents++; in fake_get_huge_pages() 283 st->nents = 1; in fake_get_huge_pages_single()
|
/openbsd/sys/dev/pci/drm/i915/gt/ |
H A D | agp_intel_gtt.c | 231 for_each_sg_page(pages->sgl, &sg_iter, pages->nents, 0) { in intel_gmch_gtt_insert_sg_entries()
|
/openbsd/sys/dev/pci/drm/ |
H A D | drm_linux.c | 1138 sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) in sg_alloc_table() argument 1140 table->sgl = mallocarray(nents, sizeof(struct scatterlist), in sg_alloc_table() 1144 table->nents = table->orig_nents = nents; in sg_alloc_table() 1145 sg_mark_end(&table->sgl[nents - 1]); in sg_alloc_table() 1159 sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, in sg_copy_from_buffer() argument
|