Lines Matching defs:f2
446 * __dma_fence_is_later - return if f1 is chronologically later than f2
448 * @f2: the second fence's seqno from the same context
451 * Returns true if f1 is chronologically later than f2. Both fences must be
454 static inline bool __dma_fence_is_later(u64 f1, u64 f2, const struct dma_fence_ops *ops)
461 return f1 > f2;
464 return (int)(lower_32_bits(f1) - lower_32_bits(f2)) > 0;
468 * dma_fence_is_later - return if f1 is chronologically later than f2
470 * @f2: the second fence from the same context
472 * Returns true if f1 is chronologically later than f2. Both fences must be
475 static inline bool dma_fence_is_later(struct dma_fence *f1, struct dma_fence *f2)
477 if (WARN_ON(f1->context != f2->context)) {
481 return __dma_fence_is_later(f1->seqno, f2->seqno, f1->ops);
487 * @f2: the second fence from the same context
493 static inline struct dma_fence *dma_fence_later(struct dma_fence *f1, struct dma_fence *f2)
495 if (WARN_ON(f1->context != f2->context)) {
504 if (dma_fence_is_later(f1, f2)) {
507 return dma_fence_is_signaled(f2) ? NULL : f2;