Lines Matching refs:spinlock
121 spinlock_t spinlock; member
280 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
283 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
288 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
335 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
337 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_send_frames()
618 spin_lock_irqsave(&n_hdlc->rx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
625 spin_unlock_irqrestore(&n_hdlc->rx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
633 spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
638 spin_unlock_irqrestore(&n_hdlc->tx_buf_list.spinlock, flags); in n_hdlc_tty_ioctl()
727 spin_lock_init(&n_hdlc->rx_free_buf_list.spinlock); in n_hdlc_alloc()
728 spin_lock_init(&n_hdlc->tx_free_buf_list.spinlock); in n_hdlc_alloc()
729 spin_lock_init(&n_hdlc->rx_buf_list.spinlock); in n_hdlc_alloc()
730 spin_lock_init(&n_hdlc->tx_buf_list.spinlock); in n_hdlc_alloc()
757 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_return()
762 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_return()
775 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_put()
780 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_put()
796 spin_lock_irqsave(&buf_list->spinlock, flags); in n_hdlc_buf_get()
805 spin_unlock_irqrestore(&buf_list->spinlock, flags); in n_hdlc_buf_get()