Lines Matching refs:proto_lock
103 percpu_down_read(&hu->proto_lock); in hci_uart_dequeue()
109 percpu_up_read(&hu->proto_lock); in hci_uart_dequeue()
125 if (!percpu_down_read_trylock(&hu->proto_lock)) in hci_uart_tx_wakeup()
141 percpu_up_read(&hu->proto_lock); in hci_uart_tx_wakeup()
242 percpu_down_read(&hu->proto_lock); in hci_uart_flush()
247 percpu_up_read(&hu->proto_lock); in hci_uart_flush()
281 percpu_down_read(&hu->proto_lock); in hci_uart_send_frame()
285 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
290 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
499 if (percpu_init_rwsem(&hu->proto_lock)) { in hci_uart_tty_open()
548 percpu_down_write(&hu->proto_lock); in hci_uart_tty_close()
550 percpu_up_write(&hu->proto_lock); in hci_uart_tty_close()
564 percpu_free_rwsem(&hu->proto_lock); in hci_uart_tty_close()
616 percpu_down_read(&hu->proto_lock); in hci_uart_tty_receive()
620 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()
628 percpu_up_read(&hu->proto_lock); in hci_uart_tty_receive()