/solaris-x11-s11/open-src/kernel/sys/drm/ |
H A D | drm_sun_timer.h | 46 kmutex_t lock; member in struct:timer_list
|
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_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/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_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.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 | 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...] |
/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...] |
/solaris-x11-s11/open-src/lib/DPS/sun-src/libdps/ |
H A D | csopendi.c | 66 static int lock; /* get rid of ifdefs when locking implemented */ variable
|
/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/libdga/sun-src/ |
H A D | cmap_grab.c | 221 char *lock, *unlock ; local 222 int lockfd, /* lock device */ 372 /* map the lock page */ 373 lock = (char *)mmap(0, 379 if (lock == (char *)-1) { 384 return errret("can't map lock page",tmp.cm_devname) ; 386 cmap_grab->cm_lockp = (u_int *) lock ; 405 if( _dga_winlockat(cookie, &lock, &unlock) != 0 ) { 410 return errret("can't get lock pages", fn) ; 412 cmap_grab->cm_lockp = (u_int *) lock ; [all...] |
/solaris-x11-s11/open-src/kernel/i915/src/ |
H A D | i915_drv.h | 748 /* lock - irqsave spinlock that protectects the work_struct and 750 spinlock_t lock; member in struct:intel_gen6_power_mgmt 798 spinlock_t lock; member in struct:i915_power_well 926 spinlock_t lock; member in struct:i915_gpu_error 927 /* Protected by the above dev->gpu_error.lock. */ 941 * This is important for lock-free wait paths, where no contended lock 1094 spinlock_t lock; /* bl registers and the above bl fields */ member in struct:drm_i915_private::__anon157 1419 spinlock_t lock; member in struct:drm_i915_file_private::__anon158
|