Lines Matching defs:old
60 extern u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new_);
61 extern u16 __cmpxchg_u16(volatile u16 *ptr, u16 old, u16 new_);
62 extern u32 __cmpxchg_u32(volatile u32 *m, u32 old, u32 new_);
63 extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_);
67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
71 size == 8 ? __cmpxchg_u64(ptr, old, new_) :
73 size == 4 ? __cmpxchg_u32(ptr, old, new_) :
74 size == 2 ? __cmpxchg_u16(ptr, old, new_) :
75 size == 1 ? __cmpxchg_u8(ptr, old, new_) :
76 (__cmpxchg_called_with_bad_pointer(), old);
90 unsigned long old,
95 case 8: return __cmpxchg_u64((u64 *)ptr, old, new_);
97 case 4: return __cmpxchg_u32(ptr, old, new_);
99 return __generic_cmpxchg_local(ptr, old, new_, size);