Lines Matching refs:context
48 int DRM(lock_take)(__volatile__ unsigned int *lock, unsigned int context) in DRM()
55 else new = context | _DRM_LOCK_HELD; in DRM()
58 if (_DRM_LOCKING_CONTEXT(old) == context) { in DRM()
60 if (context != DRM_KERNEL_CONTEXT) { in DRM()
62 context); in DRM()
67 if (new == (context | _DRM_LOCK_HELD)) { in DRM()
77 __volatile__ unsigned int *lock, unsigned int context) in DRM()
84 new = context | _DRM_LOCK_HELD; in DRM()
91 __volatile__ unsigned int *lock, unsigned int context) in DRM()
102 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in DRM()
104 context, in DRM()
113 static int DRM(flush_queue)(drm_device_t *dev, int context) in DRM()
117 drm_queue_t *q = dev->queuelist[context]; in DRM()
146 static int DRM(flush_unblock_queue)(drm_device_t *dev, int context) in DRM()
148 drm_queue_t *q = dev->queuelist[context]; in DRM()
163 int DRM(flush_block_and_flush)(drm_device_t *dev, int context, in DRM()
173 if (!ret) ret = DRM(flush_queue)(dev, context); in DRM()
183 int DRM(flush_unblock)(drm_device_t *dev, int context, drm_lock_flags_t flags) in DRM()
192 if (!ret) ret = DRM(flush_unblock_queue)(dev, context); in DRM()
215 ret = DRM(flush_block_and_flush)(dev, lock.context, lock.flags); in DRM()
216 DRM(flush_unblock)(dev, lock.context, lock.flags); in DRM()
240 || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context) return 1; in DRM()