39 INIT_LIST_HEAD(&queue->
head);
49 spin_lock(&queue->
lock);
53 spin_unlock(&queue->
lock);
66 spin_lock(&queue->
lock);
68 spin_unlock(&queue->
lock);
80 spin_lock(&queue->
lock);
83 if (list_empty(&queue->
head)) {
91 if (signaled_seqno - marker->
seqno > (1 << 30))
102 spin_unlock(&queue->
lock);
104 return (updated) ? 0 : -
EBUSY;
110 t1.tv_sec +=
t2.tv_sec;
111 t1.tv_nsec +=
t2.tv_nsec;
112 if (
t1.tv_nsec >= 1000000000L) {
114 t1.tv_nsec -= 1000000000
L;
124 spin_lock(&
queue->lock);
127 timespec_sub(now,
queue->lag_time));
128 queue->lag_time = now;
129 spin_unlock(&
queue->lock);
140 lag = vmw_fifo_lag(queue);
141 return (timespec_compare(&lag, &cond) < 1);
151 while (!vmw_lag_lt(queue, us)) {
152 spin_lock(&queue->
lock);
153 if (list_empty(&queue->
head))
158 seqno = marker->
seqno;
160 spin_unlock(&queue->
lock);