Lines Matching refs:context

49 int drm_lock_take(__volatile__ unsigned int *lock, unsigned int context)  in drm_lock_take()  argument
56 else new = context | _DRM_LOCK_HELD; in drm_lock_take()
59 if (_DRM_LOCKING_CONTEXT(old) == context) { in drm_lock_take()
61 if (context != DRM_KERNEL_CONTEXT) { in drm_lock_take()
63 context); in drm_lock_take()
68 if (new == (context | _DRM_LOCK_HELD)) { in drm_lock_take()
78 __volatile__ unsigned int *lock, unsigned int context) in drm_lock_transfer() argument
85 new = context | _DRM_LOCK_HELD; in drm_lock_transfer()
92 __volatile__ unsigned int *lock, unsigned int context) in drm_lock_free() argument
103 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) { in drm_lock_free()
105 context, in drm_lock_free()
114 static int drm_flush_queue(drm_device_t *dev, int context) in drm_flush_queue() argument
118 drm_queue_t *q = dev->queuelist[context]; in drm_flush_queue()
148 static int drm_flush_unblock_queue(drm_device_t *dev, int context) in drm_flush_unblock_queue() argument
150 drm_queue_t *q = dev->queuelist[context]; in drm_flush_unblock_queue()
165 int drm_flush_block_and_flush(drm_device_t *dev, int context, in drm_flush_block_and_flush() argument
175 if (!ret) ret = drm_flush_queue(dev, context); in drm_flush_block_and_flush()
185 int drm_flush_unblock(drm_device_t *dev, int context, drm_lock_flags_t flags) in drm_flush_unblock() argument
194 if (!ret) ret = drm_flush_unblock_queue(dev, context); in drm_flush_unblock()
217 ret = drm_flush_block_and_flush(dev, lock.context, lock.flags); in drm_finish()
218 drm_flush_unblock(dev, lock.context, lock.flags); in drm_finish()
242 || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context) return 1; in drm_notifier()