Lines Matching defs:seq
262 int ret, seq = 1;
265 seq = bufmgr_fake->fence_emit(bufmgr_fake->fence_priv);
266 return seq;
269 ie.irq_seq = &seq;
277 DBG("emit 0x%08x\n", seq);
278 return seq;
282 _fence_wait_internal(drm_intel_bufmgr_fake *bufmgr_fake, int seq)
290 bufmgr_fake->fence_wait(seq, bufmgr_fake->fence_priv);
291 clear_fenced(bufmgr_fake, seq);
295 iw.irq_seq = seq;
302 * 2) It returns 0 if hw_seq >= seq, not seq - hw_seq < 0 on the 32-bit
304 * 3) It waits if seq < hw_seq, not seq - hw_seq > 0 on the 32-bit
319 * hw_seq seq
322 * seq - hw_seq = 5. If we call IRQ_WAIT, it will wait for hw to
326 * seq hw_seq
329 * seq - hw_seq = -5. If we call IRQ_WAIT, it returns 0 quickly.
332 * hw_seq seq
335 * seq - hw_seq = 0x80000000 - 5. If we called IRQ_WAIT, it would wait
336 * for hw_seq >= seq, which may never occur. Thus, we want to catch
340 * seq hw_seq
343 * seq - hw_seq = -(0x80000000 - 5). If we called IRQ_WAIT, it would
344 * return 0 quickly because hw_seq >= seq, even though the hardware
350 * hw_seq seq
353 * seq - hw_seq = 5. If we call IRQ_WAIT, it will likely see seq >=
355 * into the kernel. The kernel sees hw_seq >= seq and waits for 3
360 * hw_seq seq
363 * seq - hw_seq = 5. If we call IRQ_WAIT, if sequence 2 through 5
377 if (seq - hw_seq > 0x40000000)
383 kernel_lied = (ret == 0) && (seq - *bufmgr_fake->last_dispatch <
388 && (seq - *bufmgr_fake->last_dispatch > 0x40000000))
404 clear_fenced(bufmgr_fake, seq);