Lines Matching refs:ptr
35 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
37 __typeof__(*(ptr)) __ret; \
38 __typeof__(*(ptr)) __old = (old); \
39 __typeof__(*(ptr)) __new = (new); \
43 volatile u8 *__ptr = (volatile u8 *)(ptr); \
52 volatile u16 *__ptr = (volatile u16 *)(ptr); \
61 volatile u32 *__ptr = (volatile u32 *)(ptr); \
70 volatile u64 *__ptr = (volatile u64 *)(ptr); \
83 #define __cmpxchg(ptr, old, new, size) \ argument
84 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX)
86 #define cmpxchg(ptr, old, new) \ argument
87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))