Lines Matching refs:flags
17 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut usize) { in spin_lock_irqsave()
18 *flags = local_irq_save(); in spin_lock_irqsave()
26 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: usize) { in spin_unlock_irqrestore()
30 local_irq_restore(flags); in spin_unlock_irqrestore()
137 pub fn lock_irqsave(&self, flags: &mut usize) { in lock_irqsave()
138 *flags = local_irq_save(); in lock_irqsave()
143 pub fn unlock_irqrestore(&self, flags: usize) { in unlock_irqrestore()
145 local_irq_restore(flags); in unlock_irqrestore()
152 pub fn try_lock_irqsave(&self, flags: &mut usize) -> bool { in try_lock_irqsave()
153 *flags = local_irq_save(); in try_lock_irqsave()
157 local_irq_restore(*flags); in try_lock_irqsave()
220 let mut flags: usize = 0; in lock_irqsave() localVariable
222 self.lock.lock_irqsave(&mut flags); in lock_irqsave()
226 flag: flags, in lock_irqsave()
241 let mut flags: usize = 0; in try_lock_irqsave() localVariable
242 if self.lock.try_lock_irqsave(&mut flags) { in try_lock_irqsave()
245 flag: flags, in try_lock_irqsave()