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()
140 percpu_up_read(&hu->proto_lock); in hci_uart_tx_wakeup()
241 percpu_down_read(&hu->proto_lock); in hci_uart_flush()
246 percpu_up_read(&hu->proto_lock); in hci_uart_flush()
280 percpu_down_read(&hu->proto_lock); in hci_uart_send_frame()
283 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
288 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
506 percpu_init_rwsem(&hu->proto_lock); in hci_uart_tty_open()
537 percpu_down_write(&hu->proto_lock); in hci_uart_tty_close()
539 percpu_up_write(&hu->proto_lock); in hci_uart_tty_close()
553 percpu_free_rwsem(&hu->proto_lock); in hci_uart_tty_close()
604 percpu_down_read(&hu->proto_lock); in hci_uart_tty_receive()
607 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()
615 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()