net/bluetooth/iso.c
1014
iso_pi(sk)->src_type = BDADDR_LE_PUBLIC;
net/bluetooth/iso.c
1016
iso_pi(sk)->qos = default_qos;
net/bluetooth/iso.c
1017
iso_pi(sk)->sync_handle = -1;
net/bluetooth/iso.c
1019
INIT_DELAYED_WORK(&iso_pi(sk)->timeout_work, iso_sock_timeout);
net/bluetooth/iso.c
1060
bacpy(&iso_pi(sk)->dst, &sa->iso_bc->bc_bdaddr);
net/bluetooth/iso.c
1066
iso_pi(sk)->dst_type = sa->iso_bc->bc_bdaddr_type;
net/bluetooth/iso.c
1071
iso_pi(sk)->bc_sid = sa->iso_bc->bc_sid;
net/bluetooth/iso.c
1076
iso_pi(sk)->bc_num_bis = sa->iso_bc->bc_num_bis;
net/bluetooth/iso.c
1078
for (i = 0; i < iso_pi(sk)->bc_num_bis; i++)
net/bluetooth/iso.c
1083
memcpy(iso_pi(sk)->bc_bis, sa->iso_bc->bc_bis,
net/bluetooth/iso.c
1084
iso_pi(sk)->bc_num_bis);
net/bluetooth/iso.c
1095
if (!test_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags))
net/bluetooth/iso.c
1110
iso_pi(sk)->bc_num_bis = sa->iso_bc->bc_num_bis;
net/bluetooth/iso.c
1112
memcpy(iso_pi(sk)->bc_bis, sa->iso_bc->bc_bis,
net/bluetooth/iso.c
1113
iso_pi(sk)->bc_num_bis);
net/bluetooth/iso.c
1139
if (sk->sk_type != SOCK_SEQPACKET || !iso_pi(sk)->conn)
net/bluetooth/iso.c
1149
if (!bacmp(&iso_pi(sk)->dst, &sa->iso_bc->bc_bdaddr) ||
net/bluetooth/iso.c
1157
hdev = iso_conn_get_hdev(iso_pi(sk)->conn);
net/bluetooth/iso.c
1161
bis = iso_pi(sk)->conn->hcon;
net/bluetooth/iso.c
1171
if (!iso_pi(sk)->conn || iso_pi(sk)->conn->hcon != bis) {
net/bluetooth/iso.c
1230
bacpy(&iso_pi(sk)->src, &sa->iso_bdaddr);
net/bluetooth/iso.c
1231
iso_pi(sk)->src_type = sa->iso_bdaddr_type;
net/bluetooth/iso.c
1272
bacpy(&iso_pi(sk)->dst, &sa->iso_bdaddr);
net/bluetooth/iso.c
1273
iso_pi(sk)->dst_type = sa->iso_bdaddr_type;
net/bluetooth/iso.c
1306
bacpy(&src, &iso_pi(sk)->src);
net/bluetooth/iso.c
1307
bacpy(&dst, &iso_pi(sk)->dst);
net/bluetooth/iso.c
1308
src_type = iso_pi(sk)->src_type;
net/bluetooth/iso.c
1309
bc_sid = iso_pi(sk)->bc_sid;
net/bluetooth/iso.c
1332
if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
net/bluetooth/iso.c
1333
iso_pi(sk)->qos = default_qos;
net/bluetooth/iso.c
1338
hcon = hci_pa_create_sync(hdev, &iso_pi(sk)->dst,
net/bluetooth/iso.c
1339
le_addr_type(iso_pi(sk)->dst_type),
net/bluetooth/iso.c
1340
iso_pi(sk)->bc_sid, &iso_pi(sk)->qos);
net/bluetooth/iso.c
1371
BT_DBG("%pMR", &iso_pi(sk)->src);
net/bluetooth/iso.c
1375
if (__iso_get_sock_listen_by_addr(&iso_pi(sk)->src, &iso_pi(sk)->dst))
net/bluetooth/iso.c
1403
if (!bacmp(&iso_pi(sk)->dst, BDADDR_ANY)) {
net/bluetooth/iso.c
1493
if (test_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags)) {
net/bluetooth/iso.c
1498
for (int i = 0; i < iso_pi(sk)->bc_num_bis; i++) {
net/bluetooth/iso.c
1499
if (iso_pi(sk)->bc_bis[i] > 0) {
net/bluetooth/iso.c
1500
iso_pi(sk)->bc_bis[i] = 0;
net/bluetooth/iso.c
1501
iso_pi(sk)->bc_num_bis--;
net/bluetooth/iso.c
1506
if (iso_pi(sk)->bc_num_bis == 0) {
net/bluetooth/iso.c
1518
clear_bit(BT_SK_BIG_SYNC, &iso_pi(sk)->flags);
net/bluetooth/iso.c
1542
struct hci_conn *hcon = iso_pi(sk)->conn ?
net/bluetooth/iso.c
1543
iso_pi(sk)->conn->hcon : NULL;
net/bluetooth/iso.c
1545
bacpy(&sa->iso_bdaddr, &iso_pi(sk)->dst);
net/bluetooth/iso.c
1546
sa->iso_bdaddr_type = iso_pi(sk)->dst_type;
net/bluetooth/iso.c
1549
sa->iso_bc->bc_sid = iso_pi(sk)->bc_sid;
net/bluetooth/iso.c
1550
sa->iso_bc->bc_num_bis = iso_pi(sk)->bc_num_bis;
net/bluetooth/iso.c
1551
memcpy(sa->iso_bc->bc_bis, iso_pi(sk)->bc_bis,
net/bluetooth/iso.c
1556
bacpy(&sa->iso_bdaddr, &iso_pi(sk)->src);
net/bluetooth/iso.c
1557
sa->iso_bdaddr_type = iso_pi(sk)->src_type;
net/bluetooth/iso.c
1598
mtu = iso_pi(sk)->conn->hcon->mtu;
net/bluetooth/iso.c
1670
bacpy(&src, &iso_pi(sk)->src);
net/bluetooth/iso.c
1671
bacpy(&dst, &iso_pi(sk)->dst);
net/bluetooth/iso.c
1672
src_type = iso_pi(sk)->src_type;
net/bluetooth/iso.c
1693
conn = iso_pi(sk)->conn;
net/bluetooth/iso.c
1697
if (!test_and_set_bit(BT_SK_BIG_SYNC, &iso_pi(sk)->flags)) {
net/bluetooth/iso.c
1699
&iso_pi(sk)->qos,
net/bluetooth/iso.c
1700
iso_pi(sk)->sync_handle,
net/bluetooth/iso.c
1701
iso_pi(sk)->bc_num_bis,
net/bluetooth/iso.c
1702
iso_pi(sk)->bc_bis);
net/bluetooth/iso.c
1717
struct iso_pinfo *pi = iso_pi(sk);
net/bluetooth/iso.c
1747
if (test_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags)) {
net/bluetooth/iso.c
1923
(!test_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags) ||
net/bluetooth/iso.c
1933
iso_pi(sk)->qos = qos;
net/bluetooth/iso.c
1934
iso_pi(sk)->qos_user_set = true;
net/bluetooth/iso.c
1945
if (optlen > sizeof(iso_pi(sk)->base)) {
net/bluetooth/iso.c
1950
err = copy_safe_from_sockptr(iso_pi(sk)->base, optlen, optval,
net/bluetooth/iso.c
1955
iso_pi(sk)->base_len = optlen;
net/bluetooth/iso.c
2015
!bacmp(&iso_pi(sk)->dst, BDADDR_ANY)) {
net/bluetooth/iso.c
2016
base_len = iso_pi(sk)->conn->hcon->le_per_adv_data_len;
net/bluetooth/iso.c
2017
base = iso_pi(sk)->conn->hcon->le_per_adv_data;
net/bluetooth/iso.c
2019
base_len = iso_pi(sk)->base_len;
net/bluetooth/iso.c
2020
base = iso_pi(sk)->base;
net/bluetooth/iso.c
204
cancel_delayed_work(&iso_pi(sk)->timeout_work);
net/bluetooth/iso.c
206
if (!iso_pi(sk)->conn)
net/bluetooth/iso.c
210
schedule_delayed_work(&iso_pi(sk)->timeout_work, timeout);
net/bluetooth/iso.c
2137
return ev->handle == iso_pi(sk)->qos.bcast.big;
net/bluetooth/iso.c
2144
return hcon->iso_qos.bcast.big == iso_pi(sk)->qos.bcast.big;
net/bluetooth/iso.c
2149
return test_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags);
net/bluetooth/iso.c
2154
return !bacmp(&iso_pi(sk)->dst, (bdaddr_t *)data);
net/bluetooth/iso.c
216
cancel_delayed_work(&iso_pi(sk)->timeout_work);
net/bluetooth/iso.c
2197
iso_pi(sk)->src_type = BDADDR_LE_RANDOM;
net/bluetooth/iso.c
2198
bacpy(&iso_pi(sk)->src, &adv->random_addr);
net/bluetooth/iso.c
224
disable_delayed_work_sync(&iso_pi(sk)->timeout_work);
net/bluetooth/iso.c
2273
bacpy(&iso_pi(sk)->src, &hcon->src);
net/bluetooth/iso.c
2277
iso_pi(sk)->src_type = BDADDR_LE_PUBLIC;
net/bluetooth/iso.c
2279
iso_pi(sk)->src_type = BDADDR_LE_RANDOM;
net/bluetooth/iso.c
2287
bacpy(&hcon->dst, &iso_pi(parent)->dst);
net/bluetooth/iso.c
2288
hcon->dst_type = le_addr_type(iso_pi(parent)->dst_type);
net/bluetooth/iso.c
2292
iso_pi(sk)->qos = iso_pi(parent)->qos;
net/bluetooth/iso.c
2293
hcon->iso_qos = iso_pi(sk)->qos;
net/bluetooth/iso.c
2294
iso_pi(sk)->bc_sid = iso_pi(parent)->bc_sid;
net/bluetooth/iso.c
2295
iso_pi(sk)->bc_num_bis = iso_pi(parent)->bc_num_bis;
net/bluetooth/iso.c
2296
memcpy(iso_pi(sk)->bc_bis, iso_pi(parent)->bc_bis,
net/bluetooth/iso.c
2298
set_bit(BT_SK_PA_SYNC, &iso_pi(sk)->flags);
net/bluetooth/iso.c
2301
bacpy(&iso_pi(sk)->dst, &hcon->dst);
net/bluetooth/iso.c
2305
iso_pi(sk)->dst_type = BDADDR_LE_PUBLIC;
net/bluetooth/iso.c
2307
iso_pi(sk)->dst_type = BDADDR_LE_RANDOM;
net/bluetooth/iso.c
2309
iso_pi(sk)->sync_handle = iso_pi(parent)->sync_handle;
net/bluetooth/iso.c
2310
memcpy(iso_pi(sk)->base, iso_pi(parent)->base, iso_pi(parent)->base_len);
net/bluetooth/iso.c
2311
iso_pi(sk)->base_len = iso_pi(parent)->base_len;
net/bluetooth/iso.c
2340
if (iso_pi(sk)->bc_sid == HCI_SID_INVALID)
net/bluetooth/iso.c
2343
return ev->sid == iso_pi(sk)->bc_sid;
net/bluetooth/iso.c
2350
if (iso_pi(sk)->bc_sid == HCI_SID_INVALID)
net/bluetooth/iso.c
2353
return ev->sid == iso_pi(sk)->bc_sid;
net/bluetooth/iso.c
2360
return le16_to_cpu(ev->sync_handle) == iso_pi(sk)->sync_handle;
net/bluetooth/iso.c
2367
return le16_to_cpu(ev->sync_handle) == iso_pi(sk)->sync_handle;
net/bluetooth/iso.c
2403
iso_pi(sk)->sync_handle = le16_to_cpu(ev1->handle);
net/bluetooth/iso.c
2404
iso_pi(sk)->bc_sid = ev1->sid;
net/bluetooth/iso.c
2417
iso_pi(sk)->sync_handle = le16_to_cpu(ev1a->sync_handle);
net/bluetooth/iso.c
2418
iso_pi(sk)->bc_sid = ev1a->sid;
net/bluetooth/iso.c
2452
hcon = iso_pi(sk)->conn ? iso_pi(sk)->conn->hcon : NULL;
net/bluetooth/iso.c
2453
iso_pi(sk)->qos.bcast.encryption = ev2->encryption;
net/bluetooth/iso.c
2455
if (ev2->num_bis < iso_pi(sk)->bc_num_bis)
net/bluetooth/iso.c
2456
iso_pi(sk)->bc_num_bis = ev2->num_bis;
net/bluetooth/iso.c
2459
!test_and_set_bit(BT_SK_BIG_SYNC, &iso_pi(sk)->flags);
net/bluetooth/iso.c
2463
&iso_pi(sk)->qos,
net/bluetooth/iso.c
2464
iso_pi(sk)->sync_handle,
net/bluetooth/iso.c
2465
iso_pi(sk)->bc_num_bis,
net/bluetooth/iso.c
2466
iso_pi(sk)->bc_bis);
net/bluetooth/iso.c
2494
hcon = iso_pi(sk)->conn ? iso_pi(sk)->conn->hcon : NULL;
net/bluetooth/iso.c
2530
memcpy(iso_pi(sk)->base, base, base_len);
net/bluetooth/iso.c
2531
iso_pi(sk)->base_len = base_len;
net/bluetooth/iso.c
272
conn = iso_pi(sk)->conn;
net/bluetooth/iso.c
273
iso_pi(sk)->conn = NULL;
net/bluetooth/iso.c
2802
seq_printf(f, "%pMR %pMR %d\n", &iso_pi(sk)->src,
net/bluetooth/iso.c
2803
&iso_pi(sk)->dst, sk->sk_state);
net/bluetooth/iso.c
345
if (iso_pi(sk)->conn == conn && conn->sk == sk)
net/bluetooth/iso.c
358
iso_pi(sk)->conn = iso_conn_hold(conn);
net/bluetooth/iso.c
398
bacpy(&src, &iso_pi(sk)->src);
net/bluetooth/iso.c
399
bacpy(&dst, &iso_pi(sk)->dst);
net/bluetooth/iso.c
400
src_type = iso_pi(sk)->src_type;
net/bluetooth/iso.c
401
bc_sid = iso_pi(sk)->bc_sid;
net/bluetooth/iso.c
419
if (iso_pi(sk)->qos_user_set && !check_bcast_qos(&iso_pi(sk)->qos)) {
net/bluetooth/iso.c
420
iso_pi(sk)->qos = default_qos;
net/bluetooth/iso.c
426
if (!iso_pi(sk)->qos.bcast.out.phys) {
net/bluetooth/iso.c
433
hcon = hci_bind_bis(hdev, &iso_pi(sk)->dst, iso_pi(sk)->bc_sid,
net/bluetooth/iso.c
434
&iso_pi(sk)->qos, iso_pi(sk)->base_len,
net/bluetooth/iso.c
435
iso_pi(sk)->base,
net/bluetooth/iso.c
442
hcon = hci_connect_bis(hdev, &iso_pi(sk)->dst,
net/bluetooth/iso.c
443
le_addr_type(iso_pi(sk)->dst_type),
net/bluetooth/iso.c
444
iso_pi(sk)->bc_sid, &iso_pi(sk)->qos,
net/bluetooth/iso.c
445
iso_pi(sk)->base_len, iso_pi(sk)->base,
net/bluetooth/iso.c
453
if (iso_pi(sk)->bc_sid == HCI_SID_INVALID)
net/bluetooth/iso.c
454
iso_pi(sk)->bc_sid = hcon->sid;
net/bluetooth/iso.c
472
bacpy(&iso_pi(sk)->src, &hcon->src);
net/bluetooth/iso.c
502
bacpy(&src, &iso_pi(sk)->src);
net/bluetooth/iso.c
503
bacpy(&dst, &iso_pi(sk)->dst);
net/bluetooth/iso.c
504
src_type = iso_pi(sk)->src_type;
net/bluetooth/iso.c
522
if (iso_pi(sk)->qos_user_set && !check_ucast_qos(&iso_pi(sk)->qos)) {
net/bluetooth/iso.c
523
iso_pi(sk)->qos = default_qos;
net/bluetooth/iso.c
529
if (!iso_pi(sk)->qos.ucast.in.phys && !iso_pi(sk)->qos.ucast.out.phys) {
net/bluetooth/iso.c
535
if (iso_pi(sk)->qos.ucast.out.sdu && !hci_iso_count(hdev) &&
net/bluetooth/iso.c
543
hcon = hci_bind_cis(hdev, &iso_pi(sk)->dst,
net/bluetooth/iso.c
544
le_addr_type(iso_pi(sk)->dst_type),
net/bluetooth/iso.c
545
&iso_pi(sk)->qos,
net/bluetooth/iso.c
552
hcon = hci_connect_cis(hdev, &iso_pi(sk)->dst,
net/bluetooth/iso.c
553
le_addr_type(iso_pi(sk)->dst_type),
net/bluetooth/iso.c
554
&iso_pi(sk)->qos,
net/bluetooth/iso.c
577
bacpy(&iso_pi(sk)->src, &hcon->src);
net/bluetooth/iso.c
600
return &iso_pi(sk)->conn->hcon->iso_qos;
net/bluetooth/iso.c
602
return &iso_pi(sk)->qos;
net/bluetooth/iso.c
608
struct iso_conn *conn = iso_pi(sk)->conn;
net/bluetooth/iso.c
672
if (bacmp(&iso_pi(sk)->dst, dst))
net/bluetooth/iso.c
675
if (!bacmp(&iso_pi(sk)->src, src))
net/bluetooth/iso.c
691
if (bacmp(&iso_pi(sk)->src, ba))
net/bluetooth/iso.c
694
if (bacmp(&iso_pi(sk)->dst, bc))
net/bluetooth/iso.c
697
if (iso_pi(sk)->bc_sid == sid)
net/bluetooth/iso.c
724
if (bacmp(dst, BDADDR_ANY) && bacmp(&iso_pi(sk)->dst, dst)) {
net/bluetooth/iso.c
733
if (bacmp(&iso_pi(sk)->dst, &irk1->bdaddr)) {
net/bluetooth/iso.c
738
&iso_pi(sk)->dst);
net/bluetooth/iso.c
749
if (!bacmp(&iso_pi(sk)->src, src)) {
net/bluetooth/iso.c
755
if (!bacmp(&iso_pi(sk)->src, BDADDR_ANY)) {
net/bluetooth/iso.c
791
if (bacmp(&iso_pi(sk)->dst, dst))
net/bluetooth/iso.c
795
if (iso_pi(sk)->qos.bcast.big != big)
net/bluetooth/iso.c
799
if (bacmp(&iso_pi(sk)->src, src))
net/bluetooth/iso.c
815
iso_conn_put(iso_pi(sk)->conn);
net/bluetooth/iso.c
837
if (iso_pi(parent)->conn && iso_pi(parent)->conn->hcon) {
net/bluetooth/iso.c
856
test_bit(BT_SK_KILLED, &iso_pi(sk)->flags)) {
net/bluetooth/iso.c
864
if (iso_pi(sk)->conn) {
net/bluetooth/iso.c
865
iso_conn_lock(iso_pi(sk)->conn);
net/bluetooth/iso.c
866
iso_pi(sk)->conn->sk = NULL;
net/bluetooth/iso.c
867
iso_conn_unlock(iso_pi(sk)->conn);
net/bluetooth/iso.c
873
set_bit(BT_SK_KILLED, &iso_pi(sk)->flags);
net/bluetooth/iso.c
882
struct hci_conn *hcon = iso_pi(sk)->conn->hcon;
net/bluetooth/iso.c
885
bis_sk = iso_get_sock_big(sk, &iso_pi(sk)->src,
net/bluetooth/iso.c
886
&iso_pi(sk)->dst,
net/bluetooth/iso.c
887
iso_pi(sk)->qos.bcast.big);
net/bluetooth/iso.c
895
set_bit(ISO_CONN_DROPPED, iso_pi(sk)->conn->flags);
net/bluetooth/iso.c
905
if (!test_and_set_bit(ISO_CONN_DROPPED, iso_pi(sk)->conn->flags))
net/bluetooth/iso.c
906
hci_conn_drop(iso_pi(sk)->conn->hcon);
net/bluetooth/iso.c
921
if (iso_pi(sk)->conn->hcon)
net/bluetooth/iso.c
928
if (iso_pi(sk)->conn->hcon &&
net/bluetooth/iso.c
929
(test_bit(HCI_CONN_PA_SYNC, &iso_pi(sk)->conn->hcon->flags) ||
net/bluetooth/iso.c
930
test_bit(HCI_CONN_PA_SYNC_FAILED, &iso_pi(sk)->conn->hcon->flags)))