Lines Matching refs:lock
10 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave()
13 spin_lock(lock); in spin_lock_irqsave()
19 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore()
21 spin_unlock(lock); in spin_unlock_irqrestore()
29 pub fn spin_is_locked(lock: &spinlock_t) -> bool { in spin_is_locked()
30 let val = unsafe { read_volatile(&lock.lock as *const i8) }; in spin_is_locked()
37 Self { lock: 1 } in default()
42 pub fn spin_lock_irq(lock: *mut spinlock_t){ in spin_lock_irq()
44 unsafe{spin_lock(lock);} in spin_lock_irq()
48 pub fn spin_unlock_irq(lock: *mut spinlock_t){ in spin_unlock_irq()
49 unsafe{spin_unlock(lock);} in spin_unlock_irq()