Lines Matching refs:f1
463 * __dma_fence_is_later - return if f1 is chronologically later than f2
464 * @f1: the first fence's seqno
468 * Returns true if f1 is chronologically later than f2. Both fences must be
471 static inline bool __dma_fence_is_later(u64 f1, u64 f2,
479 return f1 > f2;
481 return (int)(lower_32_bits(f1) - lower_32_bits(f2)) > 0;
485 * dma_fence_is_later - return if f1 is chronologically later than f2
486 * @f1: the first fence from the same context
489 * Returns true if f1 is chronologically later than f2. Both fences must be
492 static inline bool dma_fence_is_later(struct dma_fence *f1,
495 if (WARN_ON(f1->context != f2->context))
498 return __dma_fence_is_later(f1->seqno, f2->seqno, f1->ops);
502 * dma_fence_is_later_or_same - return true if f1 is later or same as f2
503 * @f1: the first fence from the same context
506 * Returns true if f1 is chronologically later than f2 or the same fence. Both
510 static inline bool dma_fence_is_later_or_same(struct dma_fence *f1,
513 return f1 == f2 || dma_fence_is_later(f1, f2);
518 * @f1: the first fence from the same context
525 static inline struct dma_fence *dma_fence_later(struct dma_fence *f1,
528 if (WARN_ON(f1->context != f2->context))
536 if (dma_fence_is_later(f1, f2))
537 return dma_fence_is_signaled(f1) ? NULL : f1;