Searched refs:State (Results 1 – 4 of 4) sorted by relevance
| /rust/kernel/sync/lock/ |
| A D | mutex.rs | 102 type State = bindings::mutex; typedef 106 ptr: *mut Self::State, in init() argument 115 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() 121 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument 127 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() 138 unsafe fn assert_is_held(ptr: *mut Self::State) { in assert_is_held() argument
|
| A D | spinlock.rs | 101 type State = bindings::spinlock_t; typedef 105 ptr: *mut Self::State, in init() argument 114 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState { in lock() 120 unsafe fn unlock(ptr: *mut Self::State, _guard_state: &Self::GuardState) { in unlock() argument 126 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState> { in try_lock() 137 unsafe fn assert_is_held(ptr: *mut Self::State) { in assert_is_held() argument
|
| /rust/kernel/sync/ |
| A D | lock.rs | 39 type State; typedef 54 ptr: *mut Self::State, in init() argument 65 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() 72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() 79 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() argument 87 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock() argument 97 unsafe fn assert_is_held(ptr: *mut Self::State); in assert_is_held() argument 109 state: Opaque<B::State>, 154 pub unsafe fn from_raw<'a>(ptr: *mut B::State) -> &'a Self { in from_raw()
|
| /rust/kernel/ |
| A D | regulator.rs | 78 pub struct Error<State: RegulatorState> { 83 pub regulator: Regulator<State>, 243 pub struct Regulator<State = Dynamic> 245 State: RegulatorState, 248 _phantom: PhantomData<State>,
|
Completed in 6 milliseconds