Lines Matching refs:proto_lock
118 percpu_down_read(&hu->proto_lock); in hci_uart_dequeue()
123 percpu_up_read(&hu->proto_lock); in hci_uart_dequeue()
139 if (!percpu_down_read_trylock(&hu->proto_lock)) in hci_uart_tx_wakeup()
155 percpu_up_read(&hu->proto_lock); in hci_uart_tx_wakeup()
248 percpu_down_read(&hu->proto_lock); in hci_uart_flush()
253 percpu_up_read(&hu->proto_lock); in hci_uart_flush()
287 percpu_down_read(&hu->proto_lock); in hci_uart_send_frame()
290 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
295 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
500 percpu_init_rwsem(&hu->proto_lock); in hci_uart_tty_open()
531 percpu_down_write(&hu->proto_lock); in hci_uart_tty_close()
533 percpu_up_write(&hu->proto_lock); in hci_uart_tty_close()
546 percpu_free_rwsem(&hu->proto_lock); in hci_uart_tty_close()
597 percpu_down_read(&hu->proto_lock); in hci_uart_tty_receive()
600 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()
608 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()