Lines Matching refs:sg

19 	struct scatterlist *sg, *new_sg;  in i915_sg_trim()  local
29 for_each_sg(orig_st->sgl, sg, orig_st->nents, i) { in i915_sg_trim()
30 sg_set_page(new_sg, sg_page(sg), sg->length, 0); in i915_sg_trim()
31 sg_dma_address(new_sg) = sg_dma_address(sg); in i915_sg_trim()
32 sg_dma_len(new_sg) = sg_dma_len(sg); in i915_sg_trim()
63 struct scatterlist *sg; in i915_sg_from_mm_node() local
75 sg = st->sgl; in i915_sg_from_mm_node()
84 if (offset != prev_end || sg->length >= max_segment) { in i915_sg_from_mm_node()
86 sg = __sg_next(sg); in i915_sg_from_mm_node()
88 sg_dma_address(sg) = region_start + offset; in i915_sg_from_mm_node()
89 sg_dma_len(sg) = 0; in i915_sg_from_mm_node()
90 sg->length = 0; in i915_sg_from_mm_node()
94 len = min(block_size, max_segment - sg->length); in i915_sg_from_mm_node()
95 sg->length += len; in i915_sg_from_mm_node()
96 sg_dma_len(sg) += len; in i915_sg_from_mm_node()
104 sg_mark_end(sg); in i915_sg_from_mm_node()
132 struct scatterlist *sg; in i915_sg_from_buddy_resource() local
147 sg = st->sgl; in i915_sg_from_buddy_resource()
160 if (offset != prev_end || sg->length >= max_segment) { in i915_sg_from_buddy_resource()
162 sg = __sg_next(sg); in i915_sg_from_buddy_resource()
164 sg_dma_address(sg) = region_start + offset; in i915_sg_from_buddy_resource()
165 sg_dma_len(sg) = 0; in i915_sg_from_buddy_resource()
166 sg->length = 0; in i915_sg_from_buddy_resource()
170 len = min(block_size, max_segment - sg->length); in i915_sg_from_buddy_resource()
171 sg->length += len; in i915_sg_from_buddy_resource()
172 sg_dma_len(sg) += len; in i915_sg_from_buddy_resource()
181 sg_mark_end(sg); in i915_sg_from_buddy_resource()