Lines Matching refs:d
687 struct iso_list_data *d = data; in bis_list() local
693 if (d->big != conn->iso_qos.bcast.big || d->bis == BT_ISO_QOS_BIS_UNSET || in bis_list()
694 d->bis != conn->iso_qos.bcast.bis) in bis_list()
697 d->count++; in bis_list()
702 struct iso_list_data *d = data; in terminate_big_sync() local
704 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", d->big, d->bis); in terminate_big_sync()
706 hci_disable_per_advertising_sync(hdev, d->bis); in terminate_big_sync()
707 hci_remove_ext_adv_instance_sync(hdev, d->bis, NULL); in terminate_big_sync()
710 if (!d->big_term) in terminate_big_sync()
713 return hci_le_terminate_big_sync(hdev, d->big, in terminate_big_sync()
724 struct iso_list_data *d; in hci_le_terminate_big() local
730 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_terminate_big()
731 if (!d) in hci_le_terminate_big()
734 d->big = conn->iso_qos.bcast.big; in hci_le_terminate_big()
735 d->bis = conn->iso_qos.bcast.bis; in hci_le_terminate_big()
736 d->big_term = test_and_clear_bit(HCI_CONN_BIG_CREATED, &conn->flags); in hci_le_terminate_big()
738 ret = hci_cmd_sync_queue(hdev, terminate_big_sync, d, in hci_le_terminate_big()
741 kfree(d); in hci_le_terminate_big()
748 struct iso_list_data *d = data; in big_terminate_sync() local
750 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", d->big, in big_terminate_sync()
751 d->sync_handle); in big_terminate_sync()
753 if (d->big_sync_term) in big_terminate_sync()
754 hci_le_big_terminate_sync(hdev, d->big); in big_terminate_sync()
756 if (d->pa_sync_term) in big_terminate_sync()
757 return hci_le_pa_terminate_sync(hdev, d->sync_handle); in big_terminate_sync()
764 struct iso_list_data *d = data; in find_bis() local
767 if (d->big != conn->iso_qos.bcast.big) in find_bis()
770 d->count++; in find_bis()
775 struct iso_list_data *d; in hci_le_big_terminate() local
780 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_big_terminate()
781 if (!d) in hci_le_big_terminate()
784 d->big = big; in hci_le_big_terminate()
785 d->sync_handle = conn->sync_handle; in hci_le_big_terminate()
789 HCI_CONN_PA_SYNC, d); in hci_le_big_terminate()
791 if (!d->count) in hci_le_big_terminate()
792 d->pa_sync_term = true; in hci_le_big_terminate()
794 d->count = 0; in hci_le_big_terminate()
799 HCI_CONN_BIG_SYNC, d); in hci_le_big_terminate()
801 if (!d->count) in hci_le_big_terminate()
802 d->big_sync_term = true; in hci_le_big_terminate()
805 ret = hci_cmd_sync_queue(hdev, big_terminate_sync, d, in hci_le_big_terminate()
808 kfree(d); in hci_le_big_terminate()
861 struct iso_list_data *d = data; in find_cis() local
864 if (!bacmp(&conn->dst, BDADDR_ANY) || d->cig != conn->iso_qos.ucast.cig) in find_cis()
867 d->count++; in find_cis()
877 struct iso_list_data d; in cis_cleanup() local
882 memset(&d, 0, sizeof(d)); in cis_cleanup()
883 d.cig = conn->iso_qos.ucast.cig; in cis_cleanup()
888 hci_conn_hash_list_state(hdev, find_cis, CIS_LINK, BT_BOUND, &d); in cis_cleanup()
890 &d); in cis_cleanup()
892 &d); in cis_cleanup()
893 if (d.count) in cis_cleanup()
1185 struct hci_dev *hdev = NULL, *d; in hci_get_route() local
1191 list_for_each_entry(d, &hci_dev_list, list) { in hci_get_route()
1192 if (!test_bit(HCI_UP, &d->flags) || in hci_get_route()
1193 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in hci_get_route()
1206 if (!lmp_bredr_capable(d)) in hci_get_route()
1208 bacpy(&id_addr, &d->bdaddr); in hci_get_route()
1211 if (!lmp_le_capable(d)) in hci_get_route()
1214 hci_copy_identity_address(d, &id_addr, in hci_get_route()
1225 hdev = d; break; in hci_get_route()
1228 if (bacmp(&d->bdaddr, dst)) { in hci_get_route()
1229 hdev = d; break; in hci_get_route()
2201 struct iso_list_data *d = data; in bis_mark_per_adv() local
2207 if (d->big != conn->iso_qos.bcast.big || in bis_mark_per_adv()
2208 d->bis == BT_ISO_QOS_BIS_UNSET || in bis_mark_per_adv()
2209 d->bis != conn->iso_qos.bcast.bis) in bis_mark_per_adv()