Lines Matching refs:spin
553 #define DRM_SPINLOCK(spin,val) \ argument
557 DRM_CAS(spin,0,val,__ret); \
558 if (__ret) while ((spin)->lock); \
562 #define DRM_SPINLOCK_TAKE(spin,val) \ argument
567 cur = (*spin).lock; \
568 DRM_CAS(spin,cur,val,__ret); \
572 #define DRM_SPINLOCK_COUNT(spin,val,count,__ret) \ argument
577 DRM_CAS(spin,0,val,__ret); \
578 if (__ret) for (;__i < count && (spin)->lock; __i++); \
582 #define DRM_SPINUNLOCK(spin,val) \ argument
585 if ((*spin).lock == val) { /* else server stole lock */ \
587 DRM_CAS(spin,val,0,__ret); \