Lines Matching refs:spinlock
73 flags = rt_spin_lock_irqsave(&(bypass->spinlock)); in rt_bypass_register()
82 rt_spin_unlock_irqrestore(&(bypass->spinlock), flags); in rt_bypass_register()
87 rt_spin_unlock_irqrestore(&(bypass->spinlock), flags); in rt_bypass_register()
99 rt_spin_unlock_irqrestore(&(bypass->spinlock), flags); in rt_bypass_register()
112 rt_spin_lock_init(&serial->bypass->upper_h->spinlock); in rt_bypass_upper_register()
144 level = rt_spin_lock_irqsave(&(serial->spinlock)); in _bypass_getchar_form_serial_fifo()
153 rt_spin_unlock_irqrestore(&(serial->spinlock), level); in _bypass_getchar_form_serial_fifo()
159 rt_spin_unlock_irqrestore(&(serial->spinlock), level); in _bypass_getchar_form_serial_fifo()
166 rt_spin_unlock_irqrestore(&(serial->spinlock), level); in _bypass_getchar_form_serial_fifo()
181 rt_spin_unlock_irqrestore(&(serial->spinlock), level); in _bypass_getchar_form_serial_fifo()
241 rt_spin_lock_init(&serial->bypass->lower_h->spinlock); in rt_bypass_lower_register()
282 flags = rt_spin_lock_irqsave(&(bypass->spinlock)); in rt_bypass_unregister()
290 rt_spin_unlock_irqrestore(&(bypass->spinlock), flags); in rt_bypass_unregister()
299 rt_spin_unlock_irqrestore(&(bypass->spinlock), flags); in rt_bypass_unregister()
337 flags = rt_spin_lock_irqsave(&(serial->bypass->upper_h->spinlock)); /* 加锁*/ in serial_bypass_list()
344 rt_spin_unlock_irqrestore(&(serial->bypass->upper_h->spinlock), flags); /* 解锁*/ in serial_bypass_list()
357 flags = rt_spin_lock_irqsave(&(serial->bypass->lower_h->spinlock)); /* 加锁*/ in serial_bypass_list()
364 rt_spin_unlock_irqrestore(&(serial->bypass->lower_h->spinlock), flags); /* 解锁*/ in serial_bypass_list()