Lines Matching refs:seqno
63 static bool vmw_fifo_idle(struct vmw_private *dev_priv, uint32_t seqno) in vmw_fifo_idle() argument
78 uint32_t seqno = ioread32(fifo_mem + SVGA_FIFO_FENCE); in vmw_update_seqno() local
80 if (dev_priv->last_read_seqno != seqno) { in vmw_update_seqno()
81 dev_priv->last_read_seqno = seqno; in vmw_update_seqno()
82 vmw_marker_pull(&fifo_state->marker_queue, seqno); in vmw_update_seqno()
88 uint32_t seqno) in vmw_seqno_passed() argument
93 if (likely(dev_priv->last_read_seqno - seqno < VMW_FENCE_WRAP)) in vmw_seqno_passed()
98 if (likely(dev_priv->last_read_seqno - seqno < VMW_FENCE_WRAP)) in vmw_seqno_passed()
102 vmw_fifo_idle(dev_priv, seqno)) in vmw_seqno_passed()
110 ret = ((atomic_read(&dev_priv->marker_seq) - seqno) in vmw_seqno_passed()
119 uint32_t seqno, in vmw_fallback_wait() argument
148 if (wait_condition(dev_priv, seqno)) in vmw_fallback_wait()
247 bool lazy, uint32_t seqno, in vmw_wait_seqno() argument
253 if (likely(dev_priv->last_read_seqno - seqno < VMW_FENCE_WRAP)) in vmw_wait_seqno()
256 if (likely(vmw_seqno_passed(dev_priv, seqno))) in vmw_wait_seqno()
262 return vmw_fallback_wait(dev_priv, lazy, true, seqno, in vmw_wait_seqno()
266 return vmw_fallback_wait(dev_priv, lazy, false, seqno, in vmw_wait_seqno()
274 vmw_seqno_passed(dev_priv, seqno), in vmw_wait_seqno()
279 vmw_seqno_passed(dev_priv, seqno), in vmw_wait_seqno()