Lines Matching full:start
46 /** @start: Start of cursor */
47 u64 start; member
63 * @dma_start: DMA start address for the current segment.
84 * @start: Start of the range
88 * Start walking over the range of allocations between @start and @size.
91 u64 start, u64 size, in xe_res_first() argument
99 XE_WARN_ON(start + size > res->size); in xe_res_first()
119 while (start >= drm_buddy_block_size(mm, block)) { in xe_res_first()
120 start -= drm_buddy_block_size(mm, block); in xe_res_first()
129 cur->start = drm_buddy_block_offset(block) + start; in xe_res_first()
130 cur->size = min(drm_buddy_block_size(mm, block) - start, in xe_res_first()
143 cur->start = start; in xe_res_first()
148 XE_WARN_ON(res && start + size > res->size); in xe_res_first()
154 u64 start = cur->start; in __xe_res_sg_next() local
156 while (start >= sg_dma_len(sgl)) { in __xe_res_sg_next()
157 start -= sg_dma_len(sgl); in __xe_res_sg_next()
162 cur->start = start; in __xe_res_sg_next()
163 cur->size = sg_dma_len(sgl) - start; in __xe_res_sg_next()
174 u64 start = cur->start; in __xe_res_dma_next() local
176 while (start >= cur->dma_seg_size) { in __xe_res_dma_next()
177 start -= cur->dma_seg_size; in __xe_res_dma_next()
184 while (cur->dma_seg_size - start < cur->remaining) { in __xe_res_dma_next()
193 cur->start = start; in __xe_res_dma_next()
194 cur->size = cur->dma_seg_size - start; in __xe_res_dma_next()
201 * @start: Start of the range
205 * Start walking over the range of allocations between @start and @size.
208 u64 start, u64 size, in xe_res_first_sg() argument
213 cur->start = start; in xe_res_first_sg()
226 * @start: Start of the range
230 * Start walking over the range of allocations between @start and @size.
233 u64 start, u64 size, in xe_res_first_dma() argument
237 XE_WARN_ON(!IS_ALIGNED(start, PAGE_SIZE) || in xe_res_first_dma()
241 cur->start = start; in xe_res_first_dma()
264 u64 start; in xe_res_next() local
274 cur->start += size; in xe_res_next()
279 cur->start += size; in xe_res_next()
285 cur->start += size; in xe_res_next()
294 start = size - cur->size; in xe_res_next()
301 while (start >= drm_buddy_block_size(cur->mm, block)) { in xe_res_next()
302 start -= drm_buddy_block_size(cur->mm, block); in xe_res_next()
308 cur->start = drm_buddy_block_offset(block) + start; in xe_res_next()
309 cur->size = min(drm_buddy_block_size(cur->mm, block) - start, in xe_res_next()
326 return cur->dma_start + cur->start; in xe_res_dma()
328 return sg_dma_address(cur->sgl) + cur->start; in xe_res_dma()
330 return cur->start; in xe_res_dma()