• Home
  • Raw
  • Download

Lines Matching refs:sg

55 	obj->mm.page_sizes.sg = 0;  in __i915_gem_object_set_pages()
58 obj->mm.page_sizes.sg |= BIT(i); in __i915_gem_object_set_pages()
60 GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg)); in __i915_gem_object_set_pages()
220 obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0; in __i915_gem_object_unset_pages()
508 struct scatterlist *sg; in __i915_gem_object_get_sg() local
535 sg = iter->sg_pos; in __i915_gem_object_get_sg()
537 count = dma ? __sg_dma_page_count(sg) : __sg_page_count(sg); in __i915_gem_object_get_sg()
552 ret = radix_tree_insert(&iter->radix, idx, sg); in __i915_gem_object_get_sg()
564 sg = ____sg_next(sg); in __i915_gem_object_get_sg()
565 count = dma ? __sg_dma_page_count(sg) : __sg_page_count(sg); in __i915_gem_object_get_sg()
569 iter->sg_pos = sg; in __i915_gem_object_get_sg()
582 sg = ____sg_next(sg); in __i915_gem_object_get_sg()
583 count = dma ? __sg_dma_page_count(sg) : __sg_page_count(sg); in __i915_gem_object_get_sg()
587 return sg; in __i915_gem_object_get_sg()
592 sg = radix_tree_lookup(&iter->radix, n); in __i915_gem_object_get_sg()
593 GEM_BUG_ON(!sg); in __i915_gem_object_get_sg()
602 if (unlikely(xa_is_value(sg))) { in __i915_gem_object_get_sg()
603 unsigned long base = xa_to_value(sg); in __i915_gem_object_get_sg()
605 sg = radix_tree_lookup(&iter->radix, base); in __i915_gem_object_get_sg()
606 GEM_BUG_ON(!sg); in __i915_gem_object_get_sg()
613 return sg; in __i915_gem_object_get_sg()
619 struct scatterlist *sg; in i915_gem_object_get_page() local
624 sg = i915_gem_object_get_sg(obj, n, &offset); in i915_gem_object_get_page()
625 return nth_page(sg_page(sg), offset); in i915_gem_object_get_page()
647 struct scatterlist *sg; in i915_gem_object_get_dma_address_len() local
650 sg = i915_gem_object_get_sg_dma(obj, n, &offset); in i915_gem_object_get_dma_address_len()
653 *len = sg_dma_len(sg) - (offset << PAGE_SHIFT); in i915_gem_object_get_dma_address_len()
655 return sg_dma_address(sg) + (offset << PAGE_SHIFT); in i915_gem_object_get_dma_address_len()