Lines Matching defs:lock
69 #define DRM_RAM_PERCENT 10 /**< How much system ram can we lock? */
71 #define _DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */
72 #define _DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */
73 #define _DRM_LOCK_IS_HELD(lock) ((lock) & _DRM_LOCK_HELD)
74 #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT)
75 #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT))
117 * Hardware lock.
119 * The lock structure is a simple cache-line aligned integer. To avoid
124 __volatile__ unsigned int lock; /**< lock variable */
200 _DRM_CONTAINS_LOCK = 0x20, /**< SHM page that contains lock */
310 * getting a hardware lock with the
315 _DRM_DMA_WHILE_LOCKED = 0x02, /**< Dispatch while lock held */