Lines Matching refs:proto_lock
103 percpu_down_read(&hu->proto_lock); in hci_uart_dequeue()
108 percpu_up_read(&hu->proto_lock); in hci_uart_dequeue()
124 if (!percpu_down_read_trylock(&hu->proto_lock)) in hci_uart_tx_wakeup()
139 percpu_up_read(&hu->proto_lock); in hci_uart_tx_wakeup()
245 percpu_down_read(&hu->proto_lock); in hci_uart_flush()
250 percpu_up_read(&hu->proto_lock); in hci_uart_flush()
284 percpu_down_read(&hu->proto_lock); in hci_uart_send_frame()
287 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
292 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
498 if (percpu_init_rwsem(&hu->proto_lock)) { in hci_uart_tty_open()
544 percpu_down_write(&hu->proto_lock); in hci_uart_tty_close()
546 percpu_up_write(&hu->proto_lock); in hci_uart_tty_close()
560 percpu_free_rwsem(&hu->proto_lock); in hci_uart_tty_close()
611 percpu_down_read(&hu->proto_lock); in hci_uart_tty_receive()
614 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()
622 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()