Lines Matching refs:seqno
146 static int check_seqno(struct i915_syncmap *leaf, unsigned int idx, u32 seqno) in check_seqno() argument
154 if (__sync_seqno(leaf)[idx] != seqno) { in check_seqno()
156 __func__, idx, __sync_seqno(leaf)[idx], seqno); in check_seqno()
163 static int check_one(struct i915_syncmap **sync, u64 context, u32 seqno) in check_one() argument
167 err = i915_syncmap_set(sync, context, seqno); in check_one()
189 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); in check_one()
193 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_one()
195 context, seqno); in check_one()
238 static int check_leaf(struct i915_syncmap **sync, u64 context, u32 seqno) in check_leaf() argument
242 err = i915_syncmap_set(sync, context, seqno); in check_leaf()
258 err = check_seqno((*sync), ilog2((*sync)->bitmap), seqno); in check_leaf()
262 if (!i915_syncmap_is_later(sync, context, seqno)) { in check_leaf()
264 context, seqno); in check_leaf()
548 u32 seqno; in igt_syncmap_random() local
570 seqno = 0; in igt_syncmap_random()
575 u32 last_seqno = seqno; in igt_syncmap_random()
578 seqno = prandom_u32_state(&prng); in igt_syncmap_random()
579 expect = seqno_later(last_seqno, seqno); in igt_syncmap_random()
584 if (i915_syncmap_is_later(&sync, context, seqno) != expect) { in igt_syncmap_random()
586 context, last_seqno, seqno, expect); in igt_syncmap_random()
591 err = i915_syncmap_set(&sync, context, seqno); in igt_syncmap_random()