Lines Matching refs:cursor
219 struct dma_fence *dma_resv_iter_first_unlocked(struct dma_resv_iter *cursor);
220 struct dma_fence *dma_resv_iter_next_unlocked(struct dma_resv_iter *cursor);
221 struct dma_fence *dma_resv_iter_first(struct dma_resv_iter *cursor);
222 struct dma_fence *dma_resv_iter_next(struct dma_resv_iter *cursor);
230 static inline void dma_resv_iter_begin(struct dma_resv_iter *cursor, in dma_resv_iter_begin() argument
234 cursor->obj = obj; in dma_resv_iter_begin()
235 cursor->usage = usage; in dma_resv_iter_begin()
236 cursor->fence = NULL; in dma_resv_iter_begin()
246 static inline void dma_resv_iter_end(struct dma_resv_iter *cursor) in dma_resv_iter_end() argument
248 dma_fence_put(cursor->fence); in dma_resv_iter_end()
258 dma_resv_iter_usage(struct dma_resv_iter *cursor) in dma_resv_iter_usage() argument
260 return cursor->fence_usage; in dma_resv_iter_usage()
269 static inline bool dma_resv_iter_is_restarted(struct dma_resv_iter *cursor) in dma_resv_iter_is_restarted() argument
271 return cursor->is_restarted; in dma_resv_iter_is_restarted()
289 #define dma_resv_for_each_fence_unlocked(cursor, fence) \ argument
290 for (fence = dma_resv_iter_first_unlocked(cursor); \
291 fence; fence = dma_resv_iter_next_unlocked(cursor))
306 #define dma_resv_for_each_fence(cursor, obj, usage, fence) \ argument
307 for (dma_resv_iter_begin(cursor, obj, usage), \
308 fence = dma_resv_iter_first(cursor); fence; \
309 fence = dma_resv_iter_next(cursor))