Lines Matching refs:DRM_CAS
372 #define DRM_CAS(lock,old,new,__ret) \
387 #define DRM_CAS(lock, old, new, ret) \
412 #define DRM_CAS(lock,old,new,__ret) \
438 #define DRM_CAS(lock,old,new,__ret) \
450 #define DRM_CAS(lock,old,new,__ret) \
468 #define DRM_CAS(lock,old,new,__ret) \
494 #define DRM_CAS(lock,old,new,__ret) \
510 #ifndef DRM_CAS
511 #define DRM_CAS(lock,old,new,ret) do { ret=1; } while (0) /* FAST LOCK FAILS */
525 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
534 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
548 DRM_CAS(lock,DRM_LOCK_HELD|context,context,__ret); \
557 DRM_CAS(spin,0,val,__ret); \
568 DRM_CAS(spin,cur,val,__ret); \
577 DRM_CAS(spin,0,val,__ret); \
587 DRM_CAS(spin,val,0,__ret); \