Lines Matching refs:lock
40 XVMCLOCKPTR(dev_priv->sarea_priv, i)->lock = 0; in via_init_futex()
51 volatile int *lock; in via_release_futex() local
57 lock = (volatile int *)XVMCLOCKPTR(dev_priv->sarea_priv, i); in via_release_futex()
58 if ((_DRM_LOCKING_CONTEXT(*lock) == context)) { in via_release_futex()
59 if (_DRM_LOCK_IS_HELD(*lock) in via_release_futex()
60 && (*lock & _DRM_LOCK_CONT)) { in via_release_futex()
63 *lock = 0; in via_release_futex()
71 volatile int *lock; in via_decoder_futex() local
78 if (fx->lock >= VIA_NR_XVMC_LOCKS) in via_decoder_futex()
81 lock = (volatile int *)XVMCLOCKPTR(sAPriv, fx->lock); in via_decoder_futex()
85 DRM_WAIT_ON(ret, dev_priv->decoder_queue[fx->lock], in via_decoder_futex()
86 (fx->ms / 10) * (HZ / 100), *lock != fx->val); in via_decoder_futex()
89 wake_up(&(dev_priv->decoder_queue[fx->lock])); in via_decoder_futex()