Home
last modified time | relevance | path

Searched refs:bt_sk (Results 1 – 9 of 9) sorted by relevance

/linux/net/bluetooth/
H A Daf_bluetooth.c153 INIT_LIST_HEAD(&bt_sk(sk)->accept_q); in bt_sock_alloc()
224 list_add_tail(&bt_sk(sk)->accept_q, &bt_sk(parent)->accept_q); in bt_accept_enqueue()
225 bt_sk(sk)->parent = parent; in bt_accept_enqueue()
256 list_del_init(&bt_sk(sk)->accept_q); in bt_accept_unlink()
257 sk_acceptq_removed(bt_sk(sk)->parent); in bt_accept_unlink()
258 bt_sk(sk)->parent = NULL; in bt_accept_unlink()
281 if (!bt_sk(sk)->parent) { in bt_accept_dequeue()
354 if (msg->msg_name && bt_sk(sk)->skb_msg_name) in bt_sock_recvmsg()
355 bt_sk(sk)->skb_msg_name(skb, msg->msg_name, in bt_sock_recvmsg()
358 if (test_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags)) { in bt_sock_recvmsg()
[all …]
H A Dsco.c490 bt_sk(sk)->flags = bt_sk(parent)->flags; in sco_sock_init()
820 test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { in sco_sock_recvmsg()
861 set_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in sco_sock_setsockopt()
863 clear_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in sco_sock_setsockopt()
906 set_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags); in sco_sock_setsockopt()
908 clear_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags); in sco_sock_setsockopt()
991 test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags))) { in sco_sock_getsockopt_old()
1009 test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags))) { in sco_sock_getsockopt_old()
1093 if (put_user(test_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags), in sco_sock_getsockopt()
1314 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) in sco_conn_ready()
[all …]
H A Dl2cap_sock.c945 set_bit(BT_SK_SUSPEND, &bt_sk(sk)->flags); in l2cap_sock_setsockopt()
964 set_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in l2cap_sock_setsockopt()
967 clear_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in l2cap_sock_setsockopt()
1172 &bt_sk(sk)->flags)) { in l2cap_sock_recvmsg()
1579 parent = bt_sk(sk)->parent; in l2cap_sock_teardown_cb()
1662 parent = bt_sk(sk)->parent; in l2cap_sock_ready_cb()
1681 parent = bt_sk(sk)->parent; in l2cap_sock_defer_cb()
1697 clear_bit(BT_SK_SUSPEND, &bt_sk(sk)->flags); in l2cap_sock_resume_cb()
1728 set_bit(BT_SK_SUSPEND, &bt_sk(sk)->flags); in l2cap_sock_suspend_cb()
1807 bt_sk(sk)->flags = bt_sk(parent)->flags; in l2cap_sock_init()
[all …]
H A Diso.c197 parent = bt_sk(sk)->parent; in iso_chan_del()
315 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { in iso_connect_bis()
406 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { in iso_connect_cis()
782 bt_sk(sk)->flags = bt_sk(parent)->flags; in iso_sock_init()
1042 if (!test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { in iso_sock_connect()
1511 set_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in iso_sock_setsockopt()
1513 clear_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in iso_sock_setsockopt()
1522 set_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags); in iso_sock_setsockopt()
1524 clear_bit(BT_SK_PKT_STATUS, &bt_sk(sk)->flags); in iso_sock_setsockopt()
1854 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) in iso_conn_ready()
[all …]
H A Dhci_sock.c279 if (bt_sk(sk)->parent && bt_sk(sk)->parent->sk_peer_pid) in hci_sock_copy_creds()
280 sk = bt_sk(sk)->parent; in hci_sock_copy_creds()
/linux/net/bluetooth/rfcomm/
H A Dsock.c80 parent = bt_sk(sk)->parent; in rfcomm_sk_state_change()
248 &bt_sk(parent)->flags); in rfcomm_sock_init()
711 set_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in rfcomm_sock_setsockopt()
713 clear_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags); in rfcomm_sock_setsockopt()
842 if (put_user(test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags), in rfcomm_sock_getsockopt()
975 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(parent)->flags)) in rfcomm_connect_ind()
H A Dcore.c1966 if (list_empty(&bt_sk(sock->sk)->accept_q)) in rfcomm_accept_connection()
/linux/net/bluetooth/hidp/
H A Dcore.c920 ctrl = bt_sk(ctrl_sock->sk); in hidp_session_new()
921 intr = bt_sk(intr_sock->sk); in hidp_session_new()
1328 ctrl = bt_sk(ctrl_sock->sk); in hidp_verify_sockets()
1329 intr = bt_sk(intr_sock->sk); in hidp_verify_sockets()
/linux/include/net/bluetooth/
H A Dbluetooth.h377 #define bt_sk(__sk) ((struct bt_sock *) __sk) macro