Lines Matching refs:count
12 pub count: i32, field
19 count: i32, field
35 count: 0,
56 old.count = unsafe { read_volatile(&self.count) }; in cmpxchg_loop()
69 new.count += 1; in cmpxchg_loop()
73 if old.count <= 0 { in cmpxchg_loop()
76 new.count += 1; in cmpxchg_loop()
80 if old.count < 0 { in cmpxchg_loop()
83 new.count += 1; in cmpxchg_loop()
87 if old.count <= 0 { in cmpxchg_loop()
90 new.count -= 1; in cmpxchg_loop()
93 if old.count <= 1 { in cmpxchg_loop()
96 new.count -= 1; in cmpxchg_loop()
108 return Ok(new.count); in cmpxchg_loop()
134 self.count += 1; in inc()
157 if self.count > 0 { in inc_not_zero()
158 self.count += 1; in inc_not_zero()
159 retval = Ok(self.count); in inc_not_zero()
185 if self.count >= 0 { in inc_not_dead()
186 self.count += 1; in inc_not_dead()
187 retval = Ok(self.count); in inc_not_dead()
212 if self.count > 0 { in dec()
213 self.count -= 1; in dec()
214 retval = Ok(self.count); in dec()
274 if self.count > 1 { in dec_not_zero()
275 self.count -= 1; in dec_not_zero()
276 retval = Ok(self.count); in dec_not_zero()
303 if self.count > 1 { in dec_or_lock_not_zero()
304 self.count -= 1; in dec_or_lock_not_zero()
305 retval = Ok(self.count); in dec_or_lock_not_zero()
318 self.count = -128; in mark_dead()