Lines Matching refs:context
526 if (lock.context == DRM_KERNEL_CONTEXT) { in tdfx_lock()
528 current->pid, lock.context); in tdfx_lock()
533 lock.context, current->pid, dev->lock.hw_lock->lock, in tdfx_lock()
539 if (lock.context < 0 || lock.context >= dev->queue_count) in tdfx_lock()
546 != lock.context) { in tdfx_lock()
549 if (lock.context == tdfx_res_ctx.handle && in tdfx_lock()
554 lock.context, current->pid, j, in tdfx_lock()
572 lock.context)) { in tdfx_lock()
592 if (!ret && dev->last_context != lock.context && in tdfx_lock()
593 lock.context != tdfx_res_ctx.handle && in tdfx_lock()
598 tdfx_context_switch(dev, dev->last_context, lock.context); in tdfx_lock()
609 } else if (dev->last_context != lock.context) { in tdfx_lock()
611 dev->last_context, lock.context); in tdfx_lock()
622 dev->sigdata.context = lock.context; in tdfx_lock()
638 if (lock.context != tdfx_res_ctx.handle) { in tdfx_lock()
643 DRM_DEBUG("%d %s\n", lock.context, ret ? "interrupted" : "has lock"); in tdfx_lock()
663 if (lock.context == DRM_KERNEL_CONTEXT) { in tdfx_unlock()
665 current->pid, lock.context); in tdfx_unlock()
670 lock.context, in tdfx_unlock()
685 if (lock.context != tdfx_res_ctx.handle) { in tdfx_unlock()