Searched refs:proto_lock (Results 1 – 5 of 5) sorted by relevance
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()[all …]
304 if (percpu_init_rwsem(&hu->proto_lock)) in hci_uart_register_device()380 percpu_free_rwsem(&hu->proto_lock); in hci_uart_register_device()402 percpu_free_rwsem(&hu->proto_lock); in hci_uart_unregister_device()
75 struct percpu_rw_semaphore proto_lock; /* Stop work for proto close */ member
142 percpu_down_read(&hu->proto_lock); in hci_proto_read_lock()144 down_read(&hu->proto_lock); in hci_proto_read_lock()151 return percpu_down_read_trylock(&hu->proto_lock); in hci_proto_read_trylock()153 return down_read_trylock(&hu->proto_lock); in hci_proto_read_trylock()160 percpu_up_read(&hu->proto_lock); in hci_proto_read_unlock()162 up_read(&hu->proto_lock); in hci_proto_read_unlock()169 percpu_down_write(&hu->proto_lock); in hci_proto_write_lock()171 down_write(&hu->proto_lock); in hci_proto_write_lock()178 percpu_up_write(&hu->proto_lock); in hci_proto_write_unlock()180 up_write(&hu->proto_lock); in hci_proto_write_unlock()[all …]
104 struct percpu_rw_semaphore proto_lock; /* Stop work for proto close */ member106 struct rw_semaphore proto_lock; member