Lines Matching refs:cursor
38 __dma_fence_unwrap_array(struct dma_fence_unwrap * cursor) in __dma_fence_unwrap_array() argument
40 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array()
41 cursor->index = 0; in __dma_fence_unwrap_array()
42 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array()
54 dma_fence_unwrap_first(struct dma_fence *head, struct dma_fence_unwrap *cursor) in dma_fence_unwrap_first() argument
56 cursor->chain = dma_fence_get(head); in dma_fence_unwrap_first()
57 return __dma_fence_unwrap_array(cursor); in dma_fence_unwrap_first()
68 dma_fence_unwrap_next(struct dma_fence_unwrap *cursor) in dma_fence_unwrap_next() argument
72 ++cursor->index; in dma_fence_unwrap_next()
73 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next()
77 cursor->chain = dma_fence_chain_walk(cursor->chain); in dma_fence_unwrap_next()
78 return __dma_fence_unwrap_array(cursor); in dma_fence_unwrap_next()
91 #define dma_fence_unwrap_for_each(fence, cursor, head) \ argument
92 for (fence = dma_fence_unwrap_first(head, cursor); fence; \
93 fence = dma_fence_unwrap_next(cursor))