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.c112 spin_lock(&conn->hcon->proto_lock); in iso_conn_free()
121 spin_unlock(&conn->hcon->proto_lock); in iso_conn_free()
233 spin_lock(&hcon->proto_lock); in iso_conn_add()
242 spin_unlock(&hcon->proto_lock); in iso_conn_add()
248 spin_unlock(&hcon->proto_lock); in iso_conn_add()
259 spin_unlock(&hcon->proto_lock); in iso_conn_add()
304 spin_lock(&hcon->proto_lock); in iso_conn_del()
306 spin_unlock(&hcon->proto_lock); in iso_conn_del()
330 spin_lock(&hcon->proto_lock); in iso_conn_del()
335 spin_unlock(&hcon->proto_lock); in iso_conn_del()
[all …]
H A Dl2cap_core.c1837 spin_lock(&hcon->proto_lock); in l2cap_conn_del()
1839 spin_unlock(&hcon->proto_lock); in l2cap_conn_del()
7204 spin_lock(&hcon->proto_lock); in l2cap_conn_add()
7207 spin_unlock(&hcon->proto_lock); in l2cap_conn_add()
7601 spin_lock(&hcon->proto_lock); in l2cap_disconn_ind()
7605 spin_unlock(&hcon->proto_lock); in l2cap_disconn_ind()
H A Dhci_conn.c1136 spin_lock_init(&conn->proto_lock); in __hci_conn_add()
/linux/include/net/bluetooth/
H A Dhci_core.h779 spinlock_t proto_lock; /* lock guarding protocol data */ member
780 void *l2cap_data __guarded_by(&proto_lock, &hdev->lock);
782 void *iso_data __guarded_by(&proto_lock);