Lines Matching refs:addr
29 addr: *mut u32, field
33 pub fn new(addr: *mut u32) -> Self { in new()
34 return Futex { addr }; in new()
38 return unsafe { self.addr.offset(offset) }; in get_addr()
42 return unsafe { self.addr.offset(offset).read() }; in get_val()
47 self.addr.offset(offset).write(val); in set_val()
57 addr: *mut i32, field
61 pub fn new(addr: *mut i32) -> Self { in new()
62 return Lock { addr }; in new()
66 return unsafe { self.addr.offset(offset).read() }; in get_val()
71 self.addr.offset(offset).write(val); in set_val()