Searched refs:state (Results 1 – 4 of 4) sorted by relevance
| /rust/kernel/sync/ |
| A D | lock.rs | 109 state: Opaque<B::State>, field 136 state <- Opaque::ffi_init(|slot| unsafe { in new() 170 let state = unsafe { B::lock(self.state.get()) }; in lock() 172 unsafe { Guard::new(self, state) } in lock() 183 unsafe { B::try_lock(self.state.get()).map(|state| Guard::new(self, state)) } in try_lock() 195 pub(crate) state: B::GuardState, 235 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in do_unlocked() 239 unsafe { B::relock(self.lock.state.get(), &mut self.state) }); in do_unlocked() 264 unsafe { B::unlock(self.lock.state.get(), &self.state) }; in drop() 276 unsafe { B::assert_is_held(lock.state.get()) }; in new() [all …]
|
| /rust/kernel/sync/lock/ |
| A D | global.rs | 50 state: Opaque::uninit(), in new() 72 self.inner.state.get(), in init()
|
| /rust/kernel/net/ |
| A D | phy.rs | 103 pub fn state(&self) -> DeviceState { in state() method 107 let state = unsafe { (*phydev).state }; in state() 110 match state { in state()
|
| /rust/kernel/ |
| A D | cpufreq.rs | 1369 state: c_int, in set_boost_callback() 1375 T::set_boost(policy, state).map(|()| 0) in set_boost_callback()
|
Completed in 10 milliseconds