Lines Matching refs:LockRef
10 pub struct LockRef { struct
17 pub struct LockRef { argument
32 impl LockRef { argument
33 pub const INIT: LockRef = LockRef {
38 pub fn new() -> LockRef { in new()
39 assert_eq!(size_of::<LockRef>(), 8); in new()
40 return LockRef::INIT; in new()
55 let mut old: LockRef = LockRef::INIT; in cmpxchg_loop()
59 let mut new = LockRef::INIT; in cmpxchg_loop()
61 *(&mut new as *mut LockRef as *mut usize as *mut u64) = in cmpxchg_loop()
62 read_volatile(&mut old as *mut LockRef as *mut usize as *mut u64); in cmpxchg_loop()
102 self as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
103 &mut old as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
104 &mut new as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()