Lines Matching refs:f1
443 * __dma_fence_is_later - return if f1 is chronologically later than f2
444 * @f1: the first fence's seqno
448 * Returns true if f1 is chronologically later than f2. Both fences must be
451 static inline bool __dma_fence_is_later(u64 f1, u64 f2,
459 return f1 > f2;
461 return (int)(lower_32_bits(f1) - lower_32_bits(f2)) > 0;
465 * dma_fence_is_later - return if f1 is chronologically later than f2
466 * @f1: the first fence from the same context
469 * Returns true if f1 is chronologically later than f2. Both fences must be
472 static inline bool dma_fence_is_later(struct dma_fence *f1,
475 if (WARN_ON(f1->context != f2->context))
478 return __dma_fence_is_later(f1->seqno, f2->seqno, f1->ops);
483 * @f1: the first fence from the same context
490 static inline struct dma_fence *dma_fence_later(struct dma_fence *f1,
493 if (WARN_ON(f1->context != f2->context))
501 if (dma_fence_is_later(f1, f2))
502 return dma_fence_is_signaled(f1) ? NULL : f1;