Lines Matching refs:spinlock
122 spinlock_t spinlock; member
281 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
284 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
289 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
336 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
338 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
621 spin_lock_irqsave(&n_hdlc->rx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
628 spin_unlock_irqrestore(&n_hdlc->rx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
636 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
641 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
730 spin_lock_init(&n_hdlc->rx_free_buf_list.spinlock); in n_hdlc_alloc()
731 spin_lock_init(&n_hdlc->tx_free_buf_list.spinlock); in n_hdlc_alloc()
732 spin_lock_init(&n_hdlc->rx_buf_list.spinlock); in n_hdlc_alloc()
733 spin_lock_init(&n_hdlc->tx_buf_list.spinlock); in n_hdlc_alloc()
760 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return()
765 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return()
778 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put()
783 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_put()
799 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_get()
808 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_get()