Lines Matching defs:context
232 DRM_LOCK_FLUSH = 0x04, /**< Flush this context's DMA queue first */
242 DRM_CONTEXT_PRESERVED = 0x01, /**< This context is preserved and
244 DRM_CONTEXT_2DONLY = 0x02 /**< This context is for 2D rendering only. */
298 drm_context_t context; /**< Context handle */
522 #define DRM_LIGHT_LOCK(fd,lock,context) \
525 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
526 if (__ret) drmGetLock(fd,context,0); \
531 #define DRM_LIGHT_LOCK_COUNT(fd,lock,context,count) \
534 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
535 if (__ret) drmGetLock(fd,context,0); \
539 #define DRM_LOCK(fd,lock,context,flags) \
541 if (flags) drmGetLock(fd,context,flags); \
542 else DRM_LIGHT_LOCK(fd,lock,context); \
545 #define DRM_UNLOCK(fd,lock,context) \
548 DRM_CAS(lock,DRM_LOCK_HELD|context,context,__ret); \
549 if (__ret) drmUnlock(fd,context); \
653 extern int drmSetContextFlags(int fd, drm_context_t context,
655 extern int drmGetContextFlags(int fd, drm_context_t context,
657 extern int drmAddContextTag(int fd, drm_context_t context, void *tag);
658 extern int drmDelContextTag(int fd, drm_context_t context);
659 extern void *drmGetContextTag(int fd, drm_context_t context);
662 extern int drmSwitchToContext(int fd, drm_context_t context);
692 drm_context_t context,
694 extern int drmUnlock(int fd, drm_context_t context);
695 extern int drmFinish(int fd, int context, drmLockFlags flags);