Lines Matching full:start
41 u64 start; member
62 * @start: Start of the range
66 * Start walking over the range of allocations between @start and @size.
69 u64 start, u64 size, in xe_res_first() argument
76 XE_WARN_ON(start + size > res->size); in xe_res_first()
96 while (start >= drm_buddy_block_size(mm, block)) { in xe_res_first()
97 start -= drm_buddy_block_size(mm, block); in xe_res_first()
106 cur->start = drm_buddy_block_offset(block) + start; in xe_res_first()
107 cur->size = min(drm_buddy_block_size(mm, block) - start, in xe_res_first()
120 cur->start = start; in xe_res_first()
125 XE_WARN_ON(res && start + size > res->size); in xe_res_first()
131 u64 start = cur->start; in __xe_res_sg_next() local
133 while (start >= sg_dma_len(sgl)) { in __xe_res_sg_next()
134 start -= sg_dma_len(sgl); in __xe_res_sg_next()
139 cur->start = start; in __xe_res_sg_next()
140 cur->size = sg_dma_len(sgl) - start; in __xe_res_sg_next()
148 * @start: Start of the range
152 * Start walking over the range of allocations between @start and @size.
155 u64 start, u64 size, in xe_res_first_sg() argument
160 cur->start = start; in xe_res_first_sg()
180 u64 start; in xe_res_next() local
190 cur->start += size; in xe_res_next()
195 cur->start += size; in xe_res_next()
204 start = size - cur->size; in xe_res_next()
211 while (start >= drm_buddy_block_size(cur->mm, block)) { in xe_res_next()
212 start -= drm_buddy_block_size(cur->mm, block); in xe_res_next()
218 cur->start = drm_buddy_block_offset(block) + start; in xe_res_next()
219 cur->size = min(drm_buddy_block_size(cur->mm, block) - start, in xe_res_next()
235 return cur->sgl ? sg_dma_address(cur->sgl) + cur->start : cur->start; in xe_res_dma()