Lines Matching refs:__ret
360 #define DRM_CAS(lock,old,new,__ret) \ argument
366 : "=d" (__ret), \
400 #define DRM_CAS(lock,old,new,__ret) \ argument
417 __ret = (__new != __old); \
426 #define DRM_CAS(lock,old,new,__ret) \ argument
431 __ret = (__result) != (__old); \
438 #define DRM_CAS(lock,old,new,__ret) \ argument
449 __ret = (__result) != (__old); \
456 #define DRM_CAS(lock,old,new,__ret) \ argument
467 : "=&r"(__ret) \
489 DRM_CAS_RESULT(__ret); \
490 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
491 if (__ret) drmGetLock(fd,context,0); \
498 DRM_CAS_RESULT(__ret); \
499 DRM_CAS(lock,context,DRM_LOCK_HELD|context,__ret); \
500 if (__ret) drmGetLock(fd,context,0); \
512 DRM_CAS_RESULT(__ret); \
513 DRM_CAS(lock,DRM_LOCK_HELD|context,context,__ret); \
514 if (__ret) drmUnlock(fd,context); \
520 DRM_CAS_RESULT(__ret); \
522 DRM_CAS(spin,0,val,__ret); \
523 if (__ret) while ((spin)->lock); \
524 } while (__ret); \
529 DRM_CAS_RESULT(__ret); \
533 DRM_CAS(spin,cur,val,__ret); \
534 } while (__ret); \
537 #define DRM_SPINLOCK_COUNT(spin,val,count,__ret) \ argument
540 __ret = 1; \
541 for (__i = 0; __ret && __i < count; __i++) { \
542 DRM_CAS(spin,0,val,__ret); \
543 if (__ret) for (;__i < count && (spin)->lock; __i++); \
549 DRM_CAS_RESULT(__ret); \
552 DRM_CAS(spin,val,0,__ret); \
553 } while (__ret); \