• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/gpu/drm/

Lines Matching defs:context

60 	if (lock->context == DRM_KERNEL_CONTEXT) {
61 DRM_ERROR("Process %d using kernel context %d\n",
62 task_pid_nr(current), lock->context);
67 lock->context, task_pid_nr(current),
71 if (lock->context < 0)
87 if (drm_lock_take(&master->lock, lock->context)) {
109 DRM_DEBUG("%d %s\n", lock->context,
122 dev->sigdata.context = lock->context;
134 lock->context);
140 dev->last_context != lock->context) {
142 lock->context);
164 if (lock->context == DRM_KERNEL_CONTEXT) {
165 DRM_ERROR("Process %d using kernel context %d\n",
166 task_pid_nr(current), lock->context);
178 if (drm_lock_free(&master->lock, lock->context)) {
190 * \param context locking context.
193 * Attempt to mark the lock as held by the given context, via the \p cmpxchg instruction.
196 unsigned int context)
207 new = context | _DRM_LOCK_HELD |
215 if (_DRM_LOCKING_CONTEXT(old) == context) {
217 if (context != DRM_KERNEL_CONTEXT) {
219 context);
225 if ((_DRM_LOCKING_CONTEXT(new)) == context && (new & _DRM_LOCK_HELD)) {
234 * This takes a lock forcibly and hands it to context. Should ONLY be used
239 * \param context locking context.
243 * Marks the lock as held by the given context, via the \p cmpxchg instruction.
246 unsigned int context)
254 new = context | _DRM_LOCK_HELD;
265 * \param context context.
271 int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context)
291 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) {
293 context, _DRM_LOCKING_CONTEXT(old));
319 || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context)
334 * with the kernel context if it is free, otherwise it gets the highest priority when and if