Home
last modified time | relevance | path

Searched refs:proto_lock (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/bluetooth/
H A Dhci_ldisc.c103 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()
204 percpu_down_write(&hu->proto_lock); in hci_uart_init_work()
206 percpu_up_write(&hu->proto_lock); in hci_uart_init_work()
258 percpu_down_read(&hu->proto_lock); in hci_uart_flush()
263 percpu_up_read(&hu->proto_lock); in hci_uart_flush()
305 percpu_down_read(&hu->proto_lock); in hci_uart_send_frame()
309 percpu_up_read(&hu->proto_lock); in hci_uart_send_frame()
[all …]
H A Dhci_serdev.c314 if (percpu_init_rwsem(&hu->proto_lock)) in hci_uart_register_device_priv()
390 percpu_free_rwsem(&hu->proto_lock); in hci_uart_register_device_priv()
412 percpu_free_rwsem(&hu->proto_lock); in hci_uart_unregister_device()
H A Dhci_uart.h75 struct percpu_rw_semaphore proto_lock; /* Stop work for proto close */ member
/linux/net/bluetooth/
H A Diso.c113 spin_lock(&conn->hcon->proto_lock); in iso_conn_free()
122 spin_unlock(&conn->hcon->proto_lock); in iso_conn_free()
234 spin_lock(&hcon->proto_lock); in iso_conn_add()
243 spin_unlock(&hcon->proto_lock); in iso_conn_add()
249 spin_unlock(&hcon->proto_lock); in iso_conn_add()
260 spin_unlock(&hcon->proto_lock); in iso_conn_add()
305 spin_lock(&hcon->proto_lock); in iso_conn_del()
307 spin_unlock(&hcon->proto_lock); in iso_conn_del()
331 spin_lock(&hcon->proto_lock); in iso_conn_del()
336 spin_unlock(&hcon->proto_lock); in iso_conn_del()
[all...]
H A Dl2cap_core.c1844 spin_lock(&hcon->proto_lock); in l2cap_conn_del()
1846 spin_unlock(&hcon->proto_lock); in l2cap_conn_del()
7227 spin_lock(&hcon->proto_lock); in l2cap_conn_add()
7230 spin_unlock(&hcon->proto_lock); in l2cap_conn_add()
7628 spin_lock(&hcon->proto_lock); in l2cap_disconn_ind()
7632 spin_unlock(&hcon->proto_lock); in l2cap_disconn_ind()
H A Dhci_conn.c1157 spin_lock_init(&conn->proto_lock); in __hci_conn_add()
/linux/include/net/bluetooth/
H A Dhci_core.h780 spinlock_t proto_lock; /* lock guarding protocol data */
781 void *l2cap_data __guarded_by(&proto_lock, &hdev->lock);
783 void *iso_data __guarded_by(&proto_lock);
779 spinlock_t proto_lock; /* lock guarding protocol data */ global() member