Lines Matching refs:spinlock
128 spinlock_t spinlock; member
216 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in flush_tx_queue()
221 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in flush_tx_queue()
396 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
399 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
404 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
464 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
466 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
766 spin_lock_irqsave(&n_hdlc->rx_buf_list.spinlock,flags); in n_hdlc_tty_ioctl()
771 spin_unlock_irqrestore(&n_hdlc->rx_buf_list.spinlock,flags); in n_hdlc_tty_ioctl()
779 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock,flags); in n_hdlc_tty_ioctl()
782 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock,flags); in n_hdlc_tty_ioctl()
894 spin_lock_init(&list->spinlock); in n_hdlc_buf_list_init()
906 spin_lock_irqsave(&list->spinlock,flags); in n_hdlc_buf_put()
916 spin_unlock_irqrestore(&list->spinlock,flags); in n_hdlc_buf_put()
932 spin_lock_irqsave(&list->spinlock,flags); in n_hdlc_buf_get()
942 spin_unlock_irqrestore(&list->spinlock,flags); in n_hdlc_buf_get()