/solaris-x11-s11/open-src/kernel/efb/src/ |
H A D | drm_lock.c | 6 * lock.c -- IOCTLs for locking -*- linux-c -*- 45 volatile unsigned int *lock = &lock_data->hw_lock->lock; local 48 old = *lock; 53 prev = atomic_cas_uint(lock, old, new); 59 DRM_ERROR("%d holds heavyweight lock\n", 67 /* Have lock */ 74 * This takes a lock forcibly and hands it to context. Should ONLY be used 75 * inside *_unlock to give lock to kernel before calling *_dma_schedule. 78 drm_lock_transfer(drm_device_t *dev, volatile unsigned int *lock, argument 94 drm_lock_free(drm_device_t *dev, volatile unsigned int *lock, unsigned int context) argument 124 drm_lock_t lock; local 165 drm_lock_t lock; local [all...] |
H A D | drm_drv.c | 307 if (dev->lock.hw_lock) { 308 dev->lock.hw_lock = NULL; /* SHM removed */ 309 dev->lock.filp = NULL; 311 mutex_enter(&(dev->lock.lock_mutex)); 312 cv_broadcast(&(dev->lock.lock_cv)); 313 mutex_exit(&(dev->lock.lock_mutex)); 324 cv_init(&(dev->lock.lock_cv), NULL, CV_DRIVER, NULL); 325 mutex_init(&(dev->lock.lock_mutex), NULL, MUTEX_DRIVER, NULL); 367 cv_destroy(&(dev->lock.lock_cv)); 368 mutex_destroy(&(dev->lock [all...] |
H A D | drm_sarea.h | 78 struct drm_hw_lock lock; member in struct:drm_sarea 79 /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
|
H A D | drmP.h | 198 kmutex_t lock; member in struct:drm_wait_queue 204 mutex_init(&(q)->lock, NULL, MUTEX_DRIVER, pri); \ 210 mutex_destroy(&(q)->lock); \ 216 mutex_enter(&(q)->lock); \ 218 mutex_exit(&(q)->lock); \ 222 mutex_enter(&(q)->lock); \ 224 ret = cv_reltimedwait_sig(&(q)->cv, &(q)->lock, timeout,\ 236 mutex_exit(&(q)->lock); 252 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) || \ 614 drm_lock_data_t lock; /* Information on hardware lock */ member in struct:drm_device [all...] |
H A D | drm.h | 153 #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ 155 #define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ 156 #define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ 157 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) 158 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) 159 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT)) 214 * Hardware lock 221 __volatile__ unsigned int lock; /**< lock variable */ member in struct:drm_hw_lock [all...] |
H A D | drm_ioctl.c | 277 = (dev->lock.hw_lock 278 ? dev->lock.hw_lock->lock : 0);
|
/solaris-x11-s11/open-src/kernel/drm/src/ |
H A D | drm_lock.c | 55 * Add the current task to the lock wait queue, and attempt to take to lock. 60 struct drm_lock *lock = data; local 66 if (lock->context == DRM_KERNEL_CONTEXT) { 68 DRM_CURRENTPID, lock->context); 72 if (master->lock.hw_lock == NULL) 75 DRM_DEBUG("%d (pid %d) requests lock (0x%08x), flags = 0x%08x\n", 76 lock->context, DRM_CURRENTPID, 77 master->lock.hw_lock->lock, loc 133 struct drm_lock *lock = data; local 168 volatile unsigned int *lock = &lock_data->hw_lock->lock; local 214 volatile unsigned int *lock = &lock_data->hw_lock->lock; local 238 volatile unsigned int *lock = &lock_data->hw_lock->lock; local 296 volatile unsigned int *lock = &lock_data->hw_lock->lock; local [all...] |
H A D | drm_sun_timer.c | 33 mutex_init(&timer->lock, NULL, MUTEX_DRIVER, NULL); 39 mutex_destroy(&timer->lock); 53 mutex_enter(&timer->lock); 56 * Note that we must drop timer->lock before the untimeout, as the 61 mutex_exit(&timer->lock); 65 mutex_exit(&timer->lock); 71 mutex_enter(&timer->lock); 73 mutex_exit(&timer->lock);
|
H A D | drm_sun_idr.c | 171 mutex_init(&idrp->lock, NULL, MUTEX_DRIVER, NULL); 183 mutex_enter(&idrp->lock); 194 mutex_exit(&idrp->lock); 200 mutex_exit(&idrp->lock); 209 mutex_exit(&idrp->lock); 234 mutex_enter(&idrp->lock); 237 mutex_exit(&idrp->lock); 241 mutex_exit(&idrp->lock); 252 mutex_enter(&idrp->lock); 255 mutex_exit(&idrp->lock); [all...] |
H A D | drm_fops.c | 277 DRM_DEBUG("Process %d dead, freeing lock for context %d", 278 DRM_CURRENTPID, _DRM_LOCKING_CONTEXT(master->lock.hw_lock->lock)); 279 (void) drm_lock_free(&master->lock, 280 _DRM_LOCKING_CONTEXT(master->lock.hw_lock->lock)); 314 * If the hardware lock is held then free it, and take it again for the kernel 341 /* if the master has gone away we can't do anything with the lock */ 390 * possibility to lock. 393 if (master->lock [all...] |
H A D | drm_context.c | 66 * lock. 82 * drm_device::struct_mutex lock. 125 * while holding the drm_device::struct_mutex lock. 267 * hardware lock is held, clears the drm_device::context_flag and wakes up 276 if (file_priv->master->lock.hw_lock != NULL && 277 !_DRM_LOCK_IS_HELD(file_priv->master->lock.hw_lock->lock)) { 282 when the kernel holds the lock, release 283 that lock here. */
|
H A D | drm_ioctl.c | 229 (file->master->lock.hw_lock ? file->master->lock.hw_lock->lock : 0);
|
H A D | drm_stub.c | 108 mutex_init(&master->lock.lock_mutex, NULL, MUTEX_DRIVER, (void *)minor->dev->pdev->intr_block); 109 cv_init(&master->lock.lock_cv, NULL, CV_DRIVER, NULL); 164 cv_destroy(&master->lock.lock_cv); 165 mutex_destroy(&master->lock.lock_mutex);
|
/solaris-x11-s11/open-src/kernel/sys/drm/ |
H A D | drm_sarea.h | 78 struct drm_hw_lock lock; member in struct:drm_sarea 79 /** \todo Use readers/writer lock for drm_sarea::drawable_lock */
|
H A D | drm_sun_timer.h | 46 kmutex_t lock; member in struct:timer_list
|
H A D | drm_sun_idr.h | 55 kmutex_t lock; member in struct:idr
|
H A D | drm.h | 74 #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */ 76 #define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ 77 #define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ 78 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD) 79 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) 80 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT)) 122 * Hardware lock 129 __volatile__ unsigned int lock; /**< lock variable */ member in struct:drm_hw_lock [all...] |
H A D | drmP.h | 288 kmutex_t lock; member in struct:drm_wait_queue 293 mutex_init(&(q)->lock, NULL, MUTEX_DRIVER, pri); \ 299 mutex_destroy(&(q)->lock); \ 305 mutex_enter(&(q)->lock); \ 307 mutex_exit(&(q)->lock); \ 311 mutex_enter(&(q)->lock); \ 313 ret = cv_reltimedwait_sig(&(q)->cv, &(q)->lock, timeout,\ 325 mutex_exit(&(q)->lock); 328 mutex_enter(&(q)->lock); \ 330 (void) cv_timedwait_sig(&(q)->cv, &(q)->lock, jiffie 993 struct drm_lock_data lock; /**< Information on hardware lock */ member in struct:drm_master [all...] |
/solaris-x11-s11/open-src/app/xlock/ |
H A D | Makefile | 3 # xlock - manually activated screen lock program 32 MODULE_DESC = the xlock screen lock program
|
/solaris-x11-s11/open-src/app/dsession/sun-src/ |
H A D | dsession.c | 73 mutex_t lock; member in struct:__anon17 95 #define lock (((shared_mem_t *) shm_addr)->lock) macro 1285 mutex_lock(&lock); 1311 mutex_unlock(&lock); 1342 mutex_destroy(&lock); 1378 mutex_lock(&lock); 1389 mutex_unlock(&lock); 1406 mutex_unlock(&lock); 1427 mutex_unlock(&lock); [all...] |
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/ |
H A D | psctxtops.psw | 79 lock
|
H A D | dpsctxtops.psw | 80 lock
|
/solaris-x11-s11/open-src/kernel/i915/src/ |
H A D | intel_panel.c | 411 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 430 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags); 483 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 504 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags); 523 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 542 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags); 553 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 608 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags); 681 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 683 spin_unlock_irqrestore(&dev_priv->backlight.lock, flag [all...] |
H A D | i915_suspend.c | 211 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 233 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags); 279 spin_lock_irqsave(&dev_priv->backlight.lock, flags); 320 spin_unlock_irqrestore(&dev_priv->backlight.lock, flags);
|
/solaris-x11-s11/open-src/lib/libxcb/ |
H A D | Makefile | 68 --disable-libtool-lock \
|