Lines Matching refs:hw_seq
285 int hw_seq, busy_count = 0;
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 >=
354 * hw_seq and wait. However, suppose hw_seq wraps before we make it
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
374 hw_seq = *bufmgr_fake->last_dispatch;
377 if (seq - hw_seq > 0x40000000)
392 if ((ret == -EBUSY) && (hw_seq != *bufmgr_fake->last_dispatch))